今天尝试使用docker搭建了testlink的环境,在搜索testlink的教程时发现了一篇特别不错的外文文章,在这里记录并分享给大家,链接如下:

https://www.guru99.com/testlink-tutorial-complete-guide.html#13

还有一篇IBM给出的教程也不错:

https://www.ibm.com/developerworks/cn/opensource/os-testlink/

以下内容均为复制的文章内容:

Advantages of TestLink

  • It supports multiple projects
  • Easy export and import of test cases
  • Easy to integrate with many defect management tools
  • Automated test cases execution through XML-RPC
  • Easy filtration of test cases with version, keywords, testcase ID and version
  • Easy to assign test cases to multiple users
  • Easy to generate test plan and test reports in various formats
  • Provide credentials to multiple users and assign roles to them

Login to TestLink

Step 1 : Open the Testlink home-page and enter the login details

  1. Enter the userID – admin
  2. Enter the password
  3. Click on the login tab

Creating a Test Project

Step 1: In the main window click on Test Project Management, it will open another window

Step 2: Click on tab "create" to create a new project.

Step 3: Enter all the required fields in the window like category for test project, name of the project, prefix, description, etc. After filling all necessary details, click on tab "Create" at the end of the window.

This will create your project "Guru99" successfully.

Creating a Test Plan

Test plan holds the complete information like scope of Software testing, milestone, test suites and test cases. Once you have created a Test Project, next step is to create Test plan.

Step 1: From the home-page, click on Test Plan Management from home-page

Step 2: It will open another page, at the bottom of the page click on a tab "Create"

Step 3: Fill out all the necessary information like name, description, create from existing test plan, etc. in the open window, and click on "create tab"

Step 4: Guru 99 Test Plan is created successfully

Build Creation

Build is a specific release of software

Step 1: Click on Builds/Releases under Test Plan from the home page

Step 2: In the next window, fill all necessary details for software release and click on create to save your release

  1. Enter the title name
  2. Enter the description about the software release
  3. Mark the check-box for status- Active
  4. Mark the check-box for status- Open
  5. Choose the data of release
  6. Click on create button

Once you have a release the software it, will appear like this

Creating Testsuite

Test suite is a collection of test cases which may be testing or validating the same component. Following steps will explain how to create test suite for your project.

Step 1: Click on test specification option from the home page.

Step 2: On the right-hand side of the panel, click on the setting icon . It will display a series of test operation.

Step 3: Click on the "create" tab for the test suite

Step 4: Fill-up all the details for test-suite and click on save it tab.

  1. Enter the test suite name
  2. Enter the details about your test suite
  3. Click on save button to save the details of test-suite

You can see test suite for Guru 99 is created

Your test suite appears on the left side of the panel under folder structure tree

Creating a Testcase

Testcase holds a sequence of test steps to test a specific scenario with expected result. Below steps will explain how to create a test-case along with test steps.

Step 1: Click on the test suite folder on the left side of the panel under folder tree structure

Step 2: Click on the setting icon in the right side panel. List of test case operations will be displayed on the right side panel

Step 3: New window will open, to create test cases click on create button in test-case operations

Step 4: Enter the details in the test case specification page

Step 5: After entering the details, click on "create" button to save the details. The test-case for Guru99 is created successfully

Step 6: Click on test-case from the folder as shown above, it will open a window. Click on "create steps" button in test case. It will open a test case step editor

Step 7) It will open another window on the same page, in that window you have to enter the following details

  1. Enter the step-action for your test case
  2. Enter the details about the step action
  3. Click save it and add another step action OR click save and exit tab if there is no more test step to add

Step 8) Once you save and exit the test step, it will appear like this

Assigning test case to test plan

For test case to get execute, it should be assign to test plan. Here we will see how we can assign a test-case to test plan.

Step 1) Click on the setting icon  on the test panel. It will show the list of operations.

Step 2) Click on "Add to Test Plans"

Step 3) New window will open, search your project "Guru99"

  1. Mark the check box against your test plan
  2. Click on add button

This will add your test case to your Test Plan.

Creating Users and Assigning Roles in TestLink

Testlink provides User management and authorization features.

Below is list of default roles in Testlink and their rights -

Role Test Cases Test Metrics
Guest View View
Tester Execute View
Senior Tester Edit & Execute View
Leader & Admin Edit & Execute Edit & Execute

Step 1: From the Testlinks home-page, click on users/roles icon from the navigation bar

Step 2: Click Create

Step 3: Fill out all the users details and click the "Save" button

