testsigmahq / testsigma

A powerful open source test automation platform for Web Apps, Mobile Apps, and APIs. Build stable and reliable end-to-end tests @ DevOps speed.
https://testsigma.com
Apache License 2.0
897 stars 187 forks source link

[TOS-982] fix(TestcaseStepRunner): runtime variable fix for while loop #283

Closed akash-nixon closed 1 year ago

akash-nixon commented 1 year ago

Jira: https://testsigma.atlassian.net/browse/TOS-982 Related cloud jira: https://testsigma.atlassian.net/browse/TE-2824

If a step inside While Loop is using runtime variables, it works for the first iteration , but fail for the subsequent iterations.

Fix: Added two functions resetRunTimeTestDataValues and getRunTimeTestDataValueMap to assign value to the runtime variable again for the next iteration. Followed cloud implementation as its working in prestaging

Verified the fix that it works in setting value to the runtime variable and is being used for more than one iterations.

image