CN112069062A - Method and device for editing and generating software test bug module - Google Patents

Method and device for editing and generating software test bug module Download PDF

Info

Publication number
CN112069062A
CN112069062A CN202010852139.4A CN202010852139A CN112069062A CN 112069062 A CN112069062 A CN 112069062A CN 202010852139 A CN202010852139 A CN 202010852139A CN 112069062 A CN112069062 A CN 112069062A
Authority
CN
China
Prior art keywords
bug
test
module
generating
editing
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.)
Withdrawn
Application number
CN202010852139.4A
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010852139.4A priority Critical patent/CN112069062A/en
Publication of CN112069062A publication Critical patent/CN112069062A/en
Withdrawn 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/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/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

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

Abstract

The invention provides a method for editing and generating a software test bug module, which comprises the following steps: setting global variables, and generating a test case template, wherein the test case template comprises: testing step, test data, expected test result and functional modules corresponding to the test cases one by one; automatically jumping to a test page corresponding to the tested system according to the acquired input information, and sequentially executing test steps in the test case template; detecting a bug in the test process, and storing an interface containing the bug through shortcut key information; uploading the stored interface containing the bug and the corresponding test case; automatically acquiring a global variable, a test case template and an interface containing bug; the invention also provides a device for editing and generating the bug module for testing the software, which effectively improves the high efficiency and the reliability of the bug module generation.

Description

