CN116955028A - Method and device for testing collaboration capability, electronic equipment and storage medium - Google Patents

Method and device for testing collaboration capability, electronic equipment and storage medium Download PDF

Info

Publication number
CN116955028A
CN116955028A CN202310770253.6A CN202310770253A CN116955028A CN 116955028 A CN116955028 A CN 116955028A CN 202310770253 A CN202310770253 A CN 202310770253A CN 116955028 A CN116955028 A CN 116955028A
Authority
CN
China
Prior art keywords
page
terminal
collaboration
image data
state information
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
CN202310770253.6A
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.)
Anhui Tingjian Technology Co ltd
Original Assignee
Anhui Tingjian Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Anhui Tingjian Technology Co ltd filed Critical Anhui Tingjian Technology Co ltd
Priority to CN202310770253.6A priority Critical patent/CN116955028A/en
Publication of CN116955028A publication Critical patent/CN116955028A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • 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
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • 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
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

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)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application provides a method, a device, electronic equipment and a storage medium for testing collaborative capability, wherein the method is used for controlling a first terminal and a second terminal to execute preset collaborative tasks on a first page and a second page respectively through a third terminal, determining the collaborative capability of the first terminal and the second terminal for executing the collaborative tasks based on state information of the first page and the second page when the first terminal and the second terminal execute the collaborative tasks, and realizing simultaneous control of the terminals and state monitoring of the collaborative pages of the terminals when the collaborative capability of the terminals for executing the collaborative tasks is required to be tested.

Description

