CN117520172A - Application program testing method, system, device, equipment and storage medium - Google Patents

Application program testing method, system, device, equipment and storage medium Download PDF

Info

Publication number
CN117520172A
CN117520172A CN202311499617.8A CN202311499617A CN117520172A CN 117520172 A CN117520172 A CN 117520172A CN 202311499617 A CN202311499617 A CN 202311499617A CN 117520172 A CN117520172 A CN 117520172A
Authority
CN
China
Prior art keywords
code
test
case
warehouse
service
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
CN202311499617.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.)
Beijing Ziroom Information Technology Co Ltd
Original Assignee
Beijing Ziroom Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Ziroom Information Technology Co Ltd filed Critical Beijing Ziroom Information Technology Co Ltd
Priority to CN202311499617.8A priority Critical patent/CN117520172A/en
Publication of CN117520172A publication Critical patent/CN117520172A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Landscapes

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

Abstract

The invention relates to the technical field of application program testing, and discloses a method, a system, a device, equipment and a storage medium for testing an application program, wherein the method for testing the application program comprises the following steps: acquiring code modification information sent by a code warehouse, wherein the code modification information is used for representing the difference between a first code and a second code; the first code is a code before modification, and the second code is a code after modification; determining a service code corresponding to the code change information, wherein the service code is a code of a test case; inquiring a target use case corresponding to the service code from a test use case warehouse by taking the service code as an inquiry condition; the test case warehouse stores a plurality of test cases, and the target case is one of the plurality of test cases; the target use case is sent to a second server, and the second server is used for controlling the mobile terminal to execute the target use case; the second server is in communication connection with the mobile terminal. The invention realizes the automation of the application program test and improves the efficiency of the application program test.

Description

