TestLink 1.7.0 笔记/TestLink 1.7.0 Notes

来源:互联网 发布:翼型点数据 编辑:程序博客网 时间:2024/05/21 11:30

 

1/Overview

2.工作流/Workflow

3.安装和配置/Installation andConfiguration

 

 

1.概述/Overview

 

1.1 TestLink是什/What is TestLink?

 

使用TestLink可以容易的建和管理测试用例,且可以使用测试计划来组织测试用例。使用测试计划可以使测试员动态测试用例和跟踪测试结果,生成测试报告,跟踪件需求,区别优先次序和指派测试

TestLink enables easily to createand manage Test cases as well as organize them into Test plans. These Testplans allow team members to execute Test cases and track test resultsdynamically, generate reports, trace software requirements, prioritize andassign tasks

 

TestLink是基于Web测试管理系,后台使用MySQL, Postgres或者MS-SQLTestLink可以和Bugzilla,MantisJIRA等缺陷跟踪系集成使用

TestLink is web based Test Management system. Furthermorebackground database use MySQL, Postgres or MS-SQL. It cooperates with known bug tracking systems as Bugzilla, Mantis and JIRA,etc.

 

1.2 结构/Overall Structure

 

TestLink主要由测试产品,测试计划和用部分成。其他的据均是与这三部分相或者以三部分

There are three cornerstones: TestProject, Test Plan and User. All other data are relations or attributes forthis base

 

A>测试产TestLink中必需要存在的部分,的整生命周期中经历很多不同的版本。测试项目包括含有测试用例的测试规范,件需求和关键字。用测试产中有指定的角色

Test Project is something that willexist forever in TestLink. Test project will undergo many different versionsthroughout their lifetimes. Test project includes Test specification with Test cases,Requirements and Keywords. Users within the Test project has defined role

 

B>当执测试用例需要建立测试计划测试计划可以由一或多个测试产中的测试用例测试计划包括,里程碑,测试指派和测试结

Test Plan is created when you'd liketo execute Test cases. Test plan can be made up of the Test cases of one ormany Test projects. Test Plan includes Builds, Milestones, Test assignment andTest results

 

C>可以通过账户设修改自己的信息。TestLink具有管理员权的用在系修改

Every user on the system will alsobe able to edit them self information via the account settings window. TestLinkallows users with administrator rights to create, edit, and delete users withinthe system

 

 

2. 工作流/Workflow

 

2.1 创建测试产品/CreateTest Projects

 

测试产品是TestLink的基。一公司的品版本的会随时间的推移改一些特性和功能,但是大部分的特性和功能是基本不

Test projects are the cornerstone ofTestLink. Test projects are releases of your company that may change theirfeatures and functionality over time but for the most part remain the same

 

有管理员权限的用可以建、修改和测试产品。如果测试产品已经废弃不用,同样权限的用可以将测试产非活动状态测试产品的操作除相据,而且除操作不可逆,建使用置非活动状态代替除操作

Test projects can be created, editedand deleted requires user has administrator rights. User with the privilegesalso can inactivate the Test project if it's obsolete. The delete actiondeletes also all related data from database. This action is not reversible. Westrongly recommend to use inactivate instead of delete

 

/Steps

Home>Test ProjectManagement>Create New Test Project: Setting Name, Related Notes etc.

 

2.2 和角色/CreateUsers and Roles

 

TestLink具有管理员权限的用在系建、修改和除用如此,TestLink不允具有管理员权限的用修改用。系中的用可以修改自己的信息

TestLinkallows users with administrator rights to create, edit, and delete users withinthe system. However, TestLink does not allow administrators to view or edituser's passwords. Every user on the system will be able to edit theminformation

 

TestLink建立了六不同的默认权级别了用角色。管理具有在TestLink中适修改据的限。每户仅能被指派其中的一角色

TestLinkis built with 6 different default permission levels built in. There arepredefined user roles. Administrator gives appropriate ability to modify datawithin TestLink. Each user has assigned just one of these roles

 

级别如下

Thesepermission levels are as follows:

访客:测试用例和品度量的

