CN106502904A - A kind of UI automated testing methods of intelligent appliance equipment application - Google Patents

A kind of UI automated testing methods of intelligent appliance equipment application Download PDF

Info

Publication number
CN106502904A
CN106502904A CN201610951463.5A CN201610951463A CN106502904A CN 106502904 A CN106502904 A CN 106502904A CN 201610951463 A CN201610951463 A CN 201610951463A CN 106502904 A CN106502904 A CN 106502904A
Authority
CN
China
Prior art keywords
test
case
suite
testing
testing procedure
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610951463.5A
Other languages
Chinese (zh)
Inventor
魏春萍
张新杰
王莉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Changhong Electric Co Ltd
Original Assignee
Sichuan Changhong Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Changhong Electric Co Ltd filed Critical Sichuan Changhong Electric Co Ltd
Priority to CN201610951463.5A priority Critical patent/CN106502904A/en
Publication of CN106502904A publication Critical patent/CN106502904A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3696Methods or tools to render software testable

Abstract

The present invention relates to application layer measuring technology, it discloses a kind of UI automated testing methods of intelligent appliance equipment application, solve the problems, such as in conventional art that smart machine application layer test operation is loaded down with trivial details, efficiency is low.The present invention includes step:A, using scripting language's testing procedure and preserve;B, when automatic test is carried out, first determine whether locally whether there is executable test suite, if it has, then select existing test suite, if it is not, newly-built test suite, is stored under the assigned catalogue of PC upper computer test platforms;Whether C, inspection test configurations complete, and executing test suite after the completion of test configurations carries out automatic test;D, test platform automatically generate test report.

Description

