Test Report模版.docx

上传人:b****7 文档编号:23859590 上传时间:2023-05-21 格式:DOCX 页数:32 大小:30.87KB
下载 相关 举报
Test Report模版.docx_第1页
第1页 / 共32页
Test Report模版.docx_第2页
第2页 / 共32页
Test Report模版.docx_第3页
第3页 / 共32页
Test Report模版.docx_第4页
第4页 / 共32页
Test Report模版.docx_第5页
第5页 / 共32页
点击查看更多>>
下载资源
资源描述

Test Report模版.docx

《Test Report模版.docx》由会员分享,可在线阅读,更多相关《Test Report模版.docx(32页珍藏版)》请在冰豆网上搜索。

Test Report模版.docx

TestReport模版

单元测试报告

UnitTestReport

V1.0

 

拟制人:

学号:

审核人:

批准人:

 

年月日

目录(Content)

1引言(Introduction)

1.1编写的目的(Purpose)

xxx小组成员对高校大学生生活信息平台进行测试后编写的单元测试报告,根据实际测试过程和测试结果进行汇总,并反映测试情况。

GLTteammemberslivinginHuai'aninformationplatformforcollegestudentswritingunittestsafterthetestreport,accordingtotheactualtestingprocessandsummaryoftestresults,andreflectthetestsituation.

1.2背景说明(Background)

此测试报告的阅读对象为小组成员和客户相关人员。

ThistestreportwasdesignedwiththeHuaiyinInstituteofTechnology,Instructor-Zhufullsilver,GLTteammembersandcustomer-relatedpersonnel.HuaiyinInstituteofGLTsoftwaredevelopmentgroupconsistsofsixmembers.

1.3定义(Definition)

用户列表:

记录了注册用户的姓名,IP地址,注册时间。

Userlist:

Recordthenameoftheregistereduser,IPaddress,registrationtime.

1.4参考文献(Reference)

[1]RonPatton.软件测试.北京:

机械工业出版社,2005.3

[2]ElfriedeDustin.有效软件测试.北京:

清华大学出版社,2005.7

[3]PaulC.Jorgensen.软件测试.北京:

机械工业出版社,2008.5

2测试情况概述(TestOverview)

2.1测试对象(TestObject)

本次单元测试的测试对象为软件开发小组开发的高校大学生生活信息平台中登录注册模块,开发人员利用MicrosoftVisualStudio2008内的ASP.net设计、C#开发,使用SQL2005。

ThetestobjectforunittestingofsoftwaredevelopmentteamforthedevelopmentofGLTHuai'aninformationplatformforcollegestudentslivingintheLoginmodule,developersuseMicrosoftVisualStudio2008designoftheASP.net,C#development,useSQL2005.

2.2测试时间(TestTime)

测试分两个阶段:

第一阶段---对各个子模块进行测试,导师和小组成员根据实际对各子模块的功能提出改进意见。

时间:

第二阶段---集成测试。

时间:

Testedintwophases:

---firststagetestingofeachsub-module,mentorsandteammembersofeachsub-modulebasedontheactualfunctionofsuggestionsforimprovement.Time:

2011/4/11-2011/5/11

---secondphaseofintegrationtesting.Time:

2011/5/16-2011/5/25

2.3测试方法(TestMethods)

2.3.1白盒测试法(WhiteBoxTesting)

英文为WhiteBoxTesting。

又称结构测试或者逻辑驱动测试。

EnglishasWhiteBoxTesting.Alsoknownasstructuraltestingorlogicdriventesting.

白盒测试是把测试对象看作一个打开的盒子。

利用白盒测试法进行动态测试时,需要测试软件产品的内部结构和处理过程,不需测试软件产品的功能。

White-boxtestingistotesttheobjectasanopenbox.White-boxtestingmethodusingthedynamictest,theneedtotesttheinternalstructureofsoftwareproductsandprocesses,withouttestingthesoftwareproduct'sfeatures.

白盒测试法的覆盖标准有逻辑覆盖、循环覆盖和基本路径测试。

其中逻辑覆盖包括语句覆盖、判定覆盖、条件覆盖、判定/条件覆盖、条件组合覆盖和路径覆盖。

White-boxtestingmethodcoversthestandardlogicalcoverage,loopcoverageandthebasicpathtesting.Coveredincludethelogicalstatementcoverage,decisioncoverage,conditioncoverage,decision/conditioncoverage,conditions,coverageandpathcoverageportfolio.

白盒测试是知道产品内部工作过程,可通过测试来检测产品内部动作是否按照规格说明书的规定正常进行,按照程序内部的结构测试程序,检验程序中的每条通路是否都有能按预定要求正确工作,而不顾它的功能,白盒测试的主要方法有逻辑驱动、基路测试等,主要用于软件验证。

