0

All I want is to record the actions I perform in a website and have to get the code generated for the same in c#.To make it clear,I juss want to run the code so that the manual activity is performed automatically.Any help would be great.Thanks a lot.

5
  • 2
    There are numerous off-the-shelf products which support this functionality. What research have you done into this already? Commented Feb 20, 2013 at 10:27
  • I am in a corner now to automate a website.I have done some googling.But what I need it is a step by step by procedure which none of the forums have provided so far.Your help on this is duely appreciable Commented Feb 20, 2013 at 10:30
  • Have you had a look at selinium? If yes, please specify exactly why it is not going to help you. Commented Feb 20, 2013 at 10:33
  • I have heard and learnt some tutorials about Selenium.But no tutorial have provided its use in a step-by-step manner.I am a fresher and need a systematic low-level document or tutorial.Please help. Commented Feb 20, 2013 at 10:35
  • Generating C# code to replicate your HTTP requests sounds awkward way to go. It seems easier would be to find an application that can replicate your HTTP requests and run that application from within your C# program. Furthermore, I guess many web site sessins cannot be just blindly replicated (e.g. session ids contained in POST requests). Commented Feb 20, 2013 at 10:53

1 Answer 1

1
  1. Visual Studio has web test recording, it actually can generate code for you. This will record integration between browser and server. So if you rerun, server will think that you are doing something. This option is not browser automation.

  2. WatiN is another option. This time, it is browser automation tool. It has recording tool too.

  3. Third option is Selenium, very similar to WatiN. There are many tools to record Selenium scripts. Most supported one is Selenium IDE.

All tools, are quite easy to work with, and you can find good tutorials on the respective sites.

My best guess, of your needs is that you need #2 or #3. It looks like #3 is more active/mature tool, but I used both with success, so no problem to choose #2.

If you will go with #1, check what edition of Visual Studio you use. I am afraid, Web Testing could be available only in top editions, like Ultimate.

Sign up to request clarification or add additional context in comments.

1 Comment

:Thanks a lot Mike.Now at least I have got a path to go on.Thanks for ur help.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.