CN113641578A - Accurate test method, system, equipment and medium based on service level - Google Patents

Accurate test method, system, equipment and medium based on service level Download PDF

Info

Publication number
CN113641578A
CN113641578A CN202110915074.8A CN202110915074A CN113641578A CN 113641578 A CN113641578 A CN 113641578A CN 202110915074 A CN202110915074 A CN 202110915074A CN 113641578 A CN113641578 A CN 113641578A
Authority
CN
China
Prior art keywords
service
page
version
page object
business
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
CN202110915074.8A
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.)
Zhejiang Geely Holding Group Co Ltd
Guangyu Mingdao Digital Technology Co Ltd
Original Assignee
Zhejiang Geely Holding Group Co Ltd
Guangyu Mingdao Digital 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 Zhejiang Geely Holding Group Co Ltd, Guangyu Mingdao Digital Technology Co Ltd filed Critical Zhejiang Geely Holding Group Co Ltd
Priority to CN202110915074.8A priority Critical patent/CN113641578A/en
Publication of CN113641578A publication Critical patent/CN113641578A/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

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)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a method, a system, equipment and a medium for accurately testing based on a service level, and particularly relates to the field of software testing. The method comprises the following steps: acquiring a business system of a version to be tested, and determining the business requirements of the business system; analyzing the changing content of the business system between the version to be tested and the original version according to the business requirement to obtain a page object of the changing content in the version to be tested; identifying a page object of changed content in the version to be tested and a service calling link corresponding to the page object of the changed content by using a service calling relationship network; and obtaining a test case set required by regression of the version to be tested by using a service call link corresponding to the page object with the changed content, and realizing accurate test of the service according to the test case set. The invention obtains the test case set required by the regression of the version to be tested according to the service call link corresponding to the changed page object from the service perspective, and can quickly search the changed path, thereby reducing the regression test range.

Description

