Soapui interface test, how to deal with the interface address always change!

Source: Internet
Author: User
Tags soapui

If there is no code ability of the small white, to use the tool for interface testing, often encounter interface address or interface parameter change problem, and then have to change the interface, then manually to change all the request link address and interface parameters! 1-5 requests, we manually change to cope with! If 10 more than 20, I feel that the heart is very rush! So today we deliberately teach you a trick to prevent the first! It is also a point to be tested: start with the details.

STEP1: Import a project and click on this item, under the Public properties module, set a common parameter as shown in:

Of course, here is just a parameter, you can take whatever name you want! But after this value, be sure to remember that it is the IP address and port number of your interface request!

STEP2: Then click on the content of your project, which is the green funnel-shaped item, double-click it:

Then it pops up a dialog box, check the Service Endpoints tab, and look at the third step below.

STEP3: Edit your reference as follows:

Here you have to tip 2 points "

1) Some students are often in the first step of the parameters, set the URL to write is this: http://192.168.1.14:19020, since the time of the reference, and then here, and repeat the http://, so it will be an error! Because the stitched up address becomes:

Http://http://192.168.1.14:19020 ... this must have been a failed visit!

2) There are students in the reference to this URL, will often forget the previous #, and then it is this:, also alive or alive visit unsuccessful! That's because you didn't reference the correct IP address at all!

So we must be careful and careful, there should be no less, should be removed!

STEP4: Let's look at the effect

You can see your corresponding request inside, the address is quoted form, whether it is to change the IP address or interface or change parameters, no longer need to change a one! You just need to move your finger, the first place to set the parameters, that is, one step there, change the corresponding IP address of the parameter is OK!

Just a shortcut to the application, hope to help everyone!

Soapui interface test, how to deal with the interface address always change!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.