Here in the list we can see the users have been created

Step 4: Allotting test project role to the user,

  1. Click on "Assign Test Project Roles" tab
  2. Choose the project name
  3. Select the users role from the drop down

Writing Requirements:

Step 1: From the navigation bar select the "Requirements Link", it opens the Requirement page.

Step 2: From the requirement page, on the right side of the panel click on "create" button

Step 3: A new window will open, enter all the details like

  1. Document ID
  2. Title name
  3. Requirement description
  4. And Click "Save" button

For the type, you can choose the option from the drop-down- here we chose "User Requirement Specification"

Step 4: It should create Requirement specification and displayed on the left side panel under project "Guru99".

Step 5: Select the setting button from requirements specification home-page. It will open another window.

Step 5: Click "Create" tab under Requirement Operations.

Step 6: Fill out all the specified details and click the "Save" button

  1. Enter the document ID
  2. Enter the title name
  3. Enter the description
  4. Enter the status-whether it's in draft, rework, review, not testable, etc. Here we chose valid
  5. Enter the type – user interface, non-functional, informational, feature, etc. Here we chose use case
  6. Enter the number of test cases needed
  7. Enter "Save" button at the end

Note: To add more requirements you can mark the check-box and click save button

On the left side of the panel, we can see that requirement is added.

Assigning requirement to test-cases

In Testlink, Requirement can be connected to test cases. It is very crucial feature in order to track test coverage based on requirements. In test reports, you can verify which requirements are not covered and act on them to apend in test suites for maximum test coverage

Step 1: From test specification section open any single test case and click on requirement icon

Step 2: To assign requirements specification to test case you have to follow the following steps

  1. Scroll the drop down box to select the requirements specification
  2. Mark the requirement check box
  3. Click on "assign" tab

After clicking on "assign" tab, a window will appear stating "Assigned Requirement."

Executing a test case

In TestLink, we can run a test case and change execution status of a test case. Status of a test-case can be set to "blocked" "Passed", or "failed". Initially, it will be in "not run" status but once you have updated it, it cannot be altered to "not run" status again.

Step 1: From the navigation bar click on the "Test Execution" link. It will direct you to the Test Execution Panel.

Step 2: Pick the Test case you want to run from the left side panel

Step 3: Once you have selected the test cases, it will open a window.

Step 4: Follow the following steps

  1. Enter the notes related to test case executed
  2. Select its status

Step 5: On the same page, you have to fill similar detail about the execution of test-case. Fill the details, select the status and then click on "save execution".

Generating Test Reports

Test link supports various test report formats like

  • HTML
  • MS Word
  • MS excel
  • OpenOffice Writer
  • OpenOffice calc

Step 1: From the navigation bar, click on Test Reports option

Step 2: From the left side panel, select "Test Report" link

Step 3: To generate a report follow the following steps

  1. Mark and unmark the option you want to highlight in your test report
  2. click on your project folder

The test report will look like this

Export Test case/ Test Suite

Testlink provides the features to export test projects/test suites in your Testlink and then you can import them into another Testlink project on different server or system. In order to do that you have to follow the following step

Step 1: Choose the test case you want to export in the Test specification page

Step 2: Now on the right-hand side of the panel click on the  setting icon, it will display all the operations that can be performed on the test case.

Step 3: Click the "export" button

Step 4: It will open another window, mark the option as per requirement and click on the export tab

Following XML is generated

Importing Test case/ Test suite

Step 1: Select the Test suite folder inside which you want to import the test case

Step 2: Click on the setting icon  on the right hand-side of the panel, it will display all the operations that can be executed on the test suite/test case

Step 3: Click on the import button in the test case operations list as

Step 4: Browse and attach the xml test case file that you have exported from test link and click on upload button.

  1. Use the browse option to attach the XML test case file that you have exported from testlink
  2. Click on upload file

When you upload a file, it will open window stating import test cases

Step 5: Test case will be uploaded and displayed on the right-hand side of the panel

Summary:

In this tutorial, we have covered various aspects of TestLink- like how you can use Testlink-as a test management. It explains you step by step how to manage test plan for your project, how to create a user and assign them their roles accordingly or even how to import or export test cases to your project. Other useful features like generating reports, defining requirement, etc. is also demonstrated well in this tutorial.