Application program testing method, system, device, equipment and storage medium
Technical Field
The present invention relates to the field of application program testing technologies, and in particular, to a method, a system, an apparatus, a device, and a storage medium for testing an application program.
Background
With the development of mobile terminal application programs, the functions of the application programs are more and more, and the requirements of function tests and regression tests of the application programs are higher and higher, wherein the function tests are to verify each function of a product, according to the function test cases, the product is tested item by item, whether the product meets the function required by a user is checked, and the regression tests are to re-test after old codes are modified, so that the new errors are not introduced in the modification or other codes are confirmed to generate errors.
At present, for functional test and regression test of an application program, manual mode is mostly adopted, a tester is required to select a functional test case and a regression test case, and the functional test and the regression test are performed on the application program by clicking the functional test case and the regression test case one by one. This method is time consuming, labor intensive and error prone.
Disclosure of Invention
In view of the above, the present invention provides a method, a system, an apparatus, a device, and a storage medium for testing an application program, so as to solve the problem of time and effort consumption in manually testing the application program.
In a first aspect, the present invention provides a method for testing an application program, including: acquiring code modification information sent by a code warehouse, wherein the code modification information is used for representing the difference between a first code and a second code; the first code is a code before modification, and the second code is a code after modification; determining a service code corresponding to the code change information, wherein the service code is a code of a test case; inquiring a target use case corresponding to the service code from a test use case warehouse by taking the service code as an inquiry condition; the test case warehouse stores a plurality of test cases, and the target case is one of the plurality of test cases; the target use case is sent to a second server, and the second server is used for controlling the mobile terminal to execute the target use case; the second server is in communication connection with the mobile terminal.
The beneficial effects are that: according to the code change information, the invention determines the service code, queries the target use case corresponding to the service code in the test use case warehouse according to the service code, and sends the target use case to the second server so that the second server controls the mobile terminal to execute the target use case. According to the invention, the service codes are acquired, the service codes are mapped with the test cases of the test case warehouse, the target cases are acquired, and the test of the application program is executed according to the target cases, so that the automation of the test of the application program is realized. Compared with the manual selection function test case and the regression test case in the related technology, the invention saves manpower and material resources, is not easy to make mistakes, reduces the cost and improves the efficiency of the application program test when the application program is tested.
In an alternative embodiment, determining the service code corresponding to the code modification information includes:
and inquiring a code warehouse according to the code change information to obtain the service code, wherein the code warehouse is used for storing the code and the service code corresponding to the code.
The beneficial effects are that: according to the code change information, the code warehouse is inquired to obtain service codes, and the connection between the code warehouse and the test case warehouse is established through the service codes, so that the mapping relation between the codes and the test cases is determined, the automatic calling of the test cases is realized, and the efficiency of application program testing is improved.
In an alternative embodiment, determining the service code corresponding to the code modification information includes:
and inquiring a code warehouse according to the code change information to obtain the service code, wherein the code warehouse is used for storing the code and the service code corresponding to the code.
In an optional implementation manner, the execution result of the target use case sent by the second server is received, the execution result is displayed, and the second server is used for receiving the execution result generated and sent by the mobile terminal.
The beneficial effects are that: the invention displays the execution result of the target case so as to record and manage the execution result, can check the execution result later, can evaluate the test quality of the application program through the execution result, can improve the test case and the code according to the execution result, and improves the test efficiency.
In an alternative embodiment, the control case repository creates a case set, and adds the associated test cases to the case set to obtain a plurality of test cases from the case set.
The beneficial effects are that: the control case warehouse creates a case set, related test cases are added into the case set, when a plurality of test cases need to be called in the code change information, the test cases in the case set can be directly called, the operation is simple, the efficiency is improved, and the manpower and material resources are saved.
In a second aspect, the present invention provides a test system for an application program, including: the code warehouse is used for acquiring the first code and the second code, comparing the first code with the second code to obtain code change information, and sending the code change information to the cloud computing system; wherein the code alteration information is used to characterize a difference between the first code and the second code; the first code is the code before modification, and the second code is the code after modification; the cloud computing system is used for determining the service code corresponding to the code change information and inquiring the target use case corresponding to the service code from the test use case warehouse by taking the service code as an inquiry condition; the service code is the code of the test case; the test case warehouse stores a plurality of test cases, and the target case is one of the plurality of test cases; the cloud computing system is used for sending the target use cases to the central cluster system; the central cluster system is used for controlling the mobile terminal to execute the target use case; the central cluster system is in communication connection with the mobile terminal; and the mobile terminal is used for executing the target use case.
The beneficial effects are that: the cloud computing system is used for determining service codes according to the code change information, inquiring target use cases corresponding to the service codes in the test use case warehouse according to the service codes, and sending the target use cases to the central cluster system so that the central cluster system controls the mobile terminal to execute the target use cases. According to the invention, the service codes are acquired, the service codes are mapped with the test cases of the test case warehouse, the target cases are acquired, and the test of the application program is executed according to the target cases, so that the automation of the test of the application program is realized. Compared with the manual selection function test case and the regression test case in the related technology, the invention saves manpower and material resources, is not easy to make mistakes, reduces the cost and improves the efficiency of the application program test when the application program is tested.
In an alternative embodiment, the system further comprises: and the case warehouse is used for creating a case set, and adding the associated test cases into the case set to acquire a plurality of test cases according to the case set.
In a third aspect, the present invention provides a test apparatus for an application program, including:
the information acquisition module is used for acquiring code modification information sent by the code warehouse, wherein the code modification information is used for representing the difference between the first code and the second code; the first code is a code before modification, and the second code is a code after modification; the service code determining module is used for determining a service code corresponding to the code change information, wherein the service code is the code of the test case; the target use case acquisition module is used for inquiring the target use case corresponding to the service code from the test use case warehouse by taking the service code as an inquiry condition; the test case warehouse stores a plurality of test cases, and the target case is one of the plurality of test cases; the target use case execution module is used for sending the target use case to a second server, and the second server is used for controlling the mobile terminal to execute the target use case; the second server is in communication connection with the mobile terminal.
In a fourth aspect, the present invention provides a computer device comprising: the processor executes the computer instructions, thereby executing the test method of the application program of the first aspect or any implementation manner corresponding to the first aspect.
In a fifth aspect, the present invention provides a computer-readable storage medium having stored thereon computer instructions for causing a computer to execute the test method of the application program of the first aspect or any of the embodiments corresponding thereto.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method of testing an application according to an embodiment of the invention;
FIG. 2 is a flow chart of a testing method of another application according to an embodiment of the invention;
FIG. 3 is a flow diagram of the test system operation of an application according to an embodiment of the present invention;
FIG. 4 is a schematic architecture diagram of an application automated quality monitoring system according to an embodiment of the present invention;
FIG. 5 is a flow diagram of the test system operation of another application according to an embodiment of the present invention;
FIG. 6 is a flow diagram of a test case report generation method according to an embodiment of the invention;
FIG. 7 is a block diagram of a test apparatus for an application according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a hardware structure of a computer device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the related art, for testing of an application program, a lot of test data needs to be prepared before a test task is executed, and the maintenance cost of the test data is high; the function test needs complete test service closed loop, and at the moment, other systems are needed to assist to complete all functions of one service flow, so that the test process is complex; depending on the working experience of testers, certain business scenes must be tested by special testers, and labor cost is increased by phase change; in the manual test method, technicians are required to collect test data, write test reports, time cost is increased, and in order to save time, many technicians do not arrange the test reports, so that the test reports are lacked; problems are found in the test period, the test problems need to be repeated to solve the test problems, and the research and development cost is increased; the management of the test cases is disordered, the test work is not facilitated, the manual test efficiency in the related technology is low, and the cost is high.
The embodiment of the invention provides a test method of an application program, which achieves the effect of automatically realizing the test of the application program by establishing a connection between a service code and a code.
According to an embodiment of the present invention, there is provided an embodiment of a test method for an application program, it being noted that the steps shown in the flowcharts of the drawings may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that herein.
In this embodiment, a method for testing an application program is provided, which may be used for the first server described above, and fig. 1 is a flowchart of a method for testing an application program according to an embodiment of the present invention, as shown in fig. 1, where the flowchart includes the following steps:
step S101, code modification information sent by a code warehouse is obtained, and the code modification information is used for representing the difference between a first code and a second code; the first code is the code before modification, and the second code is the code after modification.
Wherein the code repository is used to store and manage source code of the application.
In some alternative embodiments, before obtaining the code alteration information sent by the code repository, the method further comprises:
the control code repository generates a second code according to interface modification information, which is used to characterize information that modifies an interface of the application.
In some alternative embodiments, the control code repository generates the second code according to the interface modification information, the control code repository obtains the first code before modification, and the control code repository compares the first code with the second code to obtain the code modification information.
Step S102, determining a service code corresponding to the code change information, wherein the service code is the code of the test case.
The service codes are a contract, the service codes are codes of test cases, the service codes are stored in a test case warehouse, meanwhile, the service codes are also stored in a code warehouse, one service code corresponds to one code change information, namely, the service codes represent the mapping relation between the code change information and the test cases, one service code corresponds to one test case, and simultaneously corresponds to one code change information.
In some alternative embodiments, the code repository is queried for service codes according to the code modification information, and the code repository is used for storing codes and service codes corresponding to the codes.
Step S103, inquiring a target use case corresponding to the service code from a test use case warehouse by taking the service code as an inquiry condition; the test case warehouse stores a plurality of test cases, and the target case is one of the plurality of test cases.
The test cases are a group of documents which are composed of elements such as test input, execution conditions, expected results and the like so as to complete data of a specific requirement or target test and embody test schemes, methods, technologies and strategies. The test case is the core of the application program test, and describes the operation steps of the test system in the form of a document so as to test a certain program path or verify whether a certain specific requirement is met.
Because the service code corresponds to the code modification information and is also the code of the test case, in the embodiment of the invention, the service code is inquired in the code warehouse according to the code modification information, and the target case is inquired in the test case warehouse according to the service code.
In some alternative embodiments, the above method further comprises: the control case warehouse creates a case set, and adds the associated test cases to the case set to acquire a plurality of test cases according to the case set.
In the embodiment of the invention, the control case warehouse creates the case set, adds the related test cases into the case set, and can directly call the test cases in the case set when a plurality of test cases need to be called in the code change information, thereby having simple operation, improving the efficiency and saving the manpower and material resources.
Step S104, the target use case is sent to a second server, and the second server is used for controlling the mobile terminal to execute the target use case; the second server is in communication connection with the mobile terminal.
In some optional embodiments, the second server is configured to apply for the mobile terminal, obtain the target mobile terminal, and control the target mobile terminal to execute the target use case.
In the embodiment of the present invention, the first server may be a cloud computing system, and the second server may be a central cluster system.
According to the method for testing the application program, the service code is determined according to the code change information, the target use case corresponding to the service code is inquired in the test use case warehouse according to the service code, and the target use case is sent to the second server, so that the second server controls the mobile terminal to execute the target use case. According to the embodiment of the invention, the service codes are acquired, the target use cases are acquired through mapping the service codes and the test cases of the test case warehouse, and the test of the application program is executed according to the target use cases, so that the automation of the test of the application program is realized. Compared with the manual selection function test case and the regression test case in the related technology, the embodiment of the invention saves manpower and material resources, is not easy to make mistakes, reduces the cost and improves the efficiency of the application program test when the application program is tested.
In this embodiment, a method for testing an application program is provided, which may be used for the first server described above, and fig. 2 is a flowchart of a method for testing another application program according to an embodiment of the present invention, as shown in fig. 2, where the flowchart includes the following steps:
step S201, code modification information sent by a code warehouse is obtained, and the code modification information is used for representing the difference between a first code and a second code; the first code is the code before modification, and the second code is the code after modification. Please refer to step S101 in the embodiment shown in fig. 1 in detail, which is not described herein.
Step S202, determining a service code corresponding to the code change information, wherein the service code is the code of the test case. Please refer to step S102 in the embodiment shown in fig. 1 in detail, which is not described herein.
Specifically, the step S202 includes:
step S2021, inquiring a code warehouse according to the code change information to obtain the service code, wherein the code warehouse is used for storing the code and the service code corresponding to the code.
Step S203, inquiring a target use case corresponding to the service code from a test use case warehouse by taking the service code as an inquiry condition; the test case warehouse stores a plurality of test cases, and the target case is one of the plurality of test cases. Please refer to step S103 in the embodiment shown in fig. 1 in detail, which is not described herein.
Step S204, the target use case is sent to a second server, and the second server is used for controlling the mobile terminal to execute the target use case; the second server is in communication connection with the mobile terminal. Please refer to step S104 in the embodiment shown in fig. 1 in detail, which is not described herein.
Step S205, receiving the execution result of the target use case sent by the second server, and displaying the execution result, where the second server is configured to receive the execution result generated and sent by the mobile terminal.
According to the test method for the application program, the execution result of the target use case is displayed so as to record and manage the execution result, the execution result can be checked later, the test quality of the application program can be evaluated through the execution result, the test use case and the code can be improved according to the execution result, and the test efficiency is improved.
In this embodiment, a test system for an application program is provided, and fig. 3 is a flowchart of the operation of the test system for an application program according to an embodiment of the present invention, as shown in fig. 3, where the flowchart includes the following steps:
step S301, a code warehouse is used for acquiring a first code and a second code, comparing the first code with the second code to obtain code change information, and sending the code change information to a cloud computing system; wherein the code alteration information is used to characterize a difference between the first code and the second code; the first code is the code before modification and the second code is the code after modification.
Step S302, a cloud computing system is used for determining a service code corresponding to code change information and inquiring a target use case corresponding to the service code from a test use case warehouse by taking the service code as an inquiry condition; the service code is the code of the test case; the test case warehouse stores a plurality of test cases, and the target case is one of the plurality of test cases.
Step S303, the cloud computing system is configured to send the target use case to the central cluster system.
Step S304, a central cluster system is used for controlling a mobile terminal to execute a target use case; the central cluster system is in communication connection with the mobile terminal.
Step S305, the mobile terminal is configured to execute the target use case.
In some alternative embodiments, the system further comprises: and the case warehouse is used for creating a case set, and adding the associated test cases into the case set to acquire a plurality of test cases according to the case set.
The cloud computing system of the embodiment of the invention is used for determining the service code according to the code modification information, inquiring the target use case corresponding to the service code in the test use case warehouse according to the service code, and sending the target use case to the central cluster system so that the central cluster system controls the mobile terminal to execute the target use case. According to the embodiment of the invention, the service codes are acquired, the target use cases are acquired through mapping the service codes and the test cases of the test case warehouse, and the test of the application program is executed according to the target use cases, so that the automation of the test of the application program is realized. Compared with the manual selection function test case and the regression test case in the related technology, the embodiment of the invention saves manpower and material resources, is not easy to make mistakes, reduces the cost and improves the efficiency of the application program test when the application program is tested.
In this embodiment, a test system for an application program is provided, and fig. 4 is a schematic architecture diagram of an automatic quality monitoring system for an application program according to an embodiment of the present invention, as shown in fig. 4, including:
the base layer comprises a script framework, a report framework and a development tool, the page layer comprises a public page, a payment page and a business page, the scene layer comprises a billing scene, a payment scene and a use case scene, and the application layer comprises use case management, execution management and report management, and the log module is used for continuous integrated management.
In the embodiment of the invention, the base layer is used for providing a script framework, a report framework and a development tool for the subsequent test process; the page layer comprises a plurality of pages of the application program; illustratively, public pages, pay pages, and business pages; the scene layer is a plurality of scenes corresponding to the test cases, and is exemplified by an order scene, a payment scene and a case scene; the application layer is a test application of the application program, wherein the use case management is used for managing and storing the use cases, the execution management is used for executing the test cases to test the application program, the report management is used for generating a test report, and the test report is stored and managed; and the log module is used for continuously and integrally managing, generating logs according to all the nodes and managing the logs.
In this embodiment, a test system for an application program is provided, and fig. 5 is a flowchart of the operation of a test system for another application program according to an embodiment of the present invention, as shown in fig. 5, where the flowchart includes the following steps:
and the code warehouse is used for storing codes, generating code change information and sending the code change information to the cloud computing system.
The code warehouse is provided with a monitoring system, an external endpoint is added through a code management tool, the code submission is monitored, the code version number is received after the code submission is monitored, and the code of the current version is compared with the code of the previous version by a trigger script to generate code change information.
In some alternative embodiments, the trigger script compares the current version of code with the previous version of code, and analyzes the file and method of code modification through the comparison command to obtain code modification information.
In the embodiment of the invention, the mapping relation between the codes and the test cases is maintained in real time, the maintenance of the mapping relation is completed by adding a label (service code) to the test cases, and an index is built for each test case in the case warehouse.
And the cloud computing system is used for inquiring the service codes in the code warehouse according to the code change information and inquiring the test cases in the case warehouse by taking the service codes as inquiry conditions.
The use case framework of the use case warehouse uses a test (pytest) framework, and codes such as equipment connection, parameter configuration and the like are written by executing a specific method, so that the code logic is clear and standard, and the popularization and implementation are convenient; the script analysis adopts a self-grinding algorithm, a checking rule base is maintained in advance, rules are executed one by one according to rule requirements, whether the checking script accords with the checking rule or not is checked, and a script analysis error list is generated under the condition that the checking script does not accord with the checking rule, so that engineers uploading the script can conveniently adjust the script.
In some optional embodiments, the use case repository may be used to test and correlate the use cases through manual operation, for example, click "test run" on a single use case editing page, select a mobile phone in a "to use" state, and then run the use cases, click "to correlate test cases" may add multiple use cases to the use case set, input the use case name to search for the use cases, click and submit button to complete maintenance of the use case set.
In some alternative embodiments, a use case repository may be used to time execution of tasks, illustratively by configuring expressions of a use case set, to implement the function of timing execution of use cases. When the time reaches a preset time point, triggering task execution, sending case information to the central server cluster to trigger the case to execute the task, and sending an automatic execution command to the mobile phone cluster through a preset protocol by the central cluster system, so that automatic function execution is finally realized.
And the cloud computing system is used for sending the test cases to the central cluster system.
The central cluster system is used for creating a task queue, adding the test cases into the task queue, applying for equipment to the equipment scheduling system, executing remote call, and controlling the equipment to execute the test cases; and is used for sending the use case execution result to the reporting system.
Wherein, the test tasks and test cases in the task queue are executed according to the first-in first-out principle.
In some alternative embodiments, the central cluster system is configured to apply for device resources to the device scheduling system, obtain a device serial number (device unique identifier), release the device resources after the test case is executed, notify the device scheduling system, and update the device state.
The central cluster system can realize the following task scheduling: executing the single use case bill equipment; repeatedly executing the single use case multiple devices; the multi-purpose example list equipment is executed in series; the multiple use case multiple devices execute in parallel.
In some alternative embodiments, the device scheduling system is configured to perform management of mobile end devices, where the functions that may be implemented include: adding, editing and deleting equipment; device state management, wherein the state of the device comprises to-be-used, in-use, maintenance and the like; and equipment information is queried, acquired, and conveniently called remotely.
And the reporting system is used for generating a test report according to the execution result and generating notification information based on the test report.
As shown in FIG. 6, in order to illustrate the flow chart of the test case report generating method, when the test case is executed, the test case is executed by calling the scripts, and the execution result of each script can generate an execution report, and all the execution reports generated by all the scripts in one task form a test report.
In the embodiment of the invention, when the script is compiled, the basic data can be acquired by accessing the interface in the script, so that the complex work of searching the data each time is solved, the error probability is low, and the test cost is greatly reduced; the convenience is provided for executing various complex operations by calling the script, the fault tolerance rate is low, and the strong dependence on the personal working experience of engineers is reduced; because the early-stage script writing has realized the code precipitation of experience, the execution script does not need complex technical difficulty and does not need to know the business knowledge of the script execution scene, so the dependence on the manual experience is greatly reduced; various modes such as assertion, screen capturing, exception handling, screen recording and the like are added in the script, so that the output result of the report is enriched, and the result is clear; when in manual testing, the conditions of difficult reproduction and high sporadic performance of an abnormal scene often occur, and the method and the device are particularly dependent on the factors such as interfaces, equipment, networks, human habits and the like at the time; through the use case uploading, configuration items are standardized, so that related use cases can be found conveniently and quickly, uploading and maintenance of the use cases are facilitated, convenience is provided for the use cases to be positioned quickly in a search engine through a label mechanism, basic material data is provided for the computing use cases of a code warehouse computing system, and the accuracy of labels greatly improves the accuracy of use case execution; through the support of a search engine, the corresponding test cases can be quickly found by inputting keywords, and related test cases can be executed when needed, so that the problems can be found as soon as possible and solved in time.
The embodiment also provides a device for testing an application program, which is used for implementing the above embodiment and the preferred implementation, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
The present embodiment provides a test device for an application program, as shown in fig. 7, including:
the information acquisition module 701 is configured to acquire code modification information sent by the code repository, where the code modification information is used to characterize a difference between the first code and the second code; the first code is the code before modification, and the second code is the code after modification.
The service code determining module 702 is configured to determine a service code corresponding to the code modification information, where the service code is a code of the test case.
The target use case acquisition module 703 is configured to query a target use case corresponding to the service code from the test use case repository using the service code as a query condition; the test case warehouse stores a plurality of test cases, and the target case is one of the plurality of test cases.
The target use case execution module 704 is configured to send the target use case to a second server, where the second server is configured to control the mobile terminal to execute the target use case; the second server is in communication connection with the mobile terminal.
In some alternative embodiments, the traffic coding determination module 702 includes:
and the code warehouse inquiry unit is used for inquiring the code warehouse according to the code change information to obtain the service codes, and the code warehouse is used for storing the codes and the service codes corresponding to the codes.
In some alternative embodiments, the apparatus further comprises:
the second code generation module is used for controlling the code warehouse to generate a second code according to interface change information, wherein the interface change information is used for representing information for changing an interface of the application program.
The result display module is used for receiving the execution result of the target use case sent by the second server and displaying the execution result, and the second server is used for receiving the execution result generated and sent by the mobile terminal.
The test case association module is used for controlling the case warehouse to create a case set, and adding the associated test cases into the case set so as to acquire a plurality of test cases according to the case set.
Further functional descriptions of the above respective modules and units are the same as those of the above corresponding embodiments, and are not repeated here.
The test device for the application program in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit ) circuit, a processor and a memory executing one or more software or fixed programs, and/or other devices that can provide the above-mentioned functions.
The embodiment of the invention also provides computer equipment, which is provided with the testing device of the application program shown in the figure 7.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a computer device according to an alternative embodiment of the present invention, as shown in fig. 8, the computer device includes: one or more processors 10, memory 20, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are communicatively coupled to each other using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the computer device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In some alternative embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple computer devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 10 is illustrated in fig. 8.
The processor 10 may be a central processor, a network processor, or a combination thereof. The processor 10 may further include a hardware chip, among others. The hardware chip may be an application specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general-purpose array logic, or any combination thereof.
Wherein the memory 20 stores instructions executable by the at least one processor 10 to cause the at least one processor 10 to perform the methods shown in implementing the above embodiments.
The memory 20 may include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, memory 20 may optionally include memory located remotely from processor 10, which may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk, or solid state disk; the memory 20 may also comprise a combination of the above types of memories.
The computer device also includes a communication interface 30 for the computer device to communicate with other devices or communication networks.
The embodiments of the present invention also provide a computer readable storage medium, and the method according to the embodiments of the present invention described above may be implemented in hardware, firmware, or as a computer code which may be recorded on a storage medium, or as original stored in a remote storage medium or a non-transitory machine readable storage medium downloaded through a network and to be stored in a local storage medium, so that the method described herein may be stored on such software process on a storage medium using a general purpose computer, a special purpose processor, or programmable or special purpose hardware. The storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, a solid state disk or the like; further, the storage medium may also comprise a combination of memories of the kind described above. It will be appreciated that a computer, processor, microprocessor controller or programmable hardware includes a storage element that can store or receive software or computer code that, when accessed and executed by the computer, processor or hardware, implements the methods illustrated by the above embodiments.
Although embodiments of the present invention have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope of the invention as defined by the appended claims.

