Unanswered question

When running a test from command line, Neoload GUI is still opened. Please clarify what is incorrect in the usage

Hi,
I am trying to execute scenarios from command line using the below commands.
C:\Program Files\NeoLoad 7.0\bin>
neoloadcmd [noGUI] -project C:\ABCD\ABCD\ABCP.nlp -launch PopulationTest \noGUI -report C:\TEMP\ABCD\ABCD\report.xml
However the command launches the Neolaod GUI and then executes the test as is normally done when triggering manually. There is no manual intervention which is fine; But I don't want the GUI to be opened
Please clarify if there is any other option to use the command to achieve the purpose of GUI not being opened but the testis executed. Thanks,

Harish N.
Harish N.

Harish N.

Level
1
111 / 750
points

Answers

I don't know if your command line has been altered when you copied/pasted here but the "-noGUI" option has to be used so the UI does not show up and not "\noGUI"

For instance somethings like that:

NeoLoadCMD -project C:\ABCD\ABCD\ABCP.nlp -launch PopulationTest -noGUI -report C:\TEMP\ABCD\ABCD\report.xml

For more details about the command line options please look at the NeoLoad documentation here

Harish N.
Harish N.

Harish N.

Level
1
111 / 750
points

Thank you, very much - Nouredine. I have used below command and its not invoking GUI but executing the test in a non GUI mode.
neoloadcmd -project C:\TEMP\ABCD\ABCD.nlp -launch PopulationTest -noGUI -report C:\TEMP\ABCD\Report.xml

C:\Program Files\NeoLoad 7.0\bin>neoloadcmd -project C:\TEMP\ITMP\ITMP.nlp -launch PopulationTest -noGUI -report C:\TEMP\ITMP\Report.xml
ITMP.nlp file has been found in C:\TEMP\ITMP.
Logging to C:\Users\n8deej2\AppData\Roaming\Neotys\NeoLoad\v7.0\logs, as user: n8deej2
error: failed to open the WinDivert device (5)
Loading project: C:\TEMP\ITMP\ITMP.nlp
Project ITMP loaded
Launching scenario: PopulationTest (00h:02m:00s)
Initializing...
Initializing Monitors...
Pre-Monitoring...
Running
....................
Stopping...
Post-Monitoring...
Stopping Monitors...
Stopped.
Generating report C:\TEMP\ITMP\Report.xml...

2 questions on the logs - Please clarify
1. error: failed to open the WinDivert device (5) - What is this, why this occurs and how much I should be concerned about
2.enerating report C:\TEMP\ITMP\Report.xml...- No statement that reports report generated successfully and end of operation. Is there any other syntax for reporting? Please assist
Thanks,

Windivert is used for WAN emulation settings. There's no impact in your test with that error if you do not use WAN settings in your population.

The error means that Windivert can't be initialized. An antivirus could block it.

Regarding the report if you see that generation report line ending by ...done then it means that it worked otherwise you should get an error. Can't you find that report.xml in your folder?

Harish N.
Harish N.

Harish N.

Level
1
111 / 750
points

Thank you, yes, it outputs a message called 'done' and report is generated in the specified location. Apologies. However I have the following query in the generated report.
The XML does contain the results of the performed test. But the graph data shows the data of the various graphs that were opened in Neoload GUI. If we remove al the Graphs in GUI and run a test from command line thereby generating a report, there is no data in the Graphs section of the generated report.
Where to view the contents of the values TAB of the results in the XML report? Please clarify.