使用 SOAP ui 创建请求

发布于 2024-09-25 05:18:45 字数 137 浏览 2 评论 0原文

是否可以使用数据创建soap ui 请求?现在我知道如何创建新请求,它为您提供模板,您应该发送到您的网络服务(从您的wsdl中读取),有没有办法让您的请求填充基于类型的数据(例如:字符串,整数,日期) )来自 wsdl、soap ui 或任何其他测试工具?谢谢

Is it possible to create soap ui request with data ? right now I know how to create new request which gives you template what you should send to your webservice (which is read from you wsdl), is there a way so your requests fills with data based on type(ex: String,Integer, Date) from wsdl, from soap ui or any other test tool ? thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

软糯酥胸 2024-10-02 05:18:45

在 Soap UI 4.5.1 中,首选项下有一个选项,设置后将使用类型安全的虚拟数据(而不是默认的“?”)自动填充新请求。

文件->首选项->WSDL 设置->勾选“样本值”选项并单击“确定”。

In Soap UI 4.5.1 there's an option under preferences that once set will auto populate new requests with dummy data that is type safe instead of the default '?'.

File->Preferences->WSDL Settings-> Tick option "Sample Values" and hit OK.

猫腻 2024-10-02 05:18:45

您可以将数据直接输入到 SoapUI 生成的 XML 请求中,您可以编写脚本来填充数据,或者如果您有 Pro 版本,它会根据请求为您提供一个 GUI 表单,您可以在其中简单地键入数据。即它为您创建一个数据输入屏幕。
专业版还可以从数据库中提取数据,从字符串列表生成数据等。例如,我最近需要发送数千个 SOAP 有效负载,其中包含名字/姓氏的虚拟数据等。所以我制作了两个字符串列表,一个包含过去和现在的 NFL 四分卫的名字,一个包含姓氏。我让 SoapUI (Pro) 中的数据生成器从每个字符串中随机选择一个字符串,并在 1000 次迭代的压力测试中提交它。结果非常有用,但也很有趣,给出了像德鲁·蒙塔纳这样的名字。

You can enter data directly into the XML request generated by SoapUI, you can write scripts to populate data, or if you have the Pro version, it gives you a GUI form, based on the request, where you can simply type the data. i.e. it makes a data-entry screen for you.
The pro version can also pull data from databases, generate data from a string list, etc.. for example, I recently needed to send several thousand SOAP payloads with dummy data for firstname/lastname, etc.. So I made up two string lists, one with first names of past and present NFL quaterbacks, one with last names. I had the data generator in SoapUI (Pro) randomly select a string from each, and submitted it in a stress test for 1000 iterations. The results were very useful, yet very amusing, giving names like Drew Montana.

绝影如岚 2024-10-02 05:18:45

是的,您可以使用 SOAPUI 来完成此任务。您可以从多个来源获取数据,例如 Excel、纯 csv 文件、DB2、POSTGRES 等数据库。您还可以编写 groovy 脚本来控制流程。您可以采取各种措施来实现这一目标...

Yes, you can use SOAPUI to complete this task. you can fetch your data from several sources like Excel,plain csv file,Database liks DB2,POSTGRES. You can also write your groovy scripts to control the flow.Various things you can do to achieve this...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文