Ask a Question

How to modify or replace Request URL in post method

dev16
Contributor

How to modify or replace Request URL in post method

Hi

In first step..login post .. i am getting token id and in second step post method where i need to create one record 

so my doubt is ...in first login post i am using "http://www.abc.com/public/login" and in second step post method where need to create one record where i need to add request URL "http://www.abc.com/addresss/number=27" 

I am generally using clone Testcase option where i m copying first login test case 

so now i want to modify or replace the new second Request URL

 

plz guide me

 

Thanks

mahadev

 

6 REPLIES 6
nmrao
Champion Level 3

I believe that you should use style as "template" for "number" (which will be in your method definition of api, and no need to change the url.

Have a look at the video:
https://www.youtube.com/watch?v=XV7WW0bDy9c


Regards,
Rao.

Thanks , will see this video

In my Test Case 1 .. i am right click on test step where select the Add STEP options and select the REST Request then getting one pop up "Specify name for new step" ..then enter Rest request step1 and click on OK button then again get one pop up to "select Rest method to invoke for request"...drop down ...with included login URL ( "http://www.abc.com/public/login")

 

So Here if i need to add other Request URL or end point like  "http://www.abc.com/api/medicalinfo"

So how i can add this new URL.

 

Thanks

Mahadev

 

nmrao
Champion Level 3

Are you using ".wadl" or "swagger" definition for your API?


Regards,
Rao.

hmm... really don't know, 

I simple select REST option and Enter the REST API URL

and start the testing.

 

 

Thanks

mahadev

nmrao
Champion Level 3

Was the video helpful to get you started?


Regards,
Rao.

yes its helpful.

 

Thanks for sharing this video.

 

i  m new to soap ui tool and rest api testing so please bear me ,,,will ask very basic questions if i stuck while doing rest api testing using soapui.

 

Thanks

Mahadev

cancel
Showing results for 
Search instead for 
Did you mean: