How can I get PHPUnit + Selenium to work faster?

I am using the PHPUnit Selenium extension for web testing. I find it very slow, taking seconds for one testing method. Part of the problem is that it starts a new Selenium session between each test method (getNewBrowserSession) in runTest (). It is expensive. I'm fine with running a class or even a whole set of test method values ​​in one selenium session.

Can this be done? Are there any other tips to speed up PHPUnit + Selenium?

Thank.

+3
source share
3 answers

Have you tried using the browserSessionReuse parameter? For instance. initial selenium with

java -jar ./selenium-server.java -browserSessionReuse
+9

Selenium . PHPUnit, JUnit ( , Selenium, ). TestNG .

XPath, IE - XPath .

, Selenium 1 JavaScript , IE. Selenium 2 (aka WebDriver) , , , IE .

+1

Continuous Integration . , , . .

0

Source: https://habr.com/ru/post/1769796/


All Articles