CN107066376A - A kind of automatic test verification method tested for GUI - Google Patents

A kind of automatic test verification method tested for GUI Download PDF

Info

Publication number
CN107066376A
CN107066376A CN201611158830.2A CN201611158830A CN107066376A CN 107066376 A CN107066376 A CN 107066376A CN 201611158830 A CN201611158830 A CN 201611158830A CN 107066376 A CN107066376 A CN 107066376A
Authority
CN
China
Prior art keywords
test
sectional drawing
module
script
automatic
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
CN201611158830.2A
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.)
No 4 General Design Department Of No 4 Academy Of China Aerospace Science & Industry Corp
Original Assignee
No 4 General Design Department Of No 4 Academy Of China Aerospace Science & Industry Corp
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 No 4 General Design Department Of No 4 Academy Of China Aerospace Science & Industry Corp filed Critical No 4 General Design Department Of No 4 Academy Of China Aerospace Science & Industry Corp
Priority to CN201611158830.2A priority Critical patent/CN107066376A/en
Publication of CN107066376A publication Critical patent/CN107066376A/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/3672Test management
    • G06F11/3692Test management for test results analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of automatic test verification method tested for GUI, module (1) is write by test script by building, testing execution module (2), automatization test system that test sectional drawing processing module (3) and test result output module (4) are constituted is completed, this method works out automatized script, perform script, by the automatic sectional drawing of test result, test result sectional drawing is converted into cryptographic Hash one by one using hash function, obtained actual test result cryptographic Hash is compared with expected result cryptographic Hash, draw test result, present method solves test item covering during previous methods GUI tests is few, script compilation amount is big, testing efficiency is low, test problem follows the trail of difficult and non-intuitive problem, automatic test efficiency greatly improved, it is easy to trace test problem simultaneously.

Description

A kind of automatic test verification method tested for GUI
Technical field
It is particularly a kind of to be tested for the GUI automatic tests tested the present invention relates to a kind of automatic test verification method Card method.
Background technology
Software test is an important step of raising and guarantee software quality, particularly black in software test procedure In box test, many repetitive works are there are, also cause the low of testing efficiency.With the continuous hair of software testing technology Exhibition and raising, in each stage of software test procedure, people introduce various testing tools, according to the pre- devise a stratagem of Test Engineer Draw the behavioral test artificially driven be converted into machine execution a kind of process, it can complete many craft can not complete or Some test jobs being difficult to, save manpower, time or hardware resource, strengthen Test coverage, improve testing efficiency and soft Part quality.
Traditional automated testing method, by working out automatized script, perform script, it becomes possible to automatically enter to software Row test, obtained actual result is compared with expected result, test result is drawn.But enter using conventional automated method of testing When row GUI (Graphical User Interface, graphic user interface) is tested, it is difficult to neatly obtain interface control, one A little test items can not be covered, and those can do the test item of automatic test, due to frequently to obtain bottom most software interface code, Script edit amount is big, testing efficiency is low, in addition, test result only show by whether, when test not by when, test problem is chased after Track is difficult, not directly perceived.
The content of the invention
Present invention aims at a kind of automatic test verification method tested for GUI is provided, previous methods GUI is solved Test item covering is less during test, script compilation amount is big, testing efficiency is low, test problem follows the trail of difficult and non-intuitive problem.
A kind of concretely comprising the following steps for the GUI automatic test verification methods tested:
The first step builds automatization test system
Automatization test system, including:Test script write module, testing execution module, test sectional drawing processing module and Test result output module.
The function that test script writes module is:For the writing of automatic test script, the input of test case.
The function of testing execution module is:Automatic test for measurand is performed, and performs automatic test script, By test result sectional drawing, and preserve.
The function of test sectional drawing processing module is:For by test result sectional drawing, being converted one by one using hash function, Corresponding cryptographic Hash is formed, and the cryptographic Hash of each test item is submitted into test result output module.
The function of test result output module is:Cryptographic Hash and the cryptographic Hash of expected result for actual test to be gone out are entered Row is compared one by one, forms test result, and generate test report.
Second step test script writes module and writes test script
Test script writes module input test use-case, writes the automatic test script of test case, and is saved in this Ground.Test case is corresponded with automatic test script.
3rd step testing execution module performs actual test
Testing execution module performs actual test task, and automatic test script is performed in measurand, one is often performed Bar test script, automatically generates a test sectional drawing, and automatic with test case name nominating test sectional drawing, when a test is used Example corresponds to multiple sectional drawings, and each sectional drawing title directly adds sequence number name on the basis of test case name, and sequence number is generated by sectional drawing Sequencing.Test result sectional drawing is saved in locally simultaneously.
4th step test sectional drawing processing module handles test result sectional drawing
Test sectional drawing processing module is converted test result sectional drawing using hash function one by one, forms corresponding Hash Value, and the cryptographic Hash of each test item is submitted into test result output module.
5th step test result output module outputs test result
The cryptographic Hash and the cryptographic Hash of expected result that test result output module goes out actual test are compared one by one, shape Into test result, and generate test report.
So far, the automatic test checking tested for GUI is completed.
A kind of automatic test verification method tested for GUI of the present invention, by working out automatized script, holds This is traveled far and wide, by the automatic sectional drawing of test result, test result sectional drawing cryptographic Hash is converted into one by one using hash function, by what is obtained Actual test result cryptographic Hash is compared with expected result cryptographic Hash, draws test result, improves automatic test efficiency, is solved It is difficult and not directly perceived that test item covering is less when previous methods GUI is tested, script compilation amount is big, testing efficiency is low, test problem is followed the trail of The problem of.
Brief description of the drawings
Automatization test system schematic diagram described in a kind of automatic test verification methods tested for GUI of Fig. 1.
1. test script writes the test result of 2. testing execution module of module, 3. test sectional drawing processing module 4. output mould Block
Embodiment
A kind of concretely comprising the following steps for the GUI automatic test verification methods tested:
The first step builds automatization test system
Automatization test system, including:Test script writes module 1, testing execution module 2, test sectional drawing processing module 3 With test result output module 4.
The function that test script writes module 1 is:For the writing of automatic test script, the input of test case.
The function of testing execution module 2 is:Automatic test for measurand is performed, and performs automatic test pin This, by test result sectional drawing, and preserves.
The function of test sectional drawing processing module 3 is:For by test result sectional drawing, being turned one by one using hash function Change, form corresponding cryptographic Hash, and the cryptographic Hash of each test item is submitted into test result output module 4.
The function of test result output module 4 is:For the cryptographic Hash and the cryptographic Hash of expected result for going out actual test Compared one by one, form test result, and generate test report.
Second step test script writes module 1 and writes test script
Test script writes the input test use-case of module 1, writes the automatic test script of test case, and is saved in this Ground.Test case is corresponded with automatic test script.
3rd step testing execution module 2 performs actual test
Testing execution module 2 performs actual test task, and automatic test script is performed in measurand, one is often performed Bar test script, automatically generates a test sectional drawing, and automatic with test case name nominating test sectional drawing, when a test is used Example corresponds to multiple sectional drawings, and each sectional drawing title directly adds sequence number name on the basis of test case name, and sequence number is generated by sectional drawing Sequencing.Test result sectional drawing is saved in locally simultaneously.
4th step test sectional drawing processing module 3 handles test result sectional drawing
Test sectional drawing processing module 3 is converted test result sectional drawing using hash function one by one, forms corresponding breathe out Uncommon value, and the cryptographic Hash of each test item is submitted into test result output module 4.
5th step test result output module 4 outputs test result
The cryptographic Hash and the cryptographic Hash of expected result that test result output module 4 goes out actual test are compared one by one, Test result is formed, and generates test report.
So far, the automatic test checking tested for GUI is completed.