Claims (10)

1. A method for testing an application program, the method being applied to a first server, the method comprising:
acquiring code modification information sent by a code warehouse, wherein the code modification information is used for representing the difference between a first code and a second code; the first code is a code before modification, and the second code is a code after modification;
determining a service code corresponding to the code change information, wherein the service code is a code of a test case;
inquiring a target use case corresponding to the service code from a test use case warehouse by taking the service code as an inquiry condition; the test case warehouse stores a plurality of test cases, and the target case is one of the plurality of test cases;
the target use case is sent to a second server, and the second server is used for controlling a mobile terminal to execute the target use case; the second server is in communication connection with the mobile terminal.
2. The method of claim 1, wherein the determining the service code corresponding to the code modification information comprises:
and inquiring the code warehouse according to the code change information to obtain the service code, wherein the code warehouse is used for storing codes and the service codes corresponding to the codes.
3. The method of claim 1 or 2, wherein prior to the retrieving code alteration information from the code repository, the method further comprises:
and controlling the code warehouse to generate the second code according to interface change information, wherein the interface change information is used for representing information for changing an interface of an application program.
4. The method according to claim 1 or 2, characterized in that the method further comprises:
and receiving the execution result of the target use case sent by the second server, and displaying the execution result, wherein the second server is used for receiving the execution result generated and sent by the mobile terminal.
5. The method according to claim 1 or 2, characterized in that the method further comprises:
and controlling the case warehouse to create a case set, and adding the associated test cases into the case set to acquire a plurality of test cases according to the case set.
6. A test system for an application program, the system comprising:
the code warehouse is used for acquiring a first code and a second code, comparing the first code with the second code to obtain code change information, and sending the code change information to the cloud computing system; wherein the code alteration information is used to characterize a difference between the first code and the second code; the first code is a code before modification, and the second code is a code after modification;
the cloud computing system is used for determining a service code corresponding to the code change information and inquiring a target use case corresponding to the service code from a test use case warehouse by taking the service code as an inquiry condition; wherein, the service code is the code of the test case; the test case warehouse stores a plurality of test cases, and the target case is one of the plurality of test cases;
the cloud computing system is used for sending the target use cases to a central cluster system;
the central cluster system is used for controlling the mobile terminal to execute the target use case; the central cluster system is in communication connection with the mobile terminal;
the mobile terminal is configured to execute the target use case.
7. The system of claim 6, wherein the system further comprises:
the case warehouse is used for creating a case set, and adding the associated test cases into the case set so as to acquire a plurality of test cases according to the case set.
8. A test device for an application program, applied to a first server, the device comprising:
the information acquisition module is used for acquiring code modification information sent by the code warehouse, and the code modification information is used for representing the difference between the first code and the second code; the first code is a code before modification, and the second code is a code after modification;
the service code determining module is used for determining a service code corresponding to the code change information, wherein the service code is the code of the test case;
the target use case acquisition module is used for inquiring the target use case corresponding to the service code from the test use case warehouse by taking the service code as an inquiry condition; the test case warehouse stores a plurality of test cases, and the target case is one of the plurality of test cases;
the target use case execution module is used for sending the target use case to a second server, and the second server is used for controlling the mobile terminal to execute the target use case; the second server is in communication connection with the mobile terminal.
9. A computer device, comprising:
a memory and a processor, the memory and the processor being communicatively connected to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the method of testing an application of any of claims 1 to 5.
10. A computer-readable storage medium having stored thereon computer instructions for causing a computer to execute the test method of the application program of any one of claims 1 to 5.
CN202311499617.8A 2023-11-10 2023-11-10 Application program testing method, system, device, equipment and storage medium Pending CN117520172A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311499617.8A CN117520172A (en) 2023-11-10 2023-11-10 Application program testing method, system, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311499617.8A CN117520172A (en) 2023-11-10 2023-11-10 Application program testing method, system, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117520172A true CN117520172A (en) 2024-02-06

