Answered question

How to convert Selenium scripts into NeoLoad User Paths ?

Hi,
I followed the instructions to convert a Selenium script to Neoload User Path with Design mode (https://www.neotys.com/documents/doc/neoload/latest/en/ht...).

Here are the lines added to my script (Maven/TestNG) :

final String projectPath = "D:\\Projets_Neoload\\ProjetTest\\ProjetTest.nlp";
webDriver = new ChromeDriver(addProxyCapabilitiesIfNecessary(new DesiredCapabilities()));
driver = NLWebDriverFactory.newNLWebDriver(webDriver, "SeleniumUserPath", projectPath);

I run the script with Maven on a Neoload injector :

mvn -Dnl.selenium.proxy.mode=Design -Dnl.design.api.url=http://localhost:7400/Design/v1/Service.svc/ -Dtest=* clean test

The test runs well, but nothing is created in Neoload.
Does the Neolaod project or an empty User Path must be manually created before? (I tried but id does not change anything)
Is something must be started before the run ? (I'm not familiar with Neoload API)

Thank you.

Jean-Baptiste B.
Jean-Baptiste B.

Jean-Baptiste B.

Level
0
5 / 100
points
Alexis N.
Alexis N.

Alexis N.

Level
2
1255 / 2000
points
Team

Hi,
The script should be run on NeoLoad Controller not on the injector.
You should run your maven command outside of NeoLoad in a terminal while your NeoLoad controller is running.

Did you find this useful ?

No (0)

Yes (1)

100%

100% of users found this answer useful

Other answers