Method and device for testing collaboration capability, electronic equipment and storage medium
Technical Field
The application relates to the field of automatic testing, in particular to a method and a device for testing collaborative capability, electronic equipment and a storage medium.
Background
With the rapid development of computer technology, the requirements for computer function detection are also increasing, and at present, the performance detection of a computer depends on the operation of the computer, and the existing computer function test scheme is usually performed in a single computer in a simulated manual mode to determine the performance and the data processing capability of the single computer. However, in a scenario where a plurality of computers are required to cooperatively perform tasks, the existing computer test scheme cannot test the cooperative job capability among the plurality of computers.
Therefore, how to test the collaboration capability between multiple computers is a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
In order to solve the technical problems, the application provides a method and a device for testing collaboration capability, electronic equipment and a storage medium.
According to a first aspect of an embodiment of the present application, a method for testing collaboration capability is applied to a third terminal, and includes:
controlling a first terminal and a second terminal to execute preset collaboration tasks on a first page and a second page respectively, wherein the first page and the second page are collaboration pages for executing the collaboration tasks by the first terminal and the second terminal respectively;
acquiring state information of the first page and the second page in the process of executing the collaboration task by the first terminal and the second terminal;
and determining the collaboration capability of the first terminal and the second terminal based on the state information of the first page and the second page.
In an optional embodiment of the present application, the controlling the first terminal and the second terminal to execute preset collaboration tasks on the first page and the second page respectively includes:
acquiring the operation rights of the first terminal and the second terminal;
And respectively controlling the first terminal and the second terminal to execute the preset cooperative task based on the cooperative logic of the preset cooperative task.
In an optional embodiment of the present application, the collaboration logic based on the preset collaboration task controls the first terminal and the second terminal to execute the preset collaboration task respectively, including:
in an observer mode, controlling the first terminal and the second terminal to execute a preset collaboration task according to collaboration logic of the preset collaboration task;
in the observer mode, synchronously updating the page content of the second page when the page content of the first page is updated; and/or synchronously updating the page content of the first page when the page content of the second page is updated.
In an optional embodiment of the present application, the collaboration logic of the preset collaboration task includes:
and in response to detecting the completion prompt information of the first step of executing the collaboration task by the first terminal, controlling the second terminal to execute the collaboration step corresponding to the first step.
In an optional embodiment of the present application, the controlling, in response to detecting the completion prompt information of the first step of the first terminal to perform the collaboration task, the second terminal to perform the collaboration step corresponding to the first step includes:
In response to detecting that the first terminal inputs the completion prompt information of the talker manuscript, controlling the second terminal to execute talker manuscript finishing operation;
the talker manuscript sort operation is a cooperation step corresponding to a talker manuscript input operation.
In an optional embodiment of the present application, the obtaining status information of the first page and the second page includes:
obtaining image data of a first page and image data of a second page corresponding to each step of the collaboration task;
and determining state information of the first page and state information of the second page corresponding to the respective steps based on the image data of the first page and the image data of the second page.
In an alternative embodiment of the present application, the state information of the first page and the state information of the second page include: abnormal state or normal state;
the determining, based on the image data of the first page and the image data of the second page, the state information of the first page and the state information of the second page corresponding to the respective steps includes:
Performing image recognition processing on the image data of the first page and the image data of the second page, and determining state information of the first page and state information of the second page according to an image recognition processing result;
or alternatively, the process may be performed,
performing text recognition processing on the image data of the first page and the image data of the second page, and determining state information of the first page and state information of the second page according to a text recognition processing result;
or alternatively, the process may be performed,
obtaining standard image data of the first page and standard image data of the second page; and performing feature comparison processing on the image data of the first page and the standard image data of the first page to obtain the state information of the first page, and performing feature comparison processing on the image data of the second page and the standard image data of the second page to obtain the state information of the second page.
According to a second aspect of an embodiment of the present application, there is provided a collaboration capability testing apparatus, including:
the first unit is used for controlling a first terminal and a second terminal to execute preset collaboration tasks on a first page and a second page respectively, wherein the first page and the second page are collaboration pages for executing the collaboration tasks by the first terminal and the second terminal respectively;
The second unit is used for obtaining state information of the first page and the second page in the process of executing the collaboration task by the first terminal and the second terminal;
and a third unit configured to determine a collaboration capability of the first terminal and the second terminal based on status information of the first page and the second page.
According to a third aspect of an embodiment of the present application, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
the processor is used for executing the method for testing the collaboration capability by running the instructions in the memory.
According to a fourth aspect of embodiments of the present application, there is provided a computer storage medium storing a computer program which, when executed by a processor, performs the above-described method of testing collaborative capability.
Compared with the prior art, the application has the following advantages:
the application provides a method and a device for testing collaborative capability, electronic equipment and a storage medium, wherein the method for testing collaborative capability is applied to a third terminal and comprises the following steps: controlling a first terminal and a second terminal to execute preset collaboration tasks on a first page and a second page respectively, wherein the first page and the second page are collaboration pages for executing the collaboration tasks by the first terminal and the second terminal respectively; acquiring state information of the first page and the second page in the process of executing the collaboration task by the first terminal and the second terminal; and determining the collaboration capability of the first terminal and the second terminal based on the state information of the first page and the second page.
According to the method, through the third terminal, the first terminal and the second terminal are controlled to execute preset collaboration tasks on the first page and the second page respectively, when the first terminal and the second terminal execute the collaboration tasks, the collaboration capacity of the first terminal and the second terminal for executing the collaboration tasks is determined based on the state information of the first page and the second page, and when the collaboration capacity of the plurality of terminals for executing the collaboration tasks in a mutual collaboration mode is required to be tested, simultaneous control of the plurality of terminals and state monitoring of the collaboration pages of the plurality of terminals are achieved, and the problem of testing the collaboration capacity of the plurality of terminals is solved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present application, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 is an application scenario schematic diagram of a method for testing collaboration capability according to an embodiment of the present application;
FIG. 2 is a flowchart of a method for testing collaboration capability according to another embodiment of the present application;
FIG. 3 is a schematic structural diagram of a device for testing collaborative capability according to another embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to another embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
With the rapid development of computer technology, the requirements for computer function detection are also increasing, and at present, the performance detection of a computer depends on the operation of the computer, and the existing computer function test scheme is usually performed in a single computer in a simulated manual mode to determine the performance and the data processing capability of the single computer. However, in a scenario where a plurality of computers are required to cooperatively perform tasks, the existing computer test schemes cannot determine the collaborative job capability between the plurality of computers.
Therefore, how to determine the collaboration capability between multiple computers is a technical problem that needs to be solved by those skilled in the art.
In order to solve the above technical problems, the present application provides a method, an apparatus, an electronic device and a storage medium for testing collaboration capability, which are described in detail in the following embodiments.
Exemplary implementation Environment
In order to facilitate understanding of the method, the device, the electronic equipment and the storage medium for testing the collaboration capability provided by the application, the method for testing the collaboration capability is first introduced in combination with a specific implementation environment.
Referring to fig. 1, fig. 1 is a schematic diagram of an application scenario of a method for testing collaborative capability according to an embodiment of the present application.
As shown in fig. 1, fig. 1 includes: terminal 101, terminal 102, and terminal 103.
The terminal 101 and the terminal 102 can be understood as two computers performing cooperative tasks, and in the implementation environment provided by the application, the terminal 101 is used for recording the speaking content of a speaker in a conference; the terminal 102 is configured to sort the speech content recorded by the terminal 101.
Terminal 101 is connected to terminal 102 while terminal 101 and terminal 102 are respectively connected to terminal 103, specifically, terminal 103, terminal 101, and terminal 102 via wireless/wired communication links, and when connected via wired communication links, can be connected via any type of data signal line, specifically, coaxial signal line, digital signal line, optical cable signal line, balanced signal line, etc., and when connected via wireless communication links, can be connected via a network, which can be any type of network, and can be, for example, a network, or can be a sub-network, such as a Local Area Network (LAN), an ethernet, a token ring network, a Wide Area Network (WAN), the internet, a virtual network, a Virtual Private Network (VPN), an intranet, an extranet, a wireless network (e.g., bluetooth, WIFI), a mobile network (e.g., 4G, 5G), an internet of things, and/or any combination of other networks.
The terminal 103 may be understood as a main body of a test method for performing a collaboration capability, and during a specific application, the terminal 103 is configured to control the terminal 102 and the terminal 103 to perform the collaboration task, and monitor states of the terminal 101 and the terminal 102 when the collaboration task is performed in an observer mode.
In an alternative embodiment of the present application, terminals 101, 102, and 103 may be various types of user terminals such as notebook computers, tablet computers, desktop computers, mobile devices (e.g., mobile phones, personal digital assistants, dedicated messaging devices, game consoles), etc.
Further, in the application scenario provided by the embodiment of the present application, the terminal 101, the terminal 102, and the terminal 103 are specifically a notebook computer, so that, in order to enable the terminal 103 to control the terminal 101 and the terminal 102 to perform specific collaboration tasks, the terminal 103 may be connected to the terminal 101 and the terminal 102 by using a VNC component (e.g., realVNC, tightVNC, remmina, etc.) supporting the RCP protocol, so as to control the keyboards and mice of the terminal 101 and the terminal 102.
Further, in the application scenario provided by the embodiment of the present application, the collaboration task is specifically recording and sorting the speaking content of the speaker in the conference, where the terminal 101 records the speaking content of the speaker in the conference based on the page 104, and the terminal 102 sorts the speaking content of the speaker in the conference based on the page 105, and the sorting includes: modifying and deleting the speaking content properly; the terminal 103 is used for controlling the mice and keyboards of the terminal 101 and the terminal 102, so that the terminal 101 and the terminal 102 can complete the operations, the display interface of the terminal 103 simultaneously displays the page 104 and the page 105, and the terminal 103 tests whether the terminal 101 and the terminal 102 have the capability of completing the collaborative tasks by monitoring the page states of the page 104 and the page 105 while controlling the terminal 101 and the terminal 102 to execute the collaborative tasks.
Exemplary method
The embodiment of the application also provides a method for testing the collaboration capability, which is applied to a third terminal and has the core that: and when the cooperative capacity of the plurality of terminals for executing the cooperative tasks in a mutual cooperation mode is required to be tested, the plurality of terminals are controlled simultaneously and the state of the cooperative pages of the plurality of terminals is monitored, so that the problem of determining the cooperative capacity of the plurality of terminals is solved.
Wherein the third terminal may be regarded as terminal 103 in fig. 1, the first terminal may be regarded as terminal 101 in fig. 1, and the second terminal may be regarded as terminal 102 in fig. 1. In an alternative embodiment of the present application, the third terminal may be a notebook computer, a tablet computer, a desktop computer, a mobile device (e.g., a mobile phone, a personal digital assistant, a dedicated messaging device, a game console), or other various types of user terminals, which is not limited to the present application.
Referring to fig. 2, fig. 2 is a flowchart of a method for testing collaboration capability according to another embodiment of the present application.
As shown in fig. 2, the method for testing the collaboration capability includes the following steps S201 to S203:
step 201, a first terminal and a second terminal are controlled to execute preset collaboration tasks on a first page and a second page respectively, wherein the first page and the second page are collaboration pages for the first terminal and the second terminal to execute the collaboration tasks respectively.
Similar to the foregoing embodiment of the scenario, the controlling the first terminal and the second terminal to execute the preset collaboration task on the first page and the second page respectively means controlling the first terminal and the second terminal to complete the collaboration task under the control of the third terminal.
The first page and the second page may be understood as task interfaces when the first terminal and the second terminal execute the collaborative task, for example, in an optional embodiment of the present application, the collaborative task is implemented based on an application program installed in the first terminal and the second terminal, the first page may be understood as a page displayed after the first terminal opens the application program, and the second page may be understood as a page displayed after the second terminal opens the application program.
In an alternative embodiment of the present application, the step S201 includes: acquiring the operation rights of the first terminal and the second terminal; and respectively controlling the first terminal and the second terminal to execute the preset cooperative task based on the cooperative logic of the preset cooperative task.
Specifically, the third terminal may connect the first terminal and the second terminal by means of a VNC component supporting an RCP protocol, and acquire operation rights of the first terminal and the second terminal through an abw.
Wherein, the VNC component supporting RCP protocol is a software component, which can combine VNC (Virtual Network Computing) technology with RCP (Remote Procedure Call) protocol to realize functions of remote control and management of computer system. In particular, the RCP protocol is a network-based protocol that allows programs to communicate and interact on different computers. The VNC technology can transmit desktop images of the remote computer to the local computer, thereby realizing remote control and management functions. The VNC component supporting the RCP protocol combines these two technologies so that a user can remotely control and manage a computer system through the RCP protocol, and can also view and manipulate desktop images on a remote computer in real time. The assembly can be widely applied to scenes such as remote technical support, remote training, remote conference and the like.
In the embodiment of the present application, the VNC component supporting the RCP protocol may be RealVNC, tightVNC, ultraVNC, tigerVNC, turboVNC, and remma, which is not limited to this aspect of the present application.
an awt is a class in Java that provides some operating system level functionality, such as simulating mouse and keyboard events, etc. The Java program is allowed to control the mouse and the keyboard through codes, simulate the operation of a user, and can be used for application scenes such as automatic test, interactive demonstration and the like. It is part of the Java AWT (Abstract Window Toolkit) package, so the AWT package can be used to use the AWT.
Further, the collaboration logic of the preset collaboration task may be understood as collaboration steps that each terminal needs to execute when the first terminal and the second terminal execute the collaboration task, and an execution sequence between the collaboration steps.
For example, when the collaboration task is recording and sorting the speaking content of the speaking person in the conference, the collaboration logic of the collaboration task may be: step 1: the first terminal records the speaking content of a speaker; step 2: after the step of recording the talk content by the first terminal is completed, the talk content recorded by the first terminal is collated/modified.
That is, when the third terminal controls the first terminal and the second terminal to complete the collaboration task, collaboration logic of the collaboration task may be understood as: and responding to the detection of the completion prompt information of the first step of the collaboration task in the first page, and controlling the second terminal to execute the collaboration step corresponding to the first step on the second page.
Specifically, the collaboration logic based on the preset collaboration task respectively controls the first terminal and the second terminal to execute the preset collaboration task, including: and under the observer mode, controlling the first terminal and the second terminal to execute the preset cooperative task according to the cooperative logic of the preset cooperative task.
The observer mode is specifically a design mode, and the mode defines a one-to-many relationship between terminals (for example, in the embodiment of the present application, the one-to-many relationship specifically refers to a third terminal corresponding to the first terminal and the second terminal), so that when the state of one terminal changes, all dependent objects of the other terminal are notified and automatically updated, in the observer mode, there are two main roles, namely, an observer and an observed person, the observed person maintains an observer list, and provides interfaces for adding, deleting and notifying the observer; the watcher is then configured to receive the notification of the watcher and to perform a corresponding update.
In the embodiment of the application, the first terminal and the second terminal are observers and observed, namely, when the page content of the first page of the first terminal is updated, the page content of the second page of the second terminal is also updated synchronously, and when the page content of the second page of the second terminal is updated, the page content of the first page of the first terminal is also updated synchronously.
The third terminal is equivalent to an observed person relative to the first terminal and the second terminal, a first page and a second page are simultaneously displayed on an interface of the third terminal in the actual application process, and the first page and the second page displayed by the third terminal are updated according to the first page in the first terminal and the second page in the second terminal in the process that the third terminal controls the first terminal and the second terminal to execute the collaboration task according to the collaboration logic of the collaboration task.
Step S202, during the process of executing the collaboration task by the first terminal and the second terminal, obtaining state information of the first page and the second page.
In an embodiment of the present application, the status information of the first page and the second page includes: abnormal state and normal state.
Specifically, the state information of the first page and the second page may be obtained by scanning, by the third terminal, the first page and the second page displayed on the display interface according to a preset time interval, so as to determine the state information of the first page and the second page.
In an optional embodiment of the present application, the image data of the first page and the second page may be obtained by scanning, by the third terminal, the first page and the second page displayed on the display interface according to a preset time interval.
In another optional embodiment of the present application, the image data of the first page and the second page may also be image data corresponding to each step of the collaboration task when the first terminal and the second terminal execute the collaboration task.
Further, after the image data of the first page and the second page are obtained, the image data can be identified, and then the page states of the first page and the second page are obtained.
For example, in an alternative embodiment of the present application, the status information of the first page and the second page may be obtained by:
And carrying out image recognition processing on the image data of the first page and the second page, and determining the state information of the first page and the state information of the second page according to the image recognition processing result.
For example, when the collaboration task is recording and sorting the speaking content of the conference speaker, if the first terminal fails to perform the step of recording the speaking content of the conference speaker, the first page may display a popup window with failed step execution, and the popup window may include a warning icon indicating that the task step fails to perform, and in this case, the warning icon in the image data of the first page is identified, so that the state of the first page is an abnormal state.
In another alternative embodiment of the present application, the status information of the first page and the second page may be obtained by:
and carrying out text recognition processing on the image data of the first page and the second page, and determining the state information of the first page and the state information of the second page according to a text recognition processing result.
For example, when the collaboration task is recording and sorting the speaking content of the conference speaker, if the first terminal completes the recording of the speaking content of the speaker, the first page may display a popup window with successful execution of the steps, and the popup window may include text indicating that the task step is successfully executed, and in this case, the text in the image data of the first page is identified, so that the state of the first page is a normal state.
In another alternative embodiment of the present application, the status information of the first page and the second page may be further obtained by:
obtaining standard image data of the first page and standard image data of the second page; and performing feature comparison processing on the image data of the first page and the image data of the second page and the standard image data to obtain state information of the first page and state information of the second page.
For example, when the collaboration task is recording and sorting the speaking content of the conference speaker, and the step of completing the recording of the speaking content of the speaker by the first terminal is successfully performed, the first page may show a popup window in which the step is successfully performed, and may use the image data of the first page including the popup window as standard image data, at this time, assuming that the first terminal completes the step of recording the speaking content of the speaker and obtains the image data of the first page after the completion of the step, the image data may be compared with the standard image data in terms of characteristics (such as comparing the pixel characteristics of each pixel point), and the state of the first page may be determined based on the comparison result.
Step S203, determining a collaboration capability of the first terminal and the second terminal based on the status information of the first page and the second page.
The determining the collaboration capability of the first terminal and the second terminal based on the page states of the first page and the second page refers to determining the collaboration capability of the first terminal and the second terminal according to state information of the first page and the second page corresponding to each step of the collaboration task.
Based on the foregoing discussion, the state information of the first page and the second page can reflect the execution results of each step when the first terminal and the second terminal execute each step of the collaboration task, so that the collaboration capability of the first terminal and the second terminal can be judged by combining the state information of each step, and the first terminal and the second terminal can be improved according to the state information of the first page and the second page under the condition that the first terminal and the second terminal fail to execute the collaboration task.
In summary, according to the method for testing the collaboration capability provided by the application, through the third terminal, the first terminal and the second terminal are controlled to execute the preset collaboration tasks on the first page and the second page respectively, and when the first terminal and the second terminal execute the collaboration tasks, the collaboration capability of the first terminal and the second terminal for executing the collaboration tasks is determined based on the state information of the first page and the second page, and when the collaboration capability of executing the collaboration tasks by mutually collaborating a plurality of terminals is required to be tested, the simultaneous control of the plurality of terminals and the state monitoring of the collaboration pages of the plurality of terminals are realized, so that the problem of determining the collaboration capability of the plurality of terminals is solved.
Exemplary apparatus
Correspondingly, the embodiment of the application also provides a device for testing the collaboration capability, please refer to fig. 3, and fig. 3 is a schematic structural diagram of a device for testing the collaboration capability provided by another embodiment of the application.
As shown in fig. 3, the structural schematic diagram of the device for testing collaboration capability includes:
a first unit 301, configured to control a first terminal and a second terminal to execute a preset collaboration task on a first page and a second page, where the first page and the second page are collaboration pages for the first terminal and the second terminal to execute the collaboration task, respectively;
a second unit 302, configured to obtain status information of the first page and the second page during the process of executing the collaboration task by the first terminal and the second terminal;
and a third unit 303, configured to determine a collaboration capability of the first terminal and the second terminal based on the state information of the first page and the second page.
In an optional embodiment of the present application, the controlling the first terminal and the second terminal to execute preset collaboration tasks on the first page and the second page respectively includes:
acquiring the operation rights of the first terminal and the second terminal;
And respectively controlling the first terminal and the second terminal to execute the preset cooperative task based on the cooperative logic of the preset cooperative task.
In an optional embodiment of the present application, the collaboration logic based on the preset collaboration task controls the first terminal and the second terminal to execute the preset collaboration task respectively, including:
in an observer mode, controlling the first terminal and the second terminal to execute a preset collaboration task according to collaboration logic of the preset collaboration task;
in the observer mode, synchronously updating the page content of the second page when the page content of the first page is updated; and/or synchronously updating the page content of the first page when the page content of the second page is updated.
In an optional embodiment of the present application, the collaboration logic of the preset collaboration task includes:
and in response to detecting the completion prompt information of the first step of executing the collaboration task by the first terminal, controlling the second terminal to execute the collaboration step corresponding to the first step.
In an optional embodiment of the present application, the controlling, in response to detecting the completion prompt information of the first step of the first terminal to perform the collaboration task, the second terminal to perform the collaboration step corresponding to the first step includes:
In response to detecting that the first terminal inputs the completion prompt information of the talker manuscript, controlling the second terminal to execute talker manuscript finishing operation;
the talker manuscript sort operation is a cooperation step corresponding to a talker manuscript input operation.
In an optional embodiment of the present application, the obtaining status information of the first page and the second page includes:
obtaining image data of a first page and image data of a second page corresponding to each step of the collaboration task;
and determining state information of the first page and state information of the second page corresponding to the respective steps based on the image data of the first page and the image data of the second page.
In an alternative embodiment of the present application, the state information of the first page and the state information of the second page include: abnormal state or normal state;
the determining, based on the image data of the first page and the image data of the second page, the state information of the first page and the state information of the second page corresponding to the respective steps includes:
Performing image recognition processing on the image data of the first page and the image data of the second page, and determining state information of the first page and state information of the second page according to an image recognition processing result;
or alternatively, the process may be performed,
performing text recognition processing on the image data of the first page and the image data of the second page, and determining state information of the first page and state information of the second page according to a text recognition processing result;
or alternatively, the process may be performed,
obtaining standard image data of the first page and standard image data of the second page; and performing feature comparison processing on the image data of the first page and the standard image data of the first page to obtain the state information of the first page, and performing feature comparison processing on the image data of the second page and the standard image data of the second page to obtain the state information of the second page.
The device for testing the collaboration capability provided in this embodiment belongs to the same application concept as the method for testing the collaboration capability provided in the foregoing embodiment of the present application, and may be implemented by the method for testing the collaboration capability provided in any foregoing embodiment of the present application, and has functional modules and beneficial effects corresponding to the method for testing the collaboration capability. Technical details not described in detail in this embodiment may refer to specific processing content of the method for testing collaboration capability provided in the foregoing embodiment of the present application, and are not described herein again.
Exemplary electronic device
In another embodiment of the present application, please refer to fig. 4, fig. 4 is a schematic structural diagram of an electronic device according to another embodiment of the present application, the electronic device includes:
a memory 200 and a processor 210;
wherein the memory 200 is connected to the processor 210, and is used for storing a program;
the processor 210 is configured to implement the method for testing collaboration capability disclosed in any of the foregoing embodiments by running a program stored in the memory 200.
Specifically, the electronic device may further include: a bus, a communication interface 220, an input device 230, and an output device 240.
The processor 210, the memory 200, the communication interface 220, the input device 230, and the output device 240 are interconnected by a bus. Wherein:
a bus may comprise a path that communicates information between components of a computer system.
Processor 210 may be a general-purpose processor such as a general-purpose Central Processing Unit (CPU), microprocessor, etc., or may be an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of programs in accordance with aspects of the present application. But may also be a Digital Signal Processor (DSP), application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components.
Processor 210 may include a main processor, and may also include a baseband chip, modem, and the like.
The memory 200 stores programs for implementing the technical scheme of the present invention, and may also store an operating system and other key services. In particular, the program may include program code including computer-operating instructions. More specifically, the memory 200 may include read-only memory (ROM), other types of static storage devices that may store static information and instructions, random access memory (random access memory, RAM), other types of dynamic storage devices that may store information and instructions, disk storage, flash, and the like.
The input device 230 may include means for receiving data and information entered by a user, such as a keyboard, mouse, camera, scanner, light pen, voice input device, touch screen, pedometer, or gravity sensor, among others.
Output device 240 may include means, such as a display screen, printer, speakers, etc., that allow information to be output to a user.
The communication interface 220 may include devices using any transceiver or the like for communicating with other devices or communication networks, such as ethernet, radio Access Network (RAN), wireless Local Area Network (WLAN), etc.
Processor 210 executes programs stored in memory 200 and invokes other devices that may be used to implement the various steps of any of the collaboration capability test methods provided by the above-described embodiments of the present application.
Exemplary computer program product and storage Medium
In addition to the methods and apparatus described above, embodiments of the application may also be a computer program product comprising computer program instructions which, when executed by a processor, cause the processor to perform steps in a method of testing collaborative capability according to various embodiments of the application described in the "exemplary methods" section of this specification.
The computer program product may write program code for performing operations of embodiments of the present application in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, an embodiment of the present application may also be a storage medium having stored thereon a computer program that is executed by a processor to perform the steps in the method for testing collaborative capability according to various embodiments of the present application described in the above-described "exemplary method" section of the present specification, and specifically may implement the steps of:
step S201, a first terminal and a second terminal are controlled to execute preset collaboration tasks on a first page and a second page respectively, wherein the first page and the second page are collaboration pages for the first terminal and the second terminal to execute the collaboration tasks respectively;
step S202, obtaining state information of the first page and the second page in the process of executing the collaboration task by the first terminal and the second terminal;
step S203, determining a collaboration capability of the first terminal and the second terminal based on the status information of the first page and the second page.
For the foregoing method embodiments, for simplicity of explanation, the methodologies are shown as a series of acts, but one of ordinary skill in the art will appreciate that the present application is not limited by the order of acts, as some steps may, in accordance with the present application, occur in other orders or concurrently. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
It should be noted that, in the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described as different from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other. For the apparatus class embodiments, the description is relatively simple as it is substantially similar to the method embodiments, and reference is made to the description of the method embodiments for relevant points.
The steps in the method of each embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs, and the technical features described in each embodiment can be replaced or combined.
The modules and the submodules in the device and the terminal of the embodiments of the application can be combined, divided and deleted according to actual needs.
In the embodiments provided in the present application, it should be understood that the disclosed terminal, apparatus and method may be implemented in other manners. For example, the above-described terminal embodiments are merely illustrative, and for example, the division of modules or sub-modules is merely a logical function division, and there may be other manners of division in actual implementation, for example, multiple sub-modules or modules may be combined or integrated into another module, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms.
The modules or sub-modules illustrated as separate components may or may not be physically separate, and components that are modules or sub-modules may or may not be physical modules or sub-modules, i.e., may be located in one place, or may be distributed over multiple network modules or sub-modules. Some or all of the modules or sub-modules may be selected according to actual needs to achieve the purpose of the embodiment.
In addition, each functional module or sub-module in the embodiments of the present application may be integrated in one processing module, or each module or sub-module may exist alone physically, or two or more modules or sub-modules may be integrated in one module. The integrated modules or sub-modules may be implemented in hardware or in software functional modules or sub-modules.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software unit executed by a processor, or in a combination of the two. The software elements may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. The method for testing the collaboration capability is characterized by being applied to a third terminal and comprising the following steps:
controlling a first terminal and a second terminal to execute preset collaboration tasks on a first page and a second page respectively, wherein the first page and the second page are collaboration pages for executing the collaboration tasks by the first terminal and the second terminal respectively;
acquiring state information of the first page and the second page in the process of executing the collaboration task by the first terminal and the second terminal;
and determining the collaboration capability of the first terminal and the second terminal based on the state information of the first page and the second page.
2. The method of claim 1, wherein the controlling the first terminal and the second terminal to perform the preset collaboration task on the first page and the second page respectively includes:
acquiring the operation rights of the first terminal and the second terminal;
and respectively controlling the first terminal and the second terminal to execute the preset cooperative task based on the cooperative logic of the preset cooperative task.
3. The method according to claim 2, wherein the collaboration logic based on the preset collaboration task controls the first terminal and the second terminal to execute the preset collaboration task, respectively, including:
in an observer mode, controlling the first terminal and the second terminal to execute a preset collaboration task according to collaboration logic of the preset collaboration task;
in the observer mode, synchronously updating the page content of the second page when the page content of the first page is updated; and/or synchronously updating the page content of the first page when the page content of the second page is updated.
4. The method of claim 2, wherein the collaboration logic of the preset collaboration task comprises:
And in response to detecting the completion prompt information of the first step of executing the collaboration task by the first terminal, controlling the second terminal to execute the collaboration step corresponding to the first step.
5. The method according to claim 4, wherein the controlling the second terminal to execute the collaboration step corresponding to the first step in response to detecting the completion prompt information of the first step in which the first terminal executes the collaboration task includes:
in response to detecting that the first terminal inputs the completion prompt information of the talker manuscript, controlling the second terminal to execute talker manuscript finishing operation;
the talker manuscript sort operation is a cooperation step corresponding to a talker manuscript input operation.
6. The method of claim 1, wherein the obtaining status information for the first page and the second page comprises:
obtaining image data of a first page and image data of a second page corresponding to each step of the collaboration task;
and determining state information of the first page and state information of the second page corresponding to the respective steps based on the image data of the first page and the image data of the second page.
7. The method of claim 6, wherein the status information of the first page and the status information of the second page comprise: abnormal state or normal state;
the determining, based on the image data of the first page and the image data of the second page, the state information of the first page and the state information of the second page corresponding to the respective steps includes:
performing image recognition processing on the image data of the first page and the image data of the second page, and determining state information of the first page and state information of the second page according to an image recognition processing result;
or alternatively, the process may be performed,
performing text recognition processing on the image data of the first page and the image data of the second page, and determining state information of the first page and state information of the second page according to a text recognition processing result;
or alternatively, the process may be performed,
obtaining standard image data of the first page and standard image data of the second page; and performing feature comparison processing on the image data of the first page and the standard image data of the first page to obtain the state information of the first page, and performing feature comparison processing on the image data of the second page and the standard image data of the second page to obtain the state information of the second page.
8. The device for testing the collaboration capability is characterized by being applied to a third terminal and comprising:
the first unit is used for controlling a first terminal and a second terminal to execute preset collaboration tasks on a first page and a second page respectively, wherein the first page and the second page are collaboration pages for executing the collaboration tasks by the first terminal and the second terminal respectively;
the second unit is used for obtaining state information of the first page and the second page in the process of executing the collaboration task by the first terminal and the second terminal;
and a third unit configured to determine a collaboration capability of the first terminal and the second terminal based on status information of the first page and the second page.
9. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
the processor is configured to execute the method for testing collaboration capability according to any one of claims 1-7 by executing the instructions in the memory.
10. A computer storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, performs the method of testing the collaboration capability of any of the preceding claims 1-7.
CN202310770253.6A 2023-06-26 2023-06-26 Method and device for testing collaboration capability, electronic equipment and storage medium Pending CN116955028A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310770253.6A CN116955028A (en) 2023-06-26 2023-06-26 Method and device for testing collaboration capability, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310770253.6A CN116955028A (en) 2023-06-26 2023-06-26 Method and device for testing collaboration capability, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116955028A true CN116955028A (en) 2023-10-27

Family

ID=88455713

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310770253.6A Pending CN116955028A (en) 2023-06-26 2023-06-26 Method and device for testing collaboration capability, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116955028A (en)

Similar Documents

Publication Publication Date Title
US9021507B2 (en) Dynamic use of data across multiple programs
US11184314B2 (en) Method and apparatus for prompting message reading state, and electronic device
CN111078556B (en) Application testing method and device
JP2008508597A (en) Help utility application program
US20190213112A1 (en) Automated system for fixing and debugging software deployed to customers
CN112015654A (en) Method and apparatus for testing
US9588874B2 (en) Remote device automation using a device services bridge
CN114116495A (en) Test method and device, electronic equipment and storage medium
CN104809054A (en) Method and system for realizing program testing
CN115756881A (en) Data processing method, device, equipment and storage medium based on SDK
CN113392018B (en) Traffic distribution method and device, storage medium and electronic equipment
CN116955028A (en) Method and device for testing collaboration capability, electronic equipment and storage medium
CN115600213A (en) Vulnerability management method, device, medium and equipment based on application program
CN115543831A (en) Test script generation method, device, equipment and storage medium
CN112988304B (en) Recording method and device of operation mode, electronic equipment and storage medium
US20220147437A1 (en) Automated testing of mobile devices using visual analysis
CN110874143B (en) Sensor data acquisition method, intelligent terminal, storage medium and electronic equipment
CN111813407B (en) Game development method, game running device and electronic equipment
CN109782925B (en) Processing method and device and electronic equipment
US20190370037A1 (en) Method and system for providing security features in a smart phone
CN111026651A (en) Test method, test device, storage medium and electronic equipment
CN111026650B (en) Method and device for testing software, storage medium and electronic equipment
CN113806213B (en) High-expandability SDK automatic test system and method
CN117473047B (en) Business text generation method and device, electronic equipment and readable storage medium
US20220171510A1 (en) Automated testing of mobile devices using behavioral learning

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