CN116225943A - Interactive interface testing method and device, electronic equipment and storage medium - Google Patents

Interactive interface testing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116225943A
CN116225943A CN202310218984.XA CN202310218984A CN116225943A CN 116225943 A CN116225943 A CN 116225943A CN 202310218984 A CN202310218984 A CN 202310218984A CN 116225943 A CN116225943 A CN 116225943A
Authority
CN
China
Prior art keywords
information
script
target
test
determining
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
CN202310218984.XA
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.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202310218984.XA priority Critical patent/CN116225943A/en
Publication of CN116225943A publication Critical patent/CN116225943A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses an interactive interface testing method, an interactive interface testing device, electronic equipment and a storage medium, wherein the method comprises the following steps: based on the acquired case information to be applied, corresponding test flow information and test parameter information are determined; determining at least one target transaction script based on the test flow information, and determining script parameter information corresponding to the at least one target transaction script based on the test parameter information; and determining a target test case corresponding to the case information to be applied based on the test flow information, the at least one target transaction script and the script parameter information, so as to test the interactive interface based on the target test case. Based on the technical scheme, the corresponding target test case is determined based on the parameter information corresponding to the case information to be applied, and the interactive interface is tested based on the target test case, so that the writing cost of the test case is reduced, and the testing efficiency is improved.

Description

Interactive interface testing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for testing an interactive interface, an electronic device, and a storage medium.
Background
In the existing software function test process, after a tester designs a test case according to requirements, the tester writes corresponding codes according to the test case to obtain a test script, and then the test of the function is completed based on the test script.
However, since the existing test method requires a tester to master a certain code writing capability and test cases designed by different testers are different, the readability of the finally obtained test script is not strong, the service flow related to the use case is difficult to clearly show, and the test efficiency is reduced.
Disclosure of Invention
The invention provides an interactive interface testing method, an interactive interface testing device, electronic equipment and a storage medium, which realize that corresponding target test cases are determined based on parameter information corresponding to case information to be applied, and the interactive interface is tested based on the target test cases, so that the writing cost of the test cases is reduced, and the testing efficiency is improved.
In a first aspect, an embodiment of the present invention provides an interactive interface testing method, including:
based on the acquired case information to be applied, corresponding test flow information and test parameter information are determined; the test flow information comprises identification information of a target transaction script and script calling sequence information of the target transaction script; the test parameter information comprises unique identification information corresponding to case information to be applied;
Determining at least one target transaction script based on the test flow information, and determining script parameter information corresponding to the at least one target transaction script based on the test parameter information;
and determining a target test case corresponding to the case information to be applied based on the test flow information, the at least one target transaction script and the script parameter information, so as to test the interactive interface based on the target test case.
In a second aspect, an embodiment of the present invention further provides an apparatus for testing an interactive interface, where the apparatus includes:
the test information acquisition module is used for determining corresponding test flow information and test parameter information based on the acquired case information to be applied; the test flow information comprises identification information of a target transaction script and script calling sequence information of the target transaction script; the test parameter information comprises unique identification information corresponding to case information to be applied;
the parameter information determining module is used for determining at least one target transaction script based on the test flow information and determining script parameter information corresponding to the at least one target transaction script based on the test parameter information;
And the testing module is used for determining a target testing case corresponding to the case information to be applied based on the testing flow information, the at least one target transaction script and the script parameter information so as to test the interactive interface based on the target testing case.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
one or more processors; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to implement the interactive interface testing method according to any one of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium, where a computer program is stored, where the program when executed by a processor implements the method for testing an interactive interface according to any one of the embodiments of the present invention.
According to the technical scheme, corresponding test flow information and test parameter information are determined based on the acquired case information to be applied, at least one target transaction script is determined based on the test flow information, script parameter information corresponding to the at least one target transaction script is determined based on the test parameter information, and further a target test case corresponding to the case information to be applied is determined based on the test flow information, the at least one target transaction script and the script parameter information, so that the interactive interface is tested based on the target test case. Based on the technical scheme, the corresponding target test case is determined based on the parameter information corresponding to the case information to be applied, and the interactive interface is tested based on the target test case, so that the writing cost of the test case is reduced, and the testing efficiency is improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed 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 invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of an interactive interface testing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a script editing page according to an embodiment of the present invention;
FIG. 3 is a flowchart of an interactive interface testing method provided by an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an integrated platform according to an embodiment of the present invention;
FIG. 5 is a block diagram of an interactive interface testing apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flow chart of an interactive interface testing method provided in an embodiment of the present invention, where the embodiment is applicable to determining target transaction scripts and script parameter information based on test flow information and test parameter information corresponding to case information to be applied, further determining a target test case corresponding to the case information to be applied, and performing a test on an interactive interface based on the target test case.
As shown in fig. 1, the method includes:
s110, corresponding test flow information and test parameter information are determined based on the acquired case information to be applied.
The case information to be applied may be relevant information of the case to be applied selected by the user. The test flow information includes identification information of the target transaction script and script call sequence information of the target transaction script. The test parameter information comprises unique identification information corresponding to the case information to be applied. The identification information of the target transaction script may be understood as unique identification information of the target transaction script. The script call order information may be script call order corresponding to case information to be applied.
Specifically, the user selects case information to be applied according to the requirement, and uses the case information as case information to be applied, so as to obtain test flow information and test parameter information corresponding to the case information to be applied, for example, when an interactive interface test is required, a page is selected for the user to display the corresponding case information to be applied, specific case information to be applied is determined according to the operation of the user on the page selected by the case information to be applied, so as to obtain the corresponding test flow information and test parameter information, or a search box is popped up for the user, and the corresponding case information to be applied is determined based on the text information input by the user in the search box.
Based on the technical scheme, before acquiring the case information to be applied and determining the corresponding test flow information and test parameter information based on the case information to be applied, the method comprises the following steps: when triggering operation of a target user is detected, continuously recording operation information of the target user, and determining a transaction script to be applied based on the operation information; and/or when the drag operation of the target user is detected, acquiring script attribute information determined by the target user, and determining a transaction script to be applied based on the script attribute information; and determining the target transaction script based on the transaction script to be applied.
The target user may be a developer who makes a script. The triggering operation can be understood as the triggering of the control by the target user. The operation information may be an operation performed by the target user through the external device after performing the trigger operation, for example, a code input through a keyboard, or a double click operation on a left button of the mouse. The transaction script to be applied may be script information obtained based on an operation of the target user. The drag operation may be understood as a drag operation of the control by the target user. The script attribute information may be information input by a user within a script attribute information setting control.
Specifically, when the triggering operation of the target user is detected, the operation information of the target user is continuously recorded, the transaction script to be applied is determined based on the operation information, and/or when the dragging operation of the target user is detected, the script attribute information determined by the target user is obtained, and the transaction script to be applied is determined based on the script attribute information.
On the basis of the technical scheme, when the triggering operation of the target user is detected, continuously recording the operation information of the target user, and determining the transaction script to be applied based on the operation information, wherein the method comprises the following steps: if the recording control is detected to be triggered, recording the operation of the target user; stopping recording the operation of the target user when the ending control is detected to be triggered, and taking the recorded operation information as target operation information; and generating the transaction script to be applied based on the target operation information.
The recording control may be a preset control for triggering the recording function. An end control may be understood as a control for ending recording of an operation by a target user. The target operation information may be all operation information of the user during the recording process.
Specifically, if the recording control is detected to be triggered, it is indicated that the target user needs to write the transaction script to be applied, that is, the target user sends out an operation recording instruction, further, the operation of the target user is recorded after instruction information is received, when the target user finishes writing script information to be applied, a corresponding ending recording instruction can be sent out through the triggering ending control, that is, when the ending control is detected to be triggered, the operation of the target user is stopped to be recorded, the recorded operation information is used as target operation information, and further, the transaction script to be applied is generated based on the target operation information. For example, the recording button is clicked to start recording the script, and when the recording is finished, the finish button is clicked to finish recording and generate the corresponding script. It should be noted that, since the target user may perform multiple operations during the recording process, that is, the target operation information may have multiple operation information.
On the basis of the above technical solution, when the drag operation of the target user is detected, obtaining script attribute information determined by the target user, and determining a transaction script to be applied based on the script attribute information, including: if the target plug-in is detected to be dragged into the first preset area, displaying a property information editing window corresponding to the target plug-in a second preset area; and acquiring script attribute information input by the target user in the attribute information editing window so as to determine the transaction script to be applied based on the script attribute information.
The target plugin can be a plugin selected by a user and required to write a transaction script to be applied. The first preset area may be a lower preset area of the script page, such as the center of the script page. The second preset area may be understood as an area of the script writing page for displaying the property information editing window of the target plug-in, for example, a right area of the script writing page. The attribute information editing window may be a window for setting the attribute of the target plug-in.
Specifically, when it is detected that the user drags the target plug-in to the first preset area, it is indicated that the target user needs to write a transaction script to be applied corresponding to the target plug-in, and further an attribute information editing window corresponding to the target plug-in is displayed in the second preset area, the target user can input script attribute information in the attribute information editing window according to requirements, and after the current target user completes setting of the script attribute information, the transaction script to be applied is determined based on the script attribute information. As shown in fig. 2, the script is written directly by dragging the plug-in. And directly dragging the plug-in to the middle script area, then grabbing the object after selecting the corresponding window in the right area, and finally selecting the required operation. It should be noted that the target plug-in may be selected by the user according to the requirement, that is, the user may select the plug-in to be tested according to the requirement, for example, may select the plug-in to be tested from the interactive interface to be tested.
S120, determining at least one target transaction script based on the test flow information, and determining script parameter information corresponding to the at least one target transaction script based on the test parameter information.
The target transaction script may be a script that needs to be invoked, which is determined based on the test flow information. Script parameter information may be understood as parameters that populate a target transaction script.
Specifically, a target transaction script to be called is determined according to the test flow information, and script parameter information of the target transaction script is obtained based on the test parameter information. For example, the transaction script to be applied corresponding to the identification information may be searched from the database based on the identification information of the target transaction script in the test flow information, and then the obtained matched transaction script to be applied is used as the target transaction script, and the corresponding script parameter information is obtained from the database based on the test parameter information.
On the basis of the above technical solution, the determining script parameter information corresponding to the at least one target transaction script based on the test parameter information includes: and matching in a preset parameter information table based on the test parameter information, and determining script parameter information corresponding to the test parameter information.
The preset parameter information table is a preset table for storing parameter information.
Specifically, the matching is performed in a preset parameter information table based on the test parameter information, so that script parameter information corresponding to the test parameter information is determined, for example, when the test is required, by reading parameters from the parameter information table, and further modifying data and other operations, a data driving strategy of separating the script from the data is realized, that is, when the target transaction script is executed each time, the Automation 360 can read a corresponding row or column from the preset parameter information table according to the test parameter information and store the row or column as a list variable. The list variable is used as an entry for calling the transaction script, thereby realizing data driving. By modifying the values in the preset parameter information table, it is possible to implement a case script covering multiple functional test cases. It should be noted that, the Automation 360 is an integrated platform, and can span the technical islands of the foreground and the background, so as to implement the Automation of the business processes of each system and each application, including SaaS and traditional applications.
On the basis of the above technical solution, the determining at least one target transaction script based on the test flow information includes: determining at least one transaction script identification information based on the test flow information; and matching from a script database according to the transaction script identification information, and determining a target transaction script corresponding to the at least one transaction script identification information.
Specifically, at least one transaction script identification information is determined based on the test flow information, and then matching is performed from the script database according to the transaction script identification information, so that a target transaction script corresponding to the at least one transaction script identification information is determined. It should be noted that, after the writing of the transaction script to be applied is completed, the user may store the transaction script to be applied in the cloud according to the requirement, the personal account may set the written script as "private" or "public", and if the written script is set as "public", others may copy and call the shared script. And when the target transaction script needs to be called, the corresponding transaction script can be obtained from the database based on the transaction script identification information.
S130, determining a target test case corresponding to the case information to be applied based on the test flow information, the at least one target transaction script and the script parameter information, so as to test the interactive interface based on the target test case.
The target test case may be a case for testing the interactive interface.
Specifically, after the target transaction script and the script parameter information are obtained, a target test case corresponding to the case information to be applied may be determined based on the test flow information, at least one target transaction script and the script parameter information, and then the interactive interface may be tested based on the target test case. For example, script parameter information may be filled into a target transaction script, and then the filled target transaction script is sequentially combined according to the test flow information, so as to obtain a target test case.
On the basis of the above technical solution, the determining, based on the test flow information, the at least one target transaction script, and the script parameter information, a target test case corresponding to the case information to be applied includes: determining script calling sequence information of the target transaction script based on the test flow information; determining a test case to be applied based on the script calling sequence information and the at least one target script; and determining a target test case according to the test case to be applied and the script parameter information.
The test cases to be applied may be test cases for filling script parameters.
Specifically, script calling sequence information of a target transaction script is determined based on the test flow information, then a test case to be applied is determined based on the script calling sequence information and at least one target script, then script parameter information is filled into the test case to be applied, and then the target test case is determined. It should be noted that, according to the technical scheme provided by the embodiment of the invention, each transaction is recorded into a script, and a plurality of transaction scripts can be combined into a case script. When one transaction page is changed, only the script of the transaction is maintained, and other transaction scripts are not affected. When the case script is written, the corresponding transaction is called according to the flow sequence, and the transaction script is not required to be repeatedly recorded. The running error does not cause blockage. The running of the scripts is relatively independent, and if no flow relevance exists between the scripts, the error of one script does not influence the execution of other scripts. The case itself is a script carrying several transaction scripts. When a transaction script in a case goes wrong, only the case execution fails, and the rest of case execution is not affected.
According to the technical scheme, corresponding test flow information and test parameter information are determined based on the acquired case information to be applied, at least one target transaction script is determined based on the test flow information, script parameter information corresponding to the at least one target transaction script is determined based on the test parameter information, and further a target test case corresponding to the case information to be applied is determined based on the test flow information, the at least one target transaction script and the script parameter information, so that the interactive interface is tested based on the target test case. Based on the technical scheme, the corresponding target test case is determined based on the parameter information corresponding to the case information to be applied, and the interactive interface is tested based on the target test case, so that the writing cost of the test case is reduced, and the testing efficiency is improved.
Example two
Fig. 3 is a flowchart of an interactive interface testing method according to an embodiment of the present invention. The embodiment further optimizes the interactive interface testing method based on the embodiment. The specific implementation manner can be seen in the technical scheme of the embodiment. Wherein, the technical terms identical to or corresponding to the above embodiments are not repeated herein.
It should be noted that, as shown in fig. 4, the technical solution provided by the embodiment of the present invention relies on the cloud native architecture of Automation 360, and the technical solution provided by the embodiment of the present invention will be described below in terms of script recording, script design, script playback and script storage in conjunction with fig. 3.
And (3) script recording: specific testers can start to write and execute scripts by logging in an Automation 360 platform through a browser, and two modes for writing the scripts by the Automation 360 are available: and generating a script through recording the operation flow. Because the script is written by recording or dragging the plug-in, personnel developing the script are less required to program the foundation, and meanwhile, the difficulty of writing the script is low. And clicking a recording button to start recording the script, and clicking a finish button to finish recording and generate a corresponding script when recording is finished. Script is written directly by dragging the plug-in. And directly dragging the plug-in to the middle script area, then grabbing the object after selecting the corresponding window in the right area, and finally selecting the required operation. The drag plug-in form for writing scripts and comments also makes the scripts more understandable and easy to maintain.
Script design: specifically, when the script is recorded, each transaction is recorded into a script, and a plurality of transaction scripts can be combined into a case script. And the script reads from the preset parameter information table and modifies the data and other operations, so that a data driving strategy of separating the script from the data is realized. Each time the transaction script is executed, the Automation 360 may read a corresponding row or column from the preset parameter information table according to the test flow information and store the row or column as a list variable. The list variable is used as an entry for calling the transaction script, thereby realizing data driving. By modifying the values in the preset parameter information table, it is possible to implement a case script covering multiple functional test cases.
Script playback and script storage: in particular, script playback, i.e. the automated execution device is still based on a local base device, securely connected to the Automation 360Cloud service through HTTPS. The script is stored in the cloud, the personal account can set the written script as private or public, and if the script is set as public, other people can copy and call the shared script.
It should be noted that, the technical solution provided by the embodiment of the present invention locates the element object by capturing the element attribute of the interface control or the image recognition mode, then operates the element object by simulating the mouse and keyboard, and uses the keyword driver and the data driver to enhance the maintainability of the script and realize the separation of the data and the script when recording the script. Furthermore, the operation and recording are simple and convenient, a tester can complete the recording of the use case without coding knowledge, the operation of a business flow is formed by recording or dragging the components, the method is simple and clear, the writing cost of the automatic test case is reduced, the business flow is clear and clear, the use case is composed of all transactions by adopting a keyword-driven strategy, the flow in the transaction module is displayed in front in a non-code form, the method has better readability, and the reading obstacle of the tester is reduced.
According to the technical scheme, corresponding test flow information and test parameter information are determined based on the acquired case information to be applied, at least one target transaction script is determined based on the test flow information, script parameter information corresponding to the at least one target transaction script is determined based on the test parameter information, and further a target test case corresponding to the case information to be applied is determined based on the test flow information, the at least one target transaction script and the script parameter information, so that the interactive interface is tested based on the target test case. Based on the technical scheme, the corresponding target test case is determined based on the parameter information corresponding to the case information to be applied, and the interactive interface is tested based on the target test case, so that the writing cost of the test case is reduced, and the testing efficiency is improved.
Example III
Fig. 5 is a block diagram of an interactive interface testing device according to an embodiment of the present invention. The device comprises: a test information acquisition module 510, a parameter information determination module 520, and a test module 530.
The test information acquisition module 510 is configured to determine corresponding test flow information and test parameter information based on the acquired case information to be applied; the test flow information comprises identification information of a target transaction script and script calling sequence information of the target transaction script; the test parameter information comprises unique identification information corresponding to case information to be applied;
A parameter information determining module 520, configured to determine at least one target transaction script based on the test flow information, and determine script parameter information corresponding to the at least one target transaction script based on the test parameter information;
and a testing module 530, configured to determine a target test case corresponding to the case information to be applied based on the test flow information, the at least one target transaction script, and the script parameter information, so as to test the interactive interface based on the target test case.
On the basis of the technical scheme, the device comprises a script to be applied determining module, a script to be applied determining module and a script processing module, wherein the script to be applied determining module is used for continuously recording operation information of a target user when triggering operation of the target user is detected before acquiring case information to be applied and determining corresponding test flow information and test parameter information based on the case information to be applied, and determining a transaction script to be applied based on the operation information; and/or when the drag operation of the target user is detected, acquiring script attribute information determined by the target user, and determining a transaction script to be applied based on the script attribute information; and determining the target transaction script based on the transaction script to be applied.
On the basis of the technical scheme, the script determining module to be applied is used for recording the operation of the target user if the recording control is detected to be triggered; stopping recording the operation of the target user when the ending control is detected to be triggered, and taking the recorded operation information as target operation information; and generating the transaction script to be applied based on the target operation information.
On the basis of the technical scheme, the script determining module to be applied is used for displaying an attribute information editing window corresponding to the target plug-in a second preset area if the target plug-in is detected to be dragged into the first preset area; and acquiring script attribute information input by the target user in the attribute information editing window so as to determine the transaction script to be applied based on the script attribute information.
On the basis of the technical scheme, the parameter information determining module is used for matching in a preset parameter information table based on the test parameter information and determining script parameter information corresponding to the test parameter information; the preset parameter information table is a preset table for storing parameter information.
On the basis of the technical scheme, the parameter information determining module is used for determining at least one transaction script identification information based on the test flow information; and matching from a script database according to the transaction script identification information, and determining a target transaction script corresponding to the at least one transaction script identification information.
On the basis of the technical scheme, the test module is used for determining script calling sequence information of the target transaction script based on the test flow information; determining a test case to be applied based on the script calling sequence information and the at least one target script; and determining a target test case according to the test case to be applied and the script parameter information.
According to the technical scheme, corresponding test flow information and test parameter information are determined based on the acquired case information to be applied, at least one target transaction script is determined based on the test flow information, script parameter information corresponding to the at least one target transaction script is determined based on the test parameter information, and further a target test case corresponding to the case information to be applied is determined based on the test flow information, the at least one target transaction script and the script parameter information, so that the interactive interface is tested based on the target test case. Based on the technical scheme, the corresponding target test case is determined based on the parameter information corresponding to the case information to be applied, and the interactive interface is tested based on the target test case, so that the writing cost of the test case is reduced, and the testing efficiency is improved.
The interactive interface testing device provided by the embodiment of the invention can execute the interactive interface testing method provided by any embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
It should be noted that each unit and module included in the above apparatus are only divided according to the functional logic, but not limited to the above division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for convenience of distinguishing from each other, and are not used to limit the protection scope of the embodiments of the present disclosure.
Example IV
Fig. 6 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 6, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the interactive interface test method.
In some embodiments, the interactive interface testing method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. One or more of the steps of the interactive interface testing method described above may be performed when the computer program is loaded into RAM 13 and executed by processor 11. Alternatively, in other embodiments, processor 11 may be configured to perform the interactive interface testing method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. The interactive interface testing method is characterized by comprising the following steps of:
based on the acquired case information to be applied, corresponding test flow information and test parameter information are determined; the test flow information comprises identification information of a target transaction script and script calling sequence information of the target transaction script; the test parameter information comprises unique identification information corresponding to case information to be applied;
Determining at least one target transaction script based on the test flow information, and determining script parameter information corresponding to the at least one target transaction script based on the test parameter information;
and determining a target test case corresponding to the case information to be applied based on the test flow information, the at least one target transaction script and the script parameter information, so as to test the interactive interface based on the target test case.
2. The method of claim 1, wherein prior to the obtaining the case information to be applied, determining corresponding test flow information and test parameter information based on the case information to be applied, comprising:
when triggering operation of a target user is detected, continuously recording operation information of the target user, and determining a transaction script to be applied based on the operation information; and/or the number of the groups of groups,
when the drag operation of the target user is detected, script attribute information determined by the target user is obtained, and a transaction script to be applied is determined based on the script attribute information;
and determining the target transaction script based on the transaction script to be applied.
3. The method according to claim 2, wherein when the trigger operation of the target user is detected, continuously recording operation information of the target user, and determining a transaction script to be applied based on the operation information, comprises:
If the recording control is detected to be triggered, recording the operation of the target user;
stopping recording the operation of the target user when the ending control is detected to be triggered, and taking the recorded operation information as target operation information;
and generating the transaction script to be applied based on the target operation information.
4. The method according to claim 2, wherein when the drag operation of the target user is detected, acquiring script attribute information determined by the target user, and determining a transaction script to be applied based on the script attribute information, comprises:
if the target plug-in is detected to be dragged into the first preset area, displaying a property information editing window corresponding to the target plug-in a second preset area;
and acquiring script attribute information input by the target user in the attribute information editing window so as to determine the transaction script to be applied based on the script attribute information.
5. The method of claim 1, wherein the determining script parameter information corresponding to the at least one target transaction script based on the test parameter information comprises:
Matching in a preset parameter information table based on the test parameter information, and determining script parameter information corresponding to the test parameter information;
the preset parameter information table is a preset table for storing parameter information.
6. The method of claim 1, wherein the determining at least one target transaction script based on the test flow information comprises:
determining at least one transaction script identification information based on the test flow information;
and matching from a script database according to the transaction script identification information, and determining a target transaction script corresponding to the at least one transaction script identification information.
7. The method of claim 1, wherein the determining a target test case corresponding to the case to be applied information based on the test flow information, the at least one target transaction script, and the script parameter information comprises:
determining script calling sequence information of the target transaction script based on the test flow information;
determining a test case to be applied based on the script calling sequence information and the at least one target script;
And determining a target test case according to the test case to be applied and the script parameter information.
8. An interactive interface testing device, comprising:
the test information acquisition module is used for determining corresponding test flow information and test parameter information based on the acquired case information to be applied; the test flow information comprises identification information of a target transaction script and script calling sequence information of the target transaction script; the test parameter information comprises unique identification information corresponding to case information to be applied;
the parameter information determining module is used for determining at least one target transaction script based on the test flow information and determining script parameter information corresponding to the at least one target transaction script based on the test parameter information;
and the testing module is used for determining a target testing case corresponding to the case information to be applied based on the testing flow information, the at least one target transaction script and the script parameter information so as to test the interactive interface based on the target testing case.
9. An electronic device, the electronic device comprising:
One or more processors; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the interactive interface testing method of any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to implement the interactive interface testing method of any one of claims 1-7 when executed.
CN202310218984.XA 2023-03-01 2023-03-01 Interactive interface testing method and device, electronic equipment and storage medium Pending CN116225943A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310218984.XA CN116225943A (en) 2023-03-01 2023-03-01 Interactive interface testing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310218984.XA CN116225943A (en) 2023-03-01 2023-03-01 Interactive interface testing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116225943A true CN116225943A (en) 2023-06-06

