测试报告
§1. 功能测试
1.1. 测试对象
兰州交通大学教务管理系统
1.2. 测试计划
1):登录功能
➢ 用户是否可以成功登登录 ➢ 是否可以区分不同类别的用户登录 ➢ 错误密码是否可以登录
2):学生模块的查看信息模块
➢ 学生是否能看到自己的信息 ➢ 学生能否越权看到别人的信息
1.3. 测试用例
1.3.1.输入
注:这里以学生登录为例 账号:\"学生\" 密码:正确的密码 1.3.2.输出
登录该学生主页 1.3.3.步骤及操作
1、 2、 3、 4、
打开系统的首页 填写密码 点击登录 查看信息
1.3.4.允许偏差
允许有少许偏差
1.4. 测试实施
1、启动winrunner窗体录制(Context Sensitive mode)
2、打开系统登录界面
# Shell_TrayWnd
set_window (\"Shell_TrayWnd\
toolbar_button_press (\"ToolbarWindow32_1\欢迎使用正方教务管理系
统!请登录 - Google Chrome\"); # Button Number 14;
3、输入用户名及密码进行登录
# 欢迎使用正方教务管理系统!请登录 - Google Chrome
set_window (\"欢迎使用正方教务管理系统!请登录 - Google Chrome\obj_type (\"Chrome_RenderWidgetHostHWND\
obj_mouse_click (\"Chrome_RenderWidgetHostHWND\obj_type (\"Chrome_RenderWidgetHostHWND\
obj_mouse_click (\"Chrome_RenderWidgetHostHWND\
4、进入主界面
# 202.201.29.21 says: 上的网页
win_mouse_click (\"202.201.29.21 says: 上的网页\
5、信息查询
# 正方教务管理系统 - Google Chrome
set_window (\"正方教务管理系统 - Google Chrome\
obj_mouse_click (\"Chrome_RenderWidgetHostHWND\obj_mouse_click (\"Chrome_RenderWidgetHostHWND\obj_mouse_click (\"Chrome_RenderWidgetHostHWND\obj_mouse_click (\"Chrome_RenderWidgetHostHWND\
# Chrome_RenderWidgetHostHWND
win_mouse_click (\"Chrome_RenderWidgetHostHWND\obj_mouse_click (\"Chrome_RenderWidgetHostHWND\obj_mouse_click (\"Chrome_RenderWidgetHostHWND\obj_mouse_click (\"Chrome_RenderWidgetHostHWND\obj_mouse_click (\"Chrome_RenderWidgetHostHWND\obj_mouse_click (\"Chrome_RenderWidgetHostHWND\obj_mouse_click (\"Chrome_RenderWidgetHostHWND\obj_mouse_click (\"Chrome_RenderWidgetHostHWND\
6、脚本执行结果
§2. 性能测试
2.1. 测试对象
兰州交通大学教务管理系统
2.2. 测试计划
使用loadrunner对系统进行性能测试,主要测试其负载能力,包括服务器稳定性及操作响应时间
2.3. 测试环境
2.3.1.软件环境
资源 测试客户端软件环境 LoadRunner7.8 Office2000办公软件 Windows 2000 professional IE6.0及其相应页面组件 描述 负载生成工具软件,License为10000 用于测试数据处理 测试客户端操作系统软件 测试客户端应用软件 数量 1 1 1 1 测试服务器端软件环境 Windows 2000 professional Weblogic8.1 (jdk1.4.2) AIX 5.2.0.0 /Informix 7以上 服务器端操作系统软件 应用服务器软件 DB Server 1 1 1
2.3.2.硬件环境
资源 测试客户端硬件环境 描述 台式PC: CPU=2.8GHz,1G内存(最低512M),40G硬盘 数量 2 测试服务器端硬件环境 AIX-6000: 1
2.4. 测试场景
场景
登录
并发用户数量
100
运行场景设置
每15秒创建5个用户
测试点
服务器稳定性及操作响应时间
2.5. 测试实施
2.5.1.测试脚本
#include \"web_api.h\"
#include \"lrw_custom_body.h\" vuser_init() {
web_add_cookie(\"1000014384_5695919051669582850=6625f235e89061ea7d5a9d813b9635ae; DOMAIN=conf.xmp.xunlei.com\"); web_url(\"videourlsnifferconfig.xml\ \"URL=http://conf.xmp.xunlei.com/videourlsnifferconfig.xml\ \"Resource=0\ \"RecContentType=text/xml\ \"Referer=\ \"Snapshot=t1.inf\ \"Mode=HTML\ LAST); web_url(\"202.201.29.21\ \"URL=http://202.201.29.21/\ \"Resource=0\ \"RecContentType=text/html\ \"Referer=\ \"Snapshot=t2.inf\ \"Mode=HTML\ EXTRARES, \"URL=/style/base/base.css\ \"URL=/style/base/forms.css\ \"URL=/style/base/module.css\ \"URL=/style/base/page.css\ \"URL=/style/standard/base.css\ \"URL=/style/standard/module.css\ \"URL=/style/standard/forms.css\ \"URL=/style/standard/page.css\ \"URL=/style/js/ie6comm.js\ \"URL=/style/standard/images/login_bg.jpg\ \"URL=/logo/logo_school.png\ \"URL=/style/standard/images/login_zf.jpg\ \"URL=/style/standard/images/login_right.jpg\ \"URL=/logo/logo_jw.png\ \"URL=/style/standard/images/login_in.gif\ \"URL=/style/standard/images/login_ico2.gif\ \"URL=/style/standard/images/login_res.gif\ \"URL=/style/standard/images/logo_copy.gif\ \"URL=/logo/login_pic.png\ \"URL=/style/standard/images/login_left.jpg\ LAST); lr_think_time(38); web_submit_form(\"default2.aspx\ \"Snapshot=t3.inf\ ITEMDATA, \"Name=TextBox1\
\"Name=TextBox2\ \"Name=RadioButtonList1\学生\ \"Name=lbLanguage\ \"Name=Button1\ EXTRARES, \"URL=/style/base/base.css\
\"Referer=http://202.201.29.21/xs_main.aspx?xh=200905420\ \"URL=/style/base/forms.css\
\"Referer=http://202.201.29.21/xs_main.aspx?xh=200905420\ \"URL=/style/base/module.css\
\"Referer=http://202.201.29.21/xs_main.aspx?xh=200905420\ \"URL=/style/base/page.css\
\"Referer=http://202.201.29.21/xs_main.aspx?xh=200905420\ \"URL=/style/standard/base.css\
\"Referer=http://202.201.29.21/xs_main.aspx?xh=200905420\ \"URL=/style/standard/module.css\
\"Referer=http://202.201.29.21/xs_main.aspx?xh=200905420\ \"URL=/style/standard/page.css\
\"Referer=http://202.201.29.21/xs_main.aspx?xh=200905420\ \"URL=/style/standard/forms.css\
\"Referer=http://202.201.29.21/xs_main.aspx?xh=200905420\ \"URL=/style/js/ie6comm.js\
\"Referer=http://202.201.29.21/xs_main.aspx?xh=200905420\ \"URL=/style/standard/images/head_bg.gif\
\"Referer=http://202.201.29.21/xs_main.aspx?xh=200905420\ \"URL=/style/standard/images/head_leftbg.gif\\"Referer=http://202.201.29.21/xs_main.aspx?xh=200905420\ \"URL=/style/standard/images/linge_3.gif\
\"Referer=http://202.201.29.21/xs_main.aspx?xh=200905420\ \"URL=/style/standard/images/nav_bg.gif\
\"Referer=http://202.201.29.21/xs_main.aspx?xh=200905420\ \"URL=/style/standard/images/nav_bg_down.gif\\"Referer=http://202.201.29.21/xs_main.aspx?xh=200905420\ \"URL=/style/standard/images/logo_copy.gif\
\"Referer=http://202.201.29.21/xs_main.aspx?xh=200905420\ \"URL=/style/standard/images/icons.gif\
\"Referer=http://202.201.29.21/xs_main.aspx?xh=200905420\ \"URL=/style/standard/images/footer_r.gif\
\"Referer=http://202.201.29.21/xs_main.aspx?xh=200905420\ \"URL=/style/standard/images/info_bg.gif\
\"Referer=http://202.201.29.21/xs_main.aspx?xh=200905420\ LAST); return 0; }
#include \"as_web.h\" Action() { web_url(\"base.css\", \"URL=http://202.201.29.21/style/standard/base.css\ \"Resource=1\ \"RecContentType=text/css\ \"Referer=http://202.201.29.21/content.aspx\ LAST); web_url(\"page.css\ \"URL=http://202.201.29.21/style/standard/page.css\ \"Resource=1\ \"RecContentType=text/css\ \"Referer=http://202.201.29.21/content.aspx\ LAST); web_url(\"module.css\ \"URL=http://202.201.29.21/style/standard/module.css\ \"Resource=1\ \"RecContentType=text/css\ \"Referer=http://202.201.29.21/content.aspx\ LAST); web_url(\"forms.css\ \"URL=http://202.201.29.21/style/standard/forms.css\ \"Resource=1\ \"RecContentType=text/css\ \"Referer=http://202.201.29.21/content.aspx\ LAST); web_url(\"nav_lirighthover_down.gif\ \"URL=http://202.201.29.21/style/standard/images/nav_lirighthover_down.gif\", \"Resource=1\ \"RecContentType=image/gif\ \"Referer=http://202.201.29.21/xs_main.aspx?xh=200905420\ LAST); web_url(\"nav_lilefthover.gif\ \"URL=http://202.201.29.21/style/standard/images/nav_lilefthover.gif\ \"Resource=1\ \"RecContentType=image/gif\ \"Referer=http://202.201.29.21/xs_main.aspx?xh=200905420\ LAST); web_url(\"con_midright.gif\
,
\"URL=http://202.201.29.21/style/standard/images/con_midright.gif\ \"Resource=1\ \"RecContentType=image/gif\ \"Referer=http://202.201.29.21/content.aspx\ LAST);
web_url(\"con_topright.gif\
\"URL=http://202.201.29.21/style/standard/images/con_topright.gif\ \"Resource=1\ \"RecContentType=image/gif\ \"Referer=http://202.201.29.21/content.aspx\ LAST);
web_url(\"con_botright.gif\
\"URL=http://202.201.29.21/style/standard/images/con_botright.gif\ \"Resource=1\ \"RecContentType=image/gif\ \"Referer=http://202.201.29.21/content.aspx\ LAST);
web_url(\"nav_sub_bg.png\ \"URL=http://202.201.29.21/style/standard/images/nav_sub_bg.png\ \"Resource=1\ \"RecContentType=image/png\ \"Referer=http://202.201.29.21/xs_main.aspx?xh=200905420\ LAST);
web_url(\"con_topleft.gif\ \"URL=http://202.201.29.21/style/standard/images/con_topleft.gif\ \"Resource=1\ \"RecContentType=image/gif\ \"Referer=http://202.201.29.21/content.aspx\ LAST);
web_url(\"nav_lirighthover_down.gif_2\
\"URL=http://202.201.29.21/style/standard/images/nav_lirighthover_down.gif\" \"Resource=1\ \"RecContentType=image/gif\ \"Referer=http://202.201.29.21/xs_main.aspx?xh=200905420\ LAST);
web_url(\"con_botleft.gif\ \"URL=http://202.201.29.21/style/standard/images/con_botleft.gif\ \"Resource=1\ \"RecContentType=image/gif\
\"Referer=http://202.201.29.21/content.aspx\ LAST); web_url(\"xsgrxx.aspx\ \"URL=http://202.201.29.21/xsgrxx.aspx?xh=200905420&xm=周瑞&gnmkdm=N121501\ \"Resource=0\ \"RecContentType=text/html\ \"Referer=http://202.201.29.21/xs_main.aspx?xh=200905420\ \"Snapshot=t4.inf\ \"Mode=HTML\ EXTRARES, \"URL=/style/standard/images/con_midleft.gif\\"Referer=http://202.201.29.21/content.aspx\ \"URL=/style/standard/images/con_midright.gif\
\"Referer=http://202.201.29.21/xsgrxx.aspx?xh=200905420&xm=周瑞&gnmkdm=N121501\ENDITEM, \"URL=/style/standard/images/toolbox_right.gif\
\"Referer=http://202.201.29.21/xsgrxx.aspx?xh=200905420&xm=周瑞&gnmkdm=N121501\ENDITEM, \"URL=/style/standard/images/con_topleft.gif\
\"Referer=http://202.201.29.21/xsgrxx.aspx?xh=200905420&xm=周瑞&gnmkdm=N121501\ENDITEM, \"URL=/style/standard/images/button_nor.gif\
\"Referer=http://202.201.29.21/xsgrxx.aspx?xh=200905420&xm=周瑞&gnmkdm=N121501\ENDITEM, \"URL=/style/standard/images/con_botright.gif\
\"Referer=http://202.201.29.21/xsgrxx.aspx?xh=200905420&xm=周瑞&gnmkdm=N121501\ENDITEM, \"URL=/style/standard/images/con_botleft.gif\
\"Referer=http://202.201.29.21/xsgrxx.aspx?xh=200905420&xm=周瑞&gnmkdm=N121501\ENDITEM, \"URL=/style/standard/images/con_topright.gif\
\"Referer=http://202.201.29.21/xsgrxx.aspx?xh=200905420&xm=周瑞&gnmkdm=N121501\ENDITEM, \"URL=/style/standard/images/nav_lirighthover_down.gif\\"Referer=http://202.201.29.21/xs_main.aspx?xh=200905420\ \"URL=/style/standard/images/nav_lilefthover.gif\\"Referer=http://202.201.29.21/xs_main.aspx?xh=200905420\ LAST); web_url(\"xskscx.aspx\ \"URL=http://202.201.29.21/xskscx.aspx?xh=200905420&xm=周瑞&gnmkdm=N121604\ \"Resource=0\ \"RecContentType=text/html\
\"Referer=http://202.201.29.21/xs_main.aspx?xh=200905420\ \"Snapshot=t5.inf\ \"Mode=HTML\ EXTRARES, \"URL=/style/standard/images/nav_lilefthover.gif\\"Referer=http://202.201.29.21/xs_main.aspx?xh=200905420\ \"URL=/style/base/module.css\
\"Referer=http://202.201.29.21/xskscx.aspx?xh=200905420&xm=周瑞&gnmkdm=N121604\ENDITEM, \"URL=/style/base/forms.css\
\"Referer=http://202.201.29.21/xskscx.aspx?xh=200905420&xm=周瑞&gnmkdm=N121604\ENDITEM, \"URL=/style/standard/images/nav_lirighthover_down.gif\\"Referer=http://202.201.29.21/xs_main.aspx?xh=200905420\ \"URL=/style/base/page.css\
\"Referer=http://202.201.29.21/xskscx.aspx?xh=200905420&xm=周瑞&gnmkdm=N121604\ENDITEM, \"URL=/style/base/base.css\
\"Referer=http://202.201.29.21/xskscx.aspx?xh=200905420&xm=周瑞&gnmkdm=N121604\ENDITEM, \"URL=/style/standard/forms.css\
\"Referer=http://202.201.29.21/xskscx.aspx?xh=200905420&xm=周瑞&gnmkdm=N121604\ENDITEM, \"URL=/style/standard/base.css\
\"Referer=http://202.201.29.21/xskscx.aspx?xh=200905420&xm=周瑞&gnmkdm=N121604\ENDITEM, \"URL=/style/standard/page.css\
\"Referer=http://202.201.29.21/xskscx.aspx?xh=200905420&xm=周瑞&gnmkdm=N121604\ENDITEM, \"URL=/style/standard/module.css\
\"Referer=http://202.201.29.21/xskscx.aspx?xh=200905420&xm=周瑞&gnmkdm=N121604\ENDITEM, \"URL=/style/standard/images/con_midright.gif\
\"Referer=http://202.201.29.21/xskscx.aspx?xh=200905420&xm=周瑞&gnmkdm=N121604\ENDITEM, \"URL=/style/standard/images/toolbox_right.gif\
\"Referer=http://202.201.29.21/xskscx.aspx?xh=200905420&xm=周瑞&gnmkdm=N121604\ENDITEM, \"URL=/style/standard/images/toolbox_left.gif\
\"Referer=http://202.201.29.21/xskscx.aspx?xh=200905420&xm=周瑞&gnmkdm=N121604\ENDITEM, \"URL=/style/standard/images/con_midleft.gif\
\"Referer=http://202.201.29.21/xskscx.aspx?xh=200905420&xm=周瑞&gnmkdm=N121604\ENDITEM,
\"URL=/style/standard/images/con_topright.gif\
\"Referer=http://202.201.29.21/xskscx.aspx?xh=200905420&xm=周瑞&gnmkdm=N121604\ENDITEM, \"URL=/style/standard/images/con_botright.gif\
\"Referer=http://202.201.29.21/xskscx.aspx?xh=200905420&xm=周瑞&gnmkdm=N121604\ENDITEM, \"URL=/style/standard/images/con_botleft.gif\
\"Referer=http://202.201.29.21/xskscx.aspx?xh=200905420&xm=周瑞&gnmkdm=N121604\ENDITEM, \"URL=/style/standard/images/thead.gif\
\"Referer=http://202.201.29.21/xskscx.aspx?xh=200905420&xm=周瑞&gnmkdm=N121604\ENDITEM, \"URL=/style/standard/images/con_topleft.gif\
\"Referer=http://202.201.29.21/xskscx.aspx?xh=200905420&xm=周瑞&gnmkdm=N121604\ENDITEM, LAST); lr_think_time(4); lr_think_time(1); lr_think_time(3); return 0; }
2.5.2.测试报告
2.5.3.测试结果分析
此次测试用户操作流程简单,所以并未对服务器造成高度负载,运行相当平稳。从模拟环境来看,加入1到5的思考时间,更符合真实用户的操作。
从设置100人的压力分析,响应速度一般,完全在用户的感觉较慢响应时间内,如果用户量访问量继续加大,必定会影响系统性能。
因篇幅问题不能全部显示,请点此查看更多更全内容