Smart API and Correlation
Hi,
Smart API Test Generator can be correlate data between APIs?
For example "Test1" generate a "CSRF Token" that must be used in "Test2" .
Can Smart API automatically extract data (CSRF Token) and put it in a variable then use that variable in Test2?
BR.
Comments
-
Good morning jack_jigar,
Yes! The Smart API test generator can correlate data between APIs. However, it is currently dependent on where the data is coming from.
How is the csrf token being returned from Test 1? Does it return as a header or as part of the response payload?
Also, how is Test 2 using the csrf token? Is it using it as part of its request header (likely) or as part of the payload? We would appreciate your feedback on this!
0 -
thank you for your response.
"csrf token" in "Test1" and "Test2" is part of response/request payload. IT IS NOT USED IN HEADER.
0 -
One additional question, are both calls in JSON?
If so, the Smart API test generator will handle this case seamlessly1 -
No, unfortunately both are Message Client tools. not XML and not JSON
0 -
Dear OmarR,
I can't find any information about correlation in SMART API User Guide. it is very important for automation testing. also I can't find any information about automatically data source generation for input data.
0 -
Dear omarR,
how can I use this feature If content type not be JSON?
please assist me.
0 -
What content type are your payloads?
0 -
in the most time content type is "application/x-www-form-urlencoded".
0 -
The content type is form urlencoded for response payloads as well?
0 -
-
Also, how can I use automatically data source generation benefit in Smart API?
0 -
Hi Jack, These are good questions. I would like to meet with you directly so we can hammer out the use case and post a neat solution here in the forum. Ill send you a direct message
0 -
Thank you.
0