TM4J Test execution result

gustavo.vasconcelos May 5, 2020

Hello,

I'm using TM4J cloud API https://docs.adaptavist.io/tm4j/cloud/api/v2/ and I'm having an issue regarding getting a test execution result.

How can I see a test execution result making a request to the API?

All I can get is this:

dqME8mCBSui2CYYpm56hOg

 

Thanks.

1 answer

0 votes
Narek Hayrapetyan May 16, 2020

Hi,if you mean test execution status(pass/fail) when saying result,in your response, you will receive json with test execution status object,which will have ID property ,exmpl. 

"testExecutionStatus": 

{"id": 690587,"self": "someURL" },

in this case 690587 stands for  PASS,but if you receive 690588 it  stands for FAIL.

Narek Hayrapetyan May 16, 2020

just try with Psotman .

gustavo.vasconcelos May 16, 2020

Hi. I mean the actual results. Like each step result.

Narek Hayrapetyan May 16, 2020

what kind of tests are you runnig ?

Narek Hayrapetyan May 16, 2020

if you open your TC's test execution you will see some kind of info like `

enviroment ,status ,assignment etc. and all that info you will get via json format

when sendinq GET request 

gustavo.vasconcelos May 16, 2020

To which endpoint?

Narek Hayrapetyan May 16, 2020

https://api.adaptavist.io/tm4j/v2/testexecutions/{testExecutionId} 

and GET ,not POST 

Like Miriam Campos likes this
Narek Hayrapetyan May 16, 2020

you need to provide tests execution id as querystring param.

gustavo.vasconcelos May 16, 2020

But I don't get the testScriptResults from that JSON.

Narek Hayrapetyan May 16, 2020

test execution result returns only PASS , FAILE ,etc.

gustavo.vasconcelos May 16, 2020

I want each step result. Example:

  • Step 1:
    • Description: User should click button
    • Expected result: Show message
    • Actual result: Message shown
  • Step 2:
    • ...
Narek Hayrapetyan May 17, 2020

do you use automation tests ?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events