WORKSPACE not available in MTBX file

2 views
Skip to first unread message

Marek Lörinc

unread,
Jan 25, 2017, 9:00:05 AM1/25/17
to hp-application-automation-tools-plugin
Hi,

I am trying to run a simple pipeline script with uftScenarioLoad running a test.mtbx

The MTBX looks like this:

<Mtbx>
<Test name="Test1" path="${WORKSPACE}\Project01\Test1">
<Parameter name="sTestEnvironment" value="${SomeEnvParam}" type="String"/>
   </Test>
</Mtbx>

I have found out the WORKSPACE variable is not replaced in the mtbx file.

After doing some tests I found out the plugin starts the "HpToolsLauncher.exe" with props file:

[Test-Pipeline] $ c:\Jenkins\workspace\Test-Pipeline\HpToolsLauncher.exe -paramfile props25012017134421220.txt

The generated props file does not contain the WORKSPACE value nor any other SCM-related values even though the valriable itself is accessible in the environment like env.WORKSPACE.
Is there any way I can push the WORKSPACE value into the generated props file?

Thanks,
Marek

lhk....@gmail.com

unread,
Jan 31, 2017, 2:22:26 AM1/31/17
to hp-application-automation-tools-plugin
Such scenario is not supported. You can try save your test in some shared or SCM location and then copy to some folder to your node. Inside mtbx file just hardcodes this path. 

среда, 25 января 2017 г., 16:00:05 UTC+2 пользователь Marek Lörinc написал:
Reply all
Reply to author
Forward
0 new messages