Method and device for editing and generating software test bug module
Technical Field
The invention relates to the field of bug module generation, in particular to a method and a device for editing and generating a software test bug module.
Background
Software testing is an execution process of a program, and aims to find and correct errors in tested software as much as possible and improve the reliability of the software. The method is very important and complex work in the software life cycle, and has extremely important significance for ensuring the software reliability.
bug is an important labor achievement for software testing. The writing generation of the software bug module is one of the core works of software testing. With the increasingly huge functions of the system to be tested and the increasingly fast speed of the iteration version, the writing workload of the software bug module is increasingly increased, and the efficiency is relatively low.
At present, software bug module writing generation is usually software testing personnel, and the software bug module writing generation is manually input into a bug management system. The written content includes, but is not limited to, various parameter information of the bug, the test environment and the like, about 2 minutes is required for generating one bug module, and 2 hours are consumed for writing 60 bug module calculations by one tester according to an iterative version, so that the efficiency is low, the test time is long, errors are easy to occur, and the efficient generation of the bug module is not facilitated.
Disclosure of Invention
The invention aims to solve the problems in the prior art, and innovatively provides a method and a device for editing and generating a software test bug module, so that the problems of low efficiency and high error probability caused by manual writing and generating of the bug module are effectively solved, and the high efficiency and the reliability of bug module generation are effectively improved.
The first aspect of the invention provides a method for editing and generating a software test bug module, which comprises the following steps:
setting global variables, and generating a test case template, wherein the test case template comprises: testing step, test data, expected test result and functional modules corresponding to the test cases one by one;
acquiring input information of a tester, automatically jumping to a test page corresponding to a tested system according to the acquired input information, and sequentially executing test steps in a test case template;
detecting a bug in the test process, and storing an interface containing the bug through shortcut key information; uploading the stored interface containing the bug and the corresponding test case;
opening a bug module to create an interface, and automatically acquiring a global variable, a test case template and an interface containing a bug; and acquiring bug parameter information input by a tester, and editing and generating the bug module.
Optionally, the global variables include: url of the tested system, user name, password, project name, and hardware configuration of the test environment.
Optionally, the software interface menu is divided into function modules with different levels, wherein the level of the menu is the same as the level of the function module.
Further, automatically jumping to a test page corresponding to the system under test according to the acquired input information specifically includes:
screening keyword information of the functional module according to the acquired input information;
screening functional modules of different levels according to the keyword information of the functional modules;
and after the screening is successful, automatically jumping to the test page of the functional module at the corresponding level.
Optionally, the bug module includes bug parameter information, a test environment, a test procedure, and an interface including the bug.
Optionally, the bug parameter information includes bug summary information, bug priority information, and bug recurrence probability information.
Optionally, the test case template is stored to the mysql database by using a redis caching technique.
The second aspect of the present invention provides an apparatus for editing and generating a software test bug module, including:
the test case management unit sets global variables and generates a test case template, wherein the test case template comprises: testing step, test data, expected test result and functional modules corresponding to the test cases one by one; acquiring input information of a tester, automatically jumping to a test page corresponding to a tested system, and sequentially executing test steps in a test case template;
the plug-in unit is used for detecting the bug in the test process and storing the interface containing the bug through the shortcut key information; uploading the stored interface containing the bug and the corresponding test case;
the bug module generating unit opens the bug module creation interface and automatically acquires the global variable, the test case template and the interface containing the bug; and acquiring bug parameter information input by a tester, and editing and generating the bug module.
Optionally, the software interface menu is divided into function modules with different levels, wherein the level of the menu is the same as the level of the function module.
Optionally, the test case management unit includes:
the first screening subunit screens the keyword information of the functional module according to the acquired input information;
the second screening subunit screens the functional modules in different levels according to the keyword information of the functional modules;
and automatically jumping to the subunit, and automatically jumping to the test page of the functional module of the corresponding level after the screening is successful.
The technical scheme adopted by the invention comprises the following technical effects:
1. the technical scheme of the invention obviously reduces repeated character input operation of testers and reduces the time cost for writing a bug module; the problems of low efficiency and high error probability caused by manual writing of the bug module are effectively solved, and the high efficiency and the reliability of bug module generation are effectively improved.
2. According to the technical scheme, the software interface menu is divided into the functional modules with different levels, wherein the level of the menu is the same as the level of the functional modules correspondingly, the test page of the functional module with the corresponding level is automatically skipped to according to the acquired input information, the test page of the functional module to be tested can be obviously reduced after a tester logs in the tested system and needs to select the menu step by step, and the test efficiency is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without any creative effort.
FIG. 1 is a schematic flow diagram of a process according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating step S2 of a method according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a second embodiment of an apparatus according to the present invention;
fig. 4 is a schematic structural diagram of a test case management unit 11 in a second apparatus according to an embodiment of the present invention.
Detailed Description
In order to clearly explain the technical features of the present invention, the following detailed description of the present invention is provided with reference to the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and procedures are omitted so as to not unnecessarily limit the invention.
Example one
As shown in fig. 1, the present invention provides a method for editing and generating a software test bug module, including:
s1, setting global variables and generating a test case template, wherein the test case template comprises: testing step, test data, expected test result and functional modules corresponding to the test cases one by one;
s2, acquiring input information of a tester, automatically jumping to a test page corresponding to the tested system according to the acquired input information, and sequentially executing the test steps according to the test case template;
s3, detecting the bug in the test process, and saving the interface containing the bug through the shortcut key information; uploading the stored interface containing the bug and the corresponding test case;
s4, opening a bug module to create an interface, and automatically acquiring a global variable, a test case template and an interface containing a bug; and acquiring bug parameter information input by a tester, and editing and generating the bug module.
In step S1, the global variables include: a url (Uniform resource Locator) of the system under test, a username, a password, a project name, a hardware configuration of the test environment, or other preconditions,
the test cases correspond to the function modules one to one, the function modules are divided into different levels according to the software interface menu, for example, software is opened, a system management module (belonging to a first-level menu) can be seen, a second-level menu can be clicked into the system management module, for example, system configuration, user management and the like, user management can be seen by clicking into the second-level menu, user management and the like of a third-level menu can be seen, and the level of the menu is the same as the level of the function modules in a corresponding mode. Specifically, the first-level menu corresponds to a first-level function module, the second-level menu corresponds to a second-level function module, and the third-level menu corresponds to a third-level function module; and so on.
In step S2, as shown in fig. 2, automatically jumping to the test page corresponding to the system under test according to the obtained input information specifically includes:
s21, screening the keyword information of the functional module according to the acquired input information;
s22, screening functional modules with different levels according to the keyword information of the functional modules;
and S23, automatically jumping to the test page of the functional module of the corresponding level after the screening is successful.
When a user clicks a certain test case, keyword information can be screened out according to click information input by the user (the test case clicked by the user corresponds to the functional module one by one); and further determining a corresponding functional module of the system to be tested, automatically jumping to a test page of the corresponding functional module, if the test case is system management, user management and role management, directly jumping to a role management interface, and replacing the complex process that a tester inputs a test url, inputs a login user name/password, finds a system management page, finds a user management page and then finds a role management page, thereby improving the test efficiency.
The bug module comprises bug parameter information, a test environment, a test step and an interface containing the bug. Specifically, the bug parameter information includes bug summary information (bug header information, which may be edited according to 3W principles, i.e., object, time, and location), bug priority information, and bug recurrence probability information.
In the step S3, detecting a bug in the test process, and once finding the bug, saving the interface including the bug through the shortcut key information, specifically, performing a screen capture operation through the shortcut key, and supporting editing and saving the screen capture interface; uploading the stored interface containing the bug and the corresponding test case; and replacing the traditional tester to adopt a screenshot tool, editing after screenshot is saved, and uploading the operation of the bug module. And opening the bug module through a shortcut key by presetting a bug module address, a login user name and a password. Namely, after finding the bug, the test engineer can press the shortcut key, the bug module opens a bug creation interface of the bug module after acquiring the shortcut key information, and the bug creation interface replaces the complex operation that the traditional test engineer manually inputs the bug module address and inputs the user name and the password to log in the system after finding the bug, so that the test efficiency is improved.
In step S4, the bug creation interface of the bug module is opened, and the global variable, the test case template, and the uploaded interface including the bug are automatically obtained, so that most of the content of the bug module is completed, and the bug module can be edited and generated by only obtaining bug parameter information input by the tester, thereby saving the time for writing the bug module to a great extent and improving the test efficiency.
The technical scheme of the invention can be realized based on a window system and java development environment programming, and the test case template is stored to the mysql database by using a redis caching technology.
It should be noted that, in the embodiment of the present invention, the step S3 may be implemented by adding a corresponding plug-in, and the implementation idea corresponds to the step, and may also be implemented in other ways, which is not limited herein.
The technical scheme of the invention obviously reduces repeated character input operation of testers and reduces the time cost for writing a bug module; the problems of low efficiency and high error probability caused by manual writing of the bug module are effectively solved, and the high efficiency and the reliability of bug module generation are effectively improved.
According to the technical scheme, the software interface menu is divided into the functional modules with different levels, wherein the level of the menu is the same as the level of the functional modules correspondingly, the test page of the functional module with the corresponding level is automatically skipped to according to the acquired input information, the test page of the functional module to be tested can be obviously reduced after a tester logs in the tested system and needs to select the menu step by step, and the test efficiency is improved.
Example two
As shown in fig. 3, the technical solution of the present invention further provides a device for editing and generating a software test bug module, including:
the test case management unit 11 sets global variables and generates a test case template, wherein the test case template comprises a function test module, a test step, test data and an expected test result; acquiring input information of a tester, automatically jumping to a test page corresponding to a tested system, and sequentially executing test steps in a test case template;
the plug-in unit 12 is used for detecting bugs in the test process and storing the interfaces containing the bugs through shortcut key information; uploading the stored interface containing the bug and the corresponding test case;
the bug module generating unit 13 opens the bug module creation interface, and automatically acquires the global variable, the test case template and the interface containing the bug; and acquiring bug parameter information input by a tester, and editing and generating the bug module.
In the test case management unit 11, the functional modules are divided into different levels according to the software interface menu, wherein the level of the menu is the same as the level of the functional module.
As shown in fig. 4, the test case management unit 11 includes:
a first filtering subunit 111, which filters the keyword information of the functional module according to the acquired input information;
a second filtering subunit 112, which filters the functional modules in different levels according to the keyword information of the functional modules;
and the automatic skip subunit 113 automatically skips to the test page of the functional module at the corresponding level after the screening is successful.
The technical scheme of the invention obviously reduces repeated character input operation of testers and reduces the time cost for writing a bug module; the problems of low efficiency and high error probability caused by manual writing of the bug module are effectively solved, and the high efficiency and the reliability of bug module generation are effectively improved.
According to the technical scheme, the software interface menu is divided into the functional modules with different levels, wherein the level of the menu is the same as the level of the functional modules correspondingly, the test page of the functional module with the corresponding level is automatically skipped to according to the acquired input information, the test page of the functional module to be tested can be obviously reduced after a tester logs in the tested system and needs to select the menu step by step, and the test efficiency is improved.
Although the embodiments of the present invention have been described with reference to the accompanying drawings, it is not intended to limit the scope of the present invention, and it should be understood by those skilled in the art that various modifications and variations can be made without inventive efforts by those skilled in the art based on the technical solution of the present invention.

