CN108959078A - A kind of end Windows automatic software test method and system - Google Patents

A kind of end Windows automatic software test method and system Download PDF

Info

Publication number
CN108959078A
CN108959078A CN201810670300.9A CN201810670300A CN108959078A CN 108959078 A CN108959078 A CN 108959078A CN 201810670300 A CN201810670300 A CN 201810670300A CN 108959078 A CN108959078 A CN 108959078A
Authority
CN
China
Prior art keywords
test
software
module
case
result
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
CN201810670300.9A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810670300.9A priority Critical patent/CN108959078A/en
Publication of CN108959078A publication Critical patent/CN108959078A/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 embodiment of the invention discloses a kind of end Windows automatic software test method and systems, comprising: obtains software information;Analog manual operation;Test case is write according to the analog manual operation;The test case is executed according to the software information;Generate test report.Test case is write by the manual operation in simulation softward test process in the present invention and tested software information is obtained by spy++ tool, the test case write is loaded into test frame, then connecting test frame with successively run test case after tested software and tested, test report is finally generated according to test result, entire test result automatic running, its every test case may be reused, and can be improved Efficiency of Software Testing.

Description

A kind of end Windows automatic software test method and system
Technical field
The present invention relates to software testing technology fields, more particularly to a kind of end Windows automatic software test method And system.
Background technique
Windows operating system is current most commonly used desktop system, and most of software, which all exists, supports windows's Version needs to test it when developer develops a windows software.
In the prior art, the automated testing method that can be used is fewer, and there are commonly QTP software, QTP software passes through The operation generation test case for treating test software on screen is recorded, executes the test case of generation later to execute test.Separately One is manual test, manual test is exactly tester by operation with mouse and keyboard software, is then recorded in test process Data execute test.
However, QTP software price is expensive, and manual test requires to repeat identical operation in each test, And accurate recording test data and as a result, testing efficiency can not be affected in operating process.
Summary of the invention
A kind of end Windows automatic software test method and system are provided in the embodiment of the present invention, it is existing to solve The low problem of testing efficiency in technology.
In order to solve the above-mentioned technical problem, the embodiment of the invention discloses following technical solutions:
First aspect present invention provides a kind of end Windows automatic software test method, comprising:
Obtain software information;
Analog manual operation;
Test case is write according to the analog manual operation;
The test case is executed according to the software information;
Generate test report.
Preferably, software information is obtained to specifically include:
Tested software window information is obtained by spy++ tool.
Preferably, analog manual operation specifically includes:
Simulation softward either on or off process;
Analog subscriber software operating process:
Analog result acquisition process.
Preferably, test case is write according to the analog manual operation to specifically include:
One test case is write to the analog manual operation of each test item.
Preferably, the test case is executed according to the software information to specifically include:
The test case is loaded onto test frame;
Run tested software;
The test frame is connect with tested software;
Successively run the test case.
Preferably, test report is generated to specifically include:
Obtain whole use-case test results;
Pass through number and test crash number according to whole use-case test result statistical tests;
Test percent of pass is calculated by number and test case total number according to test.
Preferably, institute's method further include:
Mail is called to send test report.
Preferably, the method also includes:
Setting test sart point in time.
Second aspect of the present invention provides a kind of end Windows software automated testing system, comprising: software information obtains Module, use-case write module, test module and result-generation module, and the software information obtains module, use-case writes module And result-generation module is separately connected the test module, wherein software information obtains module for obtaining tested software window Message breath;The use-case writes module for writing test case according to analog manual operation's result;Test module is for connecting Test frame and tested software simultaneously execute the test case;Result-generation module is used to generate test report according to test result It accuses.
Preferably, the system also includes timing module and mail calling modules, wherein the timing module with it is described Test module connection, for testing time point to be arranged;The mail calling module is connect with the result-generation module, for sending out Send test report.
It is used by above technical scheme as it can be seen that writing test by the manual operation in simulation softward test process in the present invention Example simultaneously obtains tested software information by spy++ tool, and the test case write is loaded into test frame, then connecting test Frame with successively run test case after tested software and tested, test report is finally generated according to test result, it is entire to survey Test result automatic running, every test case may be reused, and can be improved Efficiency of Software Testing.
In addition, testing time point can also be arranged in the embodiment of the present invention, realization is tested automatically in specific time, is saved The testing time is saved.
Detailed description of the invention
It is illustrated more clearly that the embodiment of the present invention or technical solution in the prior art, it below will be to embodiment or existing Attached drawing needed in technical description is briefly described, it should be apparent that, for those of ordinary skills, Without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of end Windows automatic software test method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of test example executing method provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of test report generation method provided in an embodiment of the present invention;
Fig. 4 is the flow diagram of the another kind end Windows provided in an embodiment of the present invention automatic software test method;
Fig. 5 is the flow diagram of another end Windows automatic software test method provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of the end Windows software automated testing system provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of the another kind end Windows provided in an embodiment of the present invention automatic software test method.
Specific embodiment
Technical solution in order to enable those skilled in the art to better understand the present invention, below in conjunction with of the invention real The attached drawing in example is applied, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described implementation Example is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, this field is common Technical staff's every other embodiment obtained without making creative work, all should belong to protection of the present invention Range.
It is that a kind of process of end Windows automatic software test method provided in an embodiment of the present invention is illustrated referring to Fig. 1 Figure, as shown in Figure 1, the end Windows provided in an embodiment of the present invention automatic software test method, comprising:
S10: software information is obtained.
Software information includes the window information of tested software, is obtained by spy++ tool, and software information further includes software Information, progress information and thread information are used for subsequent test.
S20: analog manual operation.
Analog manual operation simulates manual testing's process, is not needing to survey with manual testing's different places It tries software and carries out concrete operations, but determine the mouse and keyboard operation process in test process by simulated operation.It simulated Simulation softward either on or off process, the operating process of analog subscriber software and analog result acquisition process are needed in journey, wherein Also simulation test is needed in analog result acquisition process as a result, predicting test result.
S30: test case is write according to the analog manual operation.
The required operation carried out is different when testing for each software, it is therefore desirable to by the corresponding of each test item Operation is written as a test case, therefore to be simulated one by one to each test item when carrying out analog manual operation, every mould Intend a test item and just carries out writing for a test case.
S40: the test case is executed according to the software information.
The test case of whole test items can start to be tested after the completion of writing, and be the embodiment of the present invention referring to fig. 2 The flow diagram of the test example executing method of offer, as shown in Fig. 2, executing the test case according to the software information It specifically includes:
S41: the test case is loaded onto test frame.
The execution of test must be completed by test frame, and therefore, the test case after the completion of writing needs whole It is loaded onto test frame, because the testing sequence for each test item does not require, therefore for the loading sequence of test case Also it does not require, test frame can carry out automatic identification to test case.
S42: operation tested software.
Software test is that the process of sequence of operations is carried out to software, it is therefore necessary to guarantee that tested software is in operation shape State, the operation of software are realized by obtaining the place path of software.
S43: the test frame is connect with tested software.
Because tested software and test frame are two mutually independent systems, in order to realize through test frame to tested Software carry out test tested software and test frame must be attached, need to obtain when being attached tested software into Journey information carries out the connection between tested software and test frame by the progress information.
S44: the test case is successively run.
After connection between tested software and test frame is put up test frame can automatic implementation of test cases to tested Software is tested.
S50: test report is generated.
It is the flow diagram of test report generation method provided in an embodiment of the present invention referring to Fig. 3, as shown in figure 3, raw It is specifically included at test report:
S51: whole use-case test result are obtained
S52: pass through number and test crash number according to whole use-case test result statistical tests.
S53: test percent of pass is calculated by number and test case total number according to test.
Test report includes the test case of this time test, wherein it is particularly important to test percent of pass, test percent of pass It is calculated by the test got by number and test case total number, for testing whether by simulate artificial behaviour Prediction result during work is standard, tests and passes through if test result is consistent with prediction result, surveys if inconsistent Examination failure.
Referring to fig. 4, show for the process of the another kind end Windows provided in an embodiment of the present invention automatic software test method It is intended to, as shown in figure 4, institute's method further include:
S60: mail is called to send test report.
The software in some Windows system is tested when software test, but for point of test result Analysis may be separately to carry out to Windows system, therefore the test result after the completion of test needs in the form of test report Analysis personnel are sent to by mail.
Referring to Fig. 5, show for the process of another end Windows automatic software test method provided in an embodiment of the present invention It is intended to, as shown in figure 5, the method also includes:
S70: setting test sart point in time.
More for some tested software test items, the testing time is longer, in order to save the testing time, the embodiment of the present invention In be provided with test sart point in time, test test frame at the appointed time, for example, be arranged 0 point for test start when Between point, then test frame can be tested at 0 point, and test result is sent to analysis personnel by mail, may be implemented software survey Examination carries out on one's own time, staff at work between can be obtained test result and analyze, to further increase Testing efficiency.
It is a kind of structural representation of the end Windows software automated testing system provided in an embodiment of the present invention referring to Fig. 6 Figure, as shown in fig. 6, the end Windows software automated testing system provided in an embodiment of the present invention, comprising: software information obtains Module, use-case write module, test module and result-generation module.
In order to realize the end Windows provided in an embodiment of the present invention automatic software test method, the present invention also provides A kind of end Windows software automated testing system.
The software information acquisition module, use-case writes module and result-generation module is separately connected the test mould Block, wherein software information obtains module for obtaining tested software window information;The use-case writes module for according to simulation Manual operation result writes test case;Test module is for connecting test frame and tested software and executes the test use Example;Result-generation module is used to generate test report according to test result.
Referring to Fig. 7, show for the structure of the another kind end Windows provided in an embodiment of the present invention automatic software test method Be intended to, as shown in fig. 7, the system also includes timing module and mail calling modules, wherein the timing module with it is described Test module connection, for testing time point to be arranged;The mail calling module is connect with the result-generation module, for sending out Send test report.
Test case is write by the manual operation in simulation softward test process in the present invention and is obtained by spy++ tool Take tested software information, the test case write is loaded into test frame, then after connecting test frame and tested software according to Secondary operation test case is tested, and finally generates test report according to test result, and entire test result automatic running is every Test case may be reused, and can be improved Efficiency of Software Testing.
The above is only a specific embodiment of the invention, is made skilled artisans appreciate that or realizing this hair It is bright.Various modifications to these embodiments will be apparent to one skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (10)