Claims (1)

1. a kind of automatic test verification method tested for GUI, it is characterised in that concretely comprise the following steps:
The first step builds automatization test system
Automatization test system, including:Test script writes module (1), testing execution module (2), test sectional drawing processing module And test result output module (4) (3);
The function that test script writes module (1) is:For the writing of automatic test script, the input of test case;
The function of testing execution module (2) is:Automatic test for measurand is performed, and performs automatic test script, By test result sectional drawing, and preserve;
The function of test sectional drawing processing module (3) is:For by test result sectional drawing, being converted one by one using hash function, Corresponding cryptographic Hash is formed, and the cryptographic Hash of each test item is submitted into test result output module (4);
The function of test result output module (4) is:Cryptographic Hash and the cryptographic Hash of expected result for actual test to be gone out are entered Row is compared one by one, forms test result, and generate test report;
Second step test script writes module (1) and writes test script
Test script writes module (1) input test use-case, writes the automatic test script of test case, and is saved in this Ground;Test case is corresponded with automatic test script;
3rd step testing execution module (2) performs actual test
Testing execution module (2) performs actual test task, and automatic test script is performed in measurand, often performs one Test script, automatically generates a test sectional drawing, and automatic with test case name nominating test sectional drawing, when a test case Multiple sectional drawings of correspondence, each sectional drawing title directly adds sequence number name on the basis of test case name, and sequence number presses the elder generation that sectional drawing is generated Afterwards sequentially;Test result sectional drawing is saved in locally simultaneously;
4th step test sectional drawing processing module (3) handles test result sectional drawing
Test sectional drawing processing module (3) is converted test result sectional drawing using hash function one by one, forms corresponding Hash Value, and the cryptographic Hash of each test item is submitted into test result output module (4);
5th step test result output module (4) outputs test result
The cryptographic Hash and the cryptographic Hash of expected result that test result output module (4) goes out actual test are compared one by one, shape Into test result, and generate test report;
So far, the automatic test checking tested for GUI is completed.
CN201611158830.2A 2016-12-15 2016-12-15 A kind of automatic test verification method tested for GUI Pending CN107066376A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611158830.2A CN107066376A (en) 2016-12-15 2016-12-15 A kind of automatic test verification method tested for GUI

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611158830.2A CN107066376A (en) 2016-12-15 2016-12-15 A kind of automatic test verification method tested for GUI