Family

ID=86584178

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310218984.XA Pending CN116225943A (en) 2023-03-01 2023-03-01 Interactive interface testing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116225943A (en)

Similar Documents

Publication Publication Date Title
CN109840205A (en) Applied program testing method, device, readable storage medium storing program for executing and terminal device
CN113963186A (en) Training method of target detection model, target detection method and related device
CN113378958A (en) Automatic labeling method, device, equipment, storage medium and computer program product
CN114721964A (en) Automatic generation method, device, equipment and medium of test case
CN118193389A (en) Test case generation method, device, equipment, storage medium and product
CN115905016A (en) BIOS Setup search function test method and device, electronic equipment and storage medium
CN115618234A (en) Model training method, device, equipment and storage medium
CN116149951A (en) Topology information acquisition method and device of basic input/output system
CN116069319A (en) Form rendering method and device, electronic equipment and storage medium
CN113485782B (en) Page data acquisition method and device, electronic equipment and medium
CN115481025A (en) Script recording method and device for automatic test, computer equipment and medium
CN116225943A (en) Interactive interface testing method and device, electronic equipment and storage medium
CN107515821B (en) Control testing method and device
CN115659347A (en) Safety testing method and device, electronic equipment and storage medium
CN115328736A (en) Probe deployment method, device, equipment and storage medium
CN114706610A (en) Business flow chart generation method, device, equipment and storage medium
CN114912582A (en) Model production method, model production device, electronic device, and storage medium
CN113962191B (en) Sequence randomization method and device, electronic equipment and storage medium
CN114546199B (en) Image processing method, device, electronic equipment and storage medium
CN116991737A (en) Software testing method, system, electronic equipment and storage medium
CN117251196A (en) Data maintenance method, device, equipment and storage medium
CN113836291A (en) Data processing method, device, equipment and storage medium
CN117216066A (en) Material code generation method, device, equipment and storage medium
CN117234907A (en) Testing method and system for graphical user interface
CN117472774A (en) Interface testing method, device, electronic equipment and storage medium

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