Accurate test method, system, equipment and medium based on service level
Technical Field
The invention relates to the field of software testing, in particular to a method, a system, equipment and a medium for accurately testing based on a service level.
Background
At present, from the perspective of software testing, the testing time of any software product is about 2/3 of the whole product development cycle, so the speed of software testing greatly influences the development speed of the whole product. In the development process of the software product, the functions and defects in the software product need to be updated continuously and iteratively.
In the existing software test, source codes between system versions are generally compared, and a test case is reversely deduced according to a mapping relation between a service test case and the source codes by utilizing source code change and a code calling relation, so that accurate test is realized. However, the above method for testing has a high test threshold, and a difficulty factor is large for a tester who does not know a code. Therefore, a method for realizing accurate test without paying attention to source code change for software is needed.
Disclosure of Invention
In view of the foregoing disadvantages of the prior art, an object of the present invention is to provide a method, a system, a device, and a medium for precision testing based on a service level, which are used to solve the problem that a software test in the prior art needs to analyze a source code change to perform precision testing.
In order to achieve the above and other related objects, the present invention provides a method for accurately testing a data structure based on a service level, including:
acquiring a business system of a version to be tested, and determining business requirements of the business system;
analyzing the changing content of the business system between the version to be tested and the original version according to the business requirement to obtain a page object of the changing content in the version to be tested;
identifying a page object of changed content in a version to be tested and a service calling link corresponding to the page object of the changed content by using a service calling relationship network;
and obtaining a test case set required by regression of the version to be tested by using the service call link corresponding to the page object with the changed content, and realizing accurate test of the service according to the test case set.
In an embodiment of the present invention, the service invocation relationship network further includes:
extracting a page object in a service system;
connecting the page objects according to the service logic of the service process, and representing the calling link of the page objects about the service by using the connecting lines among the page objects;
and acquiring call links of the page objects in various business processes to form a business call relation network of the link relation between the page objects in the business system of the current version.
In an embodiment of the present invention, each page in the business system is taken as a page object, and page elements displayed in the page are converted into attributes of the page object according to a preset conversion rule.
In an embodiment of the present invention, the service system is composed of a plurality of pages based on a B/S architecture, and each page is linked up or down according to an operation sequence and a logical relationship to form different service flow directions.
In an embodiment of the present invention, when a new test page object is detected, a corresponding page element is added to the page object; and updating the service calling relationship network according to the link relationship of the newly-built page object.
In an embodiment of the present invention, when the service invocation relationship network is changed, the page object and the page element in the changed service invocation relationship network are highlighted.
The present invention provides, in a second aspect, a service-level-based precision test system, including:
the acquisition module is used for acquiring the business system of the version to be tested and determining the business requirements of the business system;
the analysis module is used for analyzing the changing content of the business system between the version to be tested and the original version according to the business requirement to obtain a page object of the changing content in the version to be tested;
the link generation module is used for identifying the page object of the changed content in the version to be tested and the service call link corresponding to the page object of the changed content by utilizing a service call relation network;
and the test module is used for obtaining a test case set required by regression of the version to be tested by using the service call link corresponding to the page object with the changed content, and realizing accurate test of the service according to the test case set.
In an embodiment of the invention, before the analysis module, the method further includes:
the service calling relation network generation module is used for extracting the page object in the service system; connecting the page objects according to the service logic of the service process, and representing the calling link of the page objects about the service by using the connecting lines among the page objects; and acquiring call links of the page objects in various business processes to form a business call relation network of the link relation between the page objects in the business system of the current version.
In a third aspect, the present invention provides a service-level-based precision test apparatus, including:
one or more processing devices;
a memory for storing one or more programs; when the one or more programs are executed by the one or more processing devices, causing the one or more processing devices to execute the service-level-based precision test method.
A fourth aspect of the present invention provides a computer storage medium comprising:
a computer program is stored thereon for causing the computer to execute the service-level-based precision testing method.
As described above, the invention is based on the accurate test method, system, equipment and medium of the business layer
According to the method and the device, the page object of the changed content in the version to be tested and the service calling link corresponding to the page object of the changed content are identified by using the service calling relationship network, the source code change between the version to be tested and the original version does not need to be concerned, from the service perspective, the test case set required by the regression of the version to be tested is obtained according to the service calling link corresponding to the page object of the changed content, the changed path can be quickly found from the service calling relationship network, and therefore the regression test range is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a service-level-based precision testing method provided by the present invention;
fig. 2 is a complete flow chart of a precise test method based on a service level according to the present invention;
FIG. 3 is a network display diagram of a service invocation relationship provided by the present invention;
fig. 4 is a block diagram of a structure of a precision test system based on a service level according to the present invention;
fig. 5 is a block diagram of a complete structure of a precision test system based on a service level according to the present invention;
fig. 6 is a block diagram of a structure of a precision test device based on a service level according to the present invention.
Element number description:
1. an acquisition module; 2. an analysis module; 3. a link generation module; 4. a test module; 5. and the service calling relation network generation module.
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention, and the components related to the present invention are only shown in the drawings rather than drawn according to the number, shape and size of the components in actual implementation, and the type, quantity and proportion of the components in actual implementation may be changed freely, and the layout of the components may be more complicated.
Referring to fig. 1, a flowchart of a service-level-based precision testing method provided by the present invention includes:
step S1, acquiring a business system of a version to be tested, and determining the business requirement of the business system;
for a service system of which a test system is mainly a service layer, such as an enterprise service system, a service management system, and the like, a service requirement refers to information of a function to be developed included in a service to be developed, such as a newly added function, bug repair and change description, and the like.
Step S2, analyzing the changing content of the business system between the version to be tested and the original version according to the business requirement to obtain the page object of the changing content in the version to be tested;
wherein, the change content between the version to be tested and the original version is determined by referring to the information of the service requirement, for example, by knowing the new version requirement, the content of the change between the versions is analyzed and extracted to obtain the page object (including PO and the page element contained in PO) corresponding to the content of the change in the requirement of the tested version
Step S3, using the service calling relation network to identify the page object of the changed content in the version to be tested and the service calling link corresponding to the page object of the changed content;
the page object of the changed content in the version to be tested can be quickly identified through the service call relation network, the service call link corresponding to the page object of the changed content and the service call link corresponding to the page object attribute of the changed content.
And step S4, obtaining a test case set required by regression of the version to be tested by using the service call link corresponding to the page object with the changed content, and realizing accurate test of the service according to the test case set.
In the embodiment, the change of the source code does not need to be concerned, and the idea of the black box test is closer from the perspective of the black box test; according to the business flow direction, the test can be performed in a segmented mode without waiting for the completion of development, the test task and the test risk can be recognized as early as possible, and the test plan and the test strategy can be conveniently formulated.
In some embodiments, please refer to fig. 2, which is a complete flowchart of a precision test method based on a service level according to the present invention, including:
before the step S1, the step of generating the service invocation relationship network in the service system of the original version specifically includes:
step S01, extracting the page object in the service system;
specifically, taking a page as a unit, combing all pages and page elements in a business system, and one object (page object po for short), for example, taking each page in the business system as a page object, converting the page elements (displaying an operable related unit on the page) displayed in the page into an attribute of the page object according to a preset conversion rule, and converting all pages in the business system according to the rule to obtain the page object and an attribute matched with the page object.
Step S02, connecting the page objects according to the service logic of the service process, and representing the calling link of the page objects about the service by using the connecting lines between the page objects;
specifically, with the business process as a guide, each business process relates to a PO for connection, and a relationship between the POs is established, wherein each connection represents a specific business logic.
And step S03, acquiring call links of page objects in various business processes, and forming a business call relation network of the link relation between the page objects in the business system of the current version.
Specifically, the business system is converted and sorted according to the pages and is input into the business relationship management system, meanwhile, the converted pages are connected and associated according to business logic contact, and the business relationship management system can automatically generate a business calling relationship network according to association rules by configuring the association rules in advance.
For a system with a common B/S architecture, the system is composed of different pages, and the independent pages are connected in series to form different service flow directions through a certain operation sequence and logic judgment. For example, a domestic railway track network is composed of different sites and railway tracks, and a service calling relation network is compared with a railway network, so that all pages can be similarly compared with a large site, and the operation sequence and logic form the tracks of the service.
In this embodiment, by drawing the service call relationship network of the service system of the original version, a tester does not need to know the source code of the service system, and by the service flow direction, a test case set required by regression of the version to be tested is obtained according to the service call link corresponding to the page object with the changed content, so as to implement accurate service test, and a change path can be quickly found from the service call relationship network, so that not only is the test threshold reduced, but also the regression test range is narrowed.
In some embodiments, the service system is composed of a plurality of pages based on a B/S architecture, each page is linked up or down according to an operation sequence and a logical relationship to form different service flow directions, as shown in fig. 3, a service invocation relationship network presentation diagram provided by the present invention.
As a tester, it should be well known that the service system is based on a page unit, and different pages can be connected in series according to different operations and logics to form a corresponding service network. The service call relation network can be similar to a service management system according to the service flow direction formed by the service operation sequence and the logic judgment, and the service management system comprises a user management module, a project management module and a role management module.
For example, there are three pages (i.e., each page forms a page object) at the user management module: the user manages the home page, creates the user page, and creates the user detail page. The user management home page is used for showing a user list (namely, the user list is the attribute of a page object, wherein the user list comprises a mailbox and a creation time), and meanwhile, a 'create user' button is set, and when the 'create user' button is clicked, the user management home page jumps to a create user interface. It should be noted that the attribute of the page object corresponding to one page object is not unique, and the attributes of multiple page objects can be set according to the requirements of the page object.
It should be further noted that, in addition to directly implementing the service flow direction between the page object and the page object, the attribute of the page element, i.e. the page object, can be known, and the attribute of the page object, i.e. the "create user" button, can form a service invocation relationship with the page object, i.e. the "create user" button, downward; similarly, the page object of the 'create user' can be used for forming a service calling relation with the user list in the 'user management' upwards, so that the whole service system is converted into a service calling relation network according to the rule.
When jumping to the creation of the user interface, the user can be successfully created by perfecting the attributes of the page object, such as filling in a mailbox and a password. And after the creation is successful, automatically jumping to user details, wherein a user detail interface is used for displaying a user mailbox and creation time.
For another example, the role management module also has three pages: the role management home page, the role creation page and the role detail page form three page objects in sequence. And the role management page displays the role list, and a 'create role' button is clicked to jump to the create role page. And inputting a role name, permission check and role description in the role creating page, and checking the permission of the role. Then, jump to the role details page. The role detail interface shows role names, role descriptions and authority details.
The attribute of the page object, namely the page element, can be known, and the attribute of the page object, namely the role management button, can form a service calling relationship with the page object, namely the role creation button, downwards; similarly, the page object of the 'create role' can be used to form a service call relation with the role list in the 'role management', so that the whole service system is converted into a service call relation network according to the above rules.
The project management module also has three pages: project management home page, creation project page, project detail page. And the user manages the page display item list, clicks a project creating button and jumps to a project creating interface. And filling in a project name in a project creating interface, selecting a user mailbox in a column of a bound user, and selecting a role in a column of a selected role. Corresponding authority can be given to the corresponding user, and the user can only operate the project within the authority range after logging in.
The attribute of the page object, namely the page element, can form a service calling relationship with the page object of the 'creation project' downwards through the attribute of the page object of the 'project management' button; similarly, the page object of "create item" can form a service call relation with the item list in "item management" upwards, so that the whole service system is converted into a service call relation network according to the above rules.
It should be further noted that the "user details" page object in the user management module is associated with the "created item" downward in the page object, and the "role details" page object in the role management module is also associated with the "created item" upward in the page object to select a role.
In the embodiment, by analyzing the service system of the current version from the service perspective, the source code analysis is not needed, the testing efficiency of the system at the service level is greatly improved, and meanwhile, the method can be popularized to user groups with different knowledge structures; meanwhile, by utilizing the service flow direction, the test can be performed in stages and modules without waiting for the completion of development, so that the test task and the test risk can be recognized as early as possible, and the test plan and the test strategy can be conveniently formulated.
In some embodiments, when a new test page object is detected, adding a corresponding page element in the page object; and updating the service calling relationship network according to the link relationship of the newly-built page object.
Specifically, each time a page object is added, a link relationship is formed in the original service invocation relationship network, for example, the page object is inserted according to the service flow direction, so that the link relationship of the page object is correspondingly changed.
And when the service calling relationship network is changed, highlighting the page object and the page element in the changed service calling relationship network.
Specifically, the calling relationship can be automatically identified through the method, an attribute user name is added for the user for the convenience of managing the user, the user name is composed of letters and numbers, and the user name of each user is unique and is convenient to identify. Thus, in "create user," in addition to filling out the mailbox and password, the username is also filled in.
For example, in fig. 3, if in the business relationship management system, the user creates a line associated with the user by identifying the "create user" change, and using highlighting (roulette thickening, line thickening, highlighting or labeling with different colors) "create user", the user can find the new "user" at a glance. And calling the test case set according to the identified calling link, and pushing the relevant cases needing regression testing to a user through automatic screening, so that the testing difficulty is greatly reduced, and the testing precision is improved.
Referring to fig. 4, a system for accurately testing a service layer according to the present invention includes:
the system comprises an acquisition module 1, a storage module and a processing module, wherein the acquisition module is used for acquiring a business system of a version to be tested and determining the business requirement of the business system;
the analysis module 2 is used for analyzing the changing content of the business system between the version to be tested and the original version according to the business requirement to obtain a page object of the changing content in the version to be tested;
the link generation module 3 is used for identifying the page object of the changed content in the version to be tested and the service call link corresponding to the page object of the changed content by using a service call relation network;
and the test module 4 is used for obtaining a test case set required by regression of the version to be tested by using the service call link corresponding to the page object with the changed content, and realizing accurate test of the service according to the test case set.
Referring to fig. 5, a block diagram of a complete structure of a precision test system based on a service level provided in the present invention is shown, based on the foregoing embodiment, where before the analysis module 3, the system further includes:
the service call relation network generation module 5 is used for extracting the page object in the service system; connecting the page objects according to the service logic of the service process, and representing the calling link of the page objects about the service by using the connecting lines among the page objects; and acquiring call links of the page objects in various business processes to form a business call relation network of the link relation between the page objects in the business system of the current version.
Here, it should be noted that the service-level-based precision testing system and the service-level-based precision testing method are in a one-to-one correspondence relationship, and the technical details, technical contents, and technical effects corresponding to the two are the same.
Referring now to fig. 6, a schematic diagram of an electronic device (e.g., a terminal device or server 600) suitable for implementing embodiments of the present disclosure is shown, where the terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), etc., and a fixed terminal such as a digital TV, a desktop computer, etc. the application integration device shown in fig. 6 is only one example and should not bring any limitations to the function and scope of use of the embodiments of the present disclosure.
As shown in fig. 6, the application integration apparatus 600 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 601 that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage device 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data necessary for the operation of the application integration apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM603 are connected to each other via a bus 604, and an input/output (I/O) interface 605 is also connected to the bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the application integration apparatus 600 to perform wireless or wired communication with other apparatuses to exchange data. While fig. 6 illustrates an application integration apparatus 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the application integration apparatus; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the application integration device, cause the application integration device to:
acquiring a business system of a version to be tested, and determining business requirements of the business system; analyzing the changing content of the business system between the version to be tested and the original version according to the business requirement to obtain a page object of the changing content in the version to be tested; identifying a page object of changed content in a version to be tested and a service calling link corresponding to the page object of the changed content by using a service calling relationship network; and obtaining a test case set required by regression of the version to be tested by using the service call link corresponding to the page object with the changed content, and realizing accurate test of the service according to the test case set.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In summary, in the present invention, by using the service invocation relationship network to identify the page object of the changed content in the version to be tested and the service invocation link corresponding to the page object of the changed content, the source code change between the version to be tested and the original version does not need to be concerned, and from the service perspective, the test case set required by the regression of the version to be tested is obtained according to the service invocation link corresponding to the page object of the changed content, so that the change path can be quickly found from the service invocation relationship network, thereby reducing the regression test range.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.

