ALM OTA: How to Stop/cancel a running Performance Test using OTA methods
I'm facing issue when trying to cancel/stop a running load test on ALM Performance center using OTA methods.
Requirement is to cancel/stop any running load tests based on some conditions through OTA.
Solutions tried so far,
runobj.CancelRun 'method which should cancel the running test but didn't
when the method executed getting a popup "You do not have required permission to execute this action".
Even through, we tried with ALM Admin & Normal user credentials aswell, still getting the same error msg, though users are able to cancel the test on manual navigation in ALM.
Q/A: Are there any workaround to solve the issue?
are there any specific user authorizaton settings should configured on ALM side?
or any settings to be set to allow OTA to execute cancel action?
using command option, tried to update the running Status & State of the test by using
cmd.CommandText = "Update RUN set RN_STATE='Finished' where RN_RUN_ID=3000"
set Recordset = cmd.Execute
Here, the status/state has changed to as set on the commands, but the issue is the test is still running in the background. The timeslots for the test showing its running and results are keep updating in Test runs window aswell.
Q/A: are there any workaround using command options to solve the issue?
any specific commands can be used to cancel/stop the running test on ALM?
how to kill/cancel the timeslots using OTA?
Please reply back with your suggestions for the same.
Thanks in advance.