A kind of UI automated testing methods of intelligent appliance equipment application
Technical field
The present invention relates to application layer measuring technology, and in particular to a kind of UI automatic test sides of intelligent appliance equipment application Method.
Background technology
Internet of product more and more comes into our life, and intelligent appliance already becomes a part for our lives, But the test that the application layer method of testing of intelligent appliance is particularly the applications such as UI depends on manual test mostly, and removes Mobile phone terminal also needs to the feedback result of equipment end to support, in the iterative process of version, needs to spend substantial amounts of manpower Carry out conventional test.
Intelligent terminal's application layer test at present is substantially the manual app by operation on mobile phone come control operation Equipment, then according to the feedback result of equipment, verifies whether the function in mobile phone application meets requirement.Such test due to Need whether the instruction whether correctly response mobile phone app is provided of inspection equipment, mobile phone app correctly show the state of current device, So tester is accomplished by during operating handset app, also want the feedback result of moment monitoring device, it is not only possible to because Some problems of equipment or mobile phone terminal are ignored for wholeheartedly dual-purpose, in addition it is also necessary to put into substantial amounts of manpower.Particularly change in version During generation, in order to ensure the correctness of each released version, each version will carry out a wheel to be tested to have is greatly Identical work, the work of this repetition are even more the one kind to human resourcess and waste.
Except basic functional test, intelligent terminal's application layer test at present should also include that stress test, stability are surveyed Examination and reliability testing, iff this method of testing of manual test is used, are to meet above-mentioned all test-types , and this test operation is loaded down with trivial details, and the terminal being related to is more, the testing efficiency for substantially reducing, and cannot more ensure the matter of product Amount.So intelligent terminal's UI method of testings are ripe not enough.
Content of the invention
The technical problem to be solved is:Propose a kind of UI automatic test sides of intelligent appliance equipment application Method, solves the problems, such as in conventional art that smart machine application layer test operation is loaded down with trivial details, efficiency is low.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of UI automated testing methods of intelligent appliance equipment application, comprise the following steps:
A, using scripting language's testing procedure and preserve;
B, when automatic test is carried out, first determine whether locally whether there is executable test suite, if it has, then selecting existing Test suite, if it is not, newly-built test suite, is stored under the assigned catalogue of PC upper computer test platforms;
Whether C, inspection test configurations complete, and executing test suite after the completion of test configurations carries out automatic test;
D, test platform automatically generate test report.
As further optimizing, in step A, write testing procedure and specifically include:
The jar bags that execution can be directly invoked by UiAutomator platforms generation script are imported in mobile phone, so Afterwards using the class in python script language calling jar bags, the step of can be used for mobile phone terminal and execute is packaged into;
Computer end testing procedure can be packaged into the step that directly can be executed by SiKuli platforms using script Suddenly.
Used as further optimizing, the test suite includes test case sequence number, actuating station, testing procedure, expected result, is No execute current use-case, test-types, test loop number of times.
As further optimizing, in step B, in the test suite that writes, include multiple test cases, each test is used Example includes multiple testing procedures, and each testing procedure has corresponding actuating station;For mobile phone terminal and the testing procedure of computer end, The script name of local folders is imported in corresponding unit lattice;For the testing procedure at home appliance end, directly in corresponding unit In lattice, input equipment is discernible executes order.
Used as further optimizing, in step C, the test configurations include arranging port, baud rate and email address, and make Connect PC host computers and intelligent terminal with serial ports.
As further optimizing, in step C, when execution test suite carries out automatic test, current test is first determined whether The type of set is scrnario testing or functional test, then according to different logical relations and whether executes the pass of current use-case Key word, executes the test case in test suite successively, and each test is used in printing test set in PC upper computer test platforms Example and testing procedure implementation status;
If scrnario testing, it is coupled relation between each test case, that is, goes up after a test case runs succeeded May proceed to execute next test case, otherwise will determine that current test suite executes failure, do not continue to execute test below Use-case;
If functional test, it is that common order executes relation between each test case, i.e., no matter upper one test is used Whether example runs succeeded, and can all continue executing with test case below, until all test cases have been carried out;
In use-case implementation procedure, if mobile phone terminal or computer end testing procedure do not print after executing expectation keyword and Failure keyword, then judge that current use-case is not carried out;If mobile phone terminal or computer end testing procedure get expectation after executing closed Key word, then look for the expected value configured in test suite, in the serial printing information at home appliance end if there is then judging Current procedures run succeeded, and continue executing with next step, judge currently until all steps all successful executions of use-case are complete Use-case runs succeeded;If mobile phone terminal or computer end testing procedure get unsuccessfully keyword after executing, current walking directly is judged Failure is executed suddenly, i.e. place use-case executes failure;All test case implementation status information are preserved in the form of text document In PC host computers, refer to for test and developer after the completion of test.
As further optimizing, in step D, the test report includes the state of all test cases, percent of pass, test Temporal information and the link of corresponding intelligent terminal's journal file.
The invention has the beneficial effects as follows:Cause the application layer testing process of intelligent terminal significantly simple by the application of test suite Change, the use-case of automatization is executed and result embodiment, it is ensured that test quality, is shortened test period, is reduced human resourcess' Input.
Description of the drawings
Fig. 1 is the UI automated testing method flow charts of intelligent appliance equipment application of the present invention.
Specific embodiment
It is contemplated that proposing a kind of UI automated testing methods of intelligent appliance equipment application, intelligence in conventional art is solved Energy equipment application layer test operation is loaded down with trivial details, the problem that efficiency is low.In the present invention, intelligent terminal is by Serial Port Line and PC host computer phases Even.Operation is stored in tested mobile phone in the form of jar bags by the test of mobile phone terminal first, is then packaged using script Be stored in PC host computers execution is read for test platform;The test of computer end directly carries out operation encapsulation with script, preserves Read for test platform in PC host computers and execute.The intelligent terminal for being tested needs pre-configured test environment, starts When intelligent terminal be first in normal running environment, test environment can be waken up when needing to test, realize that mobile phone can be normal Control smart machine.When test suite is executed, intelligent terminal's actual motion information in test platform, is printed, according to pre- in test suite The expected result for first configuring carrying out the judgement of test result, so as to generate test report.
Below in conjunction with the accompanying drawings the solution of the present invention is described in further detail:
As shown in figure 1, user judges locally whether there is executable test suite first, it's not true is tested by PC host computers The newly-built testing procedure of platform and test suite, including test case sequence number, actuating station, testing procedure, expected result, whether execute work as Front use-case, test-types, test loop number of times.Then check whether configuration completes, including setting port, baud rate, mailbox Address, turns the DEBUG mouths that TTL Serial Port Lines connect intelligent terminal by a USB, opens serial ports connection and by intelligent terminal Electricity.After being successfully established connection, check whether mobile phone app, the configuration such as network complete, and whether the configuration such as computer end network is complete Into.After the completion of all configurations all, the test suite that chooses is executed using PC upper computer test platforms.After starting test, first determine whether Whether the type of current test suite is scrnario testing or functional test, then according to different logical relations and execute current The keyword of use-case, executes the test case in test suite successively, and each in printing test set in PC upper computer test platforms Individual test case and testing procedure implementation status.If scrnario testing, it is coupled relation between each test case, that is, goes up one Test case just may proceed to execute next test case after running succeeded, and otherwise will determine that current test suite executes failure, no It is further continued for executing test case below;If functional test, it is exactly that common order executes relation between each test case, I.e. no matter whether a upper test case runs succeeded, test case below can be all continued executing with, until all test cases It has been carried out.In use-case implementation procedure, if mobile phone terminal or computer end testing procedure do not print expectation keyword after executing (PASS) and failure keyword (FAIL), then judge that current use-case is not carried out;If mobile phone terminal or computer end testing procedure are held Expectation keyword is got after row, then look for the expected value configured in test suite in the serial printing information of intelligent terminal, such as Fruit occurs, then judge that current procedures run succeeded, continue executing with next step, until all steps all successful executions of use-case Complete judge that current use-case runs succeeded;If mobile phone terminal or computer end testing procedure get unsuccessfully keyword after executing, no The type information of coupling intelligent terminal is spent, directly judges that current procedures execute failure, be i.e. place use-case executes failure.All surveys Example implementation status information on probation is stored in the form of text document in PC host computers, for test and exploitation after the completion of test Personnel refer to.

