CN111930608A - Automatic testing device and method based on process control - Google Patents

Automatic testing device and method based on process control Download PDF

Info

Publication number
CN111930608A
CN111930608A CN202010618002.2A CN202010618002A CN111930608A CN 111930608 A CN111930608 A CN 111930608A CN 202010618002 A CN202010618002 A CN 202010618002A CN 111930608 A CN111930608 A CN 111930608A
Authority
CN
China
Prior art keywords
test
execution
xmind
execute
dynamic switching
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
CN202010618002.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.)
Chengdu Jiuzhou Electronic Information System Co Ltd
Original Assignee
Chengdu Jiuzhou Electronic Information System 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 Chengdu Jiuzhou Electronic Information System Co Ltd filed Critical Chengdu Jiuzhou Electronic Information System Co Ltd
Priority to CN202010618002.2A priority Critical patent/CN111930608A/en
Publication of CN111930608A publication Critical patent/CN111930608A/en
Pending legal-status Critical Current

Links

Images

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 an automatic testing device and method based on flow control, wherein the device comprises a test execution device and a test type dynamic switching device; the test execution device is used for starting a thread to execute a test program, identifying a file identifier and a test type in the execution process of the test program, and calling different driver programs to execute test activities; the test type dynamic switching device is used for dynamically loading and scheduling test modes. The method is based on XMind flow design and Python analysis technology, separates and centrally manages objects, keywords and data, and dynamically generates the test script in a mode of analyzing XMind keyword identification by Python, thereby ensuring the flexibility of flow design and the configurability of subsequent services. By the invention, a tester can quickly and efficiently design a test scene aiming at the system service flow, and the implementation difficulty and the implementation specification of the test automation are greatly reduced.

Description