White-boxtestingistoknowtheinnerworkingsoftheprocessofproduct,testtodetecttheproductbytheinternalactionisinaccordancewiththenormalprovisionsofthespecification,internalstructureaccordingtotheprocedurestestingprocedures,inspectionproceduresineachchannelcanbescheduledifrequirementsarecorrectWork,regardlessofitsfunctions,themainwhite-boxtestingmethodsarethelogicaldrive,basedroadtesting,mainlyforsoftwarevalidation.

2.3.2黑盒测试法(BlackBoxTesting)

英文为BlackBoxTesting。

又称功能测试或者数据驱动测试。

EnglishasBlackBoxTesting.Alsoknownasfunctionaltestingordata-driventesting.

黑盒测试是根据软件的规格对软件进行的测试,这类测试不考虑软件内部的运作原理,因此软件对用户来说就像一个黑盒子。

Blackboxtestingisbasedonsoftwarespecificationsforsoftwaretesting,suchtestsdonotconsidertheprincipleoftheinternaloperationofthesoftware,sosoftwareusersasablackbox.

软件测试人员以用户的角度,通过各种输入和观察软件的各种输出结果来发现软件存在的缺陷,而不关心程序具体如何实现的一种软件测试方法。

SoftwareTesterstotheuser'spointofview,observingthroughavarietyofinputandoutputtoavarietyofsoftwaredefectsfoundinsoftwarewithoutregardtothespecificproceduresforhowtoimplementasoftwaretestingmethods.

2.4测试约束(TestConstraint)

本次测试整体测试约束如下:

a.测试报告基于本次被测试软件版本;

b.所有测试都基于相同的测试环境(包括主机、操作系统、数据库等);

c.测试方案在参考实际操作,最测试内容做了适当规整。

Thistestwholetestrestraintisasfollows:

a.Thetestreportedbasedonthistimeistestedthesoftwareedition;

b.Alltestsallbasedonsametestenvironment(includingmainengine,operatingsystem,databaseandsoon);

c.Thetestplaninthereferenceactualoperation,mosttestedthecontenttodosuitablyneat.

2.5测试人员(Testers)

测试人员为xxx软件开发小组成员。

TestersarefromhuaiyinGLTsoftwaredevelopmentteams.

3测试环境(TestEnvironment)

3.1测试硬件环境(TestHardwareEnvironment)

表1测试硬件环境表

测试环境

配置说明

操作系统版本

内存

外接存储

开发环境主机

PC机

Windows7

2G

Table1Testhardwareenvironmenttable

TestEnvironment

Configuration

OperatingSystemVersion

Memory

Externalstorage

Hostdevelopmentenvironment

PCmachine

Windows7

2G

No

3.2测试软件环境(TestSoftwareEnvironment)

表2测试软件环境表

软件

产品名

数据库

SQL2005

操作系统

Windows7

Web应用服务器

IE7.0

Table2Testsoftwareenvironment

Software

ProductName

Database

SQL2005

OperatingSystem

Windows7

WebApplicationService

IE7.0

4测试情况(TestSituation)

4.1测试内容(TestContent)

本次测试主要进行了界面的功能测试,界面测试主要对登录注册模块的注册、登录和用户列表三个界面进行测试。

注册模块的测试见表3,登录模块的测试见表4,用户列表的测试见表5:

Thetestmainlyforthescreenfunctiontest,interfacetestmodulemainlyLoginregister,loginanduserinterfacelistofthethreetests.UpthemoduletestinTable3,Table4testtheloginmodule,thetestuserlistinTable5:

表3注册测试用例执行情况

测试用例

测试内容

执行次数

测试结果

Reg-0

用户名长度

5+5

第一次输入达到预期效果;

第二次输入达到预期效果;

Reg-1

密码长度

5+5+5

第一次输入和第二次输入不达到预期效果;

第三次输入达到预期效果;

Reg-2

密码是否为空

2

达到预期效果

Reg-3

用户名和密码为空

3

达到预期效果

Reg-4

用户名已经注册过

2

达到预期效果

Reg-5

2次输入的密码不一致

2

达到预期效果

Reg-6

用户名和密码输入特殊字符

10

达到预期效果

Reg-7

用户名和密码相同

10

达到预期效果

Reg-8

密码是否在数据库中加密显示

10

达到预期效果

Reg-9

用户名是否区分大小写

10

达到预期效果

Reg-10

是否支持tap和enter键等

10

达到预期效果

Reg-11

密码是否可以复制

10

没达到预期效果

Reg-12

用户名中带空格(空格出现位置:

开始,中间,末尾)

2+2+2+2

达到预期效果

Reg-13

密码中带空格(空格出现位置:

开始,中间,末尾)

2+2+2+2

达到预期效果

Reg-14

密码是否支持汉字

10

达到预期效果

Table3RegistrationTestCaseExecuteSituation

TestCase

TestContent

ExecuteViews

ExecuteResult

Reg-0

UserNameLength

5+5

Firstachievetheexpectedresult;

Secondachievetheexpectedresult;

Reg-1

PasswordLength

5+5+5

Firstandsecondachievetheexpectedresult;

Thirdachievetheexpectedresult;