Claims (7)

1. a kind of UI automated testing methods of intelligent appliance equipment application, it is characterised in that comprise the following steps:
A, using scripting language's testing procedure and preserve;
B, when automatic test is carried out, first determine whether locally whether there is executable test suite, if it has, then selecting to have tested Set, if it is not, newly-built test suite, is stored under the assigned catalogue of PC upper computer test platforms;
Whether C, inspection test configurations complete, and executing test suite after the completion of test configurations carries out automatic test;
D, test platform automatically generate test report.
2. a kind of UI automated testing methods of intelligent appliance equipment application as claimed in claim 1, it is characterised in that step In A, write testing procedure and specifically include:
The jar bags that execution can be directly invoked by UiAutomator platforms generation script are imported in mobile phone, are then made With the class in python script language calling jar bags, the step of can be used for mobile phone terminal and execute is packaged into;
Computer end testing procedure can be packaged into the step of directly can executing by SiKuli platforms using script.
3. a kind of UI automated testing methods of intelligent appliance equipment application as claimed in claim 1, it is characterised in that described Test suite includes test case sequence number, actuating station, testing procedure, expected result, whether executes current use-case, test-types, survey Examination cycle-index.
4. a kind of UI automated testing methods of intelligent appliance equipment application as claimed in claim 1, it is characterised in that step In B, in the test suite that writes, include multiple test cases, each test case includes multiple testing procedures, each test Step has corresponding actuating station;For mobile phone terminal and the testing procedure of computer end, in corresponding unit lattice, import local folders Script name;For the testing procedure at home appliance end, directly input equipment is discernible in the corresponding unit lattice executes life Order.
5. a kind of UI automated testing methods of intelligent appliance equipment application as claimed in claim 1, it is characterised in that step In C, the test configurations include arranging port, baud rate and email address, and connect PC host computers with intelligence eventually using serial ports End.
6. a kind of UI automated testing methods of intelligent appliance equipment application as claimed in claim 1, it is characterised in that step In C, when execution test suite carries out automatic test, first determine whether that the type of current test suite is that scrnario testing or function are surveyed Whether examination, then according to different logical relations and execute the keyword of current use-case, execute the test in test suite successively Use-case, and each test case and testing procedure implementation status during in PC upper computer test platforms, printing test covers;
If scrnario testing, it is coupled relation between each test case, that is, going up after a test case runs succeeded just can be after Continuous execution next one test case, otherwise will determine that current test suite executes failure, does not continue to execute test case below;
If functional test, it is that common order executes relation between each test case, i.e., no matter a upper test case is No run succeeded, can all continue executing with test case below, until all test cases have been carried out;
In use-case implementation procedure, if mobile phone terminal or computer end testing procedure do not print expectation keyword and failure after executing Keyword, then judge that current use-case is not carried out;If mobile phone terminal or computer end testing procedure get expectation keyword after executing, The expected value that in test suite configure then is looked in the serial printing information at home appliance end, if there is then judgement is current Step runs succeeded, and continues executing with next step, judges current use-case until all steps all successful executions of use-case are complete Run succeeded;If mobile phone terminal or computer end testing procedure get unsuccessfully keyword after executing, directly judge that current procedures are held Row failure, i.e. place use-case execute failure;All test case implementation status information are stored in PC in the form of text document In host computer, refer to for test and developer after the completion of test.
7. a kind of UI automated testing methods of intelligent appliance equipment application as claimed in claim 1, it is characterised in that step In D, the test report includes state, percent of pass, testing time information and the corresponding intelligent terminal of all test cases Journal file is linked.
CN201610951463.5A 2016-11-02 2016-11-02 A kind of UI automated testing methods of intelligent appliance equipment application Pending CN106502904A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610951463.5A CN106502904A (en) 2016-11-02 2016-11-02 A kind of UI automated testing methods of intelligent appliance equipment application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610951463.5A CN106502904A (en) 2016-11-02 2016-11-02 A kind of UI automated testing methods of intelligent appliance equipment application

