Contributions
Appending time stamp to a request parameter name
I am working on REST apis. I would like to create new users every time by calling a method, env.createUser. This method requires a parameter, userName. I would like this userName to have values in the format, user_yyMMddHHmmssSSS, where the later part should be substituted by the current time every time the test runs. I am thinking that I should write a groovy script for this. Could any one please suggest how this can be written? Thank you, Soaprookie11 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.2KViews0likes1CommentRe: Using one test case to run from several other test cases
Hi Reshma, I was able to do it by creating a Property Transfer of SessionId from the Login test case to the Test Suite. Then I created a Run TestCase test step in the test case where I needed to access this SessionId. I was able to get the SessionId to all the test steps in this test case. Thank you for your time. SoapRookie11 years agoPlace ReadyAPI QuestionsReadyAPI Questions812Views0likes0CommentsRunning TestSuite on different servers
I am working on REST APIs. Is it possible to run my TestSuite on different servers from command line? Can I pass the server name from Command line and can it execute those tests? Currently the end point for all my resources point to Server1. If I want my Project to use a different endpoint(Server2), do I have to create a separate project or can I use the same project? Also, I am assuming the test case, login has to use different set of parameters like apiKey as well. Thanks, SoapRookie11 years agoPlace ReadyAPI QuestionsReadyAPI Questions937Views0likes1CommentRe: Using one test case to run from several other test cases
Hi Reshma, These are the steps that I followed: 1. I have created a test case with the login test step to obtain the sessionId. 2. I added the Groovy script suggested by you as a test step withing the same test case. 3. In the other test case, where I need that sessionId, I did a point and click step by doing a GetData > Test Suite > CreateNew > Property[SessionId] But this is not working when I ran the test suite. I am getting an error that the Session Id is invalid. I am wondering if step3 is wrong. Could you please suggest? Thanks11 years agoPlace ReadyAPI QuestionsReadyAPI Questions812Views0likes0CommentsRe: Run a test step multiple times
Hi ReshmaSachdev, Thank you for your reply. I am a new to Groovy, but not new to programming. I have created a Groovy Script at the end of the test steps and entered the code suggested by you (All I did was replace the test step name, which is within braces). The script ran fine. And I got the output as, "INFO: Going to step[user.votePoll] But the Poll has not been voted multiple times. So the test step has not been ran multiple times. Do I need to add more scripting for the step to be ran multiple times? Also, how can debug this? Thanks for your help, SoapRookie11 years agoPlace ReadyAPI QuestionsReadyAPI Questions20KViews0likes0Comments- 11 years agoPlace ReadyAPI QuestionsReadyAPI Questions949Views0likes0Comments
Using one test case to run from several other test cases
I am using soapUI Pro for REST apis. Currently, each of my test cases contain a login test step in order to obtain the session id. So I have decided to create just one test case with login test step and use the obtained session id in other test cases. So this is what I did: 1. I created a new test case for Login and got the session id 2. I created a new Property and transferred the Session id there (Do I need to create this?) 3. In the other test case where I need to use this session id, I created a "Run Test Case". When I view the Options for Run Test Case, I don't see any Return Properties. How can I make this work? Can some one please help? SoapRookie11 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.3KViews0likes3CommentsSaving a value from the response
I am using basic SoapUI(not the Pro version) for testing REST APIs. I am not able to figure out how to store a value from the response after running a request. Where and how can I store it? How can I use this value in a different API request? Please help. Thanks, SoapRookie11 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.1KViews0likes1Comment- 11 years agoPlace ReadyAPI QuestionsReadyAPI Questions732Views0likes0Comments