Tag Info

New answers tagged


The method you have mentioned for verifying Expected Result is absolutely doable. Though this approach involves writing a logic to read cells from spreadsheet (you can use Apache POI or jxl) then comparing text and then deciding it as Success or Failure. Disadvantage of this approach is, reading cell for execution of each step of your test case, you should ...


In my framework, I do not write code for any of the the webelements. I just store the locators (it is in Python, so simple dictionary literal works pretty well) in pageobject file for the page. I generate webelement from that as I need them - this saves lots of code. I could pretend I use factory pattern, but I don't - it is all much simpler than that, ...


Use @BeforeMethod annotation in place of @BeforeTest.

Top 50 recent answers are included