Publications (1)

Publication Number Publication Date
CN106502904A true CN106502904A (en) 2017-03-15

Family

ID=58323042

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610951463.5A Pending CN106502904A (en) 2016-11-02 2016-11-02 A kind of UI automated testing methods of intelligent appliance equipment application

Country Status (1)

Country Link
CN (1) CN106502904A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107102945A (en) * 2017-04-10 2017-08-29 丹露成都网络技术有限公司 A kind of automated testing method of the mobile APP based on RedwoodHQ
CN107733740A (en) * 2017-10-25 2018-02-23 中国电子科技集团公司第五十四研究所 A kind of communication equipment automatic test approach based on VEE
CN107861862A (en) * 2017-06-27 2018-03-30 陆金所(上海)科技服务有限公司 UI automated testing methods, device and computer-readable recording medium
CN108021502A (en) * 2017-11-20 2018-05-11 广州品唯软件有限公司 Client traffic test method, device and computer-readable recording medium
CN108134711A (en) * 2017-11-29 2018-06-08 海尔优家智能科技(北京)有限公司 Method, analogue simulation appliance system and the storage medium tested terminal APP
CN108897693A (en) * 2018-07-09 2018-11-27 北京首汽智行科技有限公司 The software reliability test system and method for shared automobile intelligent vehicle-mounted terminal equipment
CN109271316A (en) * 2018-08-28 2019-01-25 惠州Tcl移动通信有限公司 Android device and its automated testing method, memory
CN109581188A (en) * 2018-11-27 2019-04-05 深圳创维-Rgb电子有限公司 A kind of function detecting method, smart machine and the storage medium of mainboard upper terminal
CN109783394A (en) * 2019-03-14 2019-05-21 上海大学 A kind of battery management system function test method and test hardware platform
CN110768863A (en) * 2019-10-10 2020-02-07 南京创维信息技术研究院有限公司 Scheme for simulation test of AIOT equipment
CN111651350A (en) * 2020-05-29 2020-09-11 泰康保险集团股份有限公司 Test case processing method, device and equipment and computer readable storage medium
US11133955B2 (en) 2019-08-29 2021-09-28 International Business Machines Corporation Testing automated smart device functions within smart environments
CN113760750A (en) * 2021-08-13 2021-12-07 深圳Tcl新技术有限公司 Intelligent equipment testing method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101526916A (en) * 2008-03-03 2009-09-09 阿里巴巴集团控股有限公司 Method and system for using page-based object flow verification in regression test
CN102521122A (en) * 2011-11-23 2012-06-27 北京交通大学 Dynamic scene oriented method and system for generating test sequence
CN104317719A (en) * 2014-11-11 2015-01-28 浪潮电子信息产业股份有限公司 Method for controlling software testing quality
WO2015174883A1 (en) * 2014-05-15 2015-11-19 Oracle International Corporation Test bundling and batching optimizations
CN105608001A (en) * 2015-12-16 2016-05-25 中国民生银行股份有限公司 Test method and test platform based on background system service or interface
CN105740147A (en) * 2016-01-29 2016-07-06 四川长虹电器股份有限公司 Method for automatically testing interfaces of intelligent terminals

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101526916A (en) * 2008-03-03 2009-09-09 阿里巴巴集团控股有限公司 Method and system for using page-based object flow verification in regression test
CN102521122A (en) * 2011-11-23 2012-06-27 北京交通大学 Dynamic scene oriented method and system for generating test sequence
WO2015174883A1 (en) * 2014-05-15 2015-11-19 Oracle International Corporation Test bundling and batching optimizations
US20160140033A1 (en) * 2014-05-15 2016-05-19 Oracle International Corporation Test Bundling and Batching Optimizations
CN104317719A (en) * 2014-11-11 2015-01-28 浪潮电子信息产业股份有限公司 Method for controlling software testing quality
CN105608001A (en) * 2015-12-16 2016-05-25 中国民生银行股份有限公司 Test method and test platform based on background system service or interface
CN105740147A (en) * 2016-01-29 2016-07-06 四川长虹电器股份有限公司 Method for automatically testing interfaces of intelligent terminals

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107102945A (en) * 2017-04-10 2017-08-29 丹露成都网络技术有限公司 A kind of automated testing method of the mobile APP based on RedwoodHQ
CN107861862A (en) * 2017-06-27 2018-03-30 陆金所(上海)科技服务有限公司 UI automated testing methods, device and computer-readable recording medium
CN107733740A (en) * 2017-10-25 2018-02-23 中国电子科技集团公司第五十四研究所 A kind of communication equipment automatic test approach based on VEE
CN108021502A (en) * 2017-11-20 2018-05-11 广州品唯软件有限公司 Client traffic test method, device and computer-readable recording medium
CN108134711A (en) * 2017-11-29 2018-06-08 海尔优家智能科技(北京)有限公司 Method, analogue simulation appliance system and the storage medium tested terminal APP
CN108897693A (en) * 2018-07-09 2018-11-27 北京首汽智行科技有限公司 The software reliability test system and method for shared automobile intelligent vehicle-mounted terminal equipment
CN109271316A (en) * 2018-08-28 2019-01-25 惠州Tcl移动通信有限公司 Android device and its automated testing method, memory
CN109581188A (en) * 2018-11-27 2019-04-05 深圳创维-Rgb电子有限公司 A kind of function detecting method, smart machine and the storage medium of mainboard upper terminal
CN109783394A (en) * 2019-03-14 2019-05-21 上海大学 A kind of battery management system function test method and test hardware platform
US11133955B2 (en) 2019-08-29 2021-09-28 International Business Machines Corporation Testing automated smart device functions within smart environments
CN110768863A (en) * 2019-10-10 2020-02-07 南京创维信息技术研究院有限公司 Scheme for simulation test of AIOT equipment
CN111651350A (en) * 2020-05-29 2020-09-11 泰康保险集团股份有限公司 Test case processing method, device and equipment and computer readable storage medium
CN111651350B (en) * 2020-05-29 2024-03-08 泰康保险集团股份有限公司 Test case processing method, device, equipment and computer readable storage medium
CN113760750A (en) * 2021-08-13 2021-12-07 深圳Tcl新技术有限公司 Intelligent equipment testing method and device, electronic equipment and storage medium
CN113760750B (en) * 2021-08-13 2024-04-02 深圳Tcl新技术有限公司 Intelligent device testing method and device, electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN106502904A (en) A kind of UI automated testing methods of intelligent appliance equipment application
CN103812726B (en) Automated testing method and device for data communication equipment
CN102141962B (en) Safety distributed test framework system and test method thereof
CN111124919A (en) User interface testing method, device, equipment and storage medium
CN110765018B (en) Automatic interface testing method and equipment
CN106502747A (en) A kind of method of application upgrade and mobile terminal
CN104731566B (en) Integrated Development Environment test device, method and system
CN106446166A (en) Method and device for migrating data from DB2 database to K-DB database
CN107451060A (en) A kind of across mobile terminal automated test frame system
CN107608902A (en) Routine interface method of testing and device
CN107193730A (en) A kind of interface test method of automation
CN107562623A (en) A kind of REST API automated testing methods and system
CN112073263B (en) Method, system, equipment and medium for testing and monitoring reliability of white box switch
CN104320793B (en) A kind of Automated testing method of cell phone short messages and system
CN106155885A (en) A kind of full-automatic test system and method for testing
CN108255717A (en) Interface automatic test optimization method, system, electronic equipment and storage medium
CN110134612A (en) UI test data generating method, device, equipment and readable storage medium storing program for executing
CN114064208A (en) Method and device for detecting application service state, electronic equipment and storage medium
CN109684150A (en) Store Performance Test System, test method and the emulation platform of Grain size controlling device
US7246276B2 (en) Error tolerant modular testing of services
CN113590454A (en) Test method, test device, computer equipment and storage medium
CN105740147A (en) Method for automatically testing interfaces of intelligent terminals
CN107844486B (en) Method and system for analyzing webpage problems for client
CN111176974B (en) Disaster tolerance testing method and device, computer readable medium and electronic equipment
CN106681877A (en) System and method for chip debugging and system chip

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170315