CN109471788A - A kind of domestic operating system software automated testing method and system - Google Patents

A kind of domestic operating system software automated testing method and system Download PDF

Info

Publication number
CN109471788A
CN109471788A CN201711471437.3A CN201711471437A CN109471788A CN 109471788 A CN109471788 A CN 109471788A CN 201711471437 A CN201711471437 A CN 201711471437A CN 109471788 A CN109471788 A CN 109471788A
Authority
CN
China
Prior art keywords
test
software
operating system
coordinate points
record
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
CN201711471437.3A
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.)
Beijing Ahtech Network Safe Technology Ltd
Original Assignee
Beijing Ahtech Network Safe Technology 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 Beijing Ahtech Network Safe Technology Ltd filed Critical Beijing Ahtech Network Safe Technology Ltd
Priority to CN201711471437.3A priority Critical patent/CN109471788A/en
Publication of CN109471788A publication Critical patent/CN109471788A/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/362Software debugging
    • G06F11/3644Software debugging by instrumenting at runtime
    • 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

Abstract

The invention proposes a kind of domestic operating system software automated testing method and systems, after user is according to specific input mode, input it is a bit of instruction (such as open XX software, click the XX button on XX software, XX software etc. is closed to the corresponding operating of XX software) after, the keyword of the behavior of user's input can be parsed, the coordinate points of the software on desktop are found, then corresponding left click, the corresponding operation such as right click are carried out according to coordinate points.By this realization, it can greatly facilitate the automatic test of the software under domestic operating system.By method provided by the present invention, according to the input of user, simulation corresponding operation is carried out to the software in operating system, is effectively saved labour turnover, the automatic test of software under domestic operating system is greatly facilitated.

Description

