Amna_Saeed321
6 years agoOccasional Contributor
Can we access the variables or objects in TestComplete from nunit Test
I am automating rest webservices in c# using nunit framework. Now I want to get the response in variable in my test complete Project. Currently , when I execute the nunit test through Test Complete, It just return the true status. I am wondering if there is any way that i can get access to variable of my nunit test in TestComplete? or i can access the Project variable of TestComplete project in Visual Studio so that i can set the variable with results in nunit test? Please Help!
There is no way to access TC variables from the unit test. The best way I think is to write values into files and then read it by TC script.
I exported API response in text file through nunit test and import it in test complete. It worked for me.