1,用soupui进行测试
2,安装soupUI
3,测试的时候是给了一个wdsl
操作步诹:new (name , 填写地址)---导入wsdl文件---看到所有的接口
发送请求的格式<xml> canshu</xml>
应用场景,传统行业,电信等
导入时遇到问题怎么解决:
在project测试中,如果引入wsdl报如下的错误:
Error loading [http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?wsdl\]: org.apache.xmlbeans.XmlException: java.io.CharConversionException: Characters larger than 4 bytes are not supported: byte 0xb1 implies a length of more than 4 bytes
解决方案:关闭程序并找到SoapUI的安装位置中的SoapUI-4.6.4.vmoptions这个文件,在末尾加入 -Dfile.encoding=UTF8 可解决
网上常用的wsdl
http://hi.baidu.com/magicyzzj/item/cd45a6305f449cb9623aff58
webservice接口进行性能测试:
1.有些非标准的wsdl文件导入到loadrunner时候会报错,这时候我们就能利用jmeter进行性能测试
2.Saopui导入wsdl文件或者url地址,导入报错的见说明文档
File----》new soapUI Project----》输入Project Name----》Initial WSDL/WADL:输入http://webservice.webxml.com.cn/WebServices/WeatherWS.asmx?wsdl----》OK
3.如果有参数输入的,输入参数(讲?号替换成传入的参数值),参数见wsdl接口调用说明

查看"Raw"

4.Jmeter,所以请求全部拷贝于saopui中


Python接口自动化测试零基础入门到精通(2023最新版)