CN111159023A - Test method, test device, electronic equipment and computer readable storage medium - Google Patents

Test method, test device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN111159023A
CN111159023A CN201911329773.3A CN201911329773A CN111159023A CN 111159023 A CN111159023 A CN 111159023A CN 201911329773 A CN201911329773 A CN 201911329773A CN 111159023 A CN111159023 A CN 111159023A
Authority
CN
China
Prior art keywords
test
instruction
testing
user
equipment
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
CN201911329773.3A
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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
CCB Finetech 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 China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN201911329773.3A priority Critical patent/CN111159023A/en
Publication of CN111159023A publication Critical patent/CN111159023A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/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/368Test management for test version control, e.g. updating test cases to a new software version

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 application provides a test method, a test device, electronic equipment and a computer readable storage medium. The method comprises the following steps: when an operation instruction of a user for testing the tested program is detected, the following operations are performed on a first test instruction group in a test instruction list of the tested program: step a: sending the test instruction group to the second equipment; step b: receiving test parameters returned by the second equipment so that a user can debug based on the test parameters; and when receiving operation instructions for testing the tested program by the user for multiple times, sequentially executing the operations in the step a and the step b on all the test instruction groups except the first test instruction group according to the sequence in the test instruction list. Based on the scheme, the normal operation of the RPA robot can be ensured, and the problem that the RPA robot cannot be normally deployed and used due to the fact that a local test tool is used for testing in the prior art is effectively solved.

Description

Test method, test device, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of program testing technologies, and in particular, to a testing method, an apparatus, an electronic device, and a computer-readable storage medium.
Background
Robotic Process Automation (RPA) is an automated software tool used to replace human employees in office processes that perform highly repetitive rule-based work. The RPA allows a user to set up an RPA robot in a visual manner using a drag-and-drop function by screen element grabbing in combination with Optical Character Recognition (OCR) and other techniques, automating the repetitive work.
Currently, in the application of RPA, a plurality of pairs of RPA robots are deployed in a centralized manner, and a local test tool is provided for a user, so that the RPA robots are deployed in a server after being developed and tested.
However, because the number of software involved in the RPA robot is large, it is difficult to ensure that the software versions are completely consistent, and thus the RPA robot that has been tested by the local testing tool may not operate normally after being deployed to the server, which may affect the normal deployment and use of the RPA robot.
Disclosure of Invention
The present application aims to solve at least one of the above technical drawbacks. The technical scheme adopted by the application is as follows:
in a first aspect, an embodiment of the present application provides a testing method, where the method includes:
when an operation instruction of a user for testing the tested program is detected, the following operations are performed on a first test instruction group in a test instruction list of the tested program:
step a: sending the test instruction group to the second equipment so that the second equipment sequentially executes the test instructions in the test instruction group and collects test parameters in the execution process of the test instructions;
step b: receiving test parameters returned by the second equipment so that the user can debug based on the test parameters;
when receiving operation instructions for testing the tested program by the user for multiple times, sequentially executing the operations in the step a and the step b on each test instruction group except the first test instruction group according to the sequence in the test instruction list, wherein the test instruction list comprises a plurality of test instruction groups which are sequentially arranged, each test instruction group is separated by a breakpoint, and each test instruction group comprises a plurality of test instructions which are sequentially arranged.
In a second aspect, an embodiment of the present application provides another testing method, including:
when a test instruction group sent by first equipment is received, sequentially executing test instructions in the test instruction group;
and collecting test parameters in the execution process of the test instruction, and returning the test parameters to the first equipment.
In a third aspect, an embodiment of the present application provides a testing apparatus, including:
the first testing module is used for performing the following operations on a first testing instruction group in a testing instruction list of a tested program when detecting an operating instruction which is sent by a user and is used for testing the tested program:
step a: sending the test instruction group to the second equipment so that the second equipment sequentially executes the test instructions in the test instruction group and collects test parameters in the execution process of the test instructions;
step b: receiving test parameters returned by the second equipment so that the user can debug based on the test parameters;
and the second testing module is used for sequentially executing the operations in the step a and the step b on each testing instruction group except the first testing instruction group according to the sequence in the testing instruction list when receiving the operation instruction sent by the user for testing the tested program for multiple times, the testing instruction list comprises a plurality of testing instruction groups which are sequentially arranged, the testing instruction groups are separated by breakpoints, and the testing instruction groups comprise a plurality of testing instructions which are sequentially arranged.
In a fourth aspect, an embodiment of the present application provides another testing apparatus, including:
the instruction execution module is used for sequentially executing the test instructions in the test instruction group when receiving the test instruction group sent by the first equipment;
and the parameter returning module is used for collecting the test parameters in the execution process of the test instruction and returning the test parameters to the first equipment.
In a fifth aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory;
a memory for storing operating instructions;
and the processor is used for executing the test method shown in the first aspect of the application by calling the operation instruction.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the computer program implements the testing method shown in the first aspect of the present application.
The technical scheme provided by the embodiment of the application has the following beneficial effects:
according to the scheme provided by the embodiment of the application, when the operation instruction of the user for testing the tested program is received, the first device in the development environment sends the test instruction group of the tested program to the second device of the server for testing, and receives the test parameters returned by the second device, so that the user can debug based on the test parameters, the user can trigger the operation instruction for testing the tested program for many times, sequential testing of all the test instruction groups is realized, and the test of the tested program is completed. According to the scheme, the second equipment is deployed at the server, and the software version in the test environment can be ensured to be consistent with that after the second equipment is deployed to the server, so that the normal operation of the RPA robot is ensured, and the problem that the RPA robot can not be normally deployed and used due to the fact that the test is carried out through a local test tool is effectively solved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below.
Fig. 1 is a schematic flowchart of a testing method according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart of another testing method provided in the embodiments of the present application;
fig. 3 is a schematic structural diagram of a testing apparatus according to an embodiment of the present disclosure;
FIG. 4 is a schematic structural diagram of another testing apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
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.
In modern enterprises, there are a large number of process-like works such as tax return notification confirmation, invoice processing, and the like, for the needs of operation management and the like. From the enterprise level, the work has high repeatability, and the use of computers instead of manual operation can greatly relieve the labor force bound by repeated work, but the cost for systematizing all the processes is too high to be feasible.
The RPA captures screen elements, combines technologies such as OCR and the like, allows a user to establish a process management RPA robot by using a drag-and-drop function in a visual mode, and automates repeated labor. The method reduces the use threshold of the user, can quickly acquire data and build a flow without professional coding knowledge, and an enterprise can complete repetitive flow work by introducing RPA, release human resources and improve the operation efficiency of the enterprise.
The RPA robot in the present application refers specifically to a software tool that can automatically perform a series of rule-based operations.
When an enterprise applies RPA, in order to solve the problem that the operation of an RPA robot is unstable due to too complicated operation environment, a centralized deployment mode is generally adopted for the RPA robot. If the RPA robot is directly developed on a server in which RPA robots are intensively deployed, once an error occurs in the developed RPA robot, a large number of errors occur in the server, and normal use is affected. Therefore, it is often necessary to independently develop and test the RPA robot in a development environment, and then deploy the tested RPA robot to a server.
Currently, RPA products on the market generally provide a set of local test and debugging tools for developers to support users to perform local test and debugging in the process of developing RPA robots. Because the number of software related to the RPA robot is large, it is difficult to ensure that the software version in the local development environment is completely consistent with that in the deployment environment of the server, and therefore, the RPA robot which is tested in the local development environment may not normally operate after being centrally deployed to the server.
Moreover, once an error occurs during the operation of the RPA in the server, the debugging of the RPA robot can only be performed directly on the server by a developer, and a large number of errors may be generated in the server, which may cause an operation risk.
In addition, when testing the RPA robot, the user interface of the device to be tested needs to be occupied, and the device to be tested cannot perform other operations.
The embodiment of the application provides a testing method, a testing device, an electronic device and a computer-readable storage medium, which aim to solve at least one of the above technical problems in the prior art.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 shows a schematic flowchart of a testing method provided in an embodiment of the present application, where the method is applied to a first device, and as shown in fig. 1, the method mainly includes:
step S110: when an operation instruction of a user for testing the tested program is detected, the following operations are performed on a first test instruction group in a test instruction list of the tested program:
step a: sending the test instruction group to the second equipment so that the second equipment sequentially executes the test instructions in the test instruction group and collects test parameters in the execution process of the test instructions;
step b: and receiving the test parameters returned by the second equipment so that the user can debug based on the test parameters.
Step S120: when receiving operation instructions for testing the tested program by the user for multiple times, sequentially executing the operations in the step a and the step b on each test instruction group except the first test instruction group according to the sequence in the test instruction list, wherein the test instruction list comprises a plurality of test instruction groups which are sequentially arranged, each test instruction group is separated by a breakpoint, and each test instruction group comprises a plurality of test instructions which are sequentially arranged.
In this embodiment of the application, the first device may be a terminal device deployed in a development environment, the second device may be a server providing a service for testing, and after a program to be tested is developed in the development environment, testing and debugging may be performed through interaction between the first device and the second device.
The program under test may be the RPA robot described above. One or more functions of the RPA robot can be tested, and corresponding instruction codes can be used as tested instructions. The order in the instruction code may be taken as the order of the individual test instructions in the test instruction list.
The user in the embodiment of the application may be a developer of the program to be tested, and when the developer performs debugging, the developer may set a breakpoint at a specific position in the instruction code, so as to perform debugging on the breakpoint. Breakpoints can be set in the test instruction list according to the positions of the break points in the instruction codes, and each breakpoint divides the test instructions in the test instruction list into a plurality of test instruction groups.
In the embodiment of the application, the first device sends one test instruction group to the second device each time, so that the test instructions in the same test instruction group are sequentially executed by the second device, and after the test instructions in the test instruction group are executed, the test parameters collected in the test process are returned to the first device.
The first device may, after receiving the test parameters, expose the test parameters to a developer for debugging.
In practical use, after completing the testing and debugging of the first test instruction group, the developer may trigger the operation instruction for testing the program to be tested again. At this time, the next test instruction group may be tested and debugged according to the sequence in the test instruction list, that is, the first device sequentially executes the operations in the step a and the step b to the next test instruction group according to the sequence in the test instruction list.
The developer can send out the operation instruction for testing the tested program for many times, and the test and debugging of each test instruction group are sequentially realized according to the sequence in the test instruction list until all the test instruction groups in the test instruction list are tested.
In the embodiment of the application, because the second device is located at the server side, the RPA robot after the test is finished can be deployed at the server side, so that the software version in the test environment can be ensured to be consistent with that after the software version is deployed to the server, and the normal operation of the RPA robot is further ensured.
In the embodiment of the application, even if the RPA robot has errors again after the test is finished, the second device can be remotely controlled by a developer through the first device for debugging, so that the RPA robot is prevented from being directly debugged on a server, and the operation risk caused by directly debugging the RPA robot on the server which is intensively deployed by the RPA robot is avoided.
According to the method provided by the embodiment of the application, when an operation instruction of a user for testing the tested program is received, the first device in the development environment sends the test instruction group of the tested program to the second device of the server for testing, and receives the test parameters returned by the second device, so that the user can debug based on the test parameters, the user can trigger the operation instruction for testing the tested program for multiple times, sequential testing of the test instruction groups is realized, and the testing of the tested program is completed. According to the scheme, the second equipment is deployed at the server, and the software version in the test environment can be ensured to be consistent with that after the second equipment is deployed to the server, so that the normal operation of the RPA robot is ensured, and the problem that the RPA robot can not be normally deployed and used due to the fact that the test is carried out through a local test tool is effectively solved.
In the practical use, even if the RPA robot has errors again after the test is finished, the RPA robot can be debugged by the developer through the first equipment remote control second equipment, so that the RPA robot is prevented from being debugged directly on the server, and the operation risk caused by directly debugging the RPA robot on the server intensively deployed by the RPA robot is also avoided.
In addition, because the second equipment is remotely controlled by the first equipment to carry out testing, a user interface of the first equipment is not occupied, and developers can carry out other operations in the testing process.
In an optional manner of the embodiment of the present application, the method further includes:
and when an operation instruction which is triggered by a user and used for displaying the execution script of the test instruction is detected, displaying the execution script of the test instruction to the user.
In the embodiment of the application, the first device may display the execution script of the test instruction to the user for a developer to view.
In an optional manner of the embodiment of the present application, the method further includes:
when an operation request for adding a breakpoint to an execution script of a test instruction, which is triggered by a user, is detected, a test instruction list is determined based on the position of the breakpoint.
In the embodiment of the application, a developer can insert a breakpoint into the execution script according to actual needs after looking up the execution script of the test instruction, and divide the test instruction in the test instruction list into the test instruction group according to the position of the breakpoint.
Due to the fact that the breakpoints are arranged, the test instructions are divided into a plurality of test instruction groups, so that the test of each test instruction group can be conveniently carried out, developers can obtain test parameters at the breakpoints, and breakpoint debugging can be carried out.
In an optional manner of the embodiment of the present application, the program to be tested is a program generated based on RPA, and the test parameter includes an interface element of the second device when executing the test instruction.
In this embodiment of the application, the test parameters may include interface elements of the second device when executing the test instruction, such as a corresponding icon of the software on the user interface, and may further include OCR recognition result data for operating within the user interface of the second device in actual use.
Fig. 2 shows a schematic flowchart of a testing method provided in an embodiment of the present application, where the method is applied to a second device, and as shown in fig. 2, the method mainly includes:
step S210: when a test instruction group sent by first equipment is received, test instructions in the test instruction group are executed in sequence;
step S220: collecting the test parameters during the execution of the test instruction, and returning the test parameters to the first device.
In the embodiment of the application, the first device is a terminal device in a development environment, and when the tested program is tested, the test instruction of the test program is sent to the second device of the server side for testing.
In the embodiment of the application, the tested program can correspond to a test instruction list, the program in the test instruction list is divided into a plurality of test instruction groups through breakpoints, and the first device can sequentially send each test instruction group to the second device according to the sequence in the test instruction list, so that the second device can test each test instruction group respectively.
The second device is located at the server end, and the software version in the test environment can be guaranteed to be consistent with that after the software version is deployed to the server, so that the second device can be used for effectively testing the tested program.
In the embodiment of the application, the second device can collect the test parameters in the test process and send the collected test parameters to the first device, so that a developer operating the first device can perform remote debugging.
According to the method provided by the embodiment of the application, when first equipment in a development environment receives an operation instruction of a user for testing a tested program, a test instruction group of the tested program is sent to second equipment of a server for testing, the second equipment collects test parameters in the execution process of the test instruction group and returns the test parameters to the first equipment, so that the user can debug based on the test parameters, the user can trigger the operation instruction for testing the tested program for multiple times, sequential testing of the test instruction groups is realized, and the testing of the tested program is completed. According to the scheme, the second equipment is deployed at the server, and the software version in the test environment can be ensured to be consistent with that after the second equipment is deployed to the server, so that the normal operation of the RPA robot is ensured, and the problem that the RPA robot can not be normally deployed and used due to the fact that the test is carried out through a local test tool is effectively solved.
Based on the same principle as the method shown in fig. 1, fig. 3 shows a schematic structural diagram of a testing apparatus provided by an embodiment of the present application, and as shown in fig. 3, the testing apparatus 30 may include:
the first testing module 310 is configured to, when an operation instruction sent by a user to test a program under test is detected, perform the following operations on a first testing instruction group in a testing instruction list of the program under test:
step a: sending the test instruction group to the second equipment so that the second equipment sequentially executes the test instructions in the test instruction group and collects test parameters in the execution process of the test instructions;
step b: receiving test parameters returned by the second equipment so that a user can debug based on the test parameters;
the second testing module 320 is configured to, when receiving an operation instruction sent by a user to test a program to be tested for multiple times, sequentially execute the operations in the step a and the step b on each test instruction group except the first test instruction group according to an order in a test instruction list, where the test instruction list includes multiple test instruction groups that are sequentially arranged, the test instruction groups are separated by breakpoints, and the test instruction groups include multiple test instructions that are sequentially arranged.
According to the device provided by the embodiment of the application, when an operation instruction of a user for testing the tested program is received, the first equipment in the development environment sends the test instruction group of the tested program to the second equipment of the server for testing, and receives the test parameters returned by the second equipment, so that the user can debug based on the test parameters, the user can trigger the operation instruction for testing the tested program for many times, sequential testing of all the test instruction groups is realized, and the testing of the tested program is completed. According to the scheme, the second equipment is deployed at the server, and the software version in the test environment can be ensured to be consistent with that after the second equipment is deployed to the server, so that the normal operation of the RPA robot is ensured, and the problem that the RPA robot can not be normally deployed and used due to the fact that the test is carried out through a local test tool is effectively solved.
Optionally, the apparatus further comprises:
and the display module is used for displaying the execution script of the test instruction to the user when the operation instruction of the execution script of the test instruction, which is triggered by the user, is displayed.
Optionally, the apparatus further comprises:
and the breakpoint module is used for determining the test instruction list based on the position of the breakpoint when detecting an operation request of adding the breakpoint to the execution script of the test instruction, which is triggered by a user.
Optionally, the program under test is a program generated based on robot process automation RPA, and the test parameters include interface elements of the second device when executing the test instructions.
It is understood that the above modules of the testing apparatus in the present embodiment have functions of implementing the corresponding steps of the testing method in the embodiment shown in fig. 1. The function can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above. The modules can be software and/or hardware, and each module can be implemented independently or by integrating a plurality of modules. For the functional description of each module of the testing apparatus, reference may be specifically made to the corresponding description of the testing method in the embodiment shown in fig. 1, and details are not repeated here.
Based on the same principle as the method shown in fig. 2, fig. 4 shows a schematic structural diagram of a testing apparatus provided by an embodiment of the present application, and as shown in fig. 4, the testing apparatus 40 may include:
the instruction execution module 410 is configured to, when receiving a test instruction group sent by a first device, sequentially execute test instructions in the test instruction group;
and the parameter returning module 420 is configured to collect the test parameters during the execution of the test instruction, and return the test parameters to the first device.
According to the device provided by the embodiment of the application, when first equipment in a development environment receives an operation instruction of a user for testing a tested program, a test instruction group of the tested program is sent to second equipment of a server for testing, the second equipment collects test parameters in the execution process of the test instruction group and returns the test parameters to the first equipment, so that the user can debug based on the test parameters, the user can trigger the operation instruction for testing the tested program for multiple times, sequential testing of all the test instruction groups is realized, and the testing of the tested program is completed. According to the scheme, the second equipment is deployed at the server, and the software version in the test environment can be ensured to be consistent with that after the second equipment is deployed to the server, so that the normal operation of the RPA robot is ensured, and the problem that the RPA robot can not be normally deployed and used due to the fact that the test is carried out through a local test tool is effectively solved.
It is understood that the above modules of the testing apparatus in the present embodiment have functions of implementing the corresponding steps of the testing method in the embodiment shown in fig. 2. The function can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above. The modules can be software and/or hardware, and each module can be implemented independently or by integrating a plurality of modules. For the functional description of each module of the testing apparatus, reference may be specifically made to the corresponding description of the testing method in the embodiment shown in fig. 2, and details are not repeated here.
The embodiment of the application provides an electronic device, which comprises a processor and a memory;
a memory for storing operating instructions;
and the processor is used for executing the test method provided by any embodiment of the application by calling the operation instruction.
As an example, fig. 5 shows a schematic structural diagram of an electronic device to which an embodiment of the present application is applicable, and as shown in fig. 5, the electronic device 2000 includes: a processor 2001 and a memory 2003. Wherein the processor 2001 is coupled to a memory 2003, such as via a bus 2002. Optionally, the electronic device 2000 may also include a transceiver 2004. It should be noted that the transceiver 2004 is not limited to one in practical applications, and the structure of the electronic device 2000 is not limited to the embodiment of the present application.
The processor 2001 is applied to the embodiment of the present application to implement the method shown in the above method embodiment. The transceiver 2004 may include a receiver and a transmitter, and the transceiver 2004 is applied to the embodiments of the present application to implement the functions of the electronic device of the embodiments of the present application to communicate with other devices when executed.
The Processor 2001 may be a CPU (Central Processing Unit), general Processor, DSP (Digital Signal Processor), ASIC (Application specific integrated Circuit), FPGA (Field Programmable Gate Array) or other Programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 2001 may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs and microprocessors, and the like.
Bus 2002 may include a path that conveys information between the aforementioned components. The bus 2002 may be a PCI (Peripheral Component Interconnect) bus, an EISA (extended industry Standard Architecture) bus, or the like. The bus 2002 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
The Memory 2003 may be a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory) or other type of dynamic storage device that can store information and instructions, an EEPROM (Electrically erasable programmable Read Only Memory), a CD-ROM (Compact disk Read Only Memory) or other optical disk storage, optical disk storage (including Compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these.
Optionally, the memory 2003 is used for storing application program code for performing the disclosed aspects, and is controlled in execution by the processor 2001. The processor 2001 is used to execute the application program code stored in the memory 2003 to implement the test method provided in any of the embodiments of the present application.
The electronic device provided by the embodiment of the application is applicable to any embodiment of the method, and is not described herein again.
Compared with the prior art, when an operation instruction of a user for testing a tested program is received, a first device in a development environment sends a test instruction group of the tested program to a second device at a server side for testing, and receives a test parameter returned by the second device, so that the user can debug based on the test parameter, the user can trigger the operation instruction for testing the tested program for many times, sequential testing of the test instruction groups is realized, and testing of the tested program is completed. According to the scheme, the second equipment is deployed at the server, and the software version in the test environment can be ensured to be consistent with that after the second equipment is deployed to the server, so that the normal operation of the RPA robot is ensured, and the problem that the RPA robot can not be normally deployed and used due to the fact that the test is carried out through a local test tool is effectively solved.
The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the testing method shown in the above method embodiment.
The computer-readable storage medium provided in the embodiments of the present application is applicable to any of the embodiments of the foregoing method, and is not described herein again.
Compared with the prior art, when an operation instruction of a user for testing a tested program is received, a first device in a development environment sends a test instruction group of the tested program to a second device at a server side for testing, and receives a test parameter returned by the second device, so that the user can debug based on the test parameter, the user can trigger the operation instruction for testing the tested program for multiple times, sequential testing of the test instruction groups is realized, and testing of the tested program is completed. According to the scheme, the second equipment is deployed at the server, and the software version in the test environment can be ensured to be consistent with that after the second equipment is deployed to the server, so that the normal operation of the RPA robot is ensured, and the problem that the RPA robot can not be normally deployed and used due to the fact that the test is carried out through a local test tool is effectively solved.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A test method is applied to first equipment and comprises the following steps:
when an operation instruction of a user for testing the tested program is detected, the following operations are performed on a first test instruction group in a test instruction list of the tested program:
step a: sending the test instruction group to the second equipment so that the second equipment sequentially executes the test instructions in the test instruction group and collects test parameters in the execution process of the test instructions;
step b: receiving test parameters returned by the second equipment so that the user can debug based on the test parameters;
when receiving operation instructions for testing the tested program by the user for multiple times, sequentially executing the operations in the step a and the step b on all the test instruction groups except the first test instruction group according to the sequence in the test instruction list, wherein the test instruction list comprises a plurality of test instruction groups which are sequentially arranged, the test instruction groups are separated by breakpoints, and the test instruction groups comprise a plurality of test instructions which are sequentially arranged.
2. The method of claim 1, further comprising:
and when an operation instruction which is triggered by a user and used for displaying the execution script of the test instruction is detected, displaying the execution script of the test instruction to the user.
3. The method of claim 2, further comprising:
and when an operation instruction which is triggered by a user and is used for adding a breakpoint to the execution script of the test instruction is detected, determining the test instruction list based on the position of the breakpoint.
4. The method of any of claims 1-3, wherein the program under test is a Robot Process Automation (RPA) -based program, and the test parameters include interface elements of the second device when executing the test instructions.
5. A test method is applied to a second device and comprises the following steps:
when a test instruction group sent by first equipment is received, sequentially executing test instructions in the test instruction group;
and collecting test parameters in the execution process of the test instruction, and returning the test parameters to the first equipment.
6. A test apparatus, comprising:
the first testing module is used for performing the following operations on a first testing instruction group in a testing instruction list of a tested program when detecting an operating instruction which is sent by a user and is used for testing the tested program:
step a: sending the test instruction group to the second equipment so that the second equipment sequentially executes the test instructions in the test instruction group and collects test parameters in the execution process of the test instructions;
step b: receiving test parameters returned by the second equipment so that the user can debug based on the test parameters;
and the second testing module is used for sequentially executing the operations in the step a and the step b on each testing instruction group except the first testing instruction group according to the sequence in the testing instruction list when receiving the operation instruction sent by the user for testing the tested program for multiple times, wherein the testing instruction list comprises a plurality of testing instruction groups which are sequentially arranged, each testing instruction group is separated by a breakpoint, and each testing instruction group comprises a plurality of testing instructions which are sequentially arranged.
7. The apparatus of claim 6, further comprising:
and the display module is used for displaying the execution script of the test instruction to the user when detecting the operation instruction which is triggered by the user and displays the execution script of the test instruction.
8. A test apparatus, comprising:
the instruction execution module is used for sequentially executing the test instructions in the test instruction group when receiving the test instruction group sent by the first equipment;
and the parameter returning module is used for collecting the test parameters in the execution process of the test instruction and returning the test parameters to the first equipment.
9. An electronic device comprising a processor and a memory;
the memory is used for storing operation instructions;
the processor is used for executing the method of any one of claims 1-5 by calling the operation instruction.
10. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the method of any one of claims 1-5.
CN201911329773.3A 2019-12-20 2019-12-20 Test method, test device, electronic equipment and computer readable storage medium Pending CN111159023A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911329773.3A CN111159023A (en) 2019-12-20 2019-12-20 Test method, test device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911329773.3A CN111159023A (en) 2019-12-20 2019-12-20 Test method, test device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111159023A true CN111159023A (en) 2020-05-15

Family

ID=70557666

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911329773.3A Pending CN111159023A (en) 2019-12-20 2019-12-20 Test method, test device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111159023A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111673747A (en) * 2020-06-02 2020-09-18 中国建设银行股份有限公司 Remote testing method and device for robot agent end
CN112131129A (en) * 2020-09-29 2020-12-25 中国银行股份有限公司 Application program testing method and system
CN114817078A (en) * 2022-06-29 2022-07-29 荣耀终端有限公司 Automatic testing method and device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140123117A1 (en) * 2012-10-26 2014-05-01 Samsung Electronics Co., Ltd. Automatic testing apparatus for embedded software, automatic testing method thereof and test scenario composing method
CN107894762A (en) * 2017-11-09 2018-04-10 重庆鲁班机器人技术研究院有限公司 Practicality imitation test method, apparatus and system
CN109144668A (en) * 2018-08-06 2019-01-04 华大半导体有限公司 RFID emulates use-case implementation method and device
CN109582577A (en) * 2018-11-30 2019-04-05 成都德辰博睿信息技术有限公司 Wireless device detection method, device, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140123117A1 (en) * 2012-10-26 2014-05-01 Samsung Electronics Co., Ltd. Automatic testing apparatus for embedded software, automatic testing method thereof and test scenario composing method
CN107894762A (en) * 2017-11-09 2018-04-10 重庆鲁班机器人技术研究院有限公司 Practicality imitation test method, apparatus and system
CN109144668A (en) * 2018-08-06 2019-01-04 华大半导体有限公司 RFID emulates use-case implementation method and device
CN109582577A (en) * 2018-11-30 2019-04-05 成都德辰博睿信息技术有限公司 Wireless device detection method, device, computer equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111673747A (en) * 2020-06-02 2020-09-18 中国建设银行股份有限公司 Remote testing method and device for robot agent end
CN111673747B (en) * 2020-06-02 2021-12-17 中国建设银行股份有限公司 Remote testing method and device for robot agent end
CN112131129A (en) * 2020-09-29 2020-12-25 中国银行股份有限公司 Application program testing method and system
CN112131129B (en) * 2020-09-29 2023-09-08 中国银行股份有限公司 Application program testing method and system
CN114817078A (en) * 2022-06-29 2022-07-29 荣耀终端有限公司 Automatic testing method and device and storage medium

Similar Documents

Publication Publication Date Title
CN109302522B (en) Test method, test device, computer system, and computer medium
CN105843741B (en) Information processing method and device for application program
CN105094783B (en) method and device for testing stability of android application
CN111159023A (en) Test method, test device, electronic equipment and computer readable storage medium
CN110659198A (en) Application program test case execution method and device and software test system
CN114546738A (en) Server general test method, system, terminal and storage medium
CN109558313B (en) Method and device for constructing abnormal test scene
CN106354629A (en) Construction method of iOS system mobile application automatic test system based on multiple stages of servers
CN107621963B (en) Software deployment method, software deployment system and electronic equipment
CN114218072A (en) Test script generation method and device, storage medium and computer equipment
CN110688173B (en) Positioning method and device of components in cross-platform interface framework and electronic equipment
CN109739760B (en) Code debugging test method and device and storage medium
CN116860608A (en) Interface testing method and device, computing equipment and storage medium
CN109902001B (en) Method for detecting uninitialized variable and terminal equipment
CN114546823B (en) Method for reproducing debug scenario of logic system design and related equipment
CN115373929A (en) Test method, device, equipment, readable storage medium and program product
CN113220586A (en) Automatic interface pressure test execution method, device and system
CN111679924B (en) Reliability simulation method and device for componentized software system and electronic equipment
CN111638905A (en) Version number generation method and device, electronic equipment and readable storage medium
CN109388564B (en) Test method and device and electronic equipment
CN111949510B (en) Test processing method, device, electronic equipment and readable storage medium
CN112346994A (en) Test information correlation method and device, computer equipment and storage medium
CN107766251B (en) Detection method, system and device for loading image and readable storage medium
CN114968751A (en) Program debugging method and program debugging device of code-free development platform
RU2817186C1 (en) System for confirming tests and testing embedded software of electronic devices

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
TA01 Transfer of patent application right

Effective date of registration: 20220915

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Applicant after: CHINA CONSTRUCTION BANK Corp.

Address before: 25 Financial Street, Xicheng District, Beijing 100033

Applicant before: CHINA CONSTRUCTION BANK Corp.

Applicant before: Jianxin Financial Science and Technology Co.,Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20200515

RJ01 Rejection of invention patent application after publication