介绍
这是关键字驱动的自动化框架,适用于Robotium & Selenium框架,DFRS是datadriven for Robotium & Selenium system test framework 的缩写。
特性
- 关键词是为了熟悉为Android手机应用程序系统测试的非编码黑盒测试人员
- 关键字驱动是基于robotium(目前)和selenium (下一个阶段)系统测试框架而设计的。
- 容易设计测试用例(通过MS Excel 2003或通过Google doc的exel)
- 有效地执行测试通过Maven在多个Android智能手机
- 有效验证,比较和验证结果通过对象,属性,图像。....
- 短和精确跟踪Excel测试报告
- getCurrentButtons
- getCurrentCheckBoxes
- getCurrentDatePickers
- getCurrentEditTexts
- getCurrentGridViews
- getCurrentImageButtons
- getCurrentImageViews
- getCurrentListViews
- getCurrentProgressBars
- getCurrentRadioButtons
- getCurrentScrollViews
- getCurrentSlidingDrawers
- getCurrentSpinners
- getCurrentTimePickers
- getCurrentToggleButtons
- getCurrentViews
- getViews
- getAllOpenedActivities
- clearEditTextInx
- drag
- sendKey
- enterText
- sleep
- goBack
- goBackToActivity
- waitForActivity
- waitForDialogToClose
- waitForText
- waitForView
- scrollToSide
- scrollUpList
- scrollDownList
- scrollUp
- scrollDown
- store
- echo
- label..goto
- for..endfor
- clickOnButton
- clickOnButtonInx
- clickOnText
- clickOnRadioButton
- clickOnMenuItem
- clickOnImageButton
- clickOnImage
- clickOnCheckBox
- clickOnEditText
- clickInList
- clickOnView
- clickLongOnView
- clickLongOnTextAndPress
- clickLongOnText
- clickLongOnScreen
- clickLongInList
- pressMenuItem
- pressMenuItemPR
- setActivityOrientation
- KJscreenshot
- KJgetvalueText
- KJgetproperty
- KJcompareproperty
- KJclick
- KJsetText
- KJdataread
- store..KJgetvalueText
- if..endif
- if..waitForActivity
- if..waitForDialogToClose
- if..waitForText
- if..waitForView
- if..searchText
- if..searchEditText
- if..searchButton
- if..isRadioButtonChecked
- if..isRadioButtonCheckedInx
- if..isCheckBoxChecked
- if..isCheckBoxCheckedInx
- pinch & zoom
- report in HTML format with timing each test-case
- build the same way for Selenium frame work
- driven data from SQlite
Pros & Cons
1. Pros
- 95% saved in test effort
- 测试人员可以很容易地理解设计系统在关键字驱动测试用例,不编程测试代码
- 完全支持100%黑盒功能测试
- 测试人员可以有效地执行测试通过Maven在多个Android智能手机和视图短和精确跟踪测试报告
- 这是一个面向对象的测试方法
- 免费使用,而不是修改,在GNU许可证
2. Cons
- Just for Android phone application, not Android phone web based application
- Less keywords at current status(更少的关键词在当前状态)
- Dependency on Robotium & Selenium framework
1. 测试人员必须先做按照SetupEnvironment上的指导在本地PC开始运行测试
2. 设计测试用例,通过http://docs.google.com在EXCEL中,测试用例/测试套MS EXCEL(2003版的格式),然后把它们放在测试设备(DUT)两种方法
- Put test cases in to device(s) by manual(手册)
- Download them (defined on, e.g. URL_batch.xls) via share doc feature of http://docs.google.com
3. Plug one/multi Android mobile device(s) to test (or virtual devices), create a must-precisely-folder-name on root of external hard drive: mnt/sdcard/DCIM/DFRS
4. Create project folder to store test cases & report, by:
- In file CONFIG.xls , specify folder name, ex: with key of "project_folder", i set value of "myproject"
- Create a folder, named "myproject", inside root: mnt/sdcard/DCIM/DFRS
5. Each time when new build of system under test (SUT) project, development team will release source code to test team, then testers will run to compile DFRS to execute test cases/suites on SUT on DUT with maven as in step 11 of SetupEnvironment guide. This is needed, because:
- step 5 will deploy SUT to DUT
- step 11 will deploy DFRS engine (to test SUT) to DUT, then (11.b) run the tests that are designed on DUT
6. Tester can configure to run (#4, above) by manual (a command line) or a schedule by MS Windows schedule
7. Tester can configure to run (# 4, above) by manual (a command line) or a schedule by MS-Windows-schedule
我们处于世界软件测试的哪个位置
1. In wikipedia of software testing theory, http://en.wikipedia.org/wiki/Software_testing#System_testing, what we do is a part of automation for system test with functionality for android mobile phones
2. With CSTE certification of QAI, including the definition and theory, http://www.softwarecertifications.org/cboks/cste/te_cat1.htm, what we do are a part of automation system test with functionality for android mobile phones
3. With ISTQB certification of ISTQB institute, including the definition and theory, http://istqb.org/display/ISTQB/Foundation+Level+Documents, what we do are a part of automation system test with functionality for android mobile phones
So, you can imagine where are we...