Claims (10)

1. A method for editing and generating a software test bug module is characterized by comprising the following steps:
setting global variables, and generating a test case template, wherein the test case template comprises: testing step, test data, expected test result and functional modules corresponding to the test cases one by one;
acquiring input information of a tester, automatically jumping to a test page corresponding to a tested system according to the acquired input information, and sequentially executing test steps in a test case template;
detecting a bug in the test process, and storing an interface containing the bug through shortcut key information; uploading the stored interface containing the bug and the corresponding test case;
opening a bug module to create an interface, and automatically acquiring a global variable, a test case template and an interface containing a bug; and acquiring bug parameter information input by a tester, and editing and generating the bug module.
2. The method of claim 1, wherein the global variables include: url of the tested system, user name, password, project name, and hardware configuration of the test environment.
3. The method as claimed in claim 1, wherein the software test bug module is divided into functional modules with different levels according to the software interface menu, wherein the menu level is the same as the functional module level.
4. The method for editing and generating a software test bug module as claimed in claim 3, wherein automatically jumping to a test page corresponding to a system under test according to the obtained input information specifically comprises:
screening keyword information of the functional module according to the acquired input information;
screening functional modules of different levels according to the keyword information of the functional modules;
and after the screening is successful, automatically jumping to the test page of the functional module at the corresponding level.
5. The method as claimed in claim 1, wherein the bug module comprises bug parameter information, test environment, test steps, and an interface containing bug.
6. The method for editing and generating the software test bug module as claimed in claim 1 or 5, wherein the bug parameter information includes bug abstract information, bug priority information, and bug recurrence probability information.
7. The method for editing and generating a software test bug module as claimed in claim 1, wherein the test case template is stored in mysql database by using a redis caching technology.
8. A device for editing and generating a software test bug module is characterized by comprising:
the test case management unit sets global variables and generates a test case template, wherein the test case template comprises: testing step, test data, expected test result and functional modules corresponding to the test cases one by one; acquiring input information of a tester, automatically jumping to a test page corresponding to a tested system, and sequentially executing test steps in a test case template;
the plug-in unit is used for detecting the bug in the test process and storing the interface containing the bug through the shortcut key information; uploading the stored interface containing the bug and the corresponding test case;
the bug module generating unit opens the bug module creation interface and automatically acquires the global variable, the test case template and the interface containing the bug; and acquiring bug parameter information input by a tester, and editing and generating the bug module.
9. The apparatus for editing and generating a software test bug module as claimed in claim 8, wherein the software test bug module is divided into function modules with different levels according to the software interface menu, wherein the level of the menu is the same as the level of the function module.
10. The apparatus for editing and generating a software test bug module as claimed in claim 8, wherein the test case management unit comprises:
the first screening subunit screens the keyword information of the functional module according to the acquired input information;
the second screening subunit screens the functional modules in different levels according to the keyword information of the functional modules;
and automatically jumping to the subunit, and automatically jumping to the test page of the functional module of the corresponding level after the screening is successful.
CN202010852139.4A 2020-08-21 2020-08-21 Method and device for editing and generating software test bug module Withdrawn CN112069062A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010852139.4A CN112069062A (en) 2020-08-21 2020-08-21 Method and device for editing and generating software test bug module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010852139.4A CN112069062A (en) 2020-08-21 2020-08-21 Method and device for editing and generating software test bug module

Publications (1)

Publication Number Publication Date
CN112069062A true CN112069062A (en) 2020-12-11

Family

ID=73660656

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010852139.4A Withdrawn CN112069062A (en) 2020-08-21 2020-08-21 Method and device for editing and generating software test bug module

Country Status (1)

Country Link
CN (1) CN112069062A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112579454A (en) * 2020-12-23 2021-03-30 武汉木仓科技股份有限公司 Task data processing method, device and equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112579454A (en) * 2020-12-23 2021-03-30 武汉木仓科技股份有限公司 Task data processing method, device and equipment

Similar Documents

Publication Publication Date Title
CN101526919B (en) Method for generating script files to test Web application software and device thereof
CN111324526B (en) Interface test system, method and server
CN112765023B (en) Test case generation method and device
CN114281680B (en) Web automatic testing method and system
CN110908894B (en) Visual report tool automatic testing method and device based on vuex
CN115080398A (en) Automatic interface test system and method
CN114741283A (en) Automatic interface testing method and device based on python design
CN114610640A (en) Fuzzy testing method and system for trusted execution environment of Internet of things
CN112069062A (en) Method and device for editing and generating software test bug module
CN113656304A (en) Method and device for testing front-end application program and storage medium
CN116541270A (en) Method and device for testing adaptation verification of operating system
CN114168461A (en) Performance test method and system applied to domestic operating system
CN114661615A (en) FPGA software testing method and device
CN110543424B (en) Test method and device for electronic tax platform
CN112015638A (en) Automatic testing method and system
CN111078193A (en) Software development method and system for data analysis system
CN111813665A (en) Big data platform interface data testing method and system based on python
CN111966589A (en) Bug processing method, device and equipment based on function test
CN113360373A (en) Test method for full traversal of Activity page of mobile application
CN113326193A (en) Applet testing method and device
CN111290938A (en) Android semi-automatic testing method based on manual assistance
CN109710537B (en) Intelligent automatic testing method and system
CN111104318B (en) Unit test result export method and device and electronic equipment
CN112527680B (en) Project API level full-link automatic test method and system based on Fitnesse framework
CN114116466A (en) Unit testing method, device and medium based on operation log

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

Application publication date: 20201211