Publications (1)

Publication Number Publication Date
CN107066376A true CN107066376A (en) 2017-08-18

Family

ID=59619316

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611158830.2A Pending CN107066376A (en) 2016-12-15 2016-12-15 A kind of automatic test verification method tested for GUI

Country Status (1)

Country Link
CN (1) CN107066376A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109299017A (en) * 2018-11-16 2019-02-01 郑州云海信息技术有限公司 The method and system of test script frame are automatically generated based on test case document
CN109359032A (en) * 2018-09-05 2019-02-19 Oppo(重庆)智能科技有限公司 Test data collection method, device, system and electronic equipment
CN109783379A (en) * 2019-01-03 2019-05-21 广州云测信息技术有限公司 Script execution method of specifying error and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070061641A1 (en) * 2005-08-19 2007-03-15 Yoon Seok J Apparatus and method for generating test driver
CN101996131A (en) * 2009-08-19 2011-03-30 航天信息股份有限公司 Automatic test method and automatic test platform for graphic user interface (GUI) based on x extensive makeup language (XML) packaging key word
CN104391797A (en) * 2014-12-09 2015-03-04 北京奇虎科技有限公司 GUI (graphical user interface) widget identification method and device
CN104978270A (en) * 2015-07-03 2015-10-14 上海触乐信息科技有限公司 Automatic software testing method and apparatus
CN106161134A (en) * 2015-04-21 2016-11-23 腾讯科技(深圳)有限公司 Mobile terminal automation testing method, device and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070061641A1 (en) * 2005-08-19 2007-03-15 Yoon Seok J Apparatus and method for generating test driver
CN101996131A (en) * 2009-08-19 2011-03-30 航天信息股份有限公司 Automatic test method and automatic test platform for graphic user interface (GUI) based on x extensive makeup language (XML) packaging key word
CN104391797A (en) * 2014-12-09 2015-03-04 北京奇虎科技有限公司 GUI (graphical user interface) widget identification method and device
CN106161134A (en) * 2015-04-21 2016-11-23 腾讯科技(深圳)有限公司 Mobile terminal automation testing method, device and mobile terminal
CN104978270A (en) * 2015-07-03 2015-10-14 上海触乐信息科技有限公司 Automatic software testing method and apparatus

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109359032A (en) * 2018-09-05 2019-02-19 Oppo(重庆)智能科技有限公司 Test data collection method, device, system and electronic equipment
CN109359032B (en) * 2018-09-05 2022-03-22 Oppo(重庆)智能科技有限公司 Test data collection method, device and system and electronic equipment
CN109299017A (en) * 2018-11-16 2019-02-01 郑州云海信息技术有限公司 The method and system of test script frame are automatically generated based on test case document
CN109783379A (en) * 2019-01-03 2019-05-21 广州云测信息技术有限公司 Script execution method of specifying error and device

Similar Documents

Publication Publication Date Title
US9141521B2 (en) Method and apparatus for automatically generating a test script for a graphical user interface
CN107203473A (en) The automatization test system and method for automatic expansion interface test case
US20170228309A1 (en) System and method for equivalence class analysis-based automated requirements-based test case generation
CN106446412B (en) Model-based test method for avionics system
CN105760296B (en) Automatic test control method, device and terminal
JP2007012003A (en) System for providing development environment of feature-oriented software product line
CN103235759A (en) Method and device for generating test cases
CN111125052B (en) Big data intelligent modeling system and method based on dynamic metadata
CN107066376A (en) A kind of automatic test verification method tested for GUI
US9378315B1 (en) Method for semiconductor process corner sweep simulation based on value selection function
CN105488089A (en) Automatic generation method and system of quality evaluation report
CN110673842A (en) Visual programming method and system, storage medium and equipment
CN105718641A (en) Method for establishing CAE two-dimensional grids in batches
CN111143188A (en) Method and equipment for automatically testing application
CN105279092A (en) Software testing method and apparatus
CN115268910A (en) Data visualization model construction method based on multiple Excel sublists
CN106557881B (en) Business process system construction method based on business activity execution sequence
CN107977312B (en) Software system test verification method based on complex interface time sequence
CN110673874B (en) Method, storage medium, and apparatus for changing configuration of wizard programming software
JP2008198103A (en) State transition diagram preparing device and state transition diagram preparing method
CN105045698A (en) Method for analyzing chip verification progress by using MATPLOTLIB of PYTHON
CN113505283B (en) Screening method and system for test data
CN112347723B (en) Layout-based ROM code extraction verification method and device
CN112906344B (en) Method for extracting simulation information on chip in real time
CN109684615B (en) Pedestrian collision test report generation method and device

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170818