Passing data in REST/JSON Test Cases -
i have suite called suite1 , has 2 test cases. try pass "correlationid" json response following json request in combined test scenario.
in first test case: use rest request 1, , property transfer step
in second test case: has json request require "correlationid"
i managed fill property "correlationid" in property list of suite1. (i managed fill @ test case level when trying figure out)
but access property in json request of test case2.
i have tried ${#testcase#correlationid} , ${#testcase#properties#correlationid}. but, correlationid in json request 2 remains empty during execution. ideas?
rest request of test case2:
{ "correlationid":"${#testcase#correlationid}" }
it trivial mistake, adding answer, in case may useful 1 in future.
change json request from:
{ "correlationid":"${#testcase#correlationid}" }
to:
{ "correlationid":"${#testsuite#correlationid}" }
Comments
Post a Comment