1. a kind of end Windows automatic software test method characterized by comprising
Obtain software information;
Analog manual operation;
Test case is write according to the analog manual operation;
The test case is executed according to the software information;
Generate test report.
2. the end Windows according to claim 1 automatic software test method, which is characterized in that obtain software information It specifically includes:
Tested software window information is obtained by spy++ tool.
3. the end Windows according to claim 1 automatic software test method, which is characterized in that analog manual operation It specifically includes:
Simulation softward either on or off process;
Analog subscriber software operating process:
Analog result acquisition process.
4. the end Windows according to claim 1 automatic software test method, which is characterized in that according to the simulation Manual operation is write test case and is specifically included:
One test case is write to the analog manual operation of each test item.
5. the end Windows according to claim 1 automatic software test method, which is characterized in that according to the software Information executes the test case and specifically includes:
The test case is loaded onto test frame;
Run tested software;
The test frame is connect with tested software;
Successively run the test case.
6. the end Windows according to claim 1 automatic software test method, which is characterized in that generate test report It specifically includes:
Obtain whole use-case test results;
Pass through number and test crash number according to whole use-case test result statistical tests;
Test percent of pass is calculated by number and test case total number according to test.
7. -6 any end Windows automatic software test method according to claim 1, which is characterized in that institute's method Further include:
Mail is called to send test report.
8. -6 any end Windows automatic software test method according to claim 1, which is characterized in that the side Method further include:
Setting test sart point in time.
9. a kind of end Windows software automated testing system characterized by comprising software information obtains module, use-case is compiled Writing module, test module and result-generation module, the software information obtains module, use-case writes module and result generates Module is separately connected the test module, wherein software information obtains module for obtaining tested software window information;The use Example writes module for writing test case according to analog manual operation's result;Test module is for connecting test frame and is tested Software simultaneously executes the test case;Result-generation module is used to generate test report according to test result.
10. the end Windows software automated testing system according to claim 9, which is characterized in that the system is also wrapped It includes: timing module and mail calling module, wherein the timing module is connect with the test module, when for test to be arranged Between point;The mail calling module is connect with the result-generation module, for sending test report.
CN201810670300.9A 2018-06-26 2018-06-26 A kind of end Windows automatic software test method and system Pending CN108959078A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810670300.9A CN108959078A (en) 2018-06-26 2018-06-26 A kind of end Windows automatic software test method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810670300.9A CN108959078A (en) 2018-06-26 2018-06-26 A kind of end Windows automatic software test method and system

