Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

The pit I stepped on on soapui

Shulou Source: shulou.com Published: 2022-06-03 03:07:23 09月25日 Update

The information comes from the Internet.

1. Create a new DataSource, select Excel (requires Excel2003 format), select line number, set start line and end line, set rules, trim, etc.

two。 In the outline that returns the result, you can directly select a record to transfer to the parameters of another step

3.DataSource Loop Settings: insert a DataSource loop step, set the data source of the loop and execute the steps

4. Insert verification point: select step, select response, select preporety contends, select message contents assertion cannot be dynamically fetched from Excel. If loop contains non-standard content, you need to use script to break it.

5. Use the script assertion method: post page, click the add assertion button on the left side of the address bar, then select Script, open the script editing page, getdata in the page, get the corresponding value from response, get the corresponding value from DataSource, and assert it with the assert variable .equels (exp), so you can use the DataSourceloop function.

6. In DataSource, click the wrench symbol, and in the dialog box that opens, you can select Trims datavalue and unspace the parameters.

7. On the testcase details page, click on the wrench, you can select fail tast cast on error, and check "error". This use case does not continue.

The return value of the last method called by 8.groovy is the return value of the current groovy script. In another step, you can directly use its return xx to receive the return value as a parameter.

Groovy plug-in for 9.eclipse: http://dist.springsource.org/release/GRECLIPSE/e4.3/

10. [error: see 37] for optional parameters, two use cases are required, which are used when encrypting, and when parameterized, optional parameters are removed:

11.loadtest can do simple performance testing.

twelve。 In the row window on the left, you can see the complete assembled post request url

If a returned row contains more than one Set-Cookie

/ / get the token value of the login

Def cookiesList = testRunner.testCase.getTestStepByName ("DoLogin.html"). TestRequest.response.responseHeaders ["Set-Cookie"]

Def cookieSessionKey

Def cookieSessionKeyValue

For (iSuppli)

Tags: Parameters selection script data page address multiple file mode time content can be passed wrench step loop data source method node project transfer Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Xiaomi Apple Shulou Information Redmi