全部博文(18)
分类: LINUX
2015-12-02 14:35:12
手动测试过程中,有Test
Case(Test Environment,Test Data,Test Steps, Expected Result), Test Suite的概念;软件开发过程上有面向对象的概念(即继承、封装,多态),做自动化测试开发需要具备测试人员的基础知识及程序员的思想。
1. Test Case - 包含测试数据,一系列的操作步骤及期望值。
***Test
Cases***
My Test [Documentation] Example test
Log ${MESSAGE}
Another Test
Should Be Equal ${MESSAGE} Hello, world!
My Test/Another Test 是Test Case的名字
Log/Should Be Equal - 是Action(Keywords)
${Message}/Hello, world - 是期望值(可以是变量也可以是常量)
2. 多个Test Cases可以放在同一个文件中,称为test case file。
Table name |
Used for |
Setting table |
1) Importing , and 2) Defining metadata for |
Variable table |
Defining |
Test case table |
from available keywords |
Keyword table |
from existing lower-level keywords |
***Settings***
Library OperatingSystem
***Variables***
${MESSAGE} Hello, world!
***Test Cases***
My Test [Documentation] Example test
Log ${MESSAGE}
My Keyword /tmp
Another Test
Should Be Equal ${MESSAGE} Hello, world!
***Keywords***
My Keyword [Arguments] ${path}
Directory Should Exist ${path}
3. Test Suite - A test suite created from a directory can have similar settings
as a suite created from a test case file。
Table name |
Used for |
Setting table |
1) Importing , and 2) Defining metadata for |
Variable table |
Defining |
Keyword table |
from existing lower-level keywords |
***Settings***
Library OperatingSystem
Suite Setup Start Selenium Server
Force Tags example
***Variables***
${MESSAGE} Hello, world!
***Keywords***
My Keyword [Arguments] ${path}
Directory Should Exist ${path}