Automatic testing device and method based on process control
Technical Field
The invention belongs to the technical field of data processing, and particularly relates to an automatic testing device and method based on flow control.
Background
With the continuous improvement of the complexity of system design and user use scenes, the existing testing means and method can only cope with fatigue and cannot reflect the due value of the existing testing means and method, the whole testing means and method needs to be upgraded, and limited resources are used to the utmost extent.
The current common automated testing method comprises the following steps:
1. and writing a test script by using the IDE.
2. And integrating the CI/CD environment to realize the test link in the CI/CD.
In the process of the above automatic test, there are several problems as follows:
1. all service implementations are integrated into a single script, and reusability is low.
2. The internally implemented customization method is complicated and complicated, and effective collection is not obtained.
3. Changes in the business process result in overall test failures.
4. The overall test script is difficult to hand over and maintain.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides an automatic test device and method based on flow control, which are based on XMind flow design and Python analysis technology, separate and centrally manage objects, keywords and data, and dynamically generate a test script in a mode of analyzing XMind keyword identifiers by Python, thereby ensuring the flexibility of flow design and the configurability of subsequent services, greatly reducing the implementation difficulty of test automation and implementing normative.
The purpose of the invention is realized by the following technical scheme: an automatic test device based on flow control comprises a test execution device and a test type dynamic switching device;
the test execution device is used for starting a thread to execute a test program, identifying a file identifier and a test type in the execution process of the test program, and calling different driver programs to execute test activities;
the test type dynamic switching device is used for dynamically loading and scheduling test modes.
Further, the automatic testing device also comprises a verifying device and a reporting device;
the verification device is used for verifying the execution result of the whole test process and outputting the information of the whole test process;
and the reporting device is used for collecting and analyzing the whole test result and generating a test report.
Another objective of the present invention is to provide an automated testing method based on process control, which includes the following steps:
s1, reading and analyzing the XMind file to generate a test case set;
s2, reading the test case set, identifying the test object and identifying the keyword;
s3, splicing and testing to generate an executable case;
s4, assembling and executing test cases;
and S5, integrating the CI/CD and generating a test report.
The invention has the beneficial effects that: the invention discloses an automatic test method based on flow control, which is based on XMind flow design and Python analysis technology, separates and centrally manages objects, keywords and data, and dynamically generates a test script in a mode of analyzing XMind keyword identification by Python, thereby ensuring the flexibility of flow design and the configurability of subsequent services. By the invention, a tester can quickly and efficiently design a test scene aiming at the system service flow, and the implementation difficulty and the implementation specification of the test automation are greatly reduced.
Drawings
FIG. 1 is a flow chart of the automated test method based on flow control of the present invention;
FIG. 2 is a diagram of the overall testing process of the present invention.
Detailed Description
The technical scheme of the invention is further explained by combining the attached drawings.
An automatic test device based on flow control comprises a test execution device and a test type dynamic switching device;
the test execution device is used for starting a thread to execute a test program, identifying a file identifier and a test type in the execution process of the test program, and calling different driver programs to execute test activities;
the test type dynamic switching device is used for dynamically loading and scheduling test modes.
Further, the automatic testing device also comprises a verifying device and a reporting device;
the verification device is used for verifying the execution result of the whole test process and outputting the information of the whole test process;
and the reporting device is used for collecting and analyzing the whole test result and generating a test report.
As shown in fig. 1, the automated testing method based on process control of the present invention includes the following steps:
s1, reading and analyzing the XMind file to generate a test case set;
s2, reading the test case set, identifying the test object and identifying the keyword;
s3, splicing and testing to generate an executable case;
s4, assembling and executing test cases;
and S5, integrating the CI/CD and generating a test report.
The overall process of testing by the automated testing method of the present invention is shown in fig. 2, which comprises:
1. generating a test case set by reading and analyzing the XMind file;
2. according to the generated test case, executing the test:
(1) integrating CI/CD to prepare an execution case;
(2) identifying the test type as APU or UI, and finding out corresponding keywords from the object library or the keyword library respectively;
(3) analyzing the keywords and analyzing the operation object;
(4) and (4) if the analysis is successful, starting to execute the test, otherwise, returning to the step (1).
3. Testing results and analyzing results; generating a test report after executing the test and analyzing whether the mail address is correct or not, if so, sending the mail to the server, otherwise, directly ending the operation;
4. an integrated CI/CD environment;
5. and (3) performing overall process monitoring: and recording an XMind parsing process, a keyword parsing process, an object library parsing process and a test execution process.
In the process of executing the test, the whole test can be divided into a plurality of independent scene flows, each scene flow starts a thread respectively, and the single independent scene flow is executed respectively. The scene flows can be combined at will to meet the test activities of complex scenes. And collecting and analyzing all test results to generate an aggregate test report, and feeding the result state back to the CI/CD environment.
It will be appreciated by those of ordinary skill in the art that the embodiments described herein are intended to assist the reader in understanding the principles of the invention and are to be construed as being without limitation to such specifically recited embodiments and examples. Those skilled in the art can make various other specific changes and combinations based on the teachings of the present invention without departing from the spirit of the invention, and these changes and combinations are within the scope of the invention.

Claims (3)

1. An automatic testing device based on flow control is characterized by comprising a test execution device and a test type dynamic switching device;
the test execution device is used for starting a thread to execute a test program, identifying a file identifier and a test type in the execution process of the test program, and calling different driver programs to execute test activities;
the test type dynamic switching device is used for dynamically loading and scheduling test modes.
2. The automated testing device based on process control according to claim 1, wherein the automated testing device further comprises a verification device and a reporting device;
the verification device is used for verifying the execution result of the whole test process and outputting the information of the whole test process;
and the reporting device is used for collecting and analyzing the whole test result and generating a test report.
3. An automatic test method based on flow control is characterized by comprising the following steps:
s1, calling an analysis function to analyze the XMind file, and generating a test case according to the module structure;
s2, according to module distinguishing, reading a test case set, and matching the test case with an object library and keywords;
s3, acquiring corresponding contents from the object library according to the analyzed object, and assembling to generate an executable test case;
s4, assembling the test cases according to the process designed by the XMind, and generating a process case;
and S5, integrating the test system into a CI/CD environment and executing a test process.
CN202010618002.2A 2020-06-30 2020-06-30 Automatic testing device and method based on process control Pending CN111930608A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010618002.2A CN111930608A (en) 2020-06-30 2020-06-30 Automatic testing device and method based on process control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010618002.2A CN111930608A (en) 2020-06-30 2020-06-30 Automatic testing device and method based on process control

Publications (1)

