Contributions
Re: Append previous test data into middle of REST Request string using SoapUI GUI
Thanks for responding. Let's say at the begining, member login so will call this "Login" API. It requires two parameters: username and password. But I won't include the parameters in the GUI window below because I will add the parameters to the parameter table when on theReady! API main screen under "Projects" tab, for example "Dashboard", "Projects", "SoapUI NG", "Secure", "LoadUI NG", "ServiceV". Next let's say getting the transaction information of the member by calling APIbelow. After calling the Transaction API, the response will bein JSON format that has different types of categories in the form of transactionIdwhich is just ahex value. So I saveone of the transactionId value to Global Property. So finally to get details on the transaction, will require to pass in that Global Property into{Category} for the call below. Thanks.7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes2CommentsRe: Append previous test data into middle of REST Request string using SoapUI GUI
It seems if I apply the Global Property value directly into "{Category"} during this GUI window "Add REST Request Test Step From URL", the Gobal Property value will not get passed into "{Category}". So to solve that, I have to use the previous test step reponse value like this. http://<domainName>/Members/Transactions/{PreviousTestStepName#Response#$.Data[0]}/Date Then after that, back on the Ready! API main screen where it has "Projects" tab, I will replace this {PreviousTestStepName#Response#$.Data[0]} with the Global Property variable. Not sure if this is the correct way to do it.7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes1CommentAppend previous test data into middle of REST Request string using SoapUI GUI
Hello, I have this REST Request that requires the previous test step outputto be appended into the middle of URL Request. For example "{Category}". http://<domainName>/Members/Transactions/{Category}/Date After the previous test step is executed, I will save that teststep output value to Global Property to use for this "{Category}". However,how can I construct the REST Request with the following SoapUI GUI in below. Please note the "domainName", I know the value and I can put it in manually, but just for privacy I left it out. Thanks.7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes4CommentsRe: Setup Script updates teststep property?
Thanks Kingsmartbear. Your code worksafter puting under the TestCase level in Setup Script. For TestSuite and Project level code has exception with testRunner. For now I use Global Property.7 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.8KViews0likes1CommentRe: Setup Script updates teststep property?
Hi Kingsmartbear, the link does not say where the script is used because my script is at "Setup Script" so this "testRunner" is not available at "Setup Script" so is always exception thrown when using it. Thanks.7 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.8KViews0likes3CommentsSetup Script updates teststep property?
Hi, Is it possible to update the test step property from Setup Script? I'm able to update property at test suite level, but not test case , or test step level. Please help. thanks. Below is the code that i use to update property in test suite. testSuite.setPropertyValue('myFirstTestSuiteProperty', 'testingProperty')Solved7 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.8KViews0likes5CommentsRe: Accessing property in TestStep?
I found the solution now. def propTestStep2 = testRunner.testCase.getTestStepByName("myTestStepProperty").getPropertyValue("myFirstTestStepProperty") log.info " propTestStep2= " + propTestStep27 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.2KViews0likes0CommentsAccessing property in TestStep?
Hi, I'm trying to learn how to use Property. So I create test step property by going to "Case" menu then select "Add Step" then choose "Properties". So my property name is "myTestStepProperty". In my "Hello" test step script, I have the following: //get property test step def testStepProperty1 = testRunner.testCase.getTestStepByName('Hello').getPropertyValue('myTestStepProperty') log.info " testStepProperty1= " + testStepProperty1 //set property test step testRunner.testCase.getTestStepByName('Hello').setPropertyValue('myFirstTestStepProperty', '12345') //get property test step def testStepProperty2 = testRunner.testCase.getTestStepByName('Hello').getPropertyValue('myFirstTestStepProperty') log.info " testStepProperty2= " + testStepProperty2 But the log shows null of the properties. Am I doing something wrong? Thanks.Solved7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.2KViews0likes1Comment