Reg-2

Whetherpasswordempty

2

Achievetheexpectedresult

Reg-3

Whetherpasswordanduernameempty

3

Achievetheexpectedresult

Reg-4

UserNamehasbeenregistered

2

Achievetheexpectedresult

Reg-5

Twopasswordisconsistent

2

Achievetheexpectedresult

Reg-6

Usernameandpasswordinputspecialcharacters

10

Achievetheexpectedresult

Reg-7

Usernameandpasswordaresame

10

Achievetheexpectedresult

Reg-8

PasswordencrypteddisplayintheDatabase

10

Achievetheexpectedresult

Reg-9

Usernameiscase-sensitive

10

Achievetheexpectedresult

Reg-10

Whethersupporttapandenterkeyetc

10

Achievetheexpectedresult

Reg-11

WhetherPasswordcanbecopied

10

Notachievetheexpectedresult

Reg-12

Usernamewithaspace(appearin:

begin,middle,end)

2+2+2+2

Achievetheexpectedresult

Reg-13

Passwordwithaspace(appearin:

begin,middle,end)

2+2+2+2

Achievetheexpectedresult

Reg-14

Characterpasswordwhethersupported

10

Achievetheexpectedresult

作为登录测试所用的有效数据就必须是用户已经注册过的数据,下面两组数据为注册过的有效数据:

注册的用户名:

xxxxxx密码:

xxxxx

注册的用户名:

xxxxxx密码:

xxxxx

表4登录测试用例执行情况

测试用例

测试内容

执行总数

测试结果

Log-0

数据库中不存在的用户名

2

达到预期效果

Log-1

数据库中存在的用户名,密码错误

10

达到预期效果

Log-2

用户名和密码为空

2

达到预期效果

Log-3

输入用户名,但不输入密码

2

达到预期效果

Log-4

不输入用户名,但输入密码

2

达到预期效果

Log-5

支持不同账户在同一机子上登录

10

8次达到预期效果;2次没达到预期效果

Log-6

同一账户在不同机子上登录

10

7次达到预期效果;3次没达到预期效果

Log-7

登录是否可以最小化

2

达到预期效果

Log-8

忘记密码功能

5

没达到预期效果

Log-10

记住用户名和密码

2

达到预期效果

Log-11

密码是否可以区分大小写

5+5

达到预期效果

Usedasalogintesttobevaliddatatothedatatheuserhasregisteredthefollowingtwosetsofdataforeffectivedataregistered:

RegisteredUserName:

Liuxing49Password:

654321m

RegisteredUserName:

Suwan625Password:

6543218

Table4LoginTestCaseExecuteSituation

TestCase

TestContent

ExecuteView

ExecuteResult

Log-0

Usernamedoesnotexistedindatabase

2

Achievetheexpectedresult

Log-1

Usernameexistedindatabase,passwordisfault

10

Achievetheexpectedresult

Log-2

Usernameandpasswordareempty

2

Achievetheexpectedresult

Log-3

Inputusername,un-inputpassword

2

Achievetheexpectedresult

Log-4

Inputpassword,un-inputusername

2

Achievetheexpectedresult

Log-5

Whethersupportdifferentaccounttologinonthesamemachine

10

8timesachievetheexpectedresult;2timesnotachievetheexpectedresult.

Log-6

Whethersupportsameaccounttologinonthedifferentmachine

10

7timesachievetheexpectedresult;3timesnotachievetheexpectedresult.

Log-7

Whetherlogincanminimize

2

Achievetheexpectedresult

Log-8

Re-getpasswordfunction

5

Notachievetheexpectedresult

Log-10

RememberUsernameandPassword

2

Achievetheexpectedresult

Log-11

Passwordiscasesensitive

5+5

Achievetheexpectedresult

用户列表的功能实现是基于注册实现的,只要注册成功用户列表中便增加相应的信息。

表5用户列表测试用例执行情况

测试用例

测试内容

执行总数

测试结果

List-0

注册中点击“我同意”按钮

5

达到预期效果

List-1

点击“退出”

2

达到预期效果

Realizationofthefunctiontheuserlistisbasedonuptoachieve,aslongastheregistereduserlistwillincreasethesuccessoftheappropriateinformation.

Table5UserNameTestCaseExecuteSituation

TestCase

TestContent

ExecuteView

ExecuteResult

List-0

Click“我同意”buttoninRegistration

5

Achievetheexpectedresult

List-1

Click“退出”button

2

Achievetheexpectedresult

4.2测试完成情况(TestCompletionSituation)

测试工作从xxxx年xx月xx号进行模块测试,时长近一个月。

而后紧接着的是时长十天的集成测试,其间编写了测试用例。

表6测试工作完成情况

测试任务名称

具体内容

完成度

制定测试计划,编写测试用例

对于找到的资源用不同的格式来显示

90%

准备测试数据、环境

详见测试案例

100%

执行功能测试,填写测试数据

详见测试

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 医药卫生 > 预防医学

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1