Family

ID=89747298

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311499617.8A Pending CN117520172A (en) 2023-11-10 2023-11-10 Application program testing method, system, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117520172A (en)

Similar Documents

Publication Publication Date Title
US10116534B2 (en) Systems and methods for WebSphere MQ performance metrics analysis
CN112783793B (en) Automatic interface test system and method
EP2779044A1 (en) System and method to provide management of test data at various lifecycle stages
CN111522728A (en) Method for generating automatic test case, electronic device and readable storage medium
US10528456B2 (en) Determining idle testing periods
US10713070B2 (en) Systems and methods for capturing and visualizing user interactions across devices
CN112631919B (en) Contrast test method, device, computer equipment and storage medium
CN109254912A (en) A kind of method and device of automatic test
CN113392005B (en) Large file processing test method and system
CN112416803A (en) Automatic testing method and device
CN112148587A (en) Software test management system and method
CN114996127A (en) Intelligent test method and system for solid state disk firmware module
CN112019404A (en) Method and device for automatically testing FC-AE-1553 communication protocol chip
CN111258893A (en) Mobile terminal application automatic testing device for randomly assembling transaction path
CN115248782B (en) Automatic testing method and device and computer equipment
CN114610597A (en) Pressure testing method, device, equipment and storage medium
CN114155054A (en) Big data report statistics testing method and system based on kafka
CN116578497A (en) Automatic interface testing method, system, computer equipment and storage medium
CN117520172A (en) Application program testing method, system, device, equipment and storage medium
CN115757090A (en) Software testing system, method, device and medium
CN116044867A (en) Hydraulic system control method, system, equipment and medium based on automatic programming
CN113094266B (en) Fault testing method, platform and equipment for container database
CN112699022B (en) Method and system for real-time efficient automatic contract testing
CN114661571A (en) Model evaluation method, model evaluation device, electronic equipment and storage medium
CN111679924B (en) Reliability simulation method and device for componentized software system and electronic equipment

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