Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best way to organize Selenium tests with PHPUnit?

I am getting started with writing front-end tests for my project, and I would like to know the best way to organize my selenium test cases.

Should I make a separate suite for each section of the site? Or do I need to group them by acceptance tests (integration), ui verification, and browser compatibility suites?

Any advice would be helpful. Thanks!

like image 525
james Avatar asked Nov 05 '22 19:11

james


1 Answers

Yes, I prefer separate suite for each section of the site.

As you are using PHPUnit if you want to run tests parallel then you have to make one classes for one thread.

If you are using the section of site then you will have no Dependencies of one section of site with other. So that you can run the tests in parallel.

Create Section wise library and Suite so that you can run suites in Parallel.

like image 95
lAH2iV Avatar answered Nov 10 '22 16:11

lAH2iV