|
Hi,
I'm running proof of concept for Jenkins build with HP automation plugin using HP tests (performance test) from file system.
The good news is, LR scenario is found and completed successfully, but analyses part fails to find results and thus overall build ends with failure.
What puzzles me is that results dir is defined in the LR scenario (Result_file=C:\temp\1\res\res.lrr) and yet the results are not created there, but rather (in this case, and destination folder changes automatically with every run)
C:\Documents and Settings\Service_******\Local Settings\Temp\e8a98d.
The results from above dir are being saved with the build as artifacts.
When running the scenario from the LR controller manually everything works as expected and results are being created in the results' dir defined in the LR scenario.
I tried to play with results settings in LR controller scenario - check/uncheck Automatically create folder, etc but still no luck there.
Is there any more details as to how to use results settings in regards to this plugin?
Any way to control the results dir from build (env variable, etc)?
Is there any way to provide more detailed (perhaps debug log) in the console output or just by running HPToolsLauncher manually in debug/verbose mode?
Please advice.
Jenkins build Console Output:
Started by user ******, ***** : ************
[EnvInject] - Loading node environment variables.
Building remotely on service_****** (loadrunner) in workspace c:\jenkins\workspace\Team_Performance\PERF_LoadRuner
[PERF_LoadRuner] $ c:\jenkins\workspace\Team_Performance\PERF_LoadRuner\HpToolsLauncher.exe -paramfile props09072014160727937.txt
"Started..."
1 tests found:
C:\jenkins\Scenarios\PERF_Core_beta_TRX_SLAs_test.lrs
============================================================================
09/07/2014 16:07:38 Running: C:\jenkins\Scenarios\PERF_Core_beta_TRX_SLAs_test.lrs
Cleaning up the environment...
Preparing scenario C:\jenkins\Scenarios\PERF_Core_beta_TRX_SLAs_test.lrs for execution.
Load Generator localhost connected
Starting scenario...
Scenario C:\jenkins\Scenarios\PERF_Core_beta_TRX_SLAs_test.lrs ended.
============================================================================
Analyzing results...
Error: Error during Analysis run. See output console for details
Analysis Results:
HP LoadRunner Analysis Command Line Executer
Usage: LRAnalysisLauncher.exe[.lrr file location] [.lra output location] [html report output folder]
Error(s) summary:
0 ignored , 0 errors
Test PASSED
Test result: Error
09/07/2014 16:12:02 Test complete: C:\jenkins\Scenarios\PERF_Core_beta_TRX_SLAs_test.lrs
-------------------------------------------------------------------------------------------------------
Cleaning up the environment...
================================================
Run status: Job failed, total tests: 1, succeeded: 0, failures: 0, errors: 1
Error : C:\jenkins\Scenarios\PERF_Core_beta_TRX_SLAs_test.lrs
================================================
Build step 'Execute HP tests from file system' changed build result to FAILURE
Report archiving mode is set to: ALWAYS_ARCHIVE_TEST_REPORT
Zipping report folder: C:\Documents and Settings\Service_PERFENG\Local Settings\Temp\e8a98d
Notifying upstream projects of job completion
Finished: FAILURE
Results xml from workspace:
<?xml version="1.0"?>
<testsuites xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<testsuite tests="1" failures="0" errors="1" package="HPToolsFileSystemRunner">
<testcase name="C:\jenkins\Scenarios\PERF_Core_beta_TRX_SLAs_test.lrs" type="LoadRunner" report="C:\Documents and Settings\Service_PERFENG\Local Settings\Temp\e8a98d" time="264.0379355" classname="All-Tests.<None>" status="error">
<error message="no results file found for " />
<system-out>09/07/2014 16:07:38 Running: C:\jenkins\Scenarios\PERF_Core_beta_TRX_SLAs_test.lrs
Cleaning up the environment...
Preparing scenario C:\jenkins\Scenarios\PERF_Core_beta_TRX_SLAs_test.lrs for execution.
Load Generator localhost connected
Starting scenario...
============================================================================
Analyzing results...
Error: Error during Analysis run. See output console for details
Analysis Results:
HP LoadRunner Analysis Command Line Executer
Usage: LRAnalysisLauncher.exe[.lrr file location] [.lra output location] [html report output folder]
Error(s) summary:
0 ignored , 0 errors
Test result: Error
09/07/2014 16:12:02 Test complete: C:\jenkins\Scenarios\PERF_Core_beta_TRX_SLAs_test.lrs
-------------------------------------------------------------------------------------------------------
Cleaning up the environment...
</system-out>
<system-err>Error: Error during Analysis run. See output console for details
</system-err>
</testcase>
</testsuite>
</testsuites>
Thanks
|