简体   繁体   English

SoapUI-使用ServiceEndpoint凭据(密码和用户名)创建新请求

[英]SoapUI - create new request with ServiceEndpoint credentials (password and username)

I am trying to create new soap request in SoapUI which copies the password username and endpoint from the service endpoint. 我正在尝试在SoapUI中创建新的soap请求,该请求从服务端点复制密码用户名和端点。

It uses the endpoint, but not the username and password. 它使用端点,但不使用用户名和密码。

Does anybody know how to do this? 有人知道怎么做这个吗?

(I don't want to clone)! (我不想克隆)!

  1. Under your endpoint find the method you want, right-click on that and select New request. 在端点下找到所需的方法,右键单击该方法,然后选择“新建请求”。
  2. Name it whatever you want. 随便命名。
  3. The Request editor will open allowing you to edit it anyway you want - enter your username and password, and anything else. 请求编辑器将打开,您可以根据需要进行编辑-输入用户名和密码以及其他任何内容。
  4. Close the editor. 关闭编辑器。
  5. Find the Request you just created under the endpoint method, right-click on that and select Add to TestCase. 在端点方法下找到您刚刚创建的请求,右键单击该请求,然后选择“添加到TestCase”。 Follow the prompts. 按照提示进行操作。
  6. Once the step is added to a test case, it should look exactly like what you did in #3 above. 将步骤添加到测试用例后,它应该看起来与您在上面的#3中所做的完全一样。 You are still able to further edit the individual test step - meaning the Request you created in #3 above is in no way linked to the individual test step(s). 您仍然可以进一步编辑单个测试步骤-意味着您在上面#3中创建的请求绝不会链接到单个测试步骤。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM