CN113342645A - Method, device, equipment and storage medium for testing service function - Google Patents

Method, device, equipment and storage medium for testing service function Download PDF

Info

Publication number
CN113342645A
CN113342645A CN202110600656.7A CN202110600656A CN113342645A CN 113342645 A CN113342645 A CN 113342645A CN 202110600656 A CN202110600656 A CN 202110600656A CN 113342645 A CN113342645 A CN 113342645A
Authority
CN
China
Prior art keywords
service function
terminal
target
target service
instruction
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.)
Granted
Application number
CN202110600656.7A
Other languages
Chinese (zh)
Other versions
CN113342645B (en
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 Kuxun Technology Co Ltd
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online 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 Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN202110600656.7A priority Critical patent/CN113342645B/en
Publication of CN113342645A publication Critical patent/CN113342645A/en
Application granted granted Critical
Publication of CN113342645B publication Critical patent/CN113342645B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/3664Environments for testing or debugging software
    • 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)
  • Debugging And Monitoring (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application discloses a method, a device, equipment and a storage medium for testing service functions, and belongs to the technical field of internet. The method comprises the following steps: receiving a preprocessing instruction corresponding to a target service function of the target application program, which is sent by a second terminal, wherein the preprocessing instruction carries a download link of execution basic data corresponding to the target service function; acquiring the execution basic data based on the download link; and receiving a test control instruction corresponding to the target service function sent by the second terminal, and testing the target service function based on the test control instruction and the execution basic data to obtain a test result corresponding to the target service function. By the application program testing method and device, testing efficiency of the application program can be improved.

Description

Method, device, equipment and storage medium for testing service function
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method, an apparatus, a device, and a storage medium for testing a service function.
Background
With the development of internet technology, more and more business functions can be realized by various application programs, wherein during the process of using the application programs, the application programs may generate execution basic data and store the execution basic data locally, and when some business functions are executed, the locally stored execution basic data needs to be acquired, and then the corresponding business functions are executed according to the execution basic data. For example, the service function is an automatic display search record function, and the application program can save text searched by the user as execution basic data locally when the user searches data through the search box at ordinary times. When the user clicks the search box again, a historical search record, i.e., search text saved locally, may be displayed below the search box.
Generally, after an application program is developed, a tester is required to test whether each service function of the developed application program can be normally implemented according to design requirements. When testing the corresponding service function of the execution basic data, a tester needs to operate the application program first, so that the application program generates the corresponding execution basic data and stores the corresponding execution basic data in the terminal, and then the corresponding service function is tested. For example, if the service function to be tested is an automatic search record display function, before testing the service function, a tester needs to open a search page, search for some keywords, such as "tomorrow weather", in a search box corresponding to the search page, close the search page, open the search page again and click the search box, and check whether "tomorrow weather" can be normally displayed below the search box.
In the course of implementing the present application, the inventors found that the related art has at least the following problems:
when testing the corresponding business function of the execution basic data, a tester needs to manually operate the application program to enable the application program to generate the corresponding execution basic data, and then the corresponding business function can be tested. Therefore, the tester cannot directly test the corresponding service function, and the efficiency of the tester in testing the application program is low.
Disclosure of Invention
The embodiment of the application provides a method, a device, a system, equipment and a storage medium for testing business functions, which can improve the efficiency of testing the business functions of application programs. The technical scheme is as follows:
in a first aspect, a method for testing service functions is provided, where the method is used for a first terminal, and a target application is installed in the first terminal, and the method includes:
receiving a preprocessing instruction corresponding to a target service function of the target application program, which is sent by a second terminal, wherein the preprocessing instruction carries a download link of execution basic data corresponding to the target service function;
acquiring the execution basic data based on the download link;
and receiving a test control instruction corresponding to the target service function sent by the second terminal, and testing the target service function based on the test control instruction and the execution basic data to obtain a test result corresponding to the target service function.
Optionally, the execution basic data includes a target service function identifier, and after the execution basic data is obtained based on the download link, the method further includes:
and determining a target storage position corresponding to the target business function identifier based on the corresponding relation between the preset business function identifier and the storage position of the execution basic data in the target application program, and storing the execution basic data in the target storage position.
Optionally, the test control instruction includes at least one operation control instruction and a result verification instruction, where each operation control instruction is one of a click instruction, a slide instruction, or a text input instruction, and the result verification instruction carries a target control identifier;
the receiving a test control instruction corresponding to the target service function sent by the second terminal, and testing the target service function based on the test control instruction and the execution basic data to obtain a test result corresponding to the target service function includes:
receiving at least one operation control instruction sent by the second terminal in sequence, and performing operation based on the currently received operation control instruction when receiving one operation control instruction;
when the target business function is detected to be triggered, executing the target business function based on the execution basic data;
and determining a test result of the target service function based on the execution result of the target service function.
Optionally, the test control instruction includes operation instruction information and a target control identifier, where the operation instruction information includes at least one of click operation information, sliding operation information, and text input operation information;
the receiving a test control instruction corresponding to the target service function sent by the second terminal, and testing the target service function based on the test control instruction and the execution basic data to obtain a test result corresponding to the target service function includes:
receiving a test control instruction corresponding to the target service function sent by the second terminal, and performing operation based on operation instruction information included in the test control instruction;
when the target business function is detected to be triggered, executing the target business function based on the execution basic data;
and determining a test result of the target service function based on the execution result of the target service function.
Optionally, the determining a test result of the target service function based on the execution result of the target service function includes:
after the target business function is executed, detecting whether a control corresponding to the target control identification is included in the current interface of the target application program or not based on the target control identification included in the test control instruction, and determining a test result of the target business function based on the detection result.
Optionally, after obtaining the test result corresponding to the target service function, the method further includes:
and sending the test result corresponding to the target service function to the second terminal.
In a second aspect, a method for testing service functions is provided, where the method is used for a second terminal, and the method includes:
sending a preprocessing instruction corresponding to a target service function of a target application program to a first terminal, wherein the preprocessing instruction carries a download link of execution basic data corresponding to the target service function, and the preprocessing instruction is used for indicating the first terminal to acquire the execution basic data based on the download link;
and sending a test control instruction corresponding to the target service function to a first terminal, wherein the test control instruction is used for instructing the first terminal to test the target service function based on the test control instruction and the execution basic data to obtain a test result corresponding to the target service function.
Optionally, the sending the test control instruction corresponding to the target service function to the first terminal includes:
and when the time length after the preprocessing instruction corresponding to the target service function of the target application program is sent to the first terminal reaches the preset time length, sending a test control instruction corresponding to the target service function to the first terminal.
In a third aspect, an apparatus for testing service functions is provided, the apparatus comprising:
a receiving module, configured to receive a preprocessing instruction corresponding to a target service function of the target application program, where the preprocessing instruction carries a download link of execution basic data corresponding to the target service function, and the preprocessing instruction is sent by a second terminal;
the downloading module is used for acquiring the execution basic data based on the downloading link;
and the test module is used for receiving a test control instruction corresponding to the target service function sent by the second terminal, and testing the target service function based on the test control instruction and the execution basic data to obtain a test result corresponding to the target service function.
Optionally, the apparatus further includes a storage module, configured to:
and determining a target storage position corresponding to the target business function identifier based on the corresponding relation between the preset business function identifier and the storage position of the execution basic data in the target application program, and storing the execution basic data in the target storage position.
Optionally, the test control instruction includes at least one operation control instruction and a result verification instruction, where each operation control instruction is one of a click instruction, a slide instruction, or a text input instruction, and the result verification instruction carries a target control identifier;
a test module to: receiving at least one operation control instruction sent by the second terminal in sequence, and performing operation based on the currently received operation control instruction when receiving one operation control instruction;
when the target business function is detected to be triggered, executing the target business function based on the execution basic data;
and determining a test result of the target service function based on the execution result of the target service function.
Optionally, the test control instruction includes operation instruction information and a target control identifier, where the operation instruction information includes at least one of click operation information, sliding operation information, and text input operation information;
the test module is configured to receive a test control instruction corresponding to the target service function sent by the second terminal, and perform an operation based on operation instruction information included in the test control instruction;
when the target business function is detected to be triggered, executing the target business function based on the execution basic data;
and determining a test result of the target service function based on the execution result of the target service function.
Optionally, the test module is configured to:
after the target business function is executed, detecting whether a control corresponding to the target control identification is included in the current interface of the target application program or not based on the target control identification included in the test control instruction, and determining a test result of the target business function based on the detection result.
Optionally, after obtaining the test result corresponding to the target service function, the apparatus further includes a sending module, configured to: and sending the test result corresponding to the target service function to the second terminal.
In a fourth aspect, an apparatus for testing service functions is provided, the apparatus comprising:
a first sending module, configured to send a preprocessing instruction corresponding to a target service function of a target application to a first terminal, where the preprocessing instruction carries a download link of execution basic data corresponding to the target service function, and the preprocessing instruction is used to instruct the first terminal to obtain the execution basic data based on the download link;
and the second sending module is used for sending a test control instruction corresponding to the target service function to the first terminal, wherein the test control instruction is used for instructing the first terminal to test the target service function based on the test control instruction and the execution basic data to obtain a test result corresponding to the target service function.
Optionally, the second sending module is configured to:
and when the time length after the preprocessing instruction corresponding to the target service function of the target application program is sent to the first terminal reaches the preset time length, sending a test control instruction corresponding to the target service function to the first terminal.
In a fifth aspect, there is provided a system for testing service functionality, the system comprising a first terminal and a second terminal, wherein,
the first terminal is provided with a target application program and is used for receiving a preprocessing instruction which is sent by a second terminal and corresponds to a target service function of the target application program, wherein the preprocessing instruction carries a download link of execution basic data corresponding to the target service function; acquiring the execution basic data based on the download link; receiving a test control instruction corresponding to the target service function sent by the second terminal, and testing the target service function based on the test control instruction and the execution basic data to obtain a test result corresponding to the target service function;
the second terminal is configured to send a preprocessing instruction corresponding to a target service function of the target application program to the first terminal, where the preprocessing instruction carries a download link of execution basic data corresponding to the target service function, and the preprocessing instruction is used to instruct the first terminal to obtain the execution basic data based on the download link; and sending a test control instruction corresponding to the target service function to a first terminal, wherein the test control instruction is used for instructing the first terminal to test the target service function based on the test control instruction and the execution basic data to obtain a test result corresponding to the target service function.
In a sixth aspect, there is provided a first terminal comprising a processor and a memory, wherein the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the operations performed by the method for testing service functions according to the first aspect.
In a seventh aspect, a second terminal is provided, where the second terminal includes a processor and a memory, and the memory stores at least one instruction, where the at least one instruction is loaded and executed by the processor to implement the operations performed by the method for testing service functions according to the second aspect.
In a seventh aspect, a computer-readable storage medium is provided, in which at least one instruction is stored, and the at least one instruction is loaded and executed by a processor to implement the operations performed by the method for testing business functions according to the first and second aspects.
The technical scheme provided by the embodiment of the application has the following beneficial effects:
after the first terminal receives the preprocessing instruction, the first terminal can download the execution basic data corresponding to the target service function through the download link carried in the preprocessing instruction, and then test the target service function according to the test control instruction sent by the second terminal to obtain a test result. Obviously, in the application, a tester does not need to manually operate the target application program to generate corresponding execution basic data, and can test the target service function according to the corresponding test control instruction, so that the test efficiency of the application program can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for testing service functions according to an embodiment of the present application;
fig. 2 is a flowchart of a method for testing service functions according to an embodiment of the present application;
fig. 3 is a flowchart of a method for testing service functions according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an apparatus for testing service functions according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an apparatus for testing service functions according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a terminal provided in an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The method for testing the service function can be realized by the terminal. The terminal can be provided with an application program to be tested. The terminal may be an entity terminal, that is, the terminal may have hardware devices such as a processor, a memory, a display screen, and the like, and may be, for example, a mobile phone, a tablet computer, an intelligent wearable device, a desktop computer, a notebook computer, and the like. The terminal may also be a virtual terminal, such as a virtual device running on another physical terminal.
After the technical personnel develop the application program, the testing personnel is generally required to test each service function of the application program, such as taking a picture, sending information, searching data, and the like, so as to ensure that the newly developed application program can implement various service functions designed in advance without errors. For example, a tester may directly install an application program to be tested in a mobile phone, then manipulate the application program to be tested, use each service function one by one, and then check whether the corresponding function can be normally executed, so as to determine whether the application program to be tested has a problem. However, some business function testing processes that need to execute basic data are complicated, and when testing the business function that needs to execute the basic data, a tester needs to operate the application program under test in advance to generate corresponding execution basic data, and then tests whether the corresponding business function can be normally executed. The execution basic data can be data downloaded locally by the application program, such as a multimedia file; or may be recorded data related to the application program used by the user, such as the number of times the user uses each service function, the chat history of the user, and so on.
For example, if the service function is an automatic search record display function, the tester needs to click a search box in a search page of the application program under test, and then searches for some keywords in the search box, where the application program under test may store the keywords in the local, where the stored keywords are the execution basic data. Then the tester needs to click the search box again in the search page of the application program to be tested, and checks whether the historical search record is displayed below the search box, if the historical search record is normally displayed, it is determined that the function of automatically displaying the search record has no problem. And when the corresponding service function can not be normally executed, the problem of the application program for testing can be determined. In the method for testing the service function provided by the embodiment of the application, when the service function of the basic data to be executed is tested, the application program to be tested does not need to be operated in advance to generate the corresponding execution basic data, and the environment with the execution basic data can be directly constructed.
Fig. 1 is a flowchart of a method for testing service functions, which is provided in an embodiment of the present application, and is used for a first terminal, where a target application is installed in the first terminal, as shown in fig. 1, the method includes:
step 101, receiving a preprocessing instruction corresponding to a target service function of a target application program sent by a second terminal, wherein the preprocessing instruction carries a download link of execution basic data corresponding to the target service function.
And 102, acquiring execution basic data based on the download link.
After the execution basic data is obtained, the obtained execution basic data can be stored in the first terminal at a position where the execution basic data corresponding to the target service function is stored.
Step 103, receiving a test control instruction corresponding to the target service function sent by the second terminal, and testing the target service function based on the test control instruction and the execution basic data to obtain a test result corresponding to the target service function.
Fig. 2 is a flowchart of a method for testing service functions according to an embodiment of the present application, where the method is used for a second terminal, and as shown in fig. 2, the method includes:
step 201, sending a preprocessing instruction corresponding to a target service function of a target application program to a first terminal, wherein the preprocessing instruction carries a download link of execution basic data corresponding to the target service function, and the preprocessing instruction is used for instructing the first terminal to acquire the execution basic data based on the download link;
step 202, sending a test control instruction corresponding to the target service function to the first terminal, where the test control instruction is used to instruct the first terminal to test the target service function based on the test control instruction and the execution basic data, so as to obtain a test result corresponding to the target service function.
Fig. 3 is a flowchart of a method for testing service functions according to an embodiment of the present application, where the method is used for interaction between a first terminal and a second terminal, and as shown in fig. 3, the method includes:
step 301, the second terminal sends a preprocessing instruction corresponding to the target service function of the target application program to the first terminal.
The preprocessing instruction carries a download link of execution basic data corresponding to the target service function. The second terminal may establish a connection with the first terminal, for example, establish a network connection, a bluetooth connection, or connect through a data line. When the first terminal is a virtual device, the first terminal may operate in the second terminal. For example, the second terminal may be a computer, and the first terminal is an android virtual machine. A target application to be tested (hereinafter simply referred to as target application) may be installed in the first terminal.
In implementation, a technician may write a test script for each business function in the target application in advance, where the test script may include a test operation program for each business function in the target application, such as a click operation, a sliding operation, and the like. In addition, a program for preprocessing the target business function of the target application program, that is, a processing step performed before the target business function is tested, may be included in the test script. For example, the second terminal may send an instruction to start the target application to the first terminal by running the test script, to instruct the target application data downloading process, and the like.
The preprocessing instruction can include a command line for starting the target application program. The command line may include an application identification of the target application, and the first terminal may start the target application after receiving the command line according to the application identification included in the start command line. The command line can carry a download link of the execution basic data corresponding to the target service function. For example, the command line for a cell phone of the Android system (a mobile operating system) may be adb shell am start + package name/. Activity- -escache "http:// XXX. com/XXX". The command line for the handset of the IOS system (a mobile operating system) may be open myapp.app- -args-cache "http:// XXX.com/XXX", where "http:// XXX.com/XXX" is the download link to execute the underlying data. Alternatively, an Appium (an automated testing tool) may be installed in the second terminal. In implementation, the second terminal may start the app server and execute the test script, and the test script may send a corresponding preprocessing instruction and the like to the app server, and the app server sends a corresponding preprocessing instruction and the like to the first terminal. The preprocessing instruction for starting the target application program sent to the first terminal may carry a download link of execution basic data corresponding to the target service function.
Step 302, the first terminal obtains execution basic data based on the download link.
In implementation, a technician may preset corresponding execution basic data according to each service function that needs to be tested in the target application program. For example, for the automatic display search record function, search data may be set in advance; for the chat log function search function, the chat log data may be set in advance. Then, for each service function to be tested, the corresponding execution basic data can be stored in the server, and different download links can be set. After receiving the preprocessing instruction, the first terminal may download the execution basic data corresponding to the target service function according to the download link carried in the preprocessing instruction.
Step 303, determining a target storage location corresponding to the target service function identifier based on a corresponding relationship between the preset service function identifier and a storage location of the execution basic data in the target application program, and storing the execution basic data in the target storage location.
The execution basic data may include a service function identifier corresponding to the execution basic data.
Generally, different paths may exist in the execution basic data of different business functions in the application program, and when any business function is executed, the execution basic data may be acquired through the corresponding path, and then the corresponding business function may be executed according to the acquired execution basic data. Therefore, after the target application program downloads the execution basic data, the downloaded execution basic data can be stored in the storage path corresponding to the service function.
In implementation, the correspondence between the service function identifier and the storage location (storage path) of the execution basic data in the target application program may be set according to the storage path of the basic storage data corresponding to each service function in the target application program. After downloading the execution basic data corresponding to the target service function, the first terminal may determine the corresponding target storage location according to the service function identifier included in the execution basic data. And then storing the execution basic data corresponding to the downloaded target service function to a target storage position. In this way, although the execution basic data corresponding to the target business function is not generated by operating the target application program, the storage location thereof is the same as the storage location of the execution basic data corresponding to the target business function generated by the target application program, that is, by downloading the execution basic data, a business scenario with the execution basic data can be previously constructed for the target business function, and the tester does not need to operate the target application program to generate the corresponding execution basic data again to construct the business scenario with the execution basic data.
In one implementation, the technician may set the service reporting function in the target application. In the process of operating the target application program, when reading or writing the execution basic data corresponding to the service scene, the target application program can report the data and report the relevant information of the corresponding execution basic data to the server.
The writing of the corresponding execution basic data may be writing, by the target application program, the first execution basic data generated by the operation of the user to the target storage location during the use of the target application program by the user. The service reporting function may be to report the written first execution basic data, the writing time, the corresponding target service scenario, and the like to the server, so that a technician may set second execution basic data for the corresponding service scenario according to the reported first execution basic data. And the second execution basic data is the execution basic data downloaded by the target application program according to the preprocessing instruction when the target application program is tested. Or, writing the corresponding execution basic data may also be that, in the process of testing the target application program, the target application program writes the downloaded second execution basic data to the target storage location. Thus, a technician can determine whether a service scene corresponding to the execution basic data is successfully constructed in the target application program according to the reported execution basic data.
Reading the corresponding execution basis data may be the target application program's reading of already stored execution basis data to the target storage location. The execution basis data may be second execution basis data downloaded according to the preprocessing instruction. The service reporting function may be to report the read downloaded second execution basic data, the read time, the corresponding target service scenario, and the like to the server. Therefore, a technician can determine whether the target application program successfully reads the downloaded second execution basic data according to the reported data.
In addition, it should be noted that, in the embodiment of the present application, it may also be tested whether the service function is normally executed in a scenario where the execution basic data is not set. For example, only the corresponding service scene identifier may be set in the execution basic data downloaded according to the preprocessing instruction, and the corresponding execution data may be set to be null. After the basic data is executed after being downloaded according to the preprocessing instruction, the downloaded execution basic data can be written into the corresponding target storage position in a covering manner, so that even if the target service scene has historical execution basic data, because the execution basic data with empty execution data is written in the covering manner, the execution basic data corresponding to the target service scene is empty, namely, the scene without the execution basic data is successfully constructed, and when the target service scene is executed again, whether the service function under the scene without the execution basic data is normally executed can be tested.
And step 304, the second terminal sends a test control instruction corresponding to the target service function to the first terminal.
The second terminal can send a test control instruction corresponding to the target service function to the first terminal through the app server. A timeout period may be set in the test control command, and the first terminal may perform the following step 305 within or after the timeout period. Therefore, the time for downloading and executing the basic data according to the downloading link in the preprocessing instruction can be reserved for the first terminal. The timeout period may be set by a technician according to the size of the execution basic data, and the like, and the specific period is not limited herein.
And 305, the first terminal tests the target service function based on the test control instruction and the execution basic data to obtain a test result corresponding to the target service function.
In implementation, after sending the preprocessing instruction to the first terminal, the second terminal may send a test control instruction corresponding to the target service function to the first terminal. For example, the application server sends a corresponding test control command to the first terminal. After receiving the test control instruction corresponding to the sent target service function, the first terminal may operate the target application program according to the test control instruction, for example, perform corresponding clicking and sliding on an interface of the current target application program according to the test control instruction, so as to trigger the target service function in the target application program. So that the target application program can execute the target business function after detecting that the target business function is triggered. The test result for the target business function may then be determined based on the execution result of the target business function.
Optionally, the test control instruction includes at least one operation control instruction and a result verification instruction, where each operation control instruction is one of a click instruction, a slide instruction, or a text input instruction, and the corresponding processing of step 305 may be as follows:
step a1, receiving at least one operation control instruction sent by the second terminal in sequence, and operating based on the currently received operation control instruction when receiving one operation control instruction;
in implementation, the test script may establish a connection with the app Server to perform communication, the second terminal may run the test script, and send the test script to the app Server to generate a corresponding operation control instruction, such as a click instruction, a slide instruction, a text input instruction, and the like, where the click instruction may be a click on a certain control in the target application program, and may be a click, a double click, and the like, the slide instruction may be a quick slide, a multi-finger slide, and the like performed on a certain page in the target application program, and the text input instruction may be an instruction to input a preset character in a specified text box. The Apdium Server can send the received operation control instruction to the first terminal. After receiving each operation control instruction, the first terminal may perform operations such as clicking, sliding, text inputting and the like on an interface of the target application program according to the received operation control instruction, so as to replace a tester to manually operate the target application program to trigger the target service function.
Step a2, when detecting that the target business function is triggered, executing the target business function based on the execution basic data.
In implementation, when the target application detects that the target business function is triggered, the target business function may be executed according to the downloaded execution basic data. In step 202, the location where the downloaded execution basic data is stored is the same as the location where the execution basic data is generated by the target application. Therefore, the target application program only needs to normally execute the target service function without adding extra execution codes in the target service function.
Step a3, based on the result of executing the target business function, determining the test result of the target business function.
In implementation, a technician may set a corresponding verification method in advance according to an execution result of the target business function when the execution basic data exists, so as to determine whether the target business function is successfully executed. After obtaining the execution result of the target service function, the first terminal may send the execution result to the app Server. And then the test script is sent back by the Apdium Server.
The technician may set a corresponding verification method in advance according to an execution result of the target service function when the execution basic data exists, for example, the target service function is an advertisement display function, and the execution basic data is an advertisement display picture. When the advertisement display picture is locally stored, the target service function can directly read the locally stored advertisement display picture and display the advertisement display picture, and when the advertisement display picture is not locally stored, the target application program can send an advertisement display picture acquisition notice to the service server. Therefore, when the target business function is the advertisement presentation function, it may be detected whether the target application program sends an advertisement presentation picture acquisition notification to the business server, or whether an advertisement presentation picture is presented in a page, thereby determining whether the target business function is successfully executed.
Optionally, the test control instruction may further include a result verification instruction, the first terminal may further receive the result verification instruction sent by the second terminal, detect whether the current interface of the target application program includes a control corresponding to the target control identifier according to the target control identifier carried in the result verification instruction, and determine a test result corresponding to the target service function based on the detection result.
In an implementation, the second terminal may send a result verification instruction to the first terminal to determine an execution result of the target service function. After the execution of the general service function is finished, a corresponding execution result control appears on the current display page of the target application program. For example, the target service function is an automatic search record display function, and after the target service function is executed, that is, after a search box is clicked, a historical search record is displayed below the search box, where the displayed historical search record may be displayed through a text control, so that it may be determined whether the target service function is successfully executed by detecting whether a corresponding text control is included in an interface of a current target application program. For the control for detecting the text class, the result verification instruction may further include content in the control, that is, after the corresponding text control is detected, the content in the text control may also be detected to determine whether the target service function is successfully executed.
It should be noted that, different verification methods may be set by a technician according to different service functions, respectively in the service execution logic with execution basic data and the service execution logic without execution basic data, and are not listed here one by one.
Optionally, the test control instruction includes operation instruction information and a target control identifier, and the corresponding processing in step 305 may be as follows:
and b1, receiving a test control instruction corresponding to the target service function sent by the second terminal, and performing click operation, sliding operation or text input operation based on operation instruction information included in the test control instruction.
In implementation, the operation indication information included in the test control instruction may be operation identification information generated corresponding to an operation sequence triggering the target service function, such as a click operation identification, a sliding operation identification, or a text input operation identification. After receiving the test control instruction, the first terminal may perform an operation according to the operation identification information included in the test control instruction, for example, perform a click operation, a slide operation, or a text input operation, so as to trigger the target service program.
Step b2, when detecting that the target business function is triggered, executing the target business function based on the execution basic data.
In implementation, when the target application detects that the target business function is triggered, the target business function may be executed according to the downloaded execution basic data. In step 202, the location where the downloaded execution basic data is stored is the same as the location where the execution basic data is generated by the target application. Therefore, the target application program only needs to normally execute the target service function without adding extra execution codes in the target service function.
Step b3, based on the execution result of the target business function, determining the test result of the target business function.
The processing of step b3 is the same as the processing of step a3, and is not described herein again.
In addition, after the second terminal receives the test result of the target service function sent by the first terminal, the second terminal may send a preprocessing instruction and a test instruction for testing other service functions to the first terminal, so as to complete testing of other service functions.
According to the embodiment of the application, after the first terminal receives the preprocessing instruction, the first terminal can download the execution basic data corresponding to the target service function through the download link carried in the preprocessing instruction, and then send the test control instruction according to the second terminal to test the target service function to obtain the test result. Obviously, in the application, a tester does not need to manually operate the target application program to generate corresponding execution basic data, and can test the target service function according to the corresponding test control instruction, so that the test efficiency of the application program can be improved.
All the above optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described herein again.
The embodiment of the present application provides a system for testing service functions, which includes a first terminal and a second terminal, wherein,
the method comprises the steps that a target application program is installed in a first terminal and used for receiving a preprocessing instruction corresponding to a target service function of the target application program sent by a second terminal, wherein the preprocessing instruction carries a download link of execution basic data corresponding to the target service function; acquiring execution basic data based on the download link; receiving a test control instruction corresponding to the target service function sent by the second terminal, and testing the target service function based on the test control instruction and the execution basic data to obtain a test result corresponding to the target service function;
the second terminal is used for sending a preprocessing instruction corresponding to a target service function of a target application program to the first terminal, wherein the preprocessing instruction carries a download link of execution basic data corresponding to the target service function, and the preprocessing instruction is used for indicating the first terminal to acquire the execution basic data based on the download link; and sending a test control instruction corresponding to the target service function to the first terminal, wherein the test control instruction is used for instructing the first terminal to test the target service function based on the test control instruction and the execution basic data to obtain a test result corresponding to the target service function.
Fig. 4 is a device for testing service functions according to an embodiment of the present application, where the device may be a first terminal in the foregoing embodiment, and the device includes:
a receiving module 410, configured to receive a preprocessing instruction corresponding to a target service function of the target application sent by a second terminal, where the preprocessing instruction carries a download link of execution basic data corresponding to the target service function;
a downloading module 420, configured to obtain the execution basic data based on the downloading link;
the test module 430 is configured to receive a test control instruction corresponding to the target service function sent by the second terminal, and test the target service function based on the test control instruction and the execution basic data to obtain a test result corresponding to the target service function.
Optionally, the apparatus further includes a storage module, configured to:
and determining a target storage position corresponding to the target business function identifier based on the corresponding relation between the preset business function identifier and the storage position of the execution basic data in the target application program, and storing the execution basic data in the target storage position.
Optionally, the test control instruction includes at least one operation control instruction and a result verification instruction, where each operation control instruction is one of a click instruction, a slide instruction, or a text input instruction, and the result verification instruction carries a target control identifier;
the test module 430 is configured to: receiving at least one operation control instruction sent by the second terminal in sequence, and performing operation based on the currently received operation control instruction when receiving one operation control instruction;
when the target business function is detected to be triggered, executing the target business function based on the execution basic data;
and determining a test result of the target service function based on the execution result of the target service function.
Optionally, the test control instruction includes operation instruction information and a target control identifier, where the operation instruction information includes at least one of click operation information, sliding operation information, and text input operation information;
the test module 430 is configured to receive a test control instruction corresponding to the target service function sent by the second terminal, and perform an operation based on operation instruction information included in the test control instruction;
when the target business function is detected to be triggered, executing the target business function based on the execution basic data;
and determining a test result of the target service function based on the execution result of the target service function.
Optionally, the testing module 430 is configured to:
after the target business function is executed, detecting whether a control corresponding to the target control identification is included in the current interface of the target application program or not based on the target control identification included in the test control instruction, and determining a test result of the target business function based on the detection result.
Optionally, after obtaining the test result corresponding to the target service function, the apparatus further includes a sending module, configured to: and sending the test result corresponding to the target service function to the second terminal.
Fig. 5 is a device for testing service functions provided in an embodiment of the present application, where the device may be a second terminal in the foregoing embodiment, and the device includes:
a first sending module 510, configured to send a preprocessing instruction corresponding to a target service function of a target application to a first terminal, where the preprocessing instruction carries a download link of execution basic data corresponding to the target service function, and the preprocessing instruction is used to instruct the first terminal to obtain the execution basic data based on the download link;
a second sending module 520, configured to send a test control instruction corresponding to the target service function to a first terminal, where the test control instruction is used to instruct the first terminal to test the target service function based on the test control instruction and the execution basic data, so as to obtain a test result corresponding to the target service function.
Optionally, the second sending module 520 is configured to:
and when the time length after the preprocessing instruction corresponding to the target service function of the target application program is sent to the first terminal reaches the preset time length, sending a test control instruction corresponding to the target service function to the first terminal.
It should be noted that: in the apparatus for testing a service function provided in the foregoing embodiment, when testing a service function, only the division of each functional module is illustrated, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the apparatus for testing a service function and the method for testing a service function provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Fig. 6 shows a block diagram of an electronic device 600 according to an exemplary embodiment of the present application. The electronic device 600 may be a portable mobile terminal, such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. The electronic device 600 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, and so forth.
In general, the electronic device 600 includes: a processor 601 and a memory 602.
The processor 601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 601 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 601 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 601 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content that the display screen needs to display. In some embodiments, processor 601 may also include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
The memory 602 may include one or more computer-readable storage media, which may be non-transitory. The memory 602 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 602 is used to store at least one instruction for execution by processor 601 to implement a method of testing business functions provided by method embodiments herein.
In some embodiments, the electronic device 600 may further optionally include: a peripheral interface 603 and at least one peripheral. The processor 601, memory 602, and peripheral interface 603 may be connected by buses or signal lines. Various peripheral devices may be connected to the peripheral interface 603 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 604, a display 605, a camera assembly 606, an audio circuit 607, a positioning component 608, and a power supply 609.
The peripheral interface 603 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 601 and the memory 602. In some embodiments, the processor 601, memory 602, and peripheral interface 603 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 601, the memory 602, and the peripheral interface 603 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 604 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 604 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 604 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 604 comprises: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 604 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 604 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display 605 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 605 is a touch display screen, the display screen 605 also has the ability to capture touch signals on or over the surface of the display screen 605. The touch signal may be input to the processor 601 as a control signal for processing. At this point, the display 605 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 605 may be one, disposed on the front panel of the electronic device 600; in other embodiments, the display 605 may be at least two, respectively disposed on different surfaces of the electronic device 600 or in a foldable design; in other embodiments, the display 605 may be a flexible display disposed on a curved surface or on a folded surface of the electronic device 600. Even more, the display 605 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The Display 605 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and the like.
The camera assembly 606 is used to capture images or video. Optionally, camera assembly 606 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 606 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
Audio circuitry 607 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 601 for processing or inputting the electric signals to the radio frequency circuit 604 to realize voice communication. For stereo capture or noise reduction purposes, the microphones may be multiple and disposed at different locations of the electronic device 600. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 601 or the radio frequency circuit 604 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuitry 607 may also include a headphone jack.
The positioning component 608 is used to locate a current geographic Location of the electronic device 600 to implement navigation or LBS (Location Based Service). The Positioning component 608 can be a Positioning component based on the Global Positioning System (GPS) in the united states, the beidou System in china, or the galileo System in russia.
The power supply 609 is used to supply power to various components in the electronic device 600. The power supply 609 may be ac, dc, disposable or rechargeable. When the power supply 609 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the electronic device 600 also includes one or more sensors 610. The one or more sensors 610 include, but are not limited to: acceleration sensor 611, gyro sensor 612, pressure sensor 613, fingerprint sensor 614, optical sensor 615, and proximity sensor 616.
The acceleration sensor 611 may detect the magnitude of acceleration in three coordinate axes of a coordinate system established with the electronic device 600. For example, the acceleration sensor 611 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 601 may control the display screen 605 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 611. The acceleration sensor 611 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 612 may detect a body direction and a rotation angle of the electronic device 600, and the gyro sensor 612 and the acceleration sensor 611 may cooperate to acquire a 3D motion of the user on the electronic device 600. The processor 601 may implement the following functions according to the data collected by the gyro sensor 612: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensor 613 may be disposed on a side bezel of the electronic device 600 and/or on a lower layer of the display screen 605. When the pressure sensor 613 is disposed on a side frame of the electronic device 600, a user's holding signal of the electronic device 600 can be detected, and the processor 601 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 613. When the pressure sensor 613 is disposed at the lower layer of the display screen 605, the processor 601 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 605. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 614 is used for collecting a fingerprint of a user, and the processor 601 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 614, or the fingerprint sensor 614 identifies the identity of the user according to the collected fingerprint. Upon identifying that the user's identity is a trusted identity, the processor 601 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 614 may be disposed on the front, back, or side of the electronic device 600. When a physical button or vendor Logo is provided on the electronic device 600, the fingerprint sensor 614 may be integrated with the physical button or vendor Logo.
The optical sensor 615 is used to collect the ambient light intensity. In one embodiment, processor 601 may control the display brightness of display screen 605 based on the ambient light intensity collected by optical sensor 615. Specifically, when the ambient light intensity is high, the display brightness of the display screen 605 is increased; when the ambient light intensity is low, the display brightness of the display screen 605 is adjusted down. In another embodiment, the processor 601 may also dynamically adjust the shooting parameters of the camera assembly 606 according to the ambient light intensity collected by the optical sensor 615.
Proximity sensor 616, also referred to as a distance sensor, is typically disposed on the front panel of electronic device 600. The proximity sensor 616 is used to capture the distance between the user and the front of the electronic device 600. In one embodiment, when the proximity sensor 616 detects that the distance between the user and the front of the electronic device 600 gradually decreases, the processor 601 controls the display 605 to switch from the bright screen state to the dark screen state; when the proximity sensor 616 detects that the distance between the user and the front surface of the electronic device 600 is gradually increased, the processor 601 controls the display 605 to switch from the breath-screen state to the bright-screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 6 does not constitute a limitation of the electronic device 600, and may include more or fewer components than those shown, or combine certain components, or employ a different arrangement of components.
In an exemplary embodiment, a computer-readable storage medium, such as a memory, is also provided that includes instructions executable by a processor in a terminal to perform the method of testing business functions in the above-described embodiments. The computer readable storage medium may be non-transitory. For example, the computer-readable storage medium may be a ROM (Read-Only Memory), a RAM (Random Access Memory), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (14)

1. A method for testing a service function, the method being applied to a first terminal, wherein a target application is installed in the first terminal, the method comprising:
receiving a preprocessing instruction corresponding to a target service function of the target application program, which is sent by a second terminal, wherein the preprocessing instruction carries a download link of execution basic data corresponding to the target service function;
acquiring the execution basic data based on the download link;
and receiving a test control instruction corresponding to the target service function sent by the second terminal, and testing the target service function based on the test control instruction and the execution basic data to obtain a test result corresponding to the target service function.
2. The method according to claim 1, wherein the execution basic data includes a target service function identifier, and after the obtaining the execution basic data based on the download link, the method further includes:
and determining a target storage position corresponding to the target business function identifier based on the corresponding relation between the preset business function identifier and the storage position of the execution basic data in the target application program, and storing the execution basic data in the target storage position.
3. The method according to claim 1, wherein the test control instruction comprises at least one operation control instruction and a result verification instruction, each operation control instruction is one of a click instruction, a slide instruction or a text input instruction, and the result verification instruction carries a target control identifier;
the receiving a test control instruction corresponding to the target service function sent by the second terminal, and testing the target service function based on the test control instruction and the execution basic data to obtain a test result corresponding to the target service function includes:
receiving at least one operation control instruction sent by the second terminal in sequence, and performing operation based on the currently received operation control instruction when receiving one operation control instruction;
when the target business function is detected to be triggered, executing the target business function based on the execution basic data;
and determining a test result of the target service function based on the execution result of the target service function.
4. The method according to claim 1, wherein the test control instruction comprises operation instruction information and a target control identifier, wherein the operation instruction information comprises at least one of click operation information, slide operation information and text input operation information;
the receiving a test control instruction corresponding to the target service function sent by the second terminal, and testing the target service function based on the test control instruction and the execution basic data to obtain a test result corresponding to the target service function includes:
receiving a test control instruction corresponding to the target service function sent by the second terminal, and performing operation based on operation instruction information included in the test control instruction;
when the target business function is detected to be triggered, executing the target business function based on the execution basic data;
and determining a test result of the target service function based on the execution result of the target service function.
5. The method according to any of claims 3-4, wherein the determining a test result for the target business function based on the execution result of the target business function comprises:
after the target business function is executed, detecting whether a control corresponding to the target control identification is included in the current interface of the target application program or not based on the target control identification included in the test control instruction, and determining a test result of the target business function based on the detection result.
6. The method according to claim 1, wherein after obtaining the test result corresponding to the target service function, the method further comprises:
and sending the test result corresponding to the target service function to the second terminal.
7. A method of testing a service function, the method being for a second terminal, the method comprising:
sending a preprocessing instruction corresponding to a target service function of a target application program to a first terminal, wherein the preprocessing instruction carries a download link of execution basic data corresponding to the target service function, and the preprocessing instruction is used for indicating the first terminal to acquire the execution basic data based on the download link;
and sending a test control instruction corresponding to the target service function to a first terminal, wherein the test control instruction is used for instructing the first terminal to test the target service function based on the test control instruction and the execution basic data to obtain a test result corresponding to the target service function.
8. The method according to claim 7, wherein the sending the test control instruction corresponding to the target service function to the first terminal includes:
and when the time length after the preprocessing instruction corresponding to the target service function of the target application program is sent to the first terminal reaches the preset time length, sending a test control instruction corresponding to the target service function to the first terminal.
9. An apparatus for testing business functions, the apparatus comprising:
a receiving module, configured to receive a preprocessing instruction corresponding to a target service function of the target application program, where the preprocessing instruction carries a download link of execution basic data corresponding to the target service function, and the preprocessing instruction is sent by a second terminal;
the downloading module is used for acquiring the execution basic data based on the downloading link;
and the test module is used for receiving a test control instruction corresponding to the target service function sent by the second terminal, and testing the target service function based on the test control instruction and the execution basic data to obtain a test result corresponding to the target service function.
10. An apparatus for testing business functions, the apparatus comprising:
a first sending module, configured to send a preprocessing instruction corresponding to a target service function of a target application to a first terminal, where the preprocessing instruction carries a download link of execution basic data corresponding to the target service function, and the preprocessing instruction is used to instruct the first terminal to obtain the execution basic data based on the download link;
and the second sending module is used for sending a test control instruction corresponding to the target service function to the first terminal, wherein the test control instruction is used for instructing the first terminal to test the target service function based on the test control instruction and the execution basic data to obtain a test result corresponding to the target service function.
11. A system for testing a service function, the system comprising a first terminal and a second terminal, wherein,
the first terminal is provided with a target application program and is used for receiving a preprocessing instruction which is sent by a second terminal and corresponds to a target service function of the target application program, wherein the preprocessing instruction carries a download link of execution basic data corresponding to the target service function; acquiring the execution basic data based on the download link; receiving a test control instruction corresponding to the target service function sent by the second terminal, and testing the target service function based on the test control instruction and the execution basic data to obtain a test result corresponding to the target service function;
the second terminal is configured to send a preprocessing instruction corresponding to a target service function of the target application program to the first terminal, where the preprocessing instruction carries a download link of execution basic data corresponding to the target service function, and the preprocessing instruction is used to instruct the first terminal to obtain the execution basic data based on the download link; and sending a test control instruction corresponding to the target service function to a first terminal, wherein the test control instruction is used for instructing the first terminal to test the target service function based on the test control instruction and the execution basic data to obtain a test result corresponding to the target service function.
12. A first terminal, characterized in that the first terminal comprises a processor and a memory, the memory having stored therein at least one instruction, the at least one instruction being loaded and executed by the processor to perform the operations performed by the method of testing business functions according to any one of claims 1 to 6.
13. A second terminal, characterized in that the second terminal comprises a processor and a memory, the memory having stored therein at least one instruction, the at least one instruction being loaded and executed by the processor to perform the operations performed by the method of testing business functions according to any of claims 7 to 8.
14. A computer-readable storage medium having stored therein at least one instruction which is loaded and executed by a processor to perform operations performed by a method of testing business functions according to any one of claims 1 to 8.
CN202110600656.7A 2021-05-31 2021-05-31 Method, device, equipment and storage medium for testing business function Active CN113342645B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110600656.7A CN113342645B (en) 2021-05-31 2021-05-31 Method, device, equipment and storage medium for testing business function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110600656.7A CN113342645B (en) 2021-05-31 2021-05-31 Method, device, equipment and storage medium for testing business function

Publications (2)

Publication Number Publication Date
CN113342645A true CN113342645A (en) 2021-09-03
CN113342645B CN113342645B (en) 2022-09-16

Family

ID=77472677

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110600656.7A Active CN113342645B (en) 2021-05-31 2021-05-31 Method, device, equipment and storage medium for testing business function

Country Status (1)

Country Link
CN (1) CN113342645B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109582579A (en) * 2018-11-30 2019-04-05 腾讯音乐娱乐科技(深圳)有限公司 Applied program testing method, device, electronic equipment and storage medium
WO2020233053A1 (en) * 2019-05-22 2020-11-26 深圳壹账通智能科技有限公司 Method, apparatus, device, and storage medium for making test page script
CN112000576A (en) * 2020-08-25 2020-11-27 北京三快在线科技有限公司 Code data detection method, device, equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109582579A (en) * 2018-11-30 2019-04-05 腾讯音乐娱乐科技(深圳)有限公司 Applied program testing method, device, electronic equipment and storage medium
WO2020233053A1 (en) * 2019-05-22 2020-11-26 深圳壹账通智能科技有限公司 Method, apparatus, device, and storage medium for making test page script
CN112000576A (en) * 2020-08-25 2020-11-27 北京三快在线科技有限公司 Code data detection method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN113342645B (en) 2022-09-16

Similar Documents

Publication Publication Date Title
CN110308956B (en) Application interface display method and device and mobile terminal
CN110674022A (en) Behavior data acquisition method and device and storage medium
CN110288689B (en) Method and device for rendering electronic map
CN111752666A (en) Window display method and device and terminal
CN111752817A (en) Method, device and equipment for determining page loading duration and storage medium
CN111858382A (en) Application program testing method, device, server, system and storage medium
CN111177013A (en) Log data acquisition method and device, computer equipment and storage medium
CN112256320A (en) Version number generation method, device, terminal and storage medium
CN113076051A (en) Slave control terminal synchronization method, device, terminal and storage medium
CN110677713B (en) Video image processing method and device and storage medium
CN107943484B (en) Method and device for executing business function
CN109634872B (en) Application testing method, device, terminal and storage medium
CN111797017A (en) Method and device for storing log, test equipment and storage medium
CN112052167A (en) Method and device for generating test script code
CN111008083A (en) Page communication method and device, electronic equipment and storage medium
CN115562529A (en) Visual point burying method and device, terminal and storage medium
CN113342645B (en) Method, device, equipment and storage medium for testing business function
CN112000576A (en) Code data detection method, device, equipment and storage medium
CN113268234A (en) Page generation method, device, terminal and storage medium
CN113971123A (en) Application program testing method and device, testing terminal and storage medium
CN113051485A (en) Group searching method, device, terminal and storage medium
CN112597417A (en) Page updating method and device, electronic equipment and storage medium
CN113076452A (en) Application classification method, device, equipment and computer readable storage medium
CN111858367A (en) Code coverage rate testing method, system, device, electronic equipment and storage medium
CN113342635A (en) Acquisition of differential code coverage rate and differential code file sending method and device

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230220

Address after: Room 507, Floor 5, Building 2, Yard 18, Haidian Suzhou Street, Haidian District, Beijing 100080

Patentee after: BEIJING KUXUN TECHNOLOGY Co.,Ltd.

Patentee after: BEIJING SANKUAI ONLINE TECHNOLOGY Co.,Ltd.

Address before: 100080 2106-030, 9 North Fourth Ring Road, Haidian District, Beijing.

Patentee before: BEIJING SANKUAI ONLINE TECHNOLOGY Co.,Ltd.