A kind of domestic operating system software automated testing method and system
Technical field
The present invention relates to the field of test technology more particularly to a kind of domestic operating system software automated testing method and it is System.
Background technique
With the development of domestic operating system, matched software is also more and more therewith, so under domestic operating system Software test will also get more and more attention, and the software automated testing under domestic operating system has that unlike windows More tools can choose (such as AuotIT), so being directed to domestic operating system at present, lacks mature software automation and surveys Examination technology.
Summary of the invention
In view of the above-mentioned drawbacks of the prior art, the invention proposes a kind of domestic operating system software automatic tests Method and system, after user is according to specific input mode, a bit of instruction of input (for example XX software is opened, click XX software On XX button, close XX software etc. to the corresponding operating of XX software) after, the key of the behavior of user's input can be parsed Word finds the coordinate points of the software on desktop, then carries out corresponding left click, the corresponding operation such as right click according to coordinate points.It is logical This realization is crossed, the automatic test of the software under domestic operating system can be greatly facilitated.
Specifically summary of the invention includes:
A kind of domestic operating system software automated testing method, comprising:
Dynamic reads user and inputs information;
Information variable is parsed, the movement for needing to be implemented automatic test and target application are obtained;
The starting coordinate points of lock onto target application, issue click start-up operation to coordinate points;
After target application starting, test action is executed according to test specification;
Test result is recorded, test report is generated.
Further, the record test result, specifically: the test execution of each test case is recorded as a result, note Operation log is recorded, and screenshot preservation is carried out to test interface.
A kind of domestic operating system software automatization test system, comprising:
Data obtaining module inputs information for dynamically reading user;
Variable resolution module obtains the movement for needing to be implemented automatic test and target application for parsing information variable;
Test starting module issues click start-up operation to coordinate points for the starting coordinate points of lock onto target application;Target is answered After starting, test action is executed according to test specification;
Report generation module generates test report for recording test result.
Further, the record test result, specifically: the test execution of each test case is recorded as a result, note Operation log is recorded, and screenshot preservation is carried out to test interface.
A kind of electronic equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, the processor realize the automated testing method when executing described program.
A kind of computer readable storage medium, for storing computer program, the computer program can be held by processor The row automated testing method.
The beneficial effects of the present invention are:
By method provided by the present invention, according to the input of user, the software in operating system is carried out to simulate corresponding behaviour Make, effectively saves labour turnover, greatly facilitate the automatic test of software under domestic operating system.
Detailed description of the invention
It, below will be to embodiment or the prior art in order to illustrate more clearly of the present invention or technical solution in the prior art Attached drawing needed in description is briefly described, it should be apparent that, the accompanying drawings in the following description is only in the present invention The some embodiments recorded for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of method flow diagram of domestic operating system software automatic test of the present invention;
Fig. 2 is a kind of system construction drawing of domestic operating system software automatic test of the present invention.
Specific embodiment
Technical solution in embodiment in order to enable those skilled in the art to better understand the present invention, and make of the invention Above objects, features, and advantages can be more obvious and easy to understand, makees with reference to the accompanying drawing to technical solution in the present invention further detailed Thin explanation.
The present invention gives a kind of embodiments of the method for domestic operating system software automatic test, as shown in Figure 1, packet It includes:
S101: dynamic reads user and inputs information;
S102: parsing information variable obtains the movement for needing to be implemented automatic test and target application;
S103: the starting coordinate points of lock onto target application issue click start-up operation to coordinate points;
S104: after target application starting, test action is executed according to test specification;
S105: record test result generates test report.
Preferably, the record test result, specifically: the test execution of each test case is recorded as a result, record Operation log, and screenshot preservation is carried out to test interface.
The present invention gives a kind of system embodiment of domestic operating system software automatic test, as shown in Fig. 2, packet It includes:
Data obtaining module 201 inputs information for dynamically reading user;
Variable resolution module 202 obtains the movement for needing to be implemented automatic test and target application for parsing information variable;
Test starting module 203 issues click start-up operation to coordinate points for the starting coordinate points of lock onto target application;Mesh After mark application starting, test action is executed according to test specification;
Report generation module 204 generates test report for recording test result.
Preferably, the record test result, specifically: the test execution of each test case is recorded as a result, record Operation log, and screenshot preservation is carried out to test interface.
In addition, The present invention gives a kind of computer equipment of embodiment, including memory, processor and it is stored in memory Computer program that is upper and can running on a processor when the processor executes described program, is realized in above-described embodiment certainly Dynamicization test method;It is also possible that the communication interface for memory and processor communication simultaneously;The memory may wrap Containing RAM memory, it is also possible to further include nonvolatile memory (non-volatile memory), for example, at least a disk Memory;The processor may be a central processing unit (Central Processing Unit, referred to as CPU), or It is specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC), or is matched It is set to the one or more integrated circuits for implementing the embodiment of the present invention;The memory, processor can be disposed independently, can also be with It integrates on one chip.
In order to realize above-described embodiment, the present invention gives a kind of non-transitorycomputer readable storage medium, thereon It is stored with computer program, the computer program realizes automated testing method in above-described embodiment when being executed by processor.
The embodiment of method is described in a progressive manner in this specification, for the embodiment of system, due to it It is substantially similar to embodiment of the method, so being described relatively simple, the relevent part can refer to the partial explaination of embodiments of method. The invention proposes a kind of domestic operating system software automated testing method and systems, and user is according to specific input mode Afterwards, a bit of instruction is inputted (for example to open XX software, click the XX button on XX software, close XX software etc. to XX software Corresponding operating) after, the keyword of the behavior of user's input can be parsed, finds the coordinate points of the software on desktop, then root Corresponding left click, the corresponding operation such as right click are carried out according to coordinate points.By this realization, can greatly facilitate in domestic operation system The automatic test of software under system.By method provided by the present invention, according to the input of user, to soft in operating system Part carries out simulation corresponding operation, effectively saves labour turnover, and greatly facilitates the automation of software under domestic operating system Test.
Although depicting the present invention by embodiment, it will be appreciated by the skilled addressee that the present invention there are many deformation and Variation is without departing from spirit of the invention, it is desirable to which the attached claims include these deformations and change without departing from of the invention Spirit.

Claims (6)

1. a kind of domestic operating system software automated testing method characterized by comprising
Dynamic reads user and inputs information;
Information variable is parsed, the movement for needing to be implemented automatic test and target application are obtained;
The starting coordinate points of lock onto target application, issue click start-up operation to coordinate points;
After target application starting, test action is executed according to test specification;
Test result is recorded, test report is generated.
2. the method as described in claim 1, which is characterized in that the record test result, specifically: record each test The test execution of use-case is as a result, record operation log, and carry out screenshot preservation to test interface.
3. a kind of domestic operating system software automatization test system characterized by comprising
Data obtaining module inputs information for dynamically reading user;
Variable resolution module obtains the movement for needing to be implemented automatic test and target application for parsing information variable;
Test starting module issues click start-up operation to coordinate points for the starting coordinate points of lock onto target application;Target is answered After starting, test action is executed according to test specification;
Report generation module generates test report for recording test result.
4. system as claimed in claim 3, which is characterized in that the record test result, specifically: record each test The test execution of use-case is as a result, record operation log, and carry out screenshot preservation to test interface.
5. a kind of electronic equipment including memory, processor and stores the calculating that can be run on a memory and on a processor Machine program, which is characterized in that the processor realizes that the automation as described in claim 1-2 is any is surveyed when executing described program Method for testing.
6. a kind of computer readable storage medium, for storing computer program, which is characterized in that the computer program can quilt Processor executes the automated testing method as described in claim 1-2 is any.
CN201711471437.3A 2017-12-29 2017-12-29 A kind of domestic operating system software automated testing method and system Pending CN109471788A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711471437.3A CN109471788A (en) 2017-12-29 2017-12-29 A kind of domestic operating system software automated testing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711471437.3A CN109471788A (en) 2017-12-29 2017-12-29 A kind of domestic operating system software automated testing method and system

