I am new to automation (Selenium ). I am working as manual tester and recently got a task related to selenium automation.
I have basic knowledge of selenium and very good knowledge of C#. I can create a simple test in Selenium like login, check mail, send mail etc., but all this is in one page and has no input from excel.
I need a framework that takes input from and compares expected results with excel data. I can change example code according to my needs.
-
It sounds like you are using excel to manage test cases and expected results. Have you looked at frameworks like specflow to manage your tests? That way everything is managed in the code and you don't have to load from external filesGKS1– GKS12015年07月01日 18:49:29 +00:00Commented Jul 1, 2015 at 18:49
-
Are you using Visual Studio?FDM– FDM2015年07月06日 11:33:17 +00:00Commented Jul 6, 2015 at 11:33
-
yes i am using visual studio express version 2012.Aman Sharma– Aman Sharma2015年07月07日 05:34:01 +00:00Commented Jul 7, 2015 at 5:34
1 Answer 1
Just use an Excel library to load data from Excel files and use that data in your Asserts?
-
thanks for the answer but i have already wrote a code to read and write in excel file , I am asking for some sample selenium framework.Aman Sharma– Aman Sharma2015年07月07日 05:37:07 +00:00Commented Jul 7, 2015 at 5:37
-
2There is not known framework that does this. I think its up-to your self to write some classes that combine Selenium and Excel as you wish, this should not be to hard. Also I do not think many people combine Excel and Selenium as it is unhandy to separate test-step-data from the tests, since it makes them harder to read in code.Niels van Reijmersdal– Niels van Reijmersdal2015年07月07日 07:10:01 +00:00Commented Jul 7, 2015 at 7:10
Explore related questions
See similar questions with these tags.