Publication Number Publication Date
CN111930608A true CN111930608A (en) 2020-11-13

Family

ID=73316797

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010618002.2A Pending CN111930608A (en) 2020-06-30 2020-06-30 Automatic testing device and method based on process control

Country Status (1)

Country Link
CN (1) CN111930608A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112380139A (en) * 2020-12-08 2021-02-19 深圳开源互联网安全技术有限公司 Recording method, system, equipment and storage medium of test case process document

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176896A (en) * 2011-12-23 2013-06-26 阿里巴巴集团控股有限公司 Generating method and generating device of test cases
US9043759B1 (en) * 2011-01-27 2015-05-26 Trimble Navigation Limited System and method for generating software unit tests simultaneously with API documentation
CN107451068A (en) * 2017-09-20 2017-12-08 广州阿里巴巴文学信息技术有限公司 Use-case operation method, device, computing device and storage medium
CN107831757A (en) * 2017-11-29 2018-03-23 合肥巨动力系统有限公司 Based on dSPACE motor control hardware in ring automatization test system and method
CN108415838A (en) * 2018-03-01 2018-08-17 吉旗(成都)科技有限公司 A kind of automated testing method based on natural language processing technique
CN110928774A (en) * 2019-11-07 2020-03-27 杭州顺网科技股份有限公司 Automatic test system based on node formula

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9043759B1 (en) * 2011-01-27 2015-05-26 Trimble Navigation Limited System and method for generating software unit tests simultaneously with API documentation
CN103176896A (en) * 2011-12-23 2013-06-26 阿里巴巴集团控股有限公司 Generating method and generating device of test cases
CN107451068A (en) * 2017-09-20 2017-12-08 广州阿里巴巴文学信息技术有限公司 Use-case operation method, device, computing device and storage medium
CN107831757A (en) * 2017-11-29 2018-03-23 合肥巨动力系统有限公司 Based on dSPACE motor control hardware in ring automatization test system and method
CN108415838A (en) * 2018-03-01 2018-08-17 吉旗(成都)科技有限公司 A kind of automated testing method based on natural language processing technique
CN110928774A (en) * 2019-11-07 2020-03-27 杭州顺网科技股份有限公司 Automatic test system based on node formula

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112380139A (en) * 2020-12-08 2021-02-19 深圳开源互联网安全技术有限公司 Recording method, system, equipment and storage medium of test case process document

Similar Documents

Publication Publication Date Title
CN109189665B (en) Method and device for recording, replaying and automatically testing data
US8312322B2 (en) System for automated generation of computer test procedures
CN102831052B (en) Test exemple automation generating apparatus and method
CN109491860A (en) Method for detecting abnormality, terminal device and the medium of application program
CN110013672B (en) Method, device, apparatus and computer-readable storage medium for automated testing of machine-run games
CN108241580B (en) Client program testing method and terminal
CN110750458A (en) Big data platform testing method and device, readable storage medium and electronic equipment
CN112148610A (en) Test case execution method and device, computer equipment and storage medium
CN110554962A (en) Regression testing process covering method, server and computer readable storage medium
CN107203464B (en) Method and device for positioning service problem
CN112395182A (en) Automatic testing method, device, equipment and computer readable storage medium
CN111930608A (en) Automatic testing device and method based on process control
CN113360413A (en) Code testing method and device
CN108446224A (en) The method for analyzing performance, storage medium of application program on mobile terminal
CN111708712A (en) User behavior test case generation method, flow playback method and electronic equipment
CN116756021A (en) Fault positioning method and device based on event analysis, electronic equipment and medium
CN114500348B (en) CDN gateway testing method and system
CN114064510A (en) Function testing method and device, electronic equipment and storage medium
CN115061924A (en) Automatic test case generation method and generation device
CN113434405A (en) Method and device for determining test file, storage medium and electronic device
CN112131611B (en) Data correctness verification method, device, equipment, system and storage medium
CN112860562A (en) Automatic testing method and device
CN111045849A (en) Method, device, server and storage medium for identifying reason of checking abnormality
CN112527584A (en) Software efficiency improving method and system based on script compiling and data acquisition
CN106777010B (en) Log providing method and device and log obtaining method, device and system

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