简体   繁体   English

Web服务的测试框架

[英]Test framework for web services

We have a monolithic application written in Visual Dataflex, and various complementing applications written in other (.NET) languages. 我们有一个用Visual Dataflex编写的单片应用程序,还有用其他(.NET)语言编写的各种补充应用程序。 They all share the same database, and need to follow the same business logic. 它们都共享相同的数据库,并且需要遵循相同的业务逻辑。 One way to facilitate unified business logic across these is to provide web services as an interface for testing. 促进跨这些统一业务逻辑的一种方法是提供Web服务作为测试接口。

Of course, for this to work, we need a good framework for testing web services. 当然,要使其正常工作,我们需要一个测试Web服务的良好框架。 Any suggestions? 有什么建议么? For example, can Cucumber do this "out of the box"? 例如,Cucumber可以“开箱即用”吗?

I'm assuming you're talking about Soap web services. 我假设您正在谈论Soap Web服务。 You can use Soap4R to talk to a Soap web service. 您可以使用Soap4R与Soap Web服务对话。 Wrapping this all up in Cucumber scenarios should work fine. 在黄瓜方案中将其全部包装起来应该可以正常工作。

SoapUI is a pretty nice product for creating webservice tests, and they're easily callable via junit or just via the command line. SoapUI是用于创建Web服务测试的非常不错的产品,可以通过junit或仅通过命令行轻松调用它们。 It's also got some stuff for creating load tests as well. 它还有一些用于创建负载测试的东西。

They've got an opensource version as well as a professional version. 他们有一个开源版本和一个专业版本。

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

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