Publications (1)

Publication Number Publication Date
CN109471788A true CN109471788A (en) 2019-03-15

Family

ID=65658449

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711471437.3A Pending CN109471788A (en) 2017-12-29 2017-12-29 A kind of domestic operating system software automated testing method and system

Country Status (1)

Country Link
CN (1) CN109471788A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103955423A (en) * 2013-12-25 2014-07-30 中软信息系统工程有限公司 Test evaluation method of domestic JVM (Java Virtual Machine)
CN104182335A (en) * 2014-05-09 2014-12-03 中国光大银行 Software testing method and device
CN104199767A (en) * 2014-08-19 2014-12-10 北京金山安全软件有限公司 Test method and device
CN104965781A (en) * 2015-06-04 2015-10-07 浪潮电子信息产业股份有限公司 Method and apparatus for generating test case
CN105403788A (en) * 2015-12-07 2016-03-16 中国电子科技集团公司第十研究所 Automatic ground testing system of spaceborne electronic equipment
CN105988924A (en) * 2015-02-10 2016-10-05 中国船舶工业综合技术经济研究院 Automatic testing method for non-intrusive type embedded software graphical user interface
CN106598869A (en) * 2016-12-26 2017-04-26 北京京东金融科技控股有限公司 Method and device for realizing automatic software testing and electronic equipment
CN106874207A (en) * 2017-02-27 2017-06-20 税友软件集团股份有限公司 The automated testing method and device of a kind of web page

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103955423A (en) * 2013-12-25 2014-07-30 中软信息系统工程有限公司 Test evaluation method of domestic JVM (Java Virtual Machine)
CN104182335A (en) * 2014-05-09 2014-12-03 中国光大银行 Software testing method and device
CN104199767A (en) * 2014-08-19 2014-12-10 北京金山安全软件有限公司 Test method and device
CN105988924A (en) * 2015-02-10 2016-10-05 中国船舶工业综合技术经济研究院 Automatic testing method for non-intrusive type embedded software graphical user interface
CN104965781A (en) * 2015-06-04 2015-10-07 浪潮电子信息产业股份有限公司 Method and apparatus for generating test case
CN105403788A (en) * 2015-12-07 2016-03-16 中国电子科技集团公司第十研究所 Automatic ground testing system of spaceborne electronic equipment
CN106598869A (en) * 2016-12-26 2017-04-26 北京京东金融科技控股有限公司 Method and device for realizing automatic software testing and electronic equipment
CN106874207A (en) * 2017-02-27 2017-06-20 税友软件集团股份有限公司 The automated testing method and device of a kind of web page

Similar Documents

Publication Publication Date Title
US9465718B2 (en) Filter generation for load testing managed environments
Kwon et al. Mantis: Automatic performance prediction for smartphone applications
US9507688B2 (en) Execution history tracing method
CN107239392B (en) Test method, test device, test terminal and storage medium
US7802233B2 (en) Automated display of trace historical data
US20120131559A1 (en) Automatic Program Partition For Targeted Replay
US8918762B2 (en) Generating test plans and test cases from service-oriented architecture and process models
US8725461B2 (en) Inferring effects of configuration on performance
Conejero et al. On the relationship of concern metrics and requirements maintainability
US9733782B2 (en) Extracting a deterministic finite-state machine model of a GUI based application
CN107479866B (en) Method for realizing application data and functions of open terminal based on reconstruction technology
KR20180096780A (en) Method and apparatus for data mining from core trace
CN113590454A (en) Test method, test device, computer equipment and storage medium
US20140365186A1 (en) System and method for load balancing for parallel computations on structured multi-block meshes in cfd
US20180203786A1 (en) Performance diagnostics via offline replay
CN114185874A (en) Big data based modeling method and device, development framework and equipment
US20130318499A1 (en) Test script generation
CN109558315A (en) The determination method, device and equipment of test scope
CN109344083B (en) Program debugging method, device and equipment and readable storage medium
US10877873B2 (en) Using historic execution data to visualize tracepoints
Jayathilake A mind map based framework for automated software log file analysis
CN108205596B (en) Method for realizing simulation function of serious accident analysis and calculation program of nuclear power plant
CN109471788A (en) A kind of domestic operating system software automated testing method and system
CN108334313A (en) Continuous integrating method, apparatus and code management system for large-scale SOC research and development
CN116841838A (en) Nonvolatile memory storage device emulation platform

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190315

WD01 Invention patent application deemed withdrawn after publication