Publications (1)

Publication Number Publication Date
CN108959078A true CN108959078A (en) 2018-12-07

Family

ID=64486711

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810670300.9A Pending CN108959078A (en) 2018-06-26 2018-06-26 A kind of end Windows automatic software test method and system

Country Status (1)

Country Link
CN (1) CN108959078A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112181811A (en) * 2020-09-14 2021-01-05 麒麟软件有限公司 Application stability testing method
CN112241372A (en) * 2020-10-22 2021-01-19 北京字节跳动网络技术有限公司 Terminal testing method and device and electronic equipment
CN112543478A (en) * 2020-12-04 2021-03-23 深圳市康冠商用科技有限公司 WiFi module automatic test method and device, computer equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662828A (en) * 2012-03-14 2012-09-12 浪潮(北京)电子信息产业有限公司 A method and device for achieving software automatic testing
CN104731698A (en) * 2013-12-20 2015-06-24 深圳中兴力维技术有限公司 Abnormal test case automatic generation processing method and device based on automatic tests

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662828A (en) * 2012-03-14 2012-09-12 浪潮(北京)电子信息产业有限公司 A method and device for achieving software automatic testing
CN104731698A (en) * 2013-12-20 2015-06-24 深圳中兴力维技术有限公司 Abnormal test case automatic generation processing method and device based on automatic tests

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
周礼仁: "Web自动化测试用例编写辅助工具的设计与实现", 《万方数据服务平台》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112181811A (en) * 2020-09-14 2021-01-05 麒麟软件有限公司 Application stability testing method
CN112181811B (en) * 2020-09-14 2024-05-10 麒麟软件有限公司 Application stability testing method
CN112241372A (en) * 2020-10-22 2021-01-19 北京字节跳动网络技术有限公司 Terminal testing method and device and electronic equipment
CN112543478A (en) * 2020-12-04 2021-03-23 深圳市康冠商用科技有限公司 WiFi module automatic test method and device, computer equipment and storage medium
CN112543478B (en) * 2020-12-04 2023-06-06 深圳市康冠商用科技有限公司 WiFi module automatic test method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US20210011840A1 (en) Software testing method, system, apparatus, device medium, and computer program product
Sharma Quantitative analysis of automation and manual testing
Baker et al. Model-driven engineering in a large industrial context—Motorola case study
US8584083B2 (en) Software application recreation
US9465718B2 (en) Filter generation for load testing managed environments
CN110716870B (en) Automatic service testing method and device
US7895575B2 (en) Apparatus and method for generating test driver
CN108959078A (en) A kind of end Windows automatic software test method and system
CN115656792B (en) Test method and test platform for chip testability design
CN111382055B (en) Automatic unit testing method and device based on unified description language
CN107391333A (en) A kind of OSD disk failures method of testing and system
CN112131116A (en) Automatic regression testing method for embedded software
US10853051B2 (en) Automated candidate repair patch generation
Malik Software testing: Essential phase of sdlc and a comparative study of software testing techniques
Kaner Architectures of test automation
US20140281719A1 (en) Explaining excluding a test from a test suite
CN107122218A (en) A kind of software development methodology and system
US20130311962A1 (en) Instruction-by-instruction checking on acceleration platforms
CN105653445A (en) Implementation method capable of meeting DO-178C test result
Akin et al. Transitioning from manual to automated software regression testing: Experience from the banking domain
CN112052181A (en) Embedded software automatic test system based on software engineering
CN112416807A (en) System and method for analyzing and correlating test case results
CN112380118A (en) Unit testing method, unit testing device, medium and electronic equipment
El-Kharashy et al. A novel assertions-based code coverage automatic cad tool
Oviedo Software Reliability in a DevOps Continuous Integration Environment

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181207