web端测试方法
- 格式:pptx
- 大小:2.30 MB
- 文档页数:27


【WebService】接口的测试方法
有以下多种方式:
一、通过WSCaller.jar工具进行测试:
前提:知道wsdl的url。
wsCaller可执行程序的发布方式为一个wsCaller.jar包,不包含Java运行环境。你可以把wsCaller.jar复制到任何安装了Java运行环境(要求安装JRE/JDK 1.3.1或更高版本)的计算机中,用以下命令运行wsCaller:
java -jar wsCaller.jar
使用wsCaller软件的方法非常简单,下面是wsCaller的主界面:
首先在WSDL Location输入框中输入你想调用或想测试的Web Service的WSDL位置,如“/axis/services/StockQuoteService?wsdl”,然后点“Find”按钮。wsCaller就会检查你输入的URL地址,并获取Web Service的WSDL信息。如果信息获取成功,wsCaller会在Service和Operation下拉列表框中列出该位置提供的Web Service服务和服务中的所有可调用的方法。你可以在列表框中选择你要调用或测试的方法名称,选定后,wsCaller窗口中间的参数列表框就会列出该方法的所有参数,包括每个参数的名称、类型和参数值的输入框(只对[IN]或[IN, OUT]型的参数提供输入框)。你可以输入每个参数的取值。如下图:
这时,如果你想调用该方法并查看其结果的话,只要点下面的“Invoke”按钮就可以了。如果你想测试该方法的执行时间,则可以在“Invoke Times”框中指定重复调用的次数,然后再按“Invoke”按钮。wsCaller会自动调用你指定的方法,如果调用成功,wsCaller会显示结果对话框,其中包括调用该方法所花的总时间,每次调用的平均时间和该方法的返回值(包括返回值和所有输出型的参数)。如下图:
wsCaller软件是基于Axis库(Apache eXtensible Interaction System)开发的,Axis库的介绍及其版权信息请参见Apache Software Foundation的网站/。
第7卷第6期 2008年12月 常州信息职业技术学院学报 Journal of Changzhou Vocational College of Information Technology V01.7 NO.6 Dec.2008
一种基于控制流的web应用系统测试方法的探讨
王卫霞
(常州信息职业技术学院软件学院针算机科学与技术学院江苏常州213164)
摘要:web应用系统的使用与日俱增,web技术层出不穷,但是web应用系统的测试却是一个难点。提出一种基于控制流的 测试方法,对web应用系统建立控制流模型,并给出形式化的定义,采用模型进行测试用例的产生,为了使测试自动 化,并阐述脚本技术和测试执行器的设计。 关键词:web测试;控制流测试;测试自动化 中图分类号:TP 393.06 文献标识码i A 文章编号:1672-2434(2008)06-0018-03
A Test Method of Web Application Sy stem
Based on Control Fl0w
WANG Wej.xia
(School of Computer and Software,Changzhou College of Information Technology,Changzhou 213164,China)
AintrEt lThe use ofweb application system is ever increasing and the web technologies are various,while the testing ofthe web ap— plication system is a dificulty.The paper introduces a testing model based on control flow,gives the formal definition of the control flow ofweb appfication and shows the example by adoptingthe mode1.To make automation testing the paper also expounds testing-script and test case executor. 1 神:web testing control flow testing automation testing
第36卷
V0I.36 第23期
No.23 计算机工程
Computer Engineering 2010年12月
December 2010
‘软件技术与数据库・ 文章编号:1o00—3428【2olo)23—0025—o3 文献标识码:A 中图分类号:TP311.52
一种基于日志分析的Web负载测试方法
朱靖君,吴海燕,高国柱,程志锐 (清华大学计算机与信息管理中心,北京100084)
摘要:提出一种基于日志分析的web负载测试方法。通过序列模式挖掘得到用户访问的频繁序列模式,日志分析得到负载的相关参数,并据 此构造出逼近于真实的测试负载。利用性能测试工具goadRunner对Web应用系统进行负载测试。将测试日志与真实日志进行对比,验证了 测试负载与真实负载的相似性。 关键词:日志分析;负载测试;序列模式挖掘;PrefixSpan算法
Web Load Test Method Based on Log Analysis
ZHU Jing-jun, wU Hal—yan, GAO Guo zhu, CHENG Zhi-rui
(Computer and Information Management Center,Tsinghua University,Beijing 100084,China)
[Abstract]This paper presents a Web load tes!method based on log analysis.This method gets the frequent sequential patterns of Web users from sequential pattern mining.It gets the parameters of Web load from log analysis.It uses them to generate test load closed to realistic load, ● and uses LoadRunner to do the Web load test.In the experiment,the log generated by test is compared with realistic log,and the similarity between test 1oad and realistic load is validated. 、
第36卷
Vo1.36 第10期
No.JD 计算机工程
Computer Engineering 2010年5月
May 2010
・安全技术・ 文章编号;100o-_3428(2o1o)lo_-017 _03 文献标识码;A—— 面 ■ i
Web应用中代码注入漏洞的测试方法
朱辉,沈明星,李善平
(浙江大学计算机科学与技术学院,杭州310027)
摘要:研究Web应用中的代码注入漏洞,总结分析该类漏洞的特征,修正并扩展其定义,把漏洞的产生原因归纳为2类编码错误。提出
一套通过识别2类编码错误发现Web应用中代码注入漏洞的测试方法。实验结果证明,该方法可减少测试工作量,能全面有效地测试Web 应用中的代码注入漏洞和潜在的风险点。 关健词:Web应用;代码注入;漏洞测试
Test Method on Code Inj ection Vulnerabilities of Web Application
ZHU Hui,SHEN Ming—xing,LI Shan-ping
(College of Computer Science and Technology,Zhejiang University,Hangzhou 3 10027)
[Abstract|This paper studies the code injection vulnerabilities of Web application,modifies and expands the definition of this kind of
vulnerabilities with summarizing and analyzing the features of them,and ffans ̄rms the causes of vulnerabilities into two kinds of coding e ̄ors tO present a new test method based on testing the two kinds of coding errors.Experimental result shows that the test method can test all the code injection vulnerabilities of Web application effectively with less test workload. [Key words]Web application;code injection;vulnerability test