testlink的使用相关推荐

  1. 【Python】实现将testlink上的用例指定格式保存至Excel,用于修改上传

    背景 前一篇博客记录的可以上传用例到testlink指定用例集的脚本,内部分享给了之后,同事希望能将testlink上原有的用例下载下来,用于下次修改上传,所有有了本文脚本. 具体实现 获取用例信息 ...

  2. TestLink学习七:TestLink测试用例Excel转换XML工具

    TestLink对于测试用例的管理来说,是蛮强大的,但是在导入导出这块,功能有点弱,本文针对测试用例的导入,转载了一个Excel转换成xml工具. 1.根据到处的测试用例xml,定义一下我的Excel ...

  3. 安装testlink时mysql_windows下安装testlink

    因为项目中一直没有使用任何测试用例管理工具,如果需要的时候都是个人写在的excle里各自保存,因为没有系统的记录当时测试方法和测试用例,每次需要再次测试已有的功能时,因为时间太长,而往往记不得当时是怎 ...

  4. Testlink在linux上安装遇到的问题

    testlink连接mysql数据库一直提示connect to database fails,mysql客户端可以直接连到该mysql数据库. 我遇到的问题和解决方案: 1.问题:我的testlin ...

  5. Jenkins+Ant+TestNG+Testlink自动化构建集成

    这段时间折腾自动化测试,之前都是在Eclipse工程里面手工执行自动化测试脚本,调用Testlink API执行测试用例,目前搭建Jenkins自动化构建测试的方式,实现持续构建,执行自动化测试. 硬 ...

  6. centos 安装testlink出现:You don't have permission to access /testlink on this server

    You don't have permission to access /testlink on this server. 解决方法: 1. 访问的文档权限不够.要755以上权限.解决方法:用命令ch ...

  7. jenkins+testlink+python搭建自动化测试环境

    一. 环境搭建 jenkins安装与配置请参考我的另一篇博文:https://www.cnblogs.com/wuxunyan/p/9592953.html testlink安装请参考博文:https ...

  8. Testlink使用心得

    Testlink是基于Web端的测试用例管理系统,主要功能是测试计划的创建.测试用例的管理和执行,并且还支持导出功能. 就我个人的喜好而言,我通常会拿同类软件作比较,然后再选择用哪个.这就不得不提到之 ...

  9. TestLink测试用例:Excel转换XML工具二实现代码

    以下是通过VBScript实现的Excel数据转换成XML格式,主要用于实现Testlink1.9.3-1.9.10的测试用例导入.代码实现如下: 根据到处的测试用例xml,定义一下我的Excel的格 ...

  10. testlink mysql配置_Testlink安装后配置修改

    1.1. config.inc.php 1.1.1. 日志路径配置 /** *  @var string Path to store logs - *for security reasons (see ...

最新文章

  1. 教你用代码奏响天空之城! (C++中发声函数Beep详解)
  2. 百度 什么是主成分分析
  3. 互联网公司IT系统架构进化之路
  4. Akka2使用探索1(Remoting)
  5. 4.1.7 文件共享
  6. 阿里基础设施技术亮相SIGCOMM 2018
  7. TCP keepalive的详解(解惑)
  8. edge浏览器什么相当于ie的中低_Microsoft Edge浏览器
  9. 这是80%的程序员都看过的python教程,你掌握了么?
  10. dj鲜生-13-类视图-使用篇
  11. 为了异常安全(swap,share_ptr)——Effecive C++
  12. mysql order by 自定义
  13. 在数据库中如果组合主键(假设为stuID和stuName)存在则更新,不存在则新增
  14. 重塑层次化索引stack
  15. 关于 Unicode 每个程序员应该知道的 5 件事
  16. RestTemplate application/octet-stream处理
  17. xss基础认证钓鱼代码收集
  18. python 基础 —— sys.path 与 sys.path.append
  19. A3Mall电商平台——测试计划
  20. CloudCompare学习记录(一)主要概念

热门文章

  1. 深度对话 | 关于区块链,关于以太坊,V 神这次又说了啥?
  2. 一周刷爆LeetCode,算法da神左神(左程云)耗时100天打造算法与数据结构基础到高级全家桶教程,直击BTAJ等一线大厂必问算法面试题真题详解 笔记
  3. BIM的真正基础是模型质量!
  4. osgEarthSamples1.1运行事例
  5. 电影中牛掰的黑客技术,看这篇文章你就够了!
  6. 保险公司主要以什么盈利【整理】
  7. 网站会员与动网论坛会员同步整合非官方方法
  8. 云炬股市学习笔记20220118
  9. 智能垃圾桶(八)——红外对管传感器(树莓派pico)
  10. bootstrap-select 插件示例