Executing a Project from Azure DevOps resets Project Variables
Hello SmartBear Community,
My current project is testing a shopping cart.
Therefore i created a new TestComplete Project Suite and added one Project.
The flow is as following - one ore more KeyWord Tests each:
- - Open the Browser and Navigate to the User Selection for Edition and License Amount
- - Select a Edition and enter a RNG Amount of Licenses
- - Put the Amount of Licenses and the calculated Price each into a String Variable ("Transfer Variable" from one page to the next)
- - Compare the Amount of Licenses and the calculated Price from the Variables with the ones shown in the Shopping Cart
Whilst this flow works flawless on my local System when i start the Project / Project Suite, starting it via Azure DevOps DISCARDS the Project Variables between the KeyWord Test since the Assemblies are not loaded as whole project but one KeyWord Test after another. I logged each step so i can 100% confirm the variables are discarded after the KeyWord Test is done.
That is my first time working with Project Variables in DevOps, all other DevOps Tests work flawless so far.
Did anyone already experience that same challenge and how did you fix it?
Update:
Using ProjectSuite Variables instead of Project Variables bears the same issue.
Thank you very much in Advance & Best Regards
Michael
I just tried a similar workflow using persistent project level variables to assign an object property value in the first keyword test, and verified that value via a property checkpoint asserting against that persistent project level variable in a separate keyword test (all executed via Azure Devops) and my tests worked fine.
can you post how you are storing/creating these variables, what your script looks like, what the error messages are?