Quality Center / ALM Practitioners Forum
cancel

ALM 11 REST API test execution status change not reflected in WebUI

SOLVED
Go to solution
kkovac
Contributor.

ALM 11 REST API test execution status change not reflected in WebUI

Hello all, 

 

Can anybody give me a hint over here please? I am trying to update a status of a test in test lab set via REST API. I have no problems creating a run and updating an exec-status value of the test i intend to change. Responsed of my requests prove that change has been commited, but for some reason HP QC execution grid shows still old status. If i open a test i can see my last run created via REST API, but no change on level of test in execution grid at all. 

 

Any suggestions? 

 

Thank you

Karol

15 REPLIES
kkovac
Contributor.

Re: ALM 11 REST API test execution status change not reflected in WebUI

Ok, another observation:

 

If I update <Field Name="exec-status"> to something lets say Passed, REST response shows that it was successfully updated. However if i look at the execution grip view Status still holds old value, but (and this is weird), Test: Execution Status field has been updated instead. 

 

If you create a report in dashboard on top of tests this report shows new value, but execution grid and also email from execution grid shows old value. What is happening? How come REST API is updating Test Instance entity instead of Test entity? 

 

As per field description it should update TS_EXECUTION_STATUS, but seems TC_STATUS is updated instead.

<Field PhysicalName="TS_EXEC_STATUS" Name="exec-status" Label="Execution Status">

 

Still no suggestion?

Karol

bdkakde
Valued Contributor.
Solution

Re: ALM 11 REST API test execution status change not reflected in WebUI

Hi,

I am new to HP ALM and my requirement is to update test execution status.

Could you share code to update a status of a test in test lab set via REST API?

 

Thanks

Highlighted
kkovac
Contributor.

Re: ALM 11 REST API test execution status change not reflected in WebUI

Thanks to the bdkakde i have reviewed my scripts rather more carefully and found out that i was updating wrong entity.

Thank you for making me see! All works like a charm now.

Karol
bdkakde
Valued Contributor.

Re: ALM 11 REST API test execution status change not reflected in WebUI

Hi,

 

Congratulation you got solution.

Kind request please share code for me as it is very urgent.

 

Chuck Hunt
Valued Contributor.

Re: ALM 11 REST API test execution status change not reflected in WebUI

Hi Karol,

 

I seem to be having a very similar issue.  First I create a new Run.  Then I update the test-instance and it modifies the status on the Execution Grid, but it also adds another "Run" to the list of Runs for that test instance.  (it's called "Fast_***")

 

from test-instance I update: exec-date,exec-time, status, actual-tester.

 

What entity are you changing for the status to be updated?  Do you get a second run added to the test-instance details?  

 

regards,

Chuck

 

 

Naresh12
New Member.

Re: ALM 11 REST API test execution status change not reflected in WebUI

Hi Mates,

I have similar requirement to update Test script status (PASS\FAIL)in Test Lab in QC ALM in my project. Could you plase help me with the code and steps.

RVAZHENK
Valued Contributor.

Re: ALM 11 REST API test execution status change not reflected in WebUI

Hi,

 

I am facing same issue that i can create a run id (by POST method) and run id is getting generated successfully.

But when i go to ALM Test lab, the Run and status are not created. Looks like my POST is not saving the run.

I also tried to update the runid by PUT method, but its not reflecting in test lab.

 

Can you please give more info on how you could fix the issue?

 

Regards,

Ravi

subodhsoni
Contributor.

Re: ALM 11 REST API test execution status change not reflected in WebUI

Can you please post the code here  as I am trying to do the same:

 

I have added 1 test to a test set in the Test lab in QC12. I would like to update the status of that test by marking it as Run and Passed. What would be the steps for the same?

 

Thanks & Regards

Subodh

Vijen012
Contributor.

Re: ALM 11 REST API test execution status change not reflected in WebUI

Hi,

I have same requirement to update test run status on ALM test lab using rest api in C#. Please share your code

 

Thanks

Vijen

tarannum
New Member.

Re: ALM 11 REST API test execution status change not reflected in WebUI

Hi,

Can you please post the code here personal info removed as I am trying to do the same:

I am able to create a test run in test lab but do not see steps associated with it. I do not know how to get all steps from test plan and change the status of all steps as passed or failed in test lab.

e.g - In test Lab - having test instance Addabc where it is having 5 steps . So it can be passed or failed i.e

step1 - pass , step2- failed , step3 - passed.... so overall status will be failed for the test rum

 

Yusoof
New Member.

Re: ALM 11 REST API test execution status change not reflected in WebUI

Can you please share the code to update status of the test  case to display as Passed in the execution grid via rest api.

Han_Solo
Trusted Contributor.

Re: ALM 11 REST API test execution status change not reflected in WebUI

People!  If you're going to be posting in this forum space then please share your code!   This topic alone has almost 4k views and there isn't a solution here!   That makes this whole thread worthless!

KT404
Contributor.

Re: ALM 11 REST API test execution status change not reflected in WebUI

Hi,

I am trying to update the test execution status using the ALM (11) rest API. Can you please share the code.

Basically I have the Test Case Name and PASS/FAIL details in the EXCAL and Database table and I want this data to be updated in the ALM.

KT404
Contributor.

Re: ALM 11 REST API test execution status change not reflected in WebUI

I am facing the same issue will you be able to share the resolution

KT404
Contributor.

Re: ALM 11 REST API test execution status change not reflected in WebUI

Sub ConnectToQCAPI()

Dim oRequest As Object
Dim sURL As String
Dim sID As String
Dim sPWD As String
Dim sDomain As String
Dim sProject As String

Set oRequest = CreateObject("WinHttp.WinHttpRequest.5.1")

sURL = "http://qcserver/qcbin/rest/is-authenticated?login-form-required=y"
sID = "xxxxxxx"
sPWD = "xxxxxx"
sDomain = "FIMT"
sProject = "AssetManagementData"

oRequest.Open "GET", sURL, False, sID, sPWD

oRequest.send
MsgBox "Page Open"
WScript.echo oRequest.responseText
'MsgBox oRequest.responseText

End Sub

 

I am getting 404 error. but the same when I do using the web browser it is working fine