AnsweredAssumed Answered

JSON formatted data is stored in teststeps input section. How to get json formatted teststep input through rally rest api?

Question asked by ganma05 Employee on Jun 24, 2018
Latest reply on Jun 26, 2018 by Sagi_Gabay

In rally, I am adding multiple test steps. And each teststep input section contains the json formatted data:

Example:

{
"operation": "LoginToPortalUI",
"interface":"ANALYTICS_RESTAPI",
"data": {
"Username": "admin",
"Password": "7layereyal7"
}
}

 

Rally APIs called:

...

String tstep = tcsteps.get(teststepIndex).getAsJsonObject().get("Input").getAsString();

 

Output (tstep above) from rest api has values with unexpected chars:

<div class="rally-rte-class-00878dddd80d18 rally-rte-class-0b98933b9a8138"><div class="rally-rte-class-0d4912bd480226">{</div><div class="rally-rte-class-0d4912bd480226">"operation": "LoginToPortalUI",</div><div class="rally-rte-class-0d4912bd480226">"interface":"ANALYTICS_RESTAPI",</div><div class="rally-rte-class-0d4912bd480226">"data": {</div><div class="rally-rte-class-0d4912bd480226">"Username": "admin",</div><div class="rally-rte-class-0d4912bd480226">"Password": "7layereyal7"</div><div class="rally-rte-class-0d4912bd480226">}</div><div class="rally-rte-class-0d4912bd480226">}</div></div>

Outcomes