How we can develop data driven framework using Selenium with C# to test the web applications? In your response can you please provide an example?

closed as too broad by dzieciou, Yu Zhang, Chris Kenst, Niels van Reijmersdal, IAmMilinPatel Mar 2 '17 at 2:31

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 3
    This is far too broad for this site: could you give us more information please: what have you tried? Why doesn't it work? – Kate Paulk Mar 1 '17 at 19:23
  • I didn't tried anything. Just I want to learn Data driven framework to automate web applications. Example I have to automate Gmail register page using selenium with c#. So, I have prepared all required data (last name, first name, ph number, password, confirm password) in a Excel sheet. Then I have retrieve that data from Excel sheet and enter all that retrieved data in Gmail registration page with respect to specified text boxes in registration page. Please help me to develop script using selenium with c#. – ASHOK Mar 1 '17 at 19:28

You develop it just like anything else you would program. Learn the different parts and combine them together.

Now when you are combining and implementing it if you get stuck you can ask specific questions to get help with. Although searching the internet might also help first.

Microsoft also has its own implementation of data-driven tests:

Using the Microsoft unit test framework for managed code, you can set up a unit test method to retrieve values used in the test method from a data source. The method is run successively for each row in the data source, which makes it easy to test a variety of input by using a single method.

read more and examples here: https://msdn.microsoft.com/en-us/library/ms182527.aspx

Other alternatives:

  • Instead of parsing Excel, I'm a fan of FitNesse/fitSharp. Very flexible with many already existing table implementations – user1130 Mar 1 '17 at 22:50
  • NIce, didnt know they had a c# implementation. Added it :) – Niels van Reijmersdal Mar 1 '17 at 22:54

Not the answer you're looking for? Browse other questions tagged or ask your own question.