Claims (10)

1. A method for accurately testing based on a service layer is characterized by comprising the following steps:
acquiring a business system of a version to be tested, and determining business requirements of the business system;
analyzing the changing content of the business system between the version to be tested and the original version according to the business requirement to obtain a page object of the changing content in the version to be tested;
identifying a page object of changed content in a version to be tested and a service calling link corresponding to the page object of the changed content by using a service calling relationship network;
and obtaining a test case set required by regression of the version to be tested by using the service call link corresponding to the page object with the changed content, and realizing accurate test of the service according to the test case set.
2. The accurate test method based on service level according to claim 1, wherein the service invocation relationship network further comprises:
extracting a page object in a service system;
connecting the page objects according to the service logic of the service process, and representing the calling link of the page objects about the service by using the connecting lines among the page objects;
and acquiring call links of the page objects in various business processes to form a business call relation network of the link relation between the page objects in the business system of the current version.
3. The business layer-based precision test method of claim 2, wherein each page in the business system is taken as a page object, and page elements displayed in the page are converted into attributes of the page object according to a preset conversion rule.
4. The service-level-based precision testing method of claim 1, 2 or 3, wherein the service system is composed of a plurality of pages based on a B/S architecture, and each page is linked up or down according to an operation sequence and a logical relationship to form different service flow directions.
5. The service-level-based precision test method of claim 1, further comprising: when a new test page object is detected, adding a corresponding page element in the page object; and updating the service calling relationship network according to the link relationship of the newly-built page object.
6. The accurate test method based on the service level as claimed in claim 5, wherein when a change occurs in the service invocation relationship network, the page object and the page element in the changed service invocation relationship network are highlighted.
7. A precise test system based on a service layer is characterized by comprising:
the acquisition module is used for acquiring the business system of the version to be tested and determining the business requirements of the business system;
the analysis module is used for analyzing the changing content of the business system between the version to be tested and the original version according to the business requirement to obtain a page object of the changing content in the version to be tested;
the link generation module is used for identifying the page object of the changed content in the version to be tested and the service call link corresponding to the page object of the changed content by utilizing a service call relation network;
and the test module is used for obtaining a test case set required by regression of the version to be tested by using the service call link corresponding to the page object with the changed content, and realizing accurate test of the service according to the test case set.
8. The service-level-based precision test system of claim 7, further comprising, before the analysis module:
the service calling relation network generation module is used for extracting the page object in the service system; connecting the page objects according to the service logic of the service process, and representing the calling link of the page objects about the service by using the connecting lines among the page objects; and acquiring call links of the page objects in various business processes to form a business call relation network of the link relation between the page objects in the business system of the current version.
9. The utility model provides a based on accurate test equipment of service level which characterized in that: the method comprises the following steps:
one or more processing devices;
a memory for storing one or more programs; when the one or more programs are executed by the one or more processing devices, the one or more processing devices are caused to implement the service-level-based precision testing method according to any one of claims 1 to 6.
10. A computer-readable storage medium having stored thereon a computer program for causing a computer to execute the service-level-based precision testing method of any one of claims 1 to 6.
CN202110915074.8A 2021-08-10 2021-08-10 Accurate test method, system, equipment and medium based on service level Pending CN113641578A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110915074.8A CN113641578A (en) 2021-08-10 2021-08-10 Accurate test method, system, equipment and medium based on service level

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110915074.8A CN113641578A (en) 2021-08-10 2021-08-10 Accurate test method, system, equipment and medium based on service level