Guest:a Guest only has permission to view Test cases and project metrics

测试行指派测试用例

Tester:a Tester only has permissions to run Test cases assigned to them

级测试:具有浏览建、修改除或者测试用例

SeniorTester: a Senior Tester can view, create, edit, and delete Test cases as wellas execute them

测试设计者:测试规范和需求有完全

TestDesigner: a Test Designer can fully work with Test specification andRequirements

主管:除了具有以上所有测试限之外,同可管理测试计划、指派限、建里程碑和管理关键

Leader:a Leader has all of the same permissions as a Tester but also gains the abilityto manage Test plans, assign rights, create milestones, and manage keywords

管理:除了具有主管的限之外,同可以管理测试产品和用

Admin:an Admin has all of the same permissions as a Leader but gains the ability tomanage Test projects and Users

 

/Steps

Home>UserAdministration>User Management

Home>UserAdministration>Role Management

 

2.3 基于测试的需求/Create Requirements Based Testing

 

测试使用基于测试的需求来证是否指定的需求。每一需求,设计开发出一或多个测试用例。在测试执行的最后段,测试经将报测试执行的情以及需求的覆盖率。基于信息由客户决定系移到下一个测试阶是投入使用

To prove that a systemis built as specified, testers use requirement based testing. For every requirement,they design one or more Test cases. At the end of the test execution a testmanager reports on the tests that are executed and the requirements that arecovered. Based on this information the clients decide whether a system can betransferred to the next test phase or can go live

 

需求和相关对象之间的关系/Dependencies between requirements related objects

 

 

可以指派多个测试用例对应需求,也可以指派多需求被同一个测试用例所覆盖

User can assign more testcases to one requirement and more requirements could be covered by one testcase

 

(确保在测试产已激活需求功能模/Steps (Make sure you have activate the EnableRequirement Functionality when create Test project)

Home>Requirements>RequirementSpecification>Create>Setting Title, Scope etc.

 

2.4 关键(可)和自定义区(可/CreateKeyword (Optional) and Custom Fields (Optional)

 

关键字的建可以使得用在另一个层次上对测试行分关键字可以在测试规范之内对测试用例的一些性做以集合

Keywords were created to giveusers another level of depth when categorizing Test cases. Keywords serve as acollection of Test cases with some attribute within a Test specification

 

可以将关键字在关键面(批理)或者测试用例管理面(单个处理)指派给测试用例

Keywords may be assigned to Testcases either from the assign keyword screen (in batch) or via the Test casemanagement (individually)

 

/Steps

Home>Keywords>KeywordsManagement>Setting Keyword, Notes etc.

Home>Keywords>KeywordsManagement>Assign Keywords

 

自定字段是系围内的定也就是,用不能定相同字段ID的自定字段。在建了一自定字段之后,如果要使用它则必需要将它指派测试产

Customfield definitions are system wide, i.e., you cannot define to custom fieldswith same field ID. After you have created a Custom Field, you need to assignit to the Test project if you want to use it

 

/Steps

Home>Customfields>Custom fields management>Create>Setting Name, Label, Type etc.

Home>Customfields>Assign custom fields>Setting Assign, Unassign, Display order etc.

 

 

 

2.5 测试用例集和测试用例/CreateTest Suites and Test Cases

 

测试用例:通过执(行)和期望描述测试务称测试用例。测试用例是TestLink的基部分

TestCases: Test Case describes a testing task via steps (actions, scenario) andexpected results. Test cases are the fundamental piece of TestLink

 

测试用例集:用以组织测试用例的

Test Suitesorganizes Test cases to units

 

首先应该为测试产或多个测试用例集。在测试用例集中可以再测试用例集。然后可以测试用例。用也可以或者移动测试用例

At first you should create oneor more Test Suites for your Test project. Test Suites can include other TestSuites. Then user can create Test cases. User can also copy or move Test cases

 

测试用例包括以下几部分:

Test Case has next parts:

标题:可以个简的描述或者简写

Title: could include eithershort description or abbreviation

应该简短,起到的作用

Summary: should be reallyshort; just for overview

:描述测试场),也包含和需要的信息

Steps: describe test scenario(input actions); can also include precondition and cleanup information here

期望:描述检验测试产或系

Expected results: describecheckpoints and expected behavior a tested Test project or system

附件(可

Attachment (Optional)

 

主管的用可以从测试用例中移除测试用例和测试用例集。移除测试用例将会丢所有相测试结

Test Cases and Test Suites maybe removed from a Test Plant by users with Leader permissions. Removing testcases will cause the loss of all results associated with them

 

/Steps

Home>TestSpecification>Edit Test Case(s)>Test Project>New Test Suite: SettingName, Details etc.

Home>TestSpecification>Edit Test Case(s)>Test Project>Test Suite>Create TestCase(s): Setting Title, Summary, Steps etc.

 

2.6 指派需求给测试用例/Assign Requirements to Test Case

 

这个特性可以置需求和测试用例之关联关系。测试设计者可以定多的系,也就是,可以不指派任何测试用例,或者指派或多个测试用例,反之亦然

This feature allows settingrelations between requirements and Test cases. A Test Designer could define relations0..n to 0..n. I.e. One Test case could be assigned to none, one or more Testcases and vice versa

 

2.7 测试计划/Create Test Plan

 

测试计划测试用例的基测试计划包括名、描述、被选择测试用例集合、测试结、里程碑、测试指派和

Test plans are the basis for Testcases execution. Test plan contains name, description, collection a chosen Testcases, builds, test results, milestones, tester assignment and prioritydefinition

 

主管的用可以测试计划测试计划将会时删包括测试用例(测试规中的除外)和测试结

Test Plans may be deleted byusers with lead privileges. Deleting Test Plans permanently deletes both the Testplan and all of its corresponding data, including Test cases (not in TestSpecification), results, etc.

 

可以个测试产中的添加到一个测试计划

Data from multiple Testprojects can be added into one Test plan

 

/Steps

Home>Test Plan Management>Test PlanManagement>Create>Setting Name, Description etc.

 

 

/Steps

Home>Requirements>AssignRequirements>Select Test Case>Setting Assign or Unassign

 

2.8 和里程碑(可/Create Build and Milestone (Optional)

 

建是一特定的布版本。在公司中的每个产很可能是由很多不同的成的。建是跟踪测试用例行的基本成分。每个测试用例可以在每个构建中一次

Buildsare a specific release of software. Each project in a company is most likelymade up of many different builds. Builds are the basic component for how Testcases are tracked. Each Test case may be run once and only once per build

 

建的状态

Thestates of each build:

/非活的:定义构TestLink是否可用

Active/ Inactive: defines whether the build is available for TestLink functionality

/关闭:定是否可以修改建的测试结

Opened/ Closed: defines if Test results can be modified for the build

 

/Steps

Home>TestPlan Management>Build Management>Create>Setting Title, Descriptionetc.

 

里程碑:主管可以定在期望的时间内应完成测试的百分比。

Milestone:Leader can define percentage of finished tests with respect to defined date

 

/Steps

Home>Test Plan Management>MilestoneManagement>Create>Setting: Name, Target Name etc.

 

2.9 测试/TestExecution

 

当满以下可以测试

Testexecution is available when:

A>测试规范已完成

ATest specification is written

B>测试计划经创

ATest plan is created

C>测试用例已添加到测试计划

Testcases are added to Test plan

D>经创建一个构

ABuild is created

E>测试计划指派给测试

TheTest plan is assigned to testers

 

/Steps

Home>TestExecution>Execute Tests>Setting Filter Condition etc.

 

2.10 测试报告和度量/ReviewReports and Metrics

 

告和度量是基于选择测试计划的。在面前确保在主选择了正确的测试计划

Reportsand Metrics are based on the currently selected Test plan. Be sure you haveselected the correct Test plan on the main page before viewing the Results page

 

2.10.1 测试计划度量/General Test Plan Metrics

依照测试用例集/测试/关键测试结

Reviewresults by Test suites/Tester/Keywords

 

2.10.2 建的状态/The Overall Build Status

依照每个构测试结

Reviewresults by every Build

 

2.10.3 查询度量/Query Metrics

查询报告由一个查询表格成,查询数将显示在查询结

Thisreport consists of a query form page, and a query results page which containsthe queried data

 

2.10.4 测试用例/Failed Test Cases

2.10.5 被阻塞的测试用例/Blocked Test Cases

2.10.6 行的测试用例/Not run Test Cases

个报示所有前被阻塞、行失或者未行的测试用例。如果一个测试用例被阻塞、行失或者未行,此示最后一次测试果。如果已经将TestLink缺陷跟踪系集成,此处将会显示被阻塞和行失测试用例相对应的缺陷编号

Thesereports show all of the currently blocked, failing, or not run Test cases. Last test Result logic is againemployed to determine if a Test case should be considered blocked, failed, ornot run. Blocked and failed Test case reports will display the associated bugsif the user is using an integrated bug tracking system

 

2.10.7 测试报/Test Report

测试用例在每个构建上的状态

Reviewstatus of every Test case on every build

 

2.10.8 /Charts

部分表格式测试结果。以生助用形象化的测试计划测试结

Thispart will display results in a graphical format. The graphs are animated tohelp the user visualize the metrics from the current Test plan

共包括以下四张图表:

Thefour charts provide are:

A>测试//被阻塞/行的测试用例饼图

Piechart of overall pass / fail / blocked / and not run Test cases

B>依照关键字分类测试结的柱状图

Barchart of Results by Keyword

C>依照测试的柱状图

Barchart of Results by Owner

D>依照顶层测试用例集分的柱状图

Barchart of Results by Top Level Suite

 

2.10.9 基于需求的/Requirements based Report

列出需求相关联测试用例

Thisreport list which Test cases have been related Requirements

 

2.10.10 个测试用例所关联的缺陷/Total bugs for each Test case

当设置了缺陷跟踪系的集成可以这张报

Thisreport is only available if a Bug Tracking System is connected

 

2.11 入和/Importand Export

 

TestLink支持多共享据的方式

TestLinksupports several ways to share data

/Item

文件格式/File Format

可得到什/What you get

关键/Keyword

CSV / XML

所有测试产品的关键/All Test project’s keywords

测试产/Test Project

XML

所有测试用例集和测试用例/All Test suites and Test cases.

测试用例集/Test Suite

XML

测试用例集的细节描述,所有的测试用例以及子测试用例集和测试用例/Test suite details, All Test cases and child Test suites and Test cases.

测试用例/Test Case

XML

可以得到以下2种导/Two types of exports can be done:

1.有一个测试用例/Just one Test case

2.测试用例集中的所有测试用例/All Test cases in Test suite.

需求/Requirement

CSV / CSV DOORS(*) / XML

(*) 支持此格式/ (*) Only import is supported for this format.

局限:附件不能

Limitation: attached files arenot exported

 

 

3. 安装及配置/Installation and Configuration

 

安装:集成PHP5MySQL或者Postgres)的Web器。也可以使用集成品的安装包直接安装;例如: XAMPP, EasyPHP, Uniform Server,

Installenvironment: Webserver with PHP5 and database (MySQL or Postgres). You can alsofind installations package of all these products and install it together; forexample XAMPP, EasyPHP, Uniform Server, etc.

 

A>安装MySQL (例如,user/passwordroot/123)

Install MySQL (e.g., user/passwordroot/123)

B>压缩xampp-win32-1.6.4.zip (例如,C:XAMPP)

Extract xampp-win32-1.6.4.zip (e.g., C:XAMPP)

C>压缩testlink_170.zip (例如, C:XAMPPhtdocstestlink)

Extract testlink_170.zip (e.g., C: XAMPPhtdocstestlink)

D>启动ApacheMySQL (例如, C: XAMPP, xampp-control.exe)

Start Apache and MySQL (e.g., C: XAMPP,xampp-control.exe)

E> (例如, http://localhost/testlink/)

Setting (e.g., http://localhost/testlink/)


 


 

F> (例如, http://localhost/testlink/login.php)

Login (e.g., http://localhost/testlink/login.php)