Testlink 1.9.3升级至1.9.6的完全手册
- 格式:docx
- 大小:96.15 KB
- 文档页数:5
Testlink用户指南Version 1.0版本目录1. Testlink 简介 (4)2. 界面摘要 (4)3. 用户角色 (5)4. 系统登录与个人设置 (6)5. 工作流程 (8)5.1. 项目准备 (8)5.2. 创建项目 (8)5.3. 创建需求清单 (9)5.4. 开发用例 (10)5.5. 用例与需求映射 (11)5.6. 创建测试计划 (12)5.7. 创建测试版本 (13)5.8. 用例加入测试计划 (14)5.9. 分配测试任务 (14)5.10. 执行测试 (14)5.11. 查看进度报告 (16)5.12. 文档归集 (16)1.Testlink 简介基于WEB的测试项目管理系统,主要功能是:测试项目管理、产品需求管理、测试用例管理、测试计划管理、测试用例的创建、管理和执行,并且还提供报表统计功能。
2.界面摘要3.用户权限用户角色属性与其操作权限有关,系统预置了7种角色,每种角色的权限允许重新定义,通常而言,常用的权限有新建测试项目、定义功能需求、创建测试用例集、开发测试用例、创建测试计划、创建里程碑、执行测试、查看进度报告等。
角色分类角色权限定义4.系统登录与个人设置外网登陆:网关端口暂未映射公司内网:http://192.168.8.97/testlink所有人先在此登陆页面注册账号,注册后账号权限为guest,几乎没有任何权限,管理员可以对测试部以外人员分配权限,测试组人员权限随测试项目临时分配,每个账号在不同的项目中会有不同的操作权限。
内网登录testlink页面,点击“New User?”注册账号依次填写账户信息,建议FirstName填中文“姓”,LastName填中文“名字”,否则生成测试报告等文档时会显示中文姓名颠倒。
登录系统后可以在用户编辑中选择语言类型,默认为英文,可选简体中文。
5.工作流程测试主管需求管理员5.1.项目准备测试项目的发起人为产品经理、项目经理、研发人员,发起人邮件通知测试组闫伟,说明测试对象、测试焦点、期望完成时限,测试对象相关的产品文档(如spec、设计流程图)一并提供,如文档不齐备至少列出待测物的功能性及非功能性需求清单。
TestLink&MantisBT管理系统集成集成环境:1.Testlink版本:1.9.32.Mantis版本: 1.2.153.TestLink和Mantis运行在xampp平台,且位于同一台机器4.主机IP:172.18.4.935.数据库类型:MySQL6.Mantis数据库名称:bugtracker7.MySQL登录名称:root8.MySQL登录密码:****9.Mantis访问链接:http://172.18.4.93/mantis/10.TestLink访问链接:http://172.18.4.93/testLink/TestLink和BUG管理系统集成一般具备以下特点:1.在TestLink和BUG管理系统之间所有的信息交流都是在数据库中完成2.TestLink不能发信息给BUG管理系统,也不能从BUG管理系统接收信息Testlink-1.9.3支持的BUG管理系统一、执行测试用例,设置用例状态:Failed,默认情况下TestLink无法直接点击BUG管理系统二、修改TestLink主配置文件:config.inc.php位置:C:\xampp\htdocs\testlink\config.inc.php三、修改TestLink下的Mantis配置文件:mantis.cfg.php位置:C:\xampp\htdocs\testlink\cfg\mantis.cfg四、保存文件即可,无需重启xampp,即可看到失败的用例后显示:小蜘蛛Testlink集成Mantis使用手册1、执行用例,结果为失败,点击图表2、弹出添加问题框,点击‘访问问题跟踪系统(Mantis)’,页面跳转到mantis登陆页面3、登陆Mantis,,点击‘提交问题’,完整填写BUG信息,记录BUG编号:28014、将BUG编号填入添加问题框的‘Mantis问题编号’例如:2801,点击‘添加问题’5、添加问题成功6、查看TestLink失败的用例,下方列出了该失败用例的关联的BUG,点击可以查看BUG具体情况。
User Manual TestLink 1.6Copyright © 2004,2005 TestLink Development TeamPermission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. The license is available in "GNU Free Documentation License" homepage.1. General informationTestLink is web based Test Management system. This manual should serve as source for users to understand processes and organization of testing with TestLink. See to Installation manual for more information about system requirements, installation steps and configuration. The latest documentation is available on or .See an example of TestLink workflow:1.Administrator create a product “Fast Foo” and a user Adam with rights“leader” and Bela with rights “Senior tester”.2.Adam imports Software Requirements and for part of these requirementsgenerates empty Test cases.3.Bela describe test sneario of these Test cases that are organizedaccording to Components and Categories.4.Adam creates Keyword: “Regression” and assignes this keyword to tenof these test cases.5.Adam creates a Test Plan “Fish & Chips”, Build “Fish 0.1” and addTest Cases with keywords “Regression”.6.Adam and Bela execute and record the testing with result: 5 passed, 1failed and 4 are blocked.7.Developers make a new build “Fish 0.2” and Bela tests the failed andblocked test cases only. Exceptionaly all these five Test cases passed.8.Manager would like to see results. Administrator explain him that he cancreate account himself on the login page. Manager do it. He has “Guest”rights and could see results and Test cases. He can see that everything passed in overal report ;-) and problems in build “Fish 0.1” in a report for particular Build. But he can change nothing.2. Overall structureThere are three cornerstones: Product, Test Plan and User. All other data are relations or attributes for this base. First, definition of a couple of terms that are used throughout the documentation.2.1 Products and Test PlansProduct: A product is something that will exist forever in TestLink. Products will undergo many different versions throughout their life times. Product includes Test Specification with Test Cases and should be sorted via Keywords.Test Plan: Test Plans are created when you'd like to execute test cases. Test plans can be made up of the test cases of one or many products. Test Plan includes Builds, Test Case Suite and Test Results.2.2 Test Case CategorizationTestLink breaks down the test case structure into three levels components, categories, and test cases. These levels are persisted throughout the application.Component: Components are the parents of categories. Each component can have many categories.Category: Categories are the parents of test cases. Each category can have many test cases.Test Case: Test cases are the fundamental piece of TestLink.Test Specification: All components, categories and test cases within Product. Test Case Suite: All components, categories and test cases within Test Plan.2.3 UsersAn User has a Role, that defines available TestLink features. See more in chapter User Administration.The next picture shows common activity according to user roles:Illustration 1: Functionality overview3. Test Specification3.1 Creating Test CasesTester must follow this structure: component, category and test case. At first you create component(s) for your product. You can fill description which can be printed then. Component includes categories. Category has the similar meaning but is second level of Test Specification and includes just Test Cases.User can also copy or move Test Cases.Test Cases has next parts:∙Title: could include either short description or abbreviation (e.g.TL-USER-LOGIN)∙Summary: should be really short; just for overview.∙Steps: describe test scenario (input actions); can also include precondition and cleanup information here.∙Expected results: describe checkpoints and expected behaviour a tested product or system.3.2 Deleting Test CasesTest cases, categories, and components may be deleted from a test plan by users with lead permissions from the "delete test cases" screen. Deleting data may be useful when first creating a test plan since there are no results. However, Deleting test cases will cause the loss of all results associated with them. Therefore, extreme caution is recommended when using this functionality.3.3 Requirements relationTest cases could be related with software/system requirements as n to n. The functionality must be enabled for a product. User can assign Test Cases and Requirements via link Assign Requirements in the main screen.4. Keywords4.1 Using keywordsKeywords were created to give users another level of depth when categorizing test cases. Keywords serve as a collection of Test cases with some attribute within a Test specification. You can use it to define e.g.∙Regression or Sanity set∙Reviewed Test cases∙Set of test cases valid for one platform4.2 Keyword CreationAt this time keywords can only be created by users with the mgt_modify_key rights. These rights are currently held only by Leaders. Once a keyword or grouping of keywords have been created users may assign them to test cases.4.3 Assigning KeywordsKeywords may be assigned to test cases either from the assign keyword screen (in batch) or via the test case management (individually).4.4 Filter by KeywordUsers have the ability to filter by Keywords for:∙Search Test Cases in Test Specification.∙Add groups of Test cases in a Test case Suite (Test plan).∙Execute test screen.5. Requirement based testing5.1 IntroductionTo proof that a system is build 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 test manager reports on the tests that are executed and the requirements that are covered. Based on this information the client and the various stakeholders decide whether a system can be transferred to the next test phase or can go live. To ensure that a system is build as specified, test managers use a combination of risk and requiremetn-based testing to ensure that a system is build as specified from the customer and stakeholders perspective. As a result, this complete testing delivers the following advantages:∙Linking risks and requirements will reveal vague or missing requirements.This is especially interesting for risks with a high priority.∙Testing can be focused on the most important parts of an information system first: covering the risks with the highest priority.∙Communicating in the same language as the client and the stakeholders.This makes it easier to report on the status of the test project. Beside that a better founded decision can be made whether to invest more in testing or take the risk.∙The risks and their priority make negotiating on the test project in times of pressure easier. What risks have to be covered within this test project and which ones can be postponed. Risk and requirement-based testing results in a better controlled test project. The communication with the client and the stakeholders improved. The test manager begins testing with risks with the highest priority. The process is streamlined and the end result is higher quality.5.2 AvailabilityThe functionality is available on product level. I.e. Administrator should enable it for a specified product (Edit Product link in Main window). Otherwise links are not shown.There are two user levels for this feature. The most of roles can view requirement but not modify. Refer to User section for more.5.3 Requirements SpecificationRequirements are bunched to one or more System/Software/User Requirement Specifications.Illustration 2: Dependencies between requirement related objectsCreate a document with Requirements:1.Click Requirements Specification in Main window. The List of RequirementSpecification window is shown.2.Press Create button to create a document.3.Adjust Title, Scope and eventually Count of Test cases. The lastparameter is used for statistics. Use only if you have a valid Requirement document but not all requirements are available at the moment in TestLink.Default value 'n/a' means that the current count of requirements in a specification is used.4.Press Create button to add data to database. You can see the title ofyour new created document in the table of List of Requirement Specification window.5.Click the title of document for next work. The Requirement Specificationwindow is shown.Each Requirement Specification has own statistics and report related to included data.All Specification could be printed via Print button in the Requirement Specification window. Administrator can define company, copyright and confident text via configuration files.5.4 RequirementsEach requirement has Title, Scope (html format) and Status. Title must not be unique and has max. 100 characters. Scope paramter is text in HTML format. Status can have vale VALID or NOT_TESTABLE. A NOT_TESTABLE requirements are not counted to metrics.Requirements could be created/modified or deleted manually via TestLink interface or imported as CSV file.5.4.1 Import requirementsTestLink support two types of CSV. The first 'simple' is composed from title and scope in each row. The second 'Export from Doors' try to detect header and chooses correct fields. Import compare titles and allow to solve conflicts. There are three ways: update, create requirements with same title and skip adding the conflicted ones).5.4.2 Requirements to Test Case relationTest cases are related with software/system requirements as * to *. I.e. you can assign more Test cases to one Requirement and more requirements could be covered by one Test Case. User can assign Requirements to Test Cases via the Assign Requirements link in the Main window.A coverage of Test Specification could be view via pressing the button Analyse in the Requirement Specification window.5.4.3 Requirement based ReportNavigate to Reports and Metrics menu. There is Requirements based Report link. Requirements in currect Requirement Specification and Test Plan are analysed for this report. All the latest result of test cases (available in Test Plan) are proceeded for each requirement. The result with the highest priority is applied for the requirement. Priority from the highest are: Failed, Blocked, Not Run and Passed.Example of requirement coverageA requirement is covered by three Test Cases. Two of them are includedin the current Test Suite. One passed and one was not tested for the Build1. Now Requirement has overall result: Not Run. Second test case was tested with Build 2 and passed. So Requirement passed too.6. Products6.1 OverviewProducts are the cornerstone of TestLink. Products are releases of your company that may change their features and functionality over time but for the most part remain the same.6.2 Creating new productsCreate a new product is admin right. You cannot create products with the same name. You can assign a color of backgroung to product for a better lucidity.Things to note when creating a new product:∙Deleting Products themselves is not recommended from the system, because the deletion of products would either orphan lots of test plan cases or lead to their deletion.∙Test Plans represent the testing of a product at a certain point of time.What this means is that All Test Plans are created from Product test cases.∙TestLink has the ability to import your data into a product. Data is read in CSVs form and is explained further in the import section.7. Test Plans7.1 Creating a new Test PlanTest plans are the basis for test case execution. Test plans are made up of test cases imported from products at a specific point of time. Test plans can only be created by leads. Test plans may be created from other test plans. This allows users to create test plans from test cases that at a desired point in time. This may be necessary when creating a test plan for a patch. In order for a user to see a test plan they must have the propper rights. Rights may be assigned (by leads) in the define User/Project Rights section. This is an important thing to remember when users tell you they can't see the project they are working on7.2 BuildsBuilds are a specific release of software. Each project in a company is most likely made up of many different builds. In TestLink execution is made up of both builds and test cases. If there are no builds created for a project the execution screen will not allow you to execute. The metrics screen will also be completely blank. Builds currently cannot be edited or deleted.7.3 Deleting TestPlansTest plans may be deleted from the main page by users with lead permissions. Deleting test plans permanently erases the test plan and all of its corresponding data (test cases, results, etc). The deleting of data is a scary prospect and should be reserved to extreme cases. TestLink also allows users to deactivate test plans so that they no longer appear as a menu option.8. Test Case Suite8.1 Adding new Test CasesTest Case Suite is set of test cases which are defined to be run within Test Plan. Test case Suite is created via Add Test Cases from Test Specification to Test Plan. Test cases are added including Steps and Expected result. So, you must use 'Update modified Test Cases' page to update test scenario (version of test case).Data from multiple products can be added into one test plan. Test Specification data can be filtered by keywords (adjusted in navigation pane).Once data has been imported into a test plan it will be marked with checkmark. If a test case has already been imported it will be ignored if it is imported again.8.2 Removing Test Cases from Test Case SuiteTest cases, categories, and components may be deleted from a test plan by users with Leader permissions from the "Remove test cases" page. Deleting data may be useful when first creating a test plan since there are no results. However, Deleting test cases will cause the loss of all results associated with them. Therefore, extreme caution is recommended when using this functionality.8.3 PriorityTestLink gives users with Leader rights the ability to assign ownership and priority to test cases. General Risk/Ownership is done at the category level. TestLink currently does not allow users to assign risk or ownership at the individual test case level.Risk levels are low, medium, high and Importance levels are 3, 2, 1. Users can rank the combinations of risk and importance (L1, L2, L3, M1, H2, M3, H1, H2, H3) as priority A,B,C.Assigning risk, importance, ownership, and priority are all optional and will default to priority B in the metrics screen.8.4 OwnershipOwnership affects both the execution and metrics screens. In the execution screen users have the ability to sort the executable test cases by the ones they have ownership of. In the main metrics screen there is a table that shows the remaining test cases by ownership. If there are no test case owners it defaults to none.A Tester can also see a metrics of own executed tests in main page if these metrics are enabled (see Installation manual).9. Test Execution9.1 GeneralTest execution is available when:1. A Test Specification is written.2. A Test Plan is created.3.Test Case Suite (for the Test Plan) is defined.4. A Build is created.5.The Test plan is assigned to testers (otherwise they cannot navigate tothis Test Plan).Select a required Test Plan in main page and navigate to the 'Execute tests' link. Left pane serves for navigation in Test Case Suite via tree menu, filtering and define a tested build.9.2 NavigationThe navigation pane consists from a 'Filter & Settings' box and a tree menu with Test Case Suite.9.2.1 Filtering Test CasesThis table allows the user to filter test cases for smart navigation before they are executed.∙Owner: Users can filter test cases by their owner. Ownership is determined at the category level, is determined by leads, and can be changed at the Assign Risk and Ownership page under metrics.∙Keyword: Users can filter test cases by keyword. Keywords are set either using the Create/Edit/Delete Test Cases or by the Assign Keywords To Multiple Cases. Keywords can only be created, edited, or deleted by leads but may be assigned to test cases by testers.∙Result: Users can filter test cases by results. Results are what happened to that test case during a particular build. Test cases can pass, fail, be blocked, or not be run.9.2.2 Define a tested buildUsers can filter test cases by builds. Builds are the basic component for how test cases are tracked. Each test case may be run once and only once per build. Builds can be created by leads using the Create New Build page.9.2.3 Tree menuThe tree menu in navigation pane includes Test Case Suite colored by results.Menu colored: By default the tree will be sorted by the results for the defined build that is chosen from the dropdown box.Example TC colored according to the buildUser selects build 2 from the dropdown box and doesn't check the "most current" check box. All test cases will be shown with their status from build 2. So, if test case 1 passed in build 2 it will be colored green.Second possibility Last result is that menu is colored according to the latest test result.Example TC colored according to the latest resultUser selects build 2 from the dropdown box and this time checks the "most current" check box. All test cases will be shown with most current status.So, if test case 1 passed in build 3, even though the user has also selected build 2, it will be colored green.9.3 Execution9.3.1 Test StatusExecution is the process of assigning a result (pass, fail, blocked) to a test case for a specific build. 'Blocked' test case is not possible to test for some reason (e.g. a problem in configuration disallows to run a tested functionality).9.3.2 Insert Test resultsTest Results screen is shown via click on an appropriate component, category or test case in navigation pane. The title shows the current build and owner. The colored bar indicate status of the test case. Yellow box includes test scenario of the test case.The indication that the test case was updated or deleted in test Specification is not supported in 1.5 version.Updated Test Case: Users will see the American flag if the original version of the test case (on the management side) has been updated. If users have the proper rights they can go to the update/delete test case page either through clicking on the test case number next to the flag or through the link on main page. It is not necessary for users to update test cases if there has been a change. They simply have the option of doing so if they wish.Deleted Test Case: Users will see the "x" symbol if the original version of the test case (on the management side) has been deleted. If users have the proper rights they can go to the update/delete test case page either through clicking on the test case number next to the "x" or through the link on main page.10. Test Reports and MetricsThe metrics pages sum up the results of execution into reports. Metrics are broken down by both individual builds and across all builds.10.1 General Test Plan MetricsThis page shows you only the most current status of a test plan. For instance, you have test case 1 which was executed in builds 1,2, and 3. Build 1 2 3 Status Pass Fail Blocked Since the most recent result of the test case is blocked the result on the "Across All Builds" page would be blocked. If a user would go and change the status of build 3 to something else or not run the current result would be fail.(in TL 1.0.4: View Project Status Across All Builds)10.2 Metrics of active BuildThis report shows the detailed results for a particular build defined in navigation pane.(in TL 1.0.4: View Status by an Individual Build)10.3 The Overall Build StatusView The Overall Build Status This report show a high level view of each build's result.10.4 Query MetricsQuery results for specific test cases based on keyword, component, owner, last result, and 1 or more builds. For example if you wanted to know if a test case has failed, passed, blocked, or has not been run in builds 2, 3, and 4 you would want to use this query functionality. Additionally you could determine if test cases assigned to a tester have been executed in a set of builds. This is important because test passes may occur over multiple builds, and multiple test passes may occur during the development cycle. This is especially handy at the end of a development cycle when you want to know if certain cases have been run over the past few builds of the product. This functionality differs from other reports which display results on a specific build, or all builds.Export to MS Excel is also available.10.5 Test ReportView Status By Individual Test Cases This report shows each test case's result for every build. An user can navigate to Test Execution screen via link for each test Status.Export to MS Excel is also available.10.6 Blocked/Failed Test CasesThese reports show all of the currently blocked or failing test cases. 10.7 Total Bugs For Each Test CaseThis report shows each test case with all of the bugs filed against it for the entire project. This metrics are available only if Bug Tracking System is connected.10.8 E-mail Test reportEmail Test Plan Info This page allows users to email the results of the entire test Plan or for a particular build. It also allows users to email the status of a component11. User Administration11.1 Account settingsEvery user on the system will also be able to edit their own information via the Account settings window (link Personal in menu bar).TestLink allows users with administrator rights to create, edit, and delete users within the system. However, TestLink does not allow administrators to view or edit user's passwords. If users forget their passwords there is link on the login screen, that will mail the user their password based upon their user name and the email address they entered.11.2 Role PermissionsTestLink is built with 6 different default permission levels built in. Changing of these rights is handled by the user administration link which is accessible by admins. These permission levels are as follows:∙Guest: A guest only has permission to view test cases and project metrics.∙Test Executor: A tester outside of the company that only has permissions to run tests allotted to them. (initially in 1.0.4 - otester)∙Test Designer: A user can fully work with Test Specification and Requirements.∙Test Analyst: A tester can view,create, edit, and delete test cases as well as execute them. Testers lack the permissions to manage test plans, manage products, create milestones, or assign rights. (initially tester, senior tester)∙Test Leader: A lead has all of the same permissions as a Tester but also gains the ability to manage test plans, assign rights, create milestones, and manage keywords∙Admininstrator: An admin has all of the same permissions as a lead but gains the ability to manage productsNote: Test plan related features needs also assign a Test Plan to be available. See Test Plan Assignment.11.2.1 User RolesThere are predefined user roles. Adminstrator gives appropriate ability to modify data within TestLink. Each user has assigned just one of these roles. If you view the table you will see rows for each of the permissions levels (guest ,tester, senior tester, leader, admin). The column next to the row holds all of the different rights levels which will be defined below. These levels have been determined as standard for the use but they are free to be edited or define a new roles (for experienced administrator). The user table contains a foreign key that points to the appropriate permission level in the rights table. RoleList of Rights Ability Guest mgt_view_tc, mgt_view_key, tp_metrics Browse data only.Test Executor tp_execute,tp_metricsExecute test only. Test Analyst tp_execute,tp_metrics, tp_create_build, mgt_view_tc,mgt_modify_tc, mgt_view_key, mgt_view_req Edit test Specification and execute tests.Test Designer tp_metrics, mgt_view_tc, mgt_modify_tc, mgt_view_key, mgt_modify_req, mgt_view_req Edit Test Specification and Requirements.Test Leader tp_execute, tp_create_build,tp_metrics, tp_planning, tp_assign_rights, mgt_view_tc, mgt_modify_tc, mgt_view_key, mgt_modify_key, mgt_view_req, mgt_modify_reqAll Test Plan right, edit test Specification and execute tests. Administrator tp_execute, tp_create_build, tp_metrics, tp_planning, tp_assign_rights, mgt_view_tc, mgt_modify_tc, mgt_view_key, mgt_modify_key, mgt_view_req, mgt_modify_req, mgt_modify_product, mgt_users Everything possible. Only this role can maintain products and users. Table 1: Role description11.2.2 Rights DefinitionsNext tables list keywords used for definition of role abilities.RightDescription mgt_view_tc Viewing Test Specification (data of component, category, and testcase)mgt_modify_tc Edit Test Specification (create,modify,delete,order, move, and copycomponents, categories, and test cases)mgt_view_keyViewing keywordsRight Descriptionmgt_modify_key Modifying keywordsmgt_modify_product Create,edit and delete productsmgt_view_req View requirementsmgt_modify_req Create,edit, associate and delete requirements Table 2: Product related RightsRight Descriptiontp_execute Ability to execute test cases (insert test results) tp_create_build Ability to create buildstp_metrics Viewing metricstp_planning create, edit, delete Test Plans, assign risk/ownership, milestones, edit Tes Case Suitetp_assign_rights Assigning the rights to view projectsTable 3: Test Plan related Rights11.3 Test Plan AssignmentUsers can see only assigned Test Plans. In order to gain test plan permissions a user with lead or admin status must give them rights through the “Define user/project rights” link under “Test Plan Management”.All users in the system will by default not have permissions to view newly created test plans (except for the test plan creator who can give themselves permissions at creation). Zero test plan permissions means that users will not see any Test Plans in the Test Plan dropdown box on main screen.There is a table with Test Plan rights (i.e. which users can see which Test plan). This table is made up of a combined user id and project id. The main page contains code which checks to see if the logged in user has the appropriate permissions (and then shows the allowed projects. It is not recommended that this be hacked with.。
第一步,项目组应当向测试管理部提出新产品申请并提交相关人员名单;测试管理部在testlink系统中新建该测试产品并加入人员。
Testlink按照产品(而非项目)的级别进行需求和测试案例的管理。
如果某个项目是为了建立一个新的产品,则需要在testlink中申请新的测试产品条目。
如果某个项目是为了优化改进已有产品,则使用已存在的测试产品条目。
如果某个项目涉及多个产品,则应首先分解项目至产品级别(为每个相关产品分别提出需求)。
注:现阶段,各产品部门并没有维护一份完整的产品系统需求说明书(即整个产品的需求全集),并在每个版本持续维护。
这样安排的目的在于,按照产品的模块和子模块分类,可以得出整个产品的需求全集。
如果今后业务部门开始维护产品级别的系统需求说明书,则testlink应当转而以项目为基础进行管理,需求模块也相应只记录每个版本改变的需求,这也更符合testlink本身的架构设计。
在新建测试产品页面,需要填写的栏位包括:•名称:测试产品名称。
如果某个产品较为复杂,也可以分解到模块级别,以该产品的每个模块作为一个测试产品•前缀:该测试产品下的测试案例的通用前缀(在测试案例建立的时候自动插入到案例标志前),前缀的格式应当为:“TC-”+测试产品简称•产品描述:对于该产品的目的,功能等方面的一个简要描述。
•增强功能:一般需要勾选的是“启用需求功能”,“启用测试优先级”。
•可用性:一个产品在新建立的时候应当勾选“活动的”,当其不再被使用,则应取消勾选“活动的”。
一般不应勾选“公共”,则只有被加入到该产品的成员才可以在测试产品下拉菜单中看到该产品;如果勾选“公共”,则所有testlink用户都可以看到。
第二步,项目经理或测试经理将初始的需求集和需求加入到需求模块中,或对现有的需求集和需求进行修改。
Testlink中的需求是按照模块(而非项目版本)安排的。
需求的树形结构应当为:产品-》模块-》子模块-》系统需求。
Testlink问题及解决方法1testlink怎么设置中文?简单的方式是设置角色的语言改成简体中文,刷新一下即可2.设置测试用例的所有者(给测试人员分派测试任务)(找不到)3.实验一需要和mantis集成吗?实验一暂时不需要和mantis集成,到实验二mantis的时候再集成4.逗号分隔值(Comma-Separated Values,CSV,有时也称为字符分隔值,因为分隔字符也可以不是逗号),其文件以纯文本形式存储表格数据(数字和文本)。
5.文档中的“产品”也就是“测试项目”6.怎样查看需求的覆盖率?点击-需求-找到具体的模块点开,在右侧显示需求7.版本管理在哪?版本管理就是构建管理8.怎样查看和保存分析结果测试报告结果-报告格式-MS word,会自动弹出保存框9.执行的时候怎样判断一个测试是通过还是失败?一个测试用例如果是只有一个步骤的话,该步骤的通过或失败可以直接判断;如果一个测试用例有多个步骤,则如果其中有任意一个步骤的执行失败的话,该测试用例的结果就是失败,只有全部步骤都通过该测试用例才是通过。
如:一个包含4步的测试用例,第2步执行结果失败了,那么该测试用例就是失败的,后2步不用再执行了。
这4步全对,该测试用例才是通过的。
简化步骤指导首先需要配置好Testlink1、创建项目:(测试项目管理-新建项目,勾选下面所有复选框)(FR)用户管理:创建用户产品设置:(测试计划在特定时间里描绘产品的测试。
这句话的意思就是说所有的测试计划需要根据产品测试用例来创建。
)这里的产品也就是项目2、创建测试需求规格、需求创建需求规格:需求-在测试产品中下拉选择对应的项目-需求规约-选中项目-点击-新建需求规约(客户端、服务器)创建需求:选中产品下的需求规格点击-创建新需求(状态、类型、需要的测试用例数)(登录、订票)3、创建测试用例创建测试集:(测试套件(Test Suites))主页-测试规约-选中产品点击-右侧新建测试集创建测试用例:选中测试集点击-创建测试用例-点击保存-创建步骤(注意每次创建一步,写完之后再接着写下一步)例如:需求关联:主页-需求-指派需求-选中测试树中的一个测试用例(左侧)-选中需求指派(包含有效需求和已指派的需求)需求-选中需求-可以查看需求覆盖情况4、为需求指派用例需求关联:主页-需求-指派需求-选中测试树中的一个测试用例(左侧)-选中需求指派(包含有效需求和已指派的需求)需求-选中需求-可以查看需求覆盖情况5、创建测试计划测试计划是执行测试用例的基础,测试计划由测试用例组成主页-测试计划管理-创建(勾选活动和公共两个复选框)创建测试里程碑:(明确每个测试阶段的开始与结束时间)-测试管理-编辑/删除里程碑版本管理(Builds/Release)(本版本叫构建管理):主页-测试计划管理-构建管理安排测试人员:测试计划管理-指派用户角色6、为计划添加用例添加测试用例到测试计划:选择当前测试计划(列表)-选择添加/删除测试用例到测试计划选择测试集(左侧)-选择用户、构建、测试用例-添加选择的测试用例(成功变色、也可删除)7、分配测试任务设置测试用例的所有者:主页-测试集-指派执行测试用例-选中左侧测试集-保存(可以指派给多人),指派给相应的人员以后,可以让该人员使用其用户名和密码登陆testlink来执行测试用例;也可以由admin来执行,例如:我们将一部分测试用例的执行任务分配给了用户chang1,我们使用chang1,密码123登陆以后,就可以执行该测试用例。
Testlink 1.9.3升级至1.9.6的完全手册Testlink 从1.9.3升级到1.9.6,性能上有所优化,也修改了原来的部分缺陷,本次升级不支持自动升级,需要手动升级。
一、更新安装环境Testlink1.9.6 要求软件环境分别为:- web-server: Apache 1.2 , 2.x- PHP 5.3- DBMS: MySQL 5.x , Postgres 8.x,9.x , MS-SQL 2005/2008如果原来的环境版本没有到位的话,需要升级,否则部署会不成功。
二、数据迁移由于数据库结构的变化,需要手动升级,升级步骤如下:1.备份TestLink 1.9.3数据库使用客户端导出SQL语句即可,存放在本地路径2.安装TestLink 1.9.4程序包安装步骤具体见:/lijun_li/archive/2012/11/29/392224.html3.导入TestLink 1.9.3数据库1.创建新的数据库用于导入备份的数据库,例如testlink196(使用客户端新建数据库的话,需注意把数据库的字符类型改为UTF-8,否则导入后会乱码)2.将备份的testlink1.9.3的数据导入新建的数据库3.使用客户端,打开新建的数据库,找出安装包中的以下SQL文件,依次执行:- 1.9.3 升级至1.9.4/5a) install/sql/alter_tables/1.9.4/<your_db>/DB.1.5/step1/db_schema_update.sqlb) install/sql/alter_tables/1.9.4/<your_db>/DB.1.5/stepZ/z_final_step.sql- 1.9.4/5 升级至1.9.6a) install/sql/alter_tables/1.9.6/<your_db>/DB.1.6/step1/db_schema_update.sqlb) install/sql/alter_tables/1.9.6/<your_db>/DB.1.6/stepZ/z_final_step.sql如果testlink原先的版本过低,请先把数据库升级至1.9.3,升级方法类似4.更新TestLink1.9.6配置文件进入新安装的TestLink1.9.6数据库配置文件,更新链接的数据库链接到testlink_196:编辑Testlink目录下的config_db.inc.php,修改’DB_NAME’的值为:testlink196保存后在浏览器访问testlink,使用之前的老用户账户登录,能成功登录进去并看到之前的测试用例和测试计划。
5.更新缺失的数据库表对比备份的TestLink 1.9.3和新安装的TestLink 1.9.6数据库表,发现还需要在testlink_new增加以下视图:last_executionslast_executions_by_platformtcversions_last_active_bare_bones执行以下SQL语句即可:CREATE VIEW /*prefix*/last_executions AS(SELECT tcversion_id,testplan_id,platform_id,build_id, MAX(id) AS idFROM /*prefix*/executionsGROUP by tcversion_id,testplan_id,platform_id,build_id);CREATE VIEW /*prefix*/last_executions_by_platform AS(SELECT E.tcversion_id,E.testplan_id,E.platform_id,MAX(E.id) AS idFROM /*prefix*/executions EJOIN /*prefix*/builds B ON B.active = 1 AND B.testplan_id = E.testplan_idGROUP by tcversion_id,testplan_id,platform_id);CREATE VIEW /*prefix*/tcversions_last_active_bare_bones AS(SELECT NHTCV.parent_id AS tcase_id, max(TCV.id) AS tcversion_idFROM /*prefix*/nodes_hierarchy NHTCVJOIN /*prefix*/tcversions TCV ON TCV.id = NHTCV.idWHERE TCV.active = 1GROUP BY NHTCV.parent_id, TCV.tc_external_id);三.缺陷关联配置Testlink1.9.6的关联缺陷系统可以在页面进行配置,而不像以前的版本,需要在源代码中进行配置,下面以关联jira为例,演示如何配置关联的jira:点击创建,输入缺陷管理系统的名称,关联类型选为jiradb(我们的缺陷管理系统为jira),使用jiradb的好处是不用单独去申请一个具备查看所有缺陷权限的账号。
点击”show configuration example“,后,下面会出现配置的例子在configuration中输入相关的配置,其中,jira的格式如下所示:<!-- Template jiradbInterface --><issuetracker><dbhost>DBhost</dbhost><dbname>dbname</dbname><dbtype>dbtype</dbtype><dbuser>dbuser</dbuser><dbpassword>dbpassword</dbpassword><uriview>http://192.168.192.44/browse/</uriview><!—说明:这里的地址是缺陷访问的地址,跟数据库地址不一样--><uricreate>http://10.10.192.44/rest/quickedit/1.0/userpreferences/create/</uricreate><!--Configure This if you want NON STANDARD BEHAIVOUR for considered issue resolved --><resolvedstatus><status><code>80</code><verbose>resolved</verbose></status><status><code>90</code><verbose>closed</verbose></status></resolvedstatus></issuetracker>依次编辑项目,关联上缺陷系统,勾选issue Tracker intergration里面的“活动的”前面的按钮,如下图所示:保存完成后,在用例执行时,可以看到缺陷的链接按钮,以及跳转至jira系统的链接,如下图所示:四.更换LOGOTestlink1.9.6 的LOGO配置和1.9.3有些差异,登录LOGO,系统登陆后左上方的LOGO,和报告里面的公司LOGO,分别用的3张图片,三张图片大小尺寸都有所差异,操作如下:第一步:根据页面尺寸,分别上传三张图片至“..\testlink196\gui\themes\default\images”例如,图片名称分别为company_logo.png、logo_login.png、logo_navbar.png第二步打开文件“config.inc.php”,搜索"Company_logo"把$tlCfg->company_logo = 'company_logo.png';$tlCfg->logo_login = 'tl-logo-transparent-25.png';$tlCfg->logo_navbar = 'tl-logo-transparent-12.5.png';修改为:$tlCfg->company_logo = 'company_logo.png';$tlCfg->logo_login = 'logo_login.png';$tlCfg->logo_navbar = 'logo_navbar.png';五.邮箱配置打开Testlink配置文件config.inc.php或custom_config.inc.php (在Testlink安装目录下),找到下面的位置。
$g_smtp_host = 'mailserver'; # SMTP server MUST BE configured (SMTP服务器地址,必须配置)# Configure using custom_config.inc.php$g_tl_admin_email = '123@'; # for problem/error notification (管理员账户的邮件地址,主要接收发生的一些问题,或错误,等信息)$g_from_email = '123@'; # email sender(发送邮件的邮件地址)$g_return_path_email = '123@';(具体用处未知,和sender保持一致即可)# Urgent = 1, Not Urgent = 5, Disable = 0$g_mail_priority = 5; (发送邮件的优先级,设为5)# Taken from mantis for phpmailer configdefine ("SMTP_SEND",2);$g_phpMailer_method = SMTP_SEND;// Configure only if SMTP server requires authentication$g_smtp_username = '123'; # user (用于发送邮件的账户的用户名)$g_smtp_password = '123456'; # password (用于发送邮件的账户的密码)按上以上说明配置完成后,Testlink即可发送邮件。