Publications (1)

Publication Number Publication Date
CN113641578A true CN113641578A (en) 2021-11-12

Family

ID=78420580

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110915074.8A Pending CN113641578A (en) 2021-08-10 2021-08-10 Accurate test method, system, equipment and medium based on service level

Country Status (1)

Country Link
CN (1) CN113641578A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007128138A (en) * 2005-11-01 2007-05-24 Ntt Data Corp Business process test design support device, business process testing method and computer program
US20170024311A1 (en) * 2015-07-21 2017-01-26 International Business Machines Corporation Proactive Cognitive Analysis for Inferring Test Case Dependencies
CN107992409A (en) * 2017-11-21 2018-05-04 平安养老保险股份有限公司 Method for generating test case, device, computer equipment and storage medium
CN110389896A (en) * 2019-06-18 2019-10-29 中国平安人寿保险股份有限公司 Code automated analysis and test method, device and computer readable storage medium
CN110554962A (en) * 2019-08-14 2019-12-10 平安普惠企业管理有限公司 Regression testing process covering method, server and computer readable storage medium
CN110990274A (en) * 2019-11-29 2020-04-10 中国银行股份有限公司 Data processing method, device and system for generating test case
US20200192789A1 (en) * 2018-12-18 2020-06-18 Sap Se Graph based code performance analysis
CN112100071A (en) * 2020-09-16 2020-12-18 腾讯科技(深圳)有限公司 Test case generation method and device, computer equipment and storage medium
CN113220564A (en) * 2021-04-26 2021-08-06 北京京东拓先科技有限公司 Automatic testing method, device and equipment for page and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007128138A (en) * 2005-11-01 2007-05-24 Ntt Data Corp Business process test design support device, business process testing method and computer program
US20170024311A1 (en) * 2015-07-21 2017-01-26 International Business Machines Corporation Proactive Cognitive Analysis for Inferring Test Case Dependencies
CN107992409A (en) * 2017-11-21 2018-05-04 平安养老保险股份有限公司 Method for generating test case, device, computer equipment and storage medium
US20200192789A1 (en) * 2018-12-18 2020-06-18 Sap Se Graph based code performance analysis
CN110389896A (en) * 2019-06-18 2019-10-29 中国平安人寿保险股份有限公司 Code automated analysis and test method, device and computer readable storage medium
CN110554962A (en) * 2019-08-14 2019-12-10 平安普惠企业管理有限公司 Regression testing process covering method, server and computer readable storage medium
CN110990274A (en) * 2019-11-29 2020-04-10 中国银行股份有限公司 Data processing method, device and system for generating test case
CN112100071A (en) * 2020-09-16 2020-12-18 腾讯科技(深圳)有限公司 Test case generation method and device, computer equipment and storage medium
CN113220564A (en) * 2021-04-26 2021-08-06 北京京东拓先科技有限公司 Automatic testing method, device and equipment for page and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王荣丽;侯秀萍;: "回归测试用例设计策略", 长春工业大学学报, no. 02, 15 April 2017 (2017-04-15) *

Similar Documents

Publication Publication Date Title
CN112036824A (en) Business approval method, system, storage medium and electronic equipment
CN110716853A (en) Test script recording method, application program testing method and related device
CN111045653B (en) System generation method and device, computer readable medium and electronic equipment
CN112395188B (en) Test-oriented software project development method and device, electronic equipment and storage medium
CN109491646B (en) Message entry method and device, electronic equipment and readable medium
CN110727869A (en) Page construction method and device
CN111857720B (en) User interface state information generation method and device, electronic equipment and medium
CN110765752B (en) Test question generation method and device, electronic equipment and computer readable storage medium
CN111738316A (en) Image classification method and device for zero sample learning and electronic equipment
CN109992496A (en) A kind of data processing method and device for automatic test
CN111625291B (en) Automatic iteration method and device for data processing model and electronic equipment
CN110689285A (en) Test method, test device, electronic equipment and computer readable storage medium
CN113641578A (en) Accurate test method, system, equipment and medium based on service level
CN114817040A (en) Automatic testing method, system, electronic equipment and storage medium
CN117667663A (en) Control positioning path determining method, device, equipment, storage medium and product
CN113849416A (en) Test method, test device, storage medium and electronic equipment
CN111143464A (en) Data acquisition method and device and electronic equipment
CN111008178A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN117032532A (en) Test case editing method and device, computer readable medium and electronic equipment
CN111309675B (en) Associated information display method and device, electronic equipment and storage medium
CN116561015B (en) Map application testing method, electronic device and computer readable medium
CN111694833B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN113779952B (en) Text processing method and device and electronic equipment
CN113568535B (en) Map plate selecting method, map plate selecting device, medium and electronic equipment
CN112559311B (en) Interface adaptation method and device for mobile terminal automatic test

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