Contributions
Would like to dynamically add variables to DataSink using groovy.
Hi, I have a testcase where i am getting a response back from a REST request. The problem is the values inside the response is dynamic. For egif i send 1 request today, I will get customerAddress1 and customerAddress3 back. If i send the same request tomorrow, then I will get customerAddress1, 2, 3 and 4 back. I am trying to capture this dynamically generated customerAddress'es and send them to dataSink, so that i can generate all the data in an excel file. Currently I have to create customerAddress variables in dataSink, and then set the values during test. But i want to dynamically generate these variables during runtime (because, as u can see, my data is dynamic). Please help. Really appreciate any input. Thnak u.8 years agoPlace ReadyAPI QuestionsReadyAPI Questions538Views0likes0CommentsTestComplete is adding random characters to text that is being read from Excel file.
Hi, I'm reading data from Excel file by adding the worksheet to the project variable. Suppose this is the data I have in the excel file: var variableValueInExcelFile = Panel("widget_uniqName_*_*").Panel(0).Textbox("uniqName) When I do Log.Message("variableValueInExcelFile"), i see the following value: Panel("widget_uniqName_*_*").Panel(0).Textbox("uniqName)subHeaderFilingDate"> I'm using TestComplete 11.2 . Please help! Thanks.873Views0likes1Comment- 8 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes0Comments
Re: How to get RestRequest's Endpoint URL from Project Custom Property?
Hi SmartBearAmber, Thanks for your reply. May be i'm not asking the question properly. I am able to set the Endpoint of the request using the code you have provided. But I have 200 TCs that uses the same request. If i use your approach then I will have manually go in and add the groovy step in all 200 TCs. I want to be able to do it once. Please see image below:8 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes0CommentsHow to get RestRequest's Endpoint URL from Project Custom Property?
Hi, I would like to extract the Endpoint of a rest request from an the project's CustomProperties/Excel file. Because my Endpoint is dynamic. Thanks for your help in advance.8 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.5KViews0likes3CommentsWould like to run another TestCase using Groovy
Hi, I'm totally new to this. I am trying to Execute another TestCase using Groovy. For some reason this code is not working for me. I am using ReadyAPI 1.6.0: //get test case from other project or from the same one project = testRunner.getTestCase().getTestSuite().getProject().getWorkspace().getProjectByName("ProjectName") testSuite = project.getTestSuiteByName("TestSuiteName"); testCase = testSuite.getTestCaseByName("TestCaseName"); /* //set properties if you need testRunner.testCase.setPropertyValue(property_name, property_value); testRunner.testCase.setPropertyValue(another_property_name, another_property_value); */ // run test case runner = testCase.run(null, false); //new com.eviware.soapui.support.types.StringToObjectMap()Solved8 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.3KViews0likes1Comment