workitems not using selenium
Hello Selenium experts,
I'm newbie and I have a question.
I'm trying to automate a data driven end to end process that contains some database entries and some Task being run by an application after the insert. The application is suppose to generate a workitem when certain processes are ran after certain entries are added.
When I run my TestNG selenium Tests as a suite which calls my methods back to back the workitems are not generated but If I manually run each case then it works fine and I have the workitems. Has anyone ever had this issue?
Can you help, please? Thanks
I think the problem you're having is the scoping. things you create in one test are not available in another test.
Originally Posted by MikeStrong
There's 2 ways you can approach it..
You can use a SetupFixture (@beforeclass), https://dzone.com/articles/testng-be...***-annotation to create your entries, and have a single test iterate through the entries.
Or you can create a DataProvider, TestNG Parameterized Test, to create your entries, then run through it as a data driven test. This will make it look like different tests.
Thanks a lot buddy, I'll give it a shot. Thanks again.