Forum Discussion
TanyaYatskovska What you referred me to is something easy to do and I have done it before. That's not my problem. The problem is how to pass Variables between the two. I could not find any docs about it.
Hi Fazlook,
In this case, your can add properties in TestComplete's Ready! API Test Editor (you posted a screenshot of this window), and get the values of these properties from the SoapUI NG tests via Get Data or manually by using this format: ${#<ProjectName>#<PropertyName>}.
For example, to get the value of the bookName property defined in Project, you need to use the following syntax: ${#Project#bookName}.
In addition to this, you can use pass parameters via command line. Here is an article describing how to set a SoapUI NG property from a command line: http://readyapi.smartbear.com/soapui/scripts/properties
Does it answer your question?
- fazlook9 years agoFrequent ContributorThank you Tanya. What I meant by testComplete is the TC project itself. Say a variable in a function (ex: var x ="") , that variable I would like to use in ReadyAPI. I know how to pass data between SoapUI and ReadyAPI. My problem is a variable in TC function.
- TanyaYatskovska9 years ago
Alumni
Hi,
Perhaps, the following will work:
1. Save your script variable to a Project one.
2. In Ready! API Test Editor specify the code you use in TestComplete to obtain the value of a variable:
Project.Variables.<VariableName>
Does it work?
- fazlook9 years agoFrequent Contributor
That did not work :(