[go: up one dir, main page]

WO2023230798A1 - Cross-system key testing method and apparatus - Google Patents

Cross-system key testing method and apparatus Download PDF

Info

Publication number
WO2023230798A1
WO2023230798A1 PCT/CN2022/096087 CN2022096087W WO2023230798A1 WO 2023230798 A1 WO2023230798 A1 WO 2023230798A1 CN 2022096087 W CN2022096087 W CN 2022096087W WO 2023230798 A1 WO2023230798 A1 WO 2023230798A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
button
status information
target
identification
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.)
Ceased
Application number
PCT/CN2022/096087
Other languages
French (fr)
Chinese (zh)
Inventor
姜竣
高玉龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202280004254.3A priority Critical patent/CN117480496A/en
Priority to PCT/CN2022/096087 priority patent/WO2023230798A1/en
Publication of WO2023230798A1 publication Critical patent/WO2023230798A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software

Definitions

  • the present disclosure relates to the field of computer technology, and in particular, to a cross-system key testing method, device, electronic equipment and storage medium.
  • buttons in the system to be tested when testing buttons in the system to be tested, a button command is usually issued first. Since the execution status of the command is not known, it is impossible to know whether the execution is completed. Active query is usually required to determine the expected button. Whether the execution is completed or not, the process is more cumbersome and may be less efficient. Therefore, how to improve the efficiency of key testing is crucial.
  • Embodiments of the present disclosure provide a cross-system key testing method and device.
  • embodiments of the present disclosure provide a cross-system key testing method, which is executed by the testing system, including:
  • the test result corresponding to the identification of the target key is determined.
  • the RPC module after receiving the status information returned by the system to be tested through the RPC module, it also includes:
  • adjusting the connection status between the first application and the test system according to the type of the first application includes:
  • the first application is a resident application, maintain the connection with the first application;
  • the first application When the first application is a non-resident application, disconnect the connection with the first application and release the status information corresponding to the first application.
  • the RPC module after receiving the status information returned by the system to be tested through the RPC module, it also includes:
  • the stored status information corresponding to the second application is updated.
  • the remote procedure call RPC module before sending key instructions to the system under test through the remote procedure call RPC module, it also includes:
  • the obtained test cases are parsed to determine the identification of the target button and the target control mode.
  • determining the test result corresponding to the target key identification based on the status information and the identification of the target key includes:
  • the test result corresponding to the main interface button is determined according to the interface currently displayed in the system to be tested in the status information.
  • embodiments of the present disclosure provide a cross-system key testing method, which is executed by the system to be tested, including:
  • the status information obtained by the listening process is sent to the test system.
  • the method before sending the status information obtained by the listening process to the test system, the method further includes:
  • the status information to be returned is determined according to the identification of the target button.
  • determining the status information to be returned based on the identification of the target button includes:
  • the status information is generated based on the currently displayed application, page and focus location information in the system; or,
  • the status information is generated according to the interface currently displayed in the system.
  • embodiments of the present disclosure provide a cross-system key testing device, which is configured on the test system side and includes:
  • a sending module configured to send key instructions to the system to be tested through remote procedure call RPC modules, where the key instructions include the identification of the target key and the target control mode;
  • a receiving module configured to receive status information returned by the system under test through the RPC module
  • a determining module configured to determine a test result corresponding to the target button identification based on the status information and the target button identification.
  • the determination module includes:
  • a determining unit configured to determine the type of the first application switched to the background of the system to be tested in response to the status information indicating that the application switching is successful
  • An adjustment unit configured to adjust the connection state between the first application and the test system according to the type of the first application.
  • the adjustment unit is specifically used for:
  • the first application is a resident application, maintain the connection with the first application;
  • the first application When the first application is a non-resident application, disconnect the connection with the first application and release the status information corresponding to the first application.
  • Optional also includes:
  • An update module configured to update the stored status information corresponding to the second application in response to the status information indicating a focus change or page change in the second application.
  • Optional also includes:
  • An analysis module is used to analyze the obtained test cases to determine the identification of the target button and the target control mode.
  • the determination module is specifically used for:
  • the test result corresponding to the main interface button is determined according to the interface currently displayed in the system to be tested in the status information.
  • embodiments of the present disclosure provide a cross-system key testing device, which is configured on the side of the system to be tested, including:
  • the receiving module is used to receive the key instructions sent by the test system through the remote procedure call RPC module, wherein the key instructions include the identification of the target key and the target control mode;
  • Start module used to start the listening process
  • a control module configured to control the target button corresponding to the identification of the target button based on the target control mode
  • a sending module configured to send the status information obtained by the listening process to the test system through the RPC module.
  • Optional also includes:
  • a determining module configured to determine the status information to be returned according to the identification of the target button.
  • the determination module is specifically used for:
  • the status information is generated based on the currently displayed application, page and focus location information in the system; or,
  • the status information is generated according to the interface currently displayed in the system.
  • an embodiment of the present disclosure provides an electronic device, including: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured to call and execute instructions stored in the memory.
  • the instructions can be executed to implement the cross-system key testing method proposed in the first embodiment of the present disclosure, or to implement the cross-system key testing method proposed in the second embodiment of the disclosure.
  • embodiments of the present disclosure provide a non-transitory computer-readable storage medium that, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute what is proposed in the first embodiment of the present disclosure.
  • cross-system key testing method or perform the cross-system key testing method proposed by the embodiment of the second aspect of the present disclosure.
  • embodiments of the present disclosure provide a computer program product.
  • the computer program When the computer program is executed by a processor of an electronic device, the electronic device can perform the cross-system key testing method proposed in the embodiment of the first aspect of the disclosure, or execute The cross-system key testing method proposed by the embodiment of the second aspect of the present disclosure.
  • the test system can send key instructions to the system to be tested through the remote procedure call RPC module, where the key instructions include the identification of the target key and the target control mode. , and then the status information returned by the system to be tested can be received through the RPC module, and the test result corresponding to the target button ID can be determined based on the status information and the target button ID.
  • the test system can send key commands to the system under test through the RPC module, and receive the status information returned by the system under test. Then, the corresponding test results can be determined based on the status information and the identification of the target button, thus avoiding multiple attempts. Query to determine the test results of the target button, which simplifies the button test process, saves time, and improves the efficiency of the button test.
  • Figure 1 is a flow chart of a cross-system key testing method according to an embodiment of the present disclosure
  • Figure 2 is a flow chart of a cross-system key testing method according to an embodiment of the present disclosure
  • Figure 3 is a flow chart of a cross-system key testing method according to an embodiment of the present disclosure
  • Figure 4 is a flow chart of a cross-system key testing method according to an embodiment of the present disclosure
  • Figure 5 is a schematic structural diagram of a cross-system key testing device according to an embodiment of the present disclosure.
  • Figure 6 is a schematic structural diagram of a cross-system key testing device according to an embodiment of the present disclosure.
  • Figure 7 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
  • the cross-system key testing method of the embodiment of the present disclosure can be executed by the cross-system key testing device provided by the embodiment of the present disclosure, and the device can be configured in an electronic device.
  • FIG. 1 is a schematic flowchart of a cross-system key testing method provided by an embodiment of the present disclosure. The method can be executed by a testing system.
  • the cross-system key testing method can include the following steps:
  • Step 101 Send a key command to the system under test through a remote procedure call RPC module, where the key command includes the identification of the target key and the target control mode.
  • remote procedure call can request services from a remote computer through the network without knowing the underlying network technology. It usually adopts the client device and server device mode, and the party requesting the service is the client device. , the party providing services is the server device.
  • the test system in this disclosure is the client device that requests RPC services
  • the system under test is the server device that provides services. That is, the test system can send key instructions to the system under test through the RPC module, so that the system under test can perform test operations on the corresponding keys based on the key instructions, etc.
  • system to be tested can be any system, such as a mobile phone system, a television system, a computer system, etc. This disclosure does not limit this.
  • the key command can be any form of command, which can include the identification of the target key and the target control mode.
  • the target button can be a button to be tested or controlled.
  • the logo style or presentation form of the target button can be set in advance, for example, it can be a "start” button, a “return” button, "1", Volume “+” button, etc., this disclosure does not limit this.
  • the target control mode can be a control process performed on the target button, for example, it can be: increasing the volume, returning to the previous level, exiting the current page, etc. This disclosure does not limit this.
  • Step 102 Receive status information returned by the system to be tested through the RPC module.
  • test system can send key press instructions to the test system through the RPC module, so that the system under test can control the target key according to the target control mode, and then the status information of the target key after manipulation can be processed through
  • the RPC module is sent to the test system, so that the test system can receive the status information returned by the system under test through the RPC module.
  • the status information can be used to represent the status after processing by the target control mode. It can be of many types, such as the content of the current interface, volume information, current application information, application switching results, etc. This disclosure does not Make limitations.
  • the status information returned by the system under test received by the test system through the RPC module is: volume is 10; or the status information returned by the system under test received by the test system through the RPC module can also be: application 2 and so on. This disclosure does not limit this.
  • the test system when performing a key test, can first send a key instruction to the system to be tested, and then receive the status information returned by the system to be tested, thereby avoiding multiple queries to determine the status information of the target key. Provides conditions for improving testing efficiency.
  • Step 103 Determine the test result corresponding to the target button ID based on the status information and the target button ID.
  • target button identification can be of various types, such as “return button”, “volume button”, “start button associated with any application”, “main interface button”, etc. This disclosure does not limit this.
  • the label of the target button is "Volume +" and the status information is "Volume Up”
  • the mark of the target button is "Volume -” and the status information is "Volume remains unchanged”
  • the target button is identified as “menu” and the status information is "menu interface” then it can be determined that the test result of "menu” is: normal.
  • the status information may also include the application, page, current volume, etc. currently displayed in the system to be tested. Therefore, in the embodiment of the present disclosure, the status information may also be based on the content included in the status information and the identification of the target button. , determine the test results corresponding to the target button identification, etc.
  • the test result corresponding to the return button may be determined based on the currently displayed application, page and/or focus location information in the system to be tested in the status information.
  • the target button is identified as the return button
  • the application currently displayed in the system under test in the status information is: Application 1
  • the application currently displayed in the system under test in the status information is: Application 1
  • the application currently displayed in the system under test in the status information is: Application 1
  • the application currently displayed in the system under test in the status information is: Application 1
  • the application currently displayed in the system under test in the status information is: Application 1
  • the application currently displayed in the system under test in the status information is: Application 1
  • the application currently displayed in the system under test in the status information is: Application 1
  • the target button is identified as a return button, such as "back button”
  • the page currently displayed in the system to be tested in the status information is: Page 2 in Application 1
  • the request to the system to be tested is not sent through the RPC module.
  • the page before the test system sends the key command is: Page 1 in Application 1, then it can be determined that the test result corresponding to the returned key is: normal.
  • the target button is identified as the return button
  • the position information of the current focus in the system under test in the status information is: the input box in application 1, before sending the key command to the system under test through the RPC module
  • the page is: input interface, then it can be determined that the test result corresponding to the return button is: normal.
  • the test result corresponding to the volume button in response to the identification of the target button as a volume button, determine the test result corresponding to the volume button based on the current volume of the system to be tested in the status information.
  • the target button is identified as: volume + button
  • the current volume of the system under test in the status information is: 15, and compared with the original "14"
  • the volume has increased, then it can be determined
  • the test result of "Volume + Keys” is: normal; or, if the current volume of the system under test in the status information is: 13, which is smaller than the original "14", then it can be determined that the "Volume + Keys” "The test results are: abnormal, etc., this disclosure does not limit this.
  • the target button being identified as a startup button associated with any application, determine the test result corresponding to the startup button associated with any application based on the application currently displayed in the system to be tested in the status information.
  • any application can be a video application, a game application, a browser application, an office application, a fitness application, etc., and this disclosure does not limit this.
  • the target button is identified as the startup button associated with "XX Video”, and if the application currently displayed in the system is: XX Video, then it can be determined that the test result of the startup button associated with "XX Video” is: normal. Or, if the target button is identified as the startup button associated with "YY Browser", and if the application currently displayed in the system is: AA game, then it can be determined that the test result of the startup button associated with "YY Browser” is: abnormal.
  • the test result corresponding to the main interface button in response to the identification of the target button as the main interface button, determine the test result corresponding to the main interface button according to the interface currently displayed in the system to be tested in the status information.
  • the target button when the target button is identified as a main interface button and the interface currently displayed in the system is: main interface, then it can be determined that the test result of the "main interface button" is: normal. Or, in the case where the target button is identified as the main interface button, if the interface currently displayed in the system is: XX browser, then it can be determined that the test result of the "main interface button" is: abnormal, etc., this disclosure does not Make limitations.
  • the test system can determine the test results corresponding to the target button identification based on the received status information returned by the system to be tested and the identification of the target button, thereby avoiding multiple queries to determine the status information of the target button. That is to say, the target button is tested through non-active polling, which simplifies the button test process, saves testing time, reduces the amount of data processing, and improves the efficiency of button testing.
  • the test system can send key instructions to the system to be tested through the remote procedure call RPC module, where the key instructions include the identification of the target key and the target control mode, and can then receive the information returned by the system under test through the RPC module. status information, and determine the test results corresponding to the target button ID based on the status information and the target button ID.
  • the test system can send key commands to the system under test through the RPC module, and receive the status information returned by the system under test. Then, the corresponding test results can be determined based on the status information and the identification of the target button, thus avoiding multiple attempts. Query to determine the test results of the target button, which simplifies the button test process, saves time, and improves the efficiency of the button test.
  • FIG. 2 is a schematic flowchart of a cross-system key testing method provided by an embodiment of the present disclosure. The method can be executed by the testing system. As shown in Figure 2, the cross-system key testing method can include the following steps:
  • Step 201 Analyze the obtained test case to determine the identity of the target button and the target control mode.
  • a test case can be a set of data consisting of preconditions, inputs, execution conditions, expected results, etc., to complete the test of a specific requirement or goal, and a document that embodies the test plan, method, technology and strategy.
  • test cases uploaded by users can be obtained through a specific interface.
  • test cases uploaded by testers can be obtained through the python interface, and this disclosure does not limit this.
  • test case can be parsed to determine the content of the test case, and then the identification of the corresponding target button and the target control mode can be determined based on the test content.
  • test case is "whether focus is found normally”
  • corresponding target button can be the “return button”
  • target control mode can be “trigger the return button”, etc. This disclosure does not limit this.
  • Step 202 Send a key press instruction to the system under test through the RPC module, where the key press instruction includes the identification of the target key and the target control mode.
  • Step 203 Receive status information returned by the system to be tested through the RPC module.
  • step 202 and step 203 reference can be made to the descriptions of other embodiments of the present disclosure, and will not be described again here.
  • Step 204 In response to the status information indicating that the application switching is successful, determine the type of the first application to be switched to the background of the system to be tested.
  • the test system can parse the status information to determine the specific content indicated by the status information, etc. This disclosure does not limit this.
  • the first application may have multiple types, such as a resident application, a non-resident application, etc., which is not limited in this disclosure.
  • the type of application can be set in advance.
  • communication applications and office applications can be resident applications; game applications and tool applications can be non-resident applications, etc. Therefore, the test system can determine the type of the first application after receiving the status information returned by the system to be tested. This disclosure does not limit this.
  • the resident application list or the non-resident application list can also be set in advance, so that by traversing the resident application list, when the resident application list contains the first application name or identification, the first application can be determined to be the resident application. ; Or when it is determined that the first application identifier is not included in the resident application list, it may be determined that the first application is a non-resident application.
  • Step 205 Adjust the connection status between the first application and the test system according to the type of the first application.
  • first applications are different, and the connection status between the first application test systems may be the same, or may be different, etc., and this disclosure does not limit this.
  • the connection with the first application can be maintained, so that the test system can maintain the connection with the first application and communicate with the first application in a timely manner, or Get the first application information in time.
  • the first application when the first application is a non-resident application, disconnect the connection with the first application and release the status information corresponding to the first application.
  • the test system can disconnect from the first application and then release the status information corresponding to the first application, that is, delete the status information corresponding to the first application. , release memory.
  • the test system can adjust the connection status between the first application and the test system according to the type of the first application to determine whether to maintain or disconnect the connection with the first application, so as to maximize the Resource utilization and avoid resource waste.
  • the second application is "XX Game”
  • the status information indicates a focus change, for example, the focus can be moved from the "input box” to the "menu” control
  • the updated stored status information is: The focus of "XX Game” changes, moving from the "Input Box” to the "Menu” control.
  • the second application is "YY Browser"
  • the status information indicates that the page changes, for example, from the "main page” to the "search page”
  • the status information stored in "YY Browser” can be updated. for "Search Page”.
  • the test system can first parse the obtained test cases to determine the identification of the target key and the target control mode, and then can send key instructions to the system under test through the RPC module, and receive the return from the system under test through the RPC module.
  • status information when the status information indicates that the application switching is successful, determine the type of the first application to be switched to the background of the system to be tested, and when the first application is a resident application, maintain the connection with the first application.
  • the application is a non-resident application, the connection with the first application is disconnected and the status information corresponding to the first application is released.
  • the key instructions can be sent to the system to be tested and the status information returned by the system to be tested can be received.
  • the system can be configured according to the first The type of application determines the connection relationship with the first application, thereby saving memory space and improving memory utilization.
  • FIG. 3 is a schematic flowchart of a cross-system key testing method provided by an embodiment of the present disclosure. The method can be executed by the system to be tested. As shown in Figure 3, the cross-system key testing method can include the following steps:
  • Step 301 Receive the key command sent by the test system through the remote procedure call RPC module, where the key command includes the identification of the target key and the target control mode.
  • the system under test receives the key press command sent by the test system through the RPC module, it can analyze the key press command to determine the identification of the target key and the target control mode.
  • the target button can be a button to be tested or controlled.
  • the logo style or presentation form of the target button can be set in advance, for example, it can be a "start” button, a “return” button, "1", Volume “+” button, etc., this disclosure does not limit this.
  • the target control mode can be a control process performed on the target button, for example, it can be: increasing the volume, returning to the previous level, exiting the current page, etc. This disclosure does not limit this.
  • Step 302 Start the listening process.
  • the system to be tested can start a monitoring process to monitor the test operation to be performed.
  • the memory can be monitored, the running status can be monitored, etc. This disclosure does not limit this.
  • Step 303 Based on the target control mode, control the target button corresponding to the identification of the target button.
  • the "Volume +" button can be triggered to increase the volume.
  • the "Exit” button can be triggered to exit the current interface.
  • Step 304 Send the status information obtained by the listening process to the test system through the RPC module.
  • the system to be tested can control the target button corresponding to the target button's logo based on the target control mode.
  • the monitoring process can monitor the control of the target button by the system to be tested. , and obtain the corresponding status information, and then send the status information obtained by the listening process to the test system through the RPC module.
  • the system to be tested can first receive the key command sent by the test system through the remote procedure call RPC module.
  • the key command includes the identification of the target key and the target control mode.
  • the monitoring process can be started, and then the control can be based on the target. mode, control the target button corresponding to the target button's logo, and then send the status information obtained by the listening process to the test system through the RPC module. Therefore, after parsing the received key command, the system to be tested can start the listening process and control the target key based on the target control mode. Afterwards, the status information obtained by the listening process can be sent to the test system, so that the test system The test result of the target button can be determined based only on the status information returned by the system to be tested. This eliminates the need for the test system to query multiple times to determine the test result, simplifying the button test process, saving time, and improving the efficiency of button test.
  • FIG. 4 is a schematic flowchart of a cross-system key testing method provided by an embodiment of the present disclosure. The method can be executed by the system to be tested. As shown in Figure 4, the cross-system key testing method can include the following steps:
  • Step 401 Receive the key command sent by the test system through the remote procedure call RPC module, where the key command includes the identification of the target key and the target control mode.
  • Step 402 Start the listening process.
  • Step 403 Based on the target control mode, control the target button corresponding to the identification of the target button.
  • Step 404 Determine the status information to be returned according to the identification of the target button.
  • the identification of different target buttons and the determined status information to be returned may be the same or may be different, etc. This disclosure does not limit this.
  • status information is generated based on the currently displayed application, page and focus location information in the system.
  • the target button is identified as: Back button, and the "Back" button is triggered on Page 1 in Application 1, it can indicate that a return operation has been performed, possibly returning to the previous Page 2 in Application 1.
  • the current focus is on the input box in page 2, then based on the currently displayed: application 1, page 2 and the input box in page 2, the generated status information can be: the input box currently in page 2 of application 1 location.
  • the target button is identified as: return button, such as the back button
  • return button such as the back button
  • the "return button” is triggered in application 1
  • the page is the home page of Application 2
  • the focus is at the "Select" control on the home page of Application 2
  • the generated status information can be: the home page of Application 2, the focus is at The "Featured” control on the homepage.
  • status information is generated based on the current volume of the system.
  • the generated status information can be: the current volume is 15.
  • the generated status information may be: it is currently in a mute state, etc. This disclosure does not limit this.
  • status information is generated according to the application currently displayed in the system.
  • any application can be a video application, a game application, a browser application, an office application, a fitness application, etc., and this disclosure does not limit this.
  • the generated status information can be: XX Video is on; or XX Video is on.
  • the identification of the target button is the start button associated with "YY Browser”
  • the application currently displayed in the system is: AA game
  • the generated status information can be: AA game is in the open state.
  • status information is generated according to the interface currently displayed in the system.
  • the target button when the target button is identified as a main interface button, if the interface currently displayed in the system is: main interface, then the generated status information can be: main interface. Or, in the case where the target button is identified as the main interface button, if the interface currently displayed in the system is: XX browser, then the generated status information can be: XX browser, etc. This disclosure does not limit this.
  • Step 405 Send the status information obtained by the listening process to the test system through the RPC module.
  • step 405 reference can be made to the descriptions of other embodiments of the present disclosure, and will not be described again here.
  • the system to be tested can first receive the key command sent by the test system through the remote procedure call RPC module, and then can start the monitoring process, and then can control the target key corresponding to the identification of the target key based on the target control mode, and According to the identification of the target button, the status information to be returned is determined, and then the status information obtained by the listening process is sent to the test system through the RPC module. Therefore, the system to be tested can first parse the key commands received through the RPC module, and then start the listening process, and control the target keys based on the target control mode.
  • the status information to be returned can be determined, and the listening process can be
  • the obtained status information is sent to the test system, so that the test system can determine the test results of the target button only based on the status information returned by the system to be tested. This eliminates the need for the test system to query multiple times to determine the test results, simplifying the button test process. , saves time and improves the efficiency of key testing.
  • FIG. 5 is a schematic structural diagram of a cross-system key testing device according to an embodiment of the present disclosure.
  • the cross-system key testing device 500 is configured on the test system side and includes: a sending module 510 , a receiving module 520 and a determining module 530 .
  • the sending module 510 is used to send key instructions to the system to be tested through the remote procedure call RPC module, where the key instructions include the identification of the target key and the target control mode.
  • the receiving module 520 is configured to receive the status information returned by the system to be tested through the RPC module.
  • the determination module 530 is configured to determine the test result corresponding to the target button identifier according to the status information and the target button identifier.
  • the determination module 530 includes:
  • a determining unit configured to determine the type of the first application switched to the background of the system to be tested in response to the status information indicating that the application switching is successful
  • An adjustment unit configured to adjust the connection state between the first application and the test system according to the type of the first application.
  • the adjustment unit is specifically used for:
  • the first application is a resident application, maintain the connection with the first application;
  • the first application When the first application is a non-resident application, disconnect the connection with the first application and release the status information corresponding to the first application.
  • Optional also includes:
  • An update module configured to update the stored status information corresponding to the second application in response to the status information indicating a focus change or page change in the second application.
  • Optional also includes:
  • An analysis module is used to analyze the obtained test cases to determine the identification of the target button and the target control mode.
  • the determination module is specifically used for:
  • the test result corresponding to the main interface button is determined according to the interface currently displayed in the system to be tested in the status information.
  • the test system can send key instructions to the system to be tested through the remote procedure call RPC module.
  • the key instructions include the identification of the target key and the target control mode, and can then be received through the RPC module.
  • the status information returned by the system to be tested is determined, and the test result corresponding to the target button ID is determined based on the status information and the target button ID.
  • the test system can send key commands to the system under test through the RPC module, and receive the status information returned by the system under test. Then, the corresponding test results can be determined based on the status information and the identification of the target button, thus avoiding multiple attempts. Query to determine the test results of the target button, which simplifies the button test process, saves time, and improves the efficiency of the button test.
  • FIG. 6 is a schematic structural diagram of a cross-system key testing device according to an embodiment of the present disclosure.
  • the cross-system key testing device 600 is configured on the side of the system to be tested, and includes: a receiving module 610 , a starting module 620 , a control module 630 and a sending module 640 .
  • the receiving module 610 is used to receive the key instructions sent by the test system through the remote procedure call RPC module, where the key instructions include the identification of the target key and the target control mode.
  • Start module 620 used to start the listening process.
  • the control module 630 is configured to control the target button corresponding to the identification of the target button based on the target control mode.
  • the sending module 640 is configured to send the status information obtained by the listening process to the test system through the RPC module.
  • Optional also includes:
  • a determining module configured to determine the status information to be returned according to the identification of the target button.
  • the determination module is specifically used for:
  • the status information is generated based on the currently displayed application, page and focus location information in the system; or,
  • the status information is generated according to the interface currently displayed in the system.
  • the system to be tested can first receive the key instructions sent by the test system through the remote procedure call RPC module.
  • the key instructions include the identification of the target key and the target control mode, and then the monitoring can be started.
  • the process can then control the target button corresponding to the target button's logo based on the target control mode, and then send the status information obtained by the listening process to the test system through the RPC module. Therefore, after parsing the received key command, the system to be tested can start the listening process and control the target key based on the target control mode.
  • the status information obtained by the listening process can be sent to the test system, so that the test system
  • the test result of the target button can be determined based only on the status information returned by the system to be tested. This eliminates the need for the test system to query multiple times to determine the test result, simplifying the button test process, saving time, and improving the efficiency of button test.
  • FIG. 7 is a structural block diagram of an electronic device according to an embodiment of the present disclosure.
  • the electronic device 200 includes: a memory 210 and a processor 220 , and a bus 230 connecting different components (including the memory 210 and the processor 220 ).
  • the memory 210 is used to store executable instructions of the processor 220; the processor 201 is configured to call and execute the executable instructions stored in the memory 202 to implement the cross-system key testing method proposed in the above embodiments of the present disclosure.
  • Bus 230 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics accelerated port, a processor, or a local bus using any of a variety of bus structures.
  • these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect ( PCI) bus.
  • ISA Industry Standard Architecture
  • MAC Micro Channel Architecture
  • VESA Video Electronics Standards Association
  • PCI Peripheral Component Interconnect
  • Electronic device 200 typically includes a variety of electronic device-readable media. These media can be any available media that can be accessed by electronic device 200, including volatile and nonvolatile media, removable and non-removable media.
  • Memory 210 may also include computer system readable media in the form of volatile memory, such as random access memory (RAM) 240 and/or cache memory 250 .
  • Electronic device 200 may further include other removable/non-removable, volatile/non-volatile computer system storage media.
  • storage system 260 may be used to read and write to non-removable, non-volatile magnetic media (not shown in Figure 7 and commonly referred to as a "hard drive”).
  • a disk drive for reading and writing removable non-volatile disks (e.g., "floppy disks"), and removable non-volatile optical disks (e.g., CD-ROM, DVD-ROM) may be provided.
  • each drive may be connected to bus 230 through one or more data media interfaces.
  • the memory 210 may include at least one program product having a set (eg, at least one) of program modules configured to perform the functions of embodiments of the present disclosure.
  • a program/utility 280 having a set of (at least one) program modules 270, which may be stored, for example, in the memory 210, such program modules 270 including, but not limited to, an operating system, one or more application programs, other programs Modules, as well as program data, each of these examples or some combination may include an implementation of a network environment.
  • Program modules 270 generally perform functions and/or methods in the embodiments described in this disclosure.
  • Electronic device 200 may also communicate with one or more external devices 290 (e.g., keyboard, pointing device, display 291, etc.), may also communicate with one or more devices that enable a user to interact with electronic device 200, and/or with Any device (eg, network card, modem, etc.) that enables the electronic device 200 to communicate with one or more other computing devices. This communication may occur through input/output (I/O) interface 292.
  • the electronic device 200 may also communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) through the network adapter 293.
  • network adapter 293 communicates with other modules of electronic device 200 via bus 230.
  • the processor 220 executes various functional applications and data processing by running programs stored in the memory 210 .
  • the test system can send key instructions to the system to be tested through remote procedure call RPC module, where the key instructions include the identification of the target key and the target control mode, and can then receive the key instructions to be tested through the RPC module.
  • the system returns the status information and determines the test results corresponding to the target button ID based on the status information and the target button ID.
  • the test system can send key commands to the system under test through the RPC module, and receive the status information returned by the system under test. Then, the corresponding test results can be determined based on the status information and the identification of the target button, thus avoiding multiple attempts. Query to determine the test results of the target button, which simplifies the button test process, saves time, and improves the efficiency of the button test.
  • embodiments of the present disclosure also propose a non-transitory computer-readable storage medium.
  • the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can perform the cross-processing as mentioned above. System key testing method.
  • embodiments of the present disclosure also provide a computer program product.
  • the computer program When the computer program is executed by a processor of an electronic device, the electronic device can perform the cross-system key testing method as described above.

Landscapes

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

Abstract

Embodiments of the present disclosure disclose a cross-system key testing method and apparatus. The method comprises: transmitting, by means of a remote process calling (RPC) module, a key instruction to a system to be tested, wherein the key instruction comprises an identifier of a target key and a target control mode; receiving, by means of the RPC module, state information returned by the system to be tested; and determining a test result corresponding to the identifier of the target key according to the state information and the identifier of the target key. Hence, a testing system can transmit, by means of the RPC module, the key instruction to the system to be tested, receive the state information returned by the system to be tested, and then can determine the corresponding test result according to the state information and the identifier of the target key, so that it is avoided that the test result of the target key is determined by means of querying multiple times, a key testing process is simplified, the time is saved, and the key testing efficiency is improved.

Description

一种跨系统的按键测试方法及装置A cross-system key testing method and device 技术领域Technical field

本公开涉及计算机技术领域,尤其涉及一种跨系统的按键测试方法、装置、电子设备及存储介质。The present disclosure relates to the field of computer technology, and in particular, to a cross-system key testing method, device, electronic equipment and storage medium.

背景技术Background technique

随着计算机技术的发展,各种应用或系统迭代更新的也越来越快,通常需要对相应的按键进行测试,以确定按键的功能是否正常,按键是否可以正常使用。With the development of computer technology, various applications or systems are iteratively updated faster and faster. It is usually necessary to test the corresponding keys to determine whether the functions of the keys are normal and whether the keys can be used normally.

相关技术中,在对待测试系统中的按键进行测试时,通常会先下发按键指令,由于不知道指令的执行状况,无法获知是否执行结束,通常需要靠主动查询的方式,来确定预期的按键是否执行结束,该过程较为繁琐,效率可能也较为低下。由此,如何提高按键测试的效率,显得至关重要。In related technologies, when testing buttons in the system to be tested, a button command is usually issued first. Since the execution status of the command is not known, it is impossible to know whether the execution is completed. Active query is usually required to determine the expected button. Whether the execution is completed or not, the process is more cumbersome and may be less efficient. Therefore, how to improve the efficiency of key testing is crucial.

发明内容Contents of the invention

本公开实施例提供一种跨系统的按键测试方法及装置。Embodiments of the present disclosure provide a cross-system key testing method and device.

第一方面,本公开实施例提供一种跨系统的按键测试方法,由测试系统执行,包括:In the first aspect, embodiments of the present disclosure provide a cross-system key testing method, which is executed by the testing system, including:

通过远程过程调用RPC模块向待测试系统发送按键指令,其中,所述按键指令中包含目标按键的标识及目标操控模式;Send key press instructions to the system under test through remote procedure call RPC module, where the key press instructions include the identification of the target key and the target control mode;

通过所述RPC模块接收所述待测试系统返回的状态信息;Receive status information returned by the system under test through the RPC module;

根据所述状态信息及所述目标按键的标识,确定所述目标按键标识对应的测试结果。According to the status information and the identification of the target key, the test result corresponding to the identification of the target key is determined.

可选的,在所述通过所述RPC模块接收所述待测试系统返回的状态信息之后,还包括:Optionally, after receiving the status information returned by the system to be tested through the RPC module, it also includes:

响应于所述状态信息指示应用切换成功,确定切换至所述待测试系统后台的第一应用的类型;In response to the status information indicating that the application switch is successful, determine the type of the first application switched to the background of the system to be tested;

根据所述第一应用的类型,对所述第一应用与所述测试系统间的连接状态进行调整。Adjust the connection state between the first application and the test system according to the type of the first application.

可选的,所述根据所述第一应用的类型,对所述第一应用与所述测试系统间的连接状态进行调整,包括:Optionally, adjusting the connection status between the first application and the test system according to the type of the first application includes:

在所述第一应用为常驻应用的情况下,保持与所述第一应用间的连接;When the first application is a resident application, maintain the connection with the first application;

在所述第一应用为非常驻应用的情况下,断开与所述第一应用间的连接,并释放所述第一应用对应的状态信息。When the first application is a non-resident application, disconnect the connection with the first application and release the status information corresponding to the first application.

可选的,在所述通过所述RPC模块接收所述待测试系统返回的状态信息之后,还包括:Optionally, after receiving the status information returned by the system to be tested through the RPC module, it also includes:

响应于所述状态信息指示第二应用中焦点变化或页面变化,更新存储的所述第二应用对应的状态信息。In response to the status information indicating a focus change or a page change in the second application, the stored status information corresponding to the second application is updated.

可选的,在所述通过远程过程调用RPC模块向待测试系统发送按键指令之前,还包括:Optionally, before sending key instructions to the system under test through the remote procedure call RPC module, it also includes:

对获取的测试用例进行解析,以确定所述目标按键的标识及所述目标操控模式。The obtained test cases are parsed to determine the identification of the target button and the target control mode.

可选的,所述根据所述状态信息及所述目标按键的标识,确定所述目标按键标识对应的测试结果,包括:Optionally, determining the test result corresponding to the target key identification based on the status information and the identification of the target key includes:

响应于所述目标按键的标识为返回按键,根据所述状态信息中的所述待测试系统中当前显示的应用、页面和/或焦点所在的位置信息,确定所述返回按键对应的测试结果;或者,In response to the identification of the target button as the return button, determine the test result corresponding to the return button based on the currently displayed application, page and/or focus location information in the system to be tested in the status information; or,

响应于所述目标按键的标识为音量按键,根据所述状态信息中的所述待测试系统当前的音量,确定所述音量按键对应的测试结果;或者,In response to the identification of the target button as a volume button, determine the test result corresponding to the volume button according to the current volume of the system to be tested in the status information; or,

响应于所述目标按键的标识为任一应用关联的启动按键,根据所述状态信息中所述待测试系统中当前显示的应用,确定所述任一应用关联的启动按键对应的测试结果;或者,In response to the identification of the target button as a startup button associated with any application, determine the test result corresponding to the startup button associated with any application according to the application currently displayed in the system to be tested in the status information; or ,

响应于所述目标按键的标识为主界面按键,根据状态信息中所述待测试系统中当前显示的界面,确定所述主界面按键对应的测试结果。In response to the identification of the target button as a main interface button, the test result corresponding to the main interface button is determined according to the interface currently displayed in the system to be tested in the status information.

第二方面,本公开实施例提供一种跨系统的按键测试方法,由待测试系统执行,包括:In the second aspect, embodiments of the present disclosure provide a cross-system key testing method, which is executed by the system to be tested, including:

通过远程过程调用RPC模块接收测试系统发送的按键指令,其中,所述按键指令中包含目标按键的标识及目标操控模式;Receive the key instructions sent by the test system through the remote procedure call RPC module, where the key instructions include the identification of the target key and the target control mode;

启动监听进程;Start the listening process;

基于所述目标操控模式,对所述目标按键的标识对应的目标按键进行操控;Based on the target control mode, control the target button corresponding to the identification of the target button;

通过所述RPC模块,将所述监听进程获取的状态信息发送给所述测试系统。Through the RPC module, the status information obtained by the listening process is sent to the test system.

可选的,在所述将所述监听进程获取的状态信息发送给所述测试系统之前,还包括:Optionally, before sending the status information obtained by the listening process to the test system, the method further includes:

根据所述目标按键的标识,确定待返回的所述状态信息。The status information to be returned is determined according to the identification of the target button.

可选的,所述根据所述目标按键的标识,确定待返回的所述状态信息,包括:Optionally, determining the status information to be returned based on the identification of the target button includes:

响应于所述目标按键的标识为返回按键,根据所述系统中当前显示的应用、页面及焦点所在的位置信息,生成所述状态信息;或者,In response to the identification of the target button as the return button, the status information is generated based on the currently displayed application, page and focus location information in the system; or,

响应于所述目标按键的标识为音量按键,根据所述系统当前的音量生成所述状态信息;或者,In response to the target button being identified as a volume button, generating the status information according to the current volume of the system; or,

响应于所述目标按键的标识为任一应用关联的启动按键,根据所述系统中当前显示的应用生成所述状态信息;或者,In response to the identification of the target button as a startup button associated with any application, generate the status information according to the application currently displayed in the system; or,

响应于所述目标按键的标识为主界面按键,根据所述系统中当前显示的界面生成所述状态信息。In response to the identification of the target button as a main interface button, the status information is generated according to the interface currently displayed in the system.

第三方面,本公开实施例提供一种跨系统的按键测试装置,被配置在测试系统侧,包括:In a third aspect, embodiments of the present disclosure provide a cross-system key testing device, which is configured on the test system side and includes:

发送模块,用于通过远程过程调用RPC模块向待测试系统发送按键指令,其中,所述按键指令中包含目标按键的标识及目标操控模式;A sending module, configured to send key instructions to the system to be tested through remote procedure call RPC modules, where the key instructions include the identification of the target key and the target control mode;

接收模块,用于通过所述RPC模块接收所述待测试系统返回的状态信息;A receiving module, configured to receive status information returned by the system under test through the RPC module;

确定模块,用于根据所述状态信息及所述目标按键的标识,确定所述目标按键标识对应的测试结果。A determining module, configured to determine a test result corresponding to the target button identification based on the status information and the target button identification.

可选的,所述确定模块,包括:Optional, the determination module includes:

确定单元,用于响应于所述状态信息指示应用切换成功,确定切换至所述待测试系统后台的第一应用的类型;a determining unit configured to determine the type of the first application switched to the background of the system to be tested in response to the status information indicating that the application switching is successful;

调整单元,用于根据所述第一应用的类型,对所述第一应用与所述测试系统间的连接状态进行调整。An adjustment unit, configured to adjust the connection state between the first application and the test system according to the type of the first application.

可选的,所述调整单元,具体用于:Optional, the adjustment unit is specifically used for:

在所述第一应用为常驻应用的情况下,保持与所述第一应用间的连接;When the first application is a resident application, maintain the connection with the first application;

在所述第一应用为非常驻应用的情况下,断开与所述第一应用间的连接,并释放所述第一应用对应的状态信息。When the first application is a non-resident application, disconnect the connection with the first application and release the status information corresponding to the first application.

可选的,还包括:Optional, also includes:

更新模块,用于响应于所述状态信息指示第二应用中焦点变化或页面变化,更新存储的所述第二应用对应的状态信息。An update module, configured to update the stored status information corresponding to the second application in response to the status information indicating a focus change or page change in the second application.

可选的,还包括:Optional, also includes:

解析模块,用于对获取的测试用例进行解析,以确定所述目标按键的标识及所述目标操控模式。An analysis module is used to analyze the obtained test cases to determine the identification of the target button and the target control mode.

可选的,所述确定模块,具体用于:Optional, the determination module is specifically used for:

响应于所述目标按键的标识为返回按键,根据所述状态信息中的所述待测试系统中当前显示的应用、页面和/或焦点所在的位置信息,确定所述返回按键对应的测试结果;或者,In response to the identification of the target button as the return button, determine the test result corresponding to the return button based on the currently displayed application, page and/or focus location information in the system to be tested in the status information; or,

响应于所述目标按键的标识为音量按键,根据所述状态信息中的所述待测试系统当前的音量,确定所述音量按键对应的测试结果;或者,In response to the identification of the target button as a volume button, determine the test result corresponding to the volume button according to the current volume of the system to be tested in the status information; or,

响应于所述目标按键的标识为任一应用关联的启动按键,根据所述状态信息中所述待测试系统中当前显示的应用,确定所述任一应用关联的启动按键对应的测试结果;或者,In response to the identification of the target button as a startup button associated with any application, determine the test result corresponding to the startup button associated with any application according to the application currently displayed in the system to be tested in the status information; or ,

响应于所述目标按键的标识为主界面按键,根据状态信息中所述待测试系统中当前显示的界面,确定所述主界面按键对应的测试结果。In response to the identification of the target button as a main interface button, the test result corresponding to the main interface button is determined according to the interface currently displayed in the system to be tested in the status information.

第四方面,本公开实施例提供一种跨系统的按键测试装置,被配置在待测试系统侧,包括:In a fourth aspect, embodiments of the present disclosure provide a cross-system key testing device, which is configured on the side of the system to be tested, including:

接收模块,用于通过远程过程调用RPC模块接收测试系统发送的按键指令,其中,所述按键指令中包含目标按键的标识及目标操控模式;The receiving module is used to receive the key instructions sent by the test system through the remote procedure call RPC module, wherein the key instructions include the identification of the target key and the target control mode;

启动模块,用于启动监听进程;Start module, used to start the listening process;

操控模块,用于基于所述目标操控模式,对所述目标按键的标识对应的目标按键进行操控;A control module, configured to control the target button corresponding to the identification of the target button based on the target control mode;

发送模块,用于通过所述RPC模块,将所述监听进程获取的状态信息发送给所述测试系统。A sending module, configured to send the status information obtained by the listening process to the test system through the RPC module.

可选的,还包括:Optional, also includes:

确定模块,用于根据所述目标按键的标识,确定待返回的所述状态信息。A determining module, configured to determine the status information to be returned according to the identification of the target button.

可选的,所述确定模块,具体用于:Optional, the determination module is specifically used for:

响应于所述目标按键的标识为返回按键,根据所述系统中当前显示的应用、页面及焦点所在的位置信息,生成所述状态信息;或者,In response to the identification of the target button as the return button, the status information is generated based on the currently displayed application, page and focus location information in the system; or,

响应于所述目标按键的标识为音量按键,根据所述系统当前的音量生成所述状态信息;或者,In response to the target button being identified as a volume button, generating the status information according to the current volume of the system; or,

响应于所述目标按键的标识为任一应用关联的启动按键,根据所述系统中当前显示的应用生成所述状态信息;或者,In response to the identification of the target button as a startup button associated with any application, generate the status information according to the application currently displayed in the system; or,

响应于所述目标按键的标识为主界面按键,根据所述系统中当前显示的界面生成所述状态信息。In response to the identification of the target button as a main interface button, the status information is generated according to the interface currently displayed in the system.

第五方面,本公开实施例提供一种电子设备,包括:处理器;用于存储所述处理器的可执行指令的存储器;其中,所述处理器被配置为调用并执行所述存储器存储的可执行指令,以实现本公开第一方面实施例提出的跨系统的按键测试方法,或者实现本公开第二方面实施例提出的跨系统的按键测试方法。In a fifth aspect, an embodiment of the present disclosure provides an electronic device, including: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured to call and execute instructions stored in the memory. The instructions can be executed to implement the cross-system key testing method proposed in the first embodiment of the present disclosure, or to implement the cross-system key testing method proposed in the second embodiment of the disclosure.

第六方面,本公开实施例提供一种非临时性计算机可读存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行本公开第一方面实施例提出的跨系统的按键测试方法,或者执行本公开第二方面实施例提出的跨系统的按键测试方法。In a sixth aspect, embodiments of the present disclosure provide a non-transitory computer-readable storage medium that, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute what is proposed in the first embodiment of the present disclosure. cross-system key testing method, or perform the cross-system key testing method proposed by the embodiment of the second aspect of the present disclosure.

第七方面,本公开实施例提供一种计算机程序产品,该计算机程序由电子设备的处理器执行时,使得电子设备能够执行本公开第一方面实施例提出的跨系统的按键测试方法,或者执行本公开第二方面实施例提出的跨系统的按键测试方法。In a seventh aspect, embodiments of the present disclosure provide a computer program product. When the computer program is executed by a processor of an electronic device, the electronic device can perform the cross-system key testing method proposed in the embodiment of the first aspect of the disclosure, or execute The cross-system key testing method proposed by the embodiment of the second aspect of the present disclosure.

本公开提供的跨系统的按键测试方法、装置、电子设备及存储介质,测试系统可以通过远程过程调用RPC模块向待测试系统发送按键指令,其中,按键指令中包含目标按键的标识及目标操控模式,之后可以通过RPC模块接收所述待测试系统返回的状态信息,并根据状态信息及目标按键的标识,确定目标按键标识对应的测试结果。由此,测试系统可以通过RPC模块向待测试系统发送按键指令,并接收待测试系统返回的状态信息,之后根据状态信息及目标按键的标识,即可确定对应的测试结果,从而避免了多次查询来确定目标按键的测试结果,简化了按键测试的过程,节省了时间,提高了按键测试的效率。With the cross-system key testing method, device, electronic equipment and storage medium provided by the present disclosure, the test system can send key instructions to the system to be tested through the remote procedure call RPC module, where the key instructions include the identification of the target key and the target control mode. , and then the status information returned by the system to be tested can be received through the RPC module, and the test result corresponding to the target button ID can be determined based on the status information and the target button ID. As a result, the test system can send key commands to the system under test through the RPC module, and receive the status information returned by the system under test. Then, the corresponding test results can be determined based on the status information and the identification of the target button, thus avoiding multiple attempts. Query to determine the test results of the target button, which simplifies the button test process, saves time, and improves the efficiency of the button test.

附图说明Description of the drawings

为了更清楚地说明本公开实施例或背景技术中的技术方案,下面将对本公开实施例或背景技术中所需要使用的附图进行说明。In order to more clearly illustrate the technical solutions in the embodiments of the disclosure or the background technology, the drawings required to be used in the embodiments or the background technology of the disclosure will be described below.

图1是根据本公开实施例的跨系统的按键测试方法的流程图;Figure 1 is a flow chart of a cross-system key testing method according to an embodiment of the present disclosure;

图2是根据本公开实施例的跨系统的按键测试方法的流程图;Figure 2 is a flow chart of a cross-system key testing method according to an embodiment of the present disclosure;

图3是根据本公开实施例的跨系统的按键测试方法的流程图;Figure 3 is a flow chart of a cross-system key testing method according to an embodiment of the present disclosure;

图4是根据本公开实施例的跨系统的按键测试方法的流程图;Figure 4 is a flow chart of a cross-system key testing method according to an embodiment of the present disclosure;

图5是根据本公开实施例的跨系统的按键测试装置的结构示意图;Figure 5 is a schematic structural diagram of a cross-system key testing device according to an embodiment of the present disclosure;

图6是根据本公开实施例的跨系统的按键测试装置的结构示意图;Figure 6 is a schematic structural diagram of a cross-system key testing device according to an embodiment of the present disclosure;

图7是根据本公开实施例的电子设备的结构示意图。Figure 7 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.

具体实施方式Detailed ways

下面详细描述本公开的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本公开,而不能理解为对本公开的限制。Embodiments of the present disclosure are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain the present disclosure and are not to be construed as limitations of the present disclosure.

下面参考附图描述本公开实施例的跨系统的按键测试方法、装置、电子设备及存储介质。The following describes the cross-system key testing method, device, electronic device, and storage medium according to the embodiments of the present disclosure with reference to the accompanying drawings.

本公开实施例的跨系统的按键测试方法,可由本公开实施例提供的跨系统的按键测试装置执行,该装置可配置于电子设备中。The cross-system key testing method of the embodiment of the present disclosure can be executed by the cross-system key testing device provided by the embodiment of the present disclosure, and the device can be configured in an electronic device.

图1为本公开实施例提供的一种跨系统的按键测试方法的流程示意图,该方法可以由测试系统执行。FIG. 1 is a schematic flowchart of a cross-system key testing method provided by an embodiment of the present disclosure. The method can be executed by a testing system.

如图1所示,该跨系统的按键测试方法可以包括以下步骤:As shown in Figure 1, the cross-system key testing method can include the following steps:

步骤101,通过远程过程调用RPC模块向待测试系统发送按键指令,其中,按键指令中包含目标按键的标识及目标操控模式。Step 101: Send a key command to the system under test through a remote procedure call RPC module, where the key command includes the identification of the target key and the target control mode.

其中,远程过程调用(remote procedure call,RPC),可以通过网络从远程计算机上请求服务,而不需要了解底层网络技术,通常采用客户端设备与服务端设备模式,请求服务的一方为客户端设备,提供服务的一方为服务端设备。Among them, remote procedure call (RPC) can request services from a remote computer through the network without knowing the underlying network technology. It usually adopts the client device and server device mode, and the party requesting the service is the client device. , the party providing services is the server device.

从而,本公开中的测试系统即为RPC请求服务的客户端设备,待测试系统即为提供服务的服务端设备。即测试系统可以通过RPC模块,向待测试系统发送按键指令,以使待测试系统基于按键指令,对相应的按键进行测试操作等等Therefore, the test system in this disclosure is the client device that requests RPC services, and the system under test is the server device that provides services. That is, the test system can send key instructions to the system under test through the RPC module, so that the system under test can perform test operations on the corresponding keys based on the key instructions, etc.

另外,待测试系统,可以为任意系统,比如可以为手机系统、电视系统、电脑系统等等,本公开对此不做限定。In addition, the system to be tested can be any system, such as a mobile phone system, a television system, a computer system, etc. This disclosure does not limit this.

另外,按键指令,可以为任意形式的指令,其中可以包含目标按键的标识及目标操控模式。In addition, the key command can be any form of command, which can include the identification of the target key and the target control mode.

另外,目标按键,可以为待测试或待操控的按键,目标按键的标识的样式或者呈现形式,可以为提前设定好的,比如可以为“开始”按键、“返回”按键、“1”、音量“+”按键等等,本公开对此不做限定。In addition, the target button can be a button to be tested or controlled. The logo style or presentation form of the target button can be set in advance, for example, it can be a "start" button, a "return" button, "1", Volume "+" button, etc., this disclosure does not limit this.

另外,目标操控模式,可以为对目标按键所进行的操控处理,比如可以为:增大音量、返回上一级、退出当前页面等等,本公开对此不做限定。In addition, the target control mode can be a control process performed on the target button, for example, it can be: increasing the volume, returning to the previous level, exiting the current page, etc. This disclosure does not limit this.

步骤102,通过RPC模块接收待测试系统返回的状态信息。Step 102: Receive status information returned by the system to be tested through the RPC module.

可以理解的是,测试系统可以通过RPC模块向测试系统发送按键指令,以使待测试系统可以根据目标操控模式,对目标按键进行操控,之后可以将经操控处理后的目标按键的状态信息,通过RPC模块发送给测试系统,从而测试系统可以通过RPC模块接收待测试系统返回的状态信息。It can be understood that the test system can send key press instructions to the test system through the RPC module, so that the system under test can control the target key according to the target control mode, and then the status information of the target key after manipulation can be processed through The RPC module is sent to the test system, so that the test system can receive the status information returned by the system under test through the RPC module.

其中,状态信息,可以用于表征经目标操控模式处理后状态等,其可以有多种,比如可以为当前界面的内容、音量信息、当前应用信息、应用切换结果等等,本公开对此不做 限定。Among them, the status information can be used to represent the status after processing by the target control mode. It can be of many types, such as the content of the current interface, volume information, current application information, application switching results, etc. This disclosure does not Make limitations.

举例来说,测试系统通过RPC模块接收的待测试系统返回的状态信息为:音量为10;或者,测试系统通过RPC模块接收的待测试系统返回的状态信息也可以为:应用2等等。本公开对此不做限定。For example, the status information returned by the system under test received by the test system through the RPC module is: volume is 10; or the status information returned by the system under test received by the test system through the RPC module can also be: application 2 and so on. This disclosure does not limit this.

从而,本公开实施例中,测试系统在进行按键测试时,可以先向待测试系统发送按键指令,之后接收待测试系统返回的状态信息,从而避免了多次查询来确定目标按键的状态信息,为提高测试效率提供了条件。Therefore, in the embodiment of the present disclosure, when performing a key test, the test system can first send a key instruction to the system to be tested, and then receive the status information returned by the system to be tested, thereby avoiding multiple queries to determine the status information of the target key. Provides conditions for improving testing efficiency.

步骤103,根据状态信息及目标按键的标识,确定目标按键标识对应的测试结果。Step 103: Determine the test result corresponding to the target button ID based on the status information and the target button ID.

另外,目标按键标识可以为多种类型,比如可以为“返回按键”、“音量按键”、“任一应用关联的启动按键”、“主界面按键”等等,本公开对此不做限定。In addition, the target button identification can be of various types, such as "return button", "volume button", "start button associated with any application", "main interface button", etc. This disclosure does not limit this.

举例来说,目标按键的标识为“音量+”,状态信息为“音量增大”,那么可以确定“音量+”的测试结果为:正常。或者,目标按键的标识为“音量-”,状态信息为“音量不变”,那么可以确定“音量-”的测试结果为:异常。或者,目标按键的标识为“菜单”,状态信息为“菜单界面”,那么可以确定“菜单”的测试结果为:正常。For example, if the label of the target button is "Volume +" and the status information is "Volume Up", then it can be determined that the test result of "Volume +" is: normal. Or, if the mark of the target button is "Volume -" and the status information is "Volume remains unchanged", then it can be determined that the test result of "Volume -" is: abnormal. Or, if the target button is identified as "menu" and the status information is "menu interface", then it can be determined that the test result of "menu" is: normal.

需要说明的是,上述示例只是示意性说明,不能作为对本公开实施例中目标按键、状态信息以及测试结果等的限定。It should be noted that the above examples are only schematic illustrations and cannot be used as limitations on the target buttons, status information, test results, etc. in the embodiments of the present disclosure.

可以理解的是,状态信息中也可以包含待测试系统中当前显示的应用、页面、当前的音量等等,从而,本公开实施例中,还可以根据状态信息中包含的内容及目标按键的标识,确定目标按键标识对应的测试结果等。It can be understood that the status information may also include the application, page, current volume, etc. currently displayed in the system to be tested. Therefore, in the embodiment of the present disclosure, the status information may also be based on the content included in the status information and the identification of the target button. , determine the test results corresponding to the target button identification, etc.

可选的,响应于目标按键的标识为返回按键,可以根据状态信息中的待测试系统中当前显示的应用、页面和/或焦点所在的位置信息,确定返回按键对应的测试结果。Optionally, in response to the target button being identified as the return button, the test result corresponding to the return button may be determined based on the currently displayed application, page and/or focus location information in the system to be tested in the status information.

举例来说,在目标按键的标识为返回按键的情况下,若状态信息中的待测试系统中当前显示的应用为:应用1,其与原来的“应用2”相比,由“应用2”返回到了“应用1”,那么可以确定返回按键对应的测试结果为:正常。For example, when the target button is identified as the return button, if the application currently displayed in the system under test in the status information is: Application 1, compared with the original "Application 2", "Application 2" After returning to "Application 1", it can be determined that the test result corresponding to the return button is: normal.

或者,在目标按键的标识为返回按键的情况下,比如为“back按键”时,若状态信息中的待测试系统中当前显示的页面为:应用1中的页面2,未通过RPC模块向待测试系统发送按键指令之前的页面为:应用1中的页面1,那么可以确定返回按键对应的测试结果为:正常。Or, when the target button is identified as a return button, such as "back button", if the page currently displayed in the system to be tested in the status information is: Page 2 in Application 1, the request to the system to be tested is not sent through the RPC module. The page before the test system sends the key command is: Page 1 in Application 1, then it can be determined that the test result corresponding to the returned key is: normal.

或者,在目标按键的标识为返回按键的情况下,若状态信息中的待测试系统中当前焦点所在的位置信息为:应用1中的输入框,未通过RPC模块向待测试系统发送按键指令之前的页面为:输入界面,那么可以确定返回按键对应的测试结果为:正常。Or, in the case where the target button is identified as the return button, if the position information of the current focus in the system under test in the status information is: the input box in application 1, before sending the key command to the system under test through the RPC module The page is: input interface, then it can be determined that the test result corresponding to the return button is: normal.

需要说明的是,上述示例只是示意性说明,不能作为对本公开实施例中目标按键标识、状态信息、目标按键标识的测试结果等的限定。It should be noted that the above examples are only schematic illustrations and cannot be used as limitations on the target key identification, status information, test results of the target key identification, etc. in the embodiments of the present disclosure.

可选的,响应于目标按键的标识为音量按键,根据状态信息中的待测试系统当前的音量,确定音量按键对应的测试结果。Optionally, in response to the identification of the target button as a volume button, determine the test result corresponding to the volume button based on the current volume of the system to be tested in the status information.

举例来说,在目标按键的标识为:音量+按键的情况下,若状态信息中的待测试系统当前的音量为:15,其与原来的“14”相比,音量增大,那么可以确定“音量+按键”的测试结果为:正常;或者,若状态信息中的待测试系统当前的音量为:13,其与原来的“14”相比,音量减小,那么可以确定“音量+按键”的测试结果为:异常等等,本公开对此不做限定。For example, when the target button is identified as: volume + button, if the current volume of the system under test in the status information is: 15, and compared with the original "14", the volume has increased, then it can be determined The test result of "Volume + Keys" is: normal; or, if the current volume of the system under test in the status information is: 13, which is smaller than the original "14", then it can be determined that the "Volume + Keys" "The test results are: abnormal, etc., this disclosure does not limit this.

可选的,响应于目标按键的标识为任一应用关联的启动按键,根据状态信息中待测试系统中当前显示的应用,确定任一应用关联的启动按键对应的测试结果。Optionally, in response to the target button being identified as a startup button associated with any application, determine the test result corresponding to the startup button associated with any application based on the application currently displayed in the system to be tested in the status information.

其中,任一应用,可以为视频应用、游戏应用、浏览器应用、办公应用、健身应用等等,本公开对此不做限定。Among them, any application can be a video application, a game application, a browser application, an office application, a fitness application, etc., and this disclosure does not limit this.

举例来说,若目标按键的标识为“XX视频”关联的启动按键,若系统中当前显示的应 用为:XX视频,那么可以确定“XX视频”关联的启动按键的测试结果为:正常。或者,若目标按键的标识为“YY浏览器”关联的启动按键,若系统中当前显示的应用为:AA游戏,那么可以确定“YY浏览器”关联的启动按键的测试结果为:异常。For example, if the target button is identified as the startup button associated with "XX Video", and if the application currently displayed in the system is: XX Video, then it can be determined that the test result of the startup button associated with "XX Video" is: normal. Or, if the target button is identified as the startup button associated with "YY Browser", and if the application currently displayed in the system is: AA game, then it can be determined that the test result of the startup button associated with "YY Browser" is: abnormal.

需要说明的是,上述示例只是示意性说明,不能作为对本公开实施例中任一应用及任一应用关联的启动按键的测试结果等的限定。It should be noted that the above examples are only schematic illustrations and cannot be used as a limitation on the test results of any application and the startup button associated with any application in the embodiments of the present disclosure.

可选的,响应于目标按键的标识为主界面按键,根据状态信息中待测试系统中当前显示的界面,确定主界面按键对应的测试结果。Optionally, in response to the identification of the target button as the main interface button, determine the test result corresponding to the main interface button according to the interface currently displayed in the system to be tested in the status information.

举例来说,在目标按键的标识为主界面按键的情况下,若系统中当前显示的界面为:主界面,那么可以确定“主界面按键”的测试结果为:正常。或者,在目标按键的标识为主界面按键的情况下,若系统中当前显示的界面为:XX浏览器,那么可以确定“主界面按键”的测试结果为:异常等等,本公开对此不做限定。For example, when the target button is identified as a main interface button and the interface currently displayed in the system is: main interface, then it can be determined that the test result of the "main interface button" is: normal. Or, in the case where the target button is identified as the main interface button, if the interface currently displayed in the system is: XX browser, then it can be determined that the test result of the "main interface button" is: abnormal, etc., this disclosure does not Make limitations.

从而,本公开实施例中,测试系统可根据接收的待测试系统返回的状态信息及目标按键的标识,确定目标按键标识对应的测试结果,从而避免了多次查询来确定目标按键的状态信息,也即通过非主动轮询的方式来进行目标按键的测试,简化了按键测试的过程,节省了测试时间,减少了数据处理量,提高了按键测试的效率。Therefore, in the embodiment of the present disclosure, the test system can determine the test results corresponding to the target button identification based on the received status information returned by the system to be tested and the identification of the target button, thereby avoiding multiple queries to determine the status information of the target button. That is to say, the target button is tested through non-active polling, which simplifies the button test process, saves testing time, reduces the amount of data processing, and improves the efficiency of button testing.

本公开实施例,测试系统可以通过远程过程调用RPC模块向待测试系统发送按键指令,其中,按键指令中包含目标按键的标识及目标操控模式,之后可以通过RPC模块接收所述待测试系统返回的状态信息,并根据状态信息及目标按键的标识,确定目标按键标识对应的测试结果。由此,测试系统可以通过RPC模块向待测试系统发送按键指令,并接收待测试系统返回的状态信息,之后根据状态信息及目标按键的标识,即可确定对应的测试结果,从而避免了多次查询来确定目标按键的测试结果,简化了按键测试的过程,节省了时间,提高了按键测试的效率。In the embodiment of the present disclosure, the test system can send key instructions to the system to be tested through the remote procedure call RPC module, where the key instructions include the identification of the target key and the target control mode, and can then receive the information returned by the system under test through the RPC module. status information, and determine the test results corresponding to the target button ID based on the status information and the target button ID. As a result, the test system can send key commands to the system under test through the RPC module, and receive the status information returned by the system under test. Then, the corresponding test results can be determined based on the status information and the identification of the target button, thus avoiding multiple attempts. Query to determine the test results of the target button, which simplifies the button test process, saves time, and improves the efficiency of the button test.

图2为本公开实施例提供的一种跨系统的按键测试方法的流程示意图,该方法可以由测试系统执行。如图2所示,该跨系统的按键测试方法可以包括以下步骤:FIG. 2 is a schematic flowchart of a cross-system key testing method provided by an embodiment of the present disclosure. The method can be executed by the testing system. As shown in Figure 2, the cross-system key testing method can include the following steps:

步骤201,对获取的测试用例进行解析,以确定目标按键的标识及所述目标操控模式。Step 201: Analyze the obtained test case to determine the identity of the target button and the target control mode.

其中,测试用例,可以为一组由前提条件、输入、执行条件、预期结果等组成,以完成对某个特定需求或者目标测试的数据,体现测试方案、方法、技术和策略的文档。Among them, a test case can be a set of data consisting of preconditions, inputs, execution conditions, expected results, etc., to complete the test of a specific requirement or goal, and a document that embodies the test plan, method, technology and strategy.

可选的,可以通过特定接口,获取由用户上传的测试用例。比如,可以通过蟒蛇(python)接口获取测试人员上传的测试用例等等,本公开对此不做限定。Optionally, test cases uploaded by users can be obtained through a specific interface. For example, test cases uploaded by testers can be obtained through the python interface, and this disclosure does not limit this.

可以理解的是,可以通过对获取的测试用例进行解析,以确定测试用例的内容,之后可以根据测试内容,确定相应的目标按键的标识及目标操控模式。It can be understood that the obtained test case can be parsed to determine the content of the test case, and then the identification of the corresponding target button and the target control mode can be determined based on the test content.

举例来说,若测试用例为“是否正常寻焦”,那么对应的目标按键可以为“返回按键”、目标操控模式可以为“触发返回按键”等等,本公开对此不做限定。For example, if the test case is "whether focus is found normally", then the corresponding target button can be the "return button", the target control mode can be "trigger the return button", etc. This disclosure does not limit this.

步骤202,通过RPC模块向待测试系统发送按键指令,其中,按键指令中包含目标按键的标识及目标操控模式。Step 202: Send a key press instruction to the system under test through the RPC module, where the key press instruction includes the identification of the target key and the target control mode.

步骤203,通过RPC模块接收待测试系统返回的状态信息。Step 203: Receive status information returned by the system to be tested through the RPC module.

需要说明的是,步骤202和步骤203的具体内容及实现方式,可以参照本公开其他各实施例的说明,此处不再赘述。It should be noted that, for the specific contents and implementation methods of step 202 and step 203, reference can be made to the descriptions of other embodiments of the present disclosure, and will not be described again here.

步骤204,响应于状态信息指示应用切换成功,确定切换至待测试系统后台的第一应用的类型。Step 204: In response to the status information indicating that the application switching is successful, determine the type of the first application to be switched to the background of the system to be tested.

可以理解的是,测试系统在接收到待测试系统返回的状态信息后,可以通过对该状态信息进行解析,以确定状态信息指示的具体内容等,本公开对此不做限定。It can be understood that after receiving the status information returned by the system to be tested, the test system can parse the status information to determine the specific content indicated by the status information, etc. This disclosure does not limit this.

其中,第一应用的类型可以有多种,比如可以为常驻应用、非常驻应用等等,本公开对此不做限定。The first application may have multiple types, such as a resident application, a non-resident application, etc., which is not limited in this disclosure.

另外,可以提前设定应用的类型,比如通讯类应用、办公类应用可以为常驻应用;游 戏类应用、工具类应用可以为非常驻应用等等。从而测试系统在接收到待测试系统返回的状态信息之后,可以确定第一应用的类型。本公开对此不做限定。In addition, the type of application can be set in advance. For example, communication applications and office applications can be resident applications; game applications and tool applications can be non-resident applications, etc. Therefore, the test system can determine the type of the first application after receiving the status information returned by the system to be tested. This disclosure does not limit this.

或者,也可以提前设定常驻应用列表或者非常驻应用列表,从而可以通过遍历常驻应用列表,在常驻应用列表包含第一应用名称或标识时,可以确定该第一应用为常驻应用;或者在确定常驻应用列表中未包含第一应用标识的情况下,可以确定该第一应用为非常驻应用。Alternatively, the resident application list or the non-resident application list can also be set in advance, so that by traversing the resident application list, when the resident application list contains the first application name or identification, the first application can be determined to be the resident application. ; Or when it is determined that the first application identifier is not included in the resident application list, it may be determined that the first application is a non-resident application.

需要说明的是,上述示例只是示意性说明,不能作为对本公开实施例中确定切换至待测试系统后台的第一应用的类型的方式等的限定。It should be noted that the above examples are only schematic illustrations and cannot be used as limitations on the manner of determining the type of the first application to be switched to the background of the system to be tested in the embodiments of the present disclosure.

步骤205,根据第一应用的类型,对第一应用与测试系统间的连接状态进行调整。Step 205: Adjust the connection status between the first application and the test system according to the type of the first application.

可以理解的是,第一应用的类型不同,第一应用于测试系统间的连接状态可能相同,或者也可能不同等等,本公开对此不做限定。It can be understood that the types of the first applications are different, and the connection status between the first application test systems may be the same, or may be different, etc., and this disclosure does not limit this.

可选的,在第一应用为常驻应用的情况下,可以保持与第一应用间的连接,从而测试系统可以保持与第一应用间的连接,以及时与第一应用间进行通信,或者及时获取第一应用的信息等。Optionally, when the first application is a resident application, the connection with the first application can be maintained, so that the test system can maintain the connection with the first application and communicate with the first application in a timely manner, or Get the first application information in time.

可选的,在第一应用为非常驻应用的情况下,断开与第一应用间的连接,并释放第一应用对应的状态信息。Optionally, when the first application is a non-resident application, disconnect the connection with the first application and release the status information corresponding to the first application.

可以理解的是,在第一应用为非常驻应用的情况下,测试系统可以断开与第一应用间的连接,之后释放第一应用对应的状态信息,也即删除第一应用对应的状态信息,释放内存。It can be understood that when the first application is a non-resident application, the test system can disconnect from the first application and then release the status information corresponding to the first application, that is, delete the status information corresponding to the first application. , release memory.

从而,本公开实施例中,测试系统可以根据第一应用的类型,对第一应用于测试系统间的连接状态进行调整,以确定是否保持或断开与第一应用间的连接,从而尽量提高资源利用率,避免资源浪费。Therefore, in the embodiment of the present disclosure, the test system can adjust the connection status between the first application and the test system according to the type of the first application to determine whether to maintain or disconnect the connection with the first application, so as to maximize the Resource utilization and avoid resource waste.

可选的,响应于状态信息指示第二应用中焦点变化或页面变化,更新存储的第二应用对应的状态信息。Optionally, in response to the status information indicating a focus change or page change in the second application, update the stored status information corresponding to the second application.

举例来说,在第二应用为“XX游戏”的情况下,若状态信息指示焦点变化,比如,可以为焦点由“输入框”移动至“菜单”控件处,那么更新存储的状态信息为:“XX游戏”的焦点发生变化,由“输入框”移动至“菜单”控件处。For example, in the case where the second application is "XX Game", if the status information indicates a focus change, for example, the focus can be moved from the "input box" to the "menu" control, then the updated stored status information is: The focus of "XX Game" changes, moving from the "Input Box" to the "Menu" control.

或者,在第二应用为“YY浏览器”的情况下,若状态信息指示页面发生变化,比如由“主页面”变化为“搜索页面”,那么可以将“YY浏览器”存储的状态信息更新为“搜索页面”。Or, in the case where the second application is "YY Browser", if the status information indicates that the page changes, for example, from the "main page" to the "search page", then the status information stored in "YY Browser" can be updated. for "Search Page".

需要说明的是,上述示例只是示意性说明,不能作为对本公开实施例中,更新存储的第二应用对应的状态信息的方式等的限定。It should be noted that the above examples are only schematic illustrations and cannot be used as limitations on the manner of updating the stored status information corresponding to the second application in the embodiments of the present disclosure.

本公开实施例,测试系统可以先对获取的测试用例进行解析,以确定目标按键的标识及目标操控模式,之后可以通过RPC模块向待测试系统发送按键指令,并通过RPC模块接收待测试系统返回的状态信息,在状态信息指示应用切换成功,确定切换至待测试系统后台的第一应用的类型,在第一应用为常驻应用的情况下,保持与第一应用间的连接,在第一应用为非常驻应用的情况下,断开与第一应用间的连接,并释放第一应用对应的状态信息。由此,在确定目标按键的标识及目标操控模式后,可以向待测试系统发送按键指令及接收待测试系统返回的状态信息,在状态信息用于指示应用切换成功的情况下,可以根据第一应用的类型,确定与第一应用间的连接关系,从而节省了内存空间,提高了内存利用率。In this disclosed embodiment, the test system can first parse the obtained test cases to determine the identification of the target key and the target control mode, and then can send key instructions to the system under test through the RPC module, and receive the return from the system under test through the RPC module. status information, when the status information indicates that the application switching is successful, determine the type of the first application to be switched to the background of the system to be tested, and when the first application is a resident application, maintain the connection with the first application. When the application is a non-resident application, the connection with the first application is disconnected and the status information corresponding to the first application is released. Therefore, after determining the identification of the target key and the target control mode, the key instructions can be sent to the system to be tested and the status information returned by the system to be tested can be received. When the status information is used to indicate successful application switching, the system can be configured according to the first The type of application determines the connection relationship with the first application, thereby saving memory space and improving memory utilization.

图3为本公开实施例提供的一种跨系统的按键测试方法的流程示意图,该方法可以由待测试系统执行。如图3所示,该跨系统的按键测试方法可以包括以下步骤:FIG. 3 is a schematic flowchart of a cross-system key testing method provided by an embodiment of the present disclosure. The method can be executed by the system to be tested. As shown in Figure 3, the cross-system key testing method can include the following steps:

步骤301,通过远程过程调用RPC模块接收测试系统发送的按键指令,其中,按键指令中包含目标按键的标识及目标操控模式。Step 301: Receive the key command sent by the test system through the remote procedure call RPC module, where the key command includes the identification of the target key and the target control mode.

可以理解的是,待测试系统在通过RPC模块,接收测试系统发送的按键指令之后,可以通过对按键指令进行解析,以确定目标按键的标识及目标操控模式。It can be understood that after the system under test receives the key press command sent by the test system through the RPC module, it can analyze the key press command to determine the identification of the target key and the target control mode.

另外,目标按键,可以为待测试或待操控的按键,目标按键的标识的样式或者呈现形式,可以为提前设定好的,比如可以为“开始”按键、“返回”按键、“1”、音量“+”按键等等,本公开对此不做限定。In addition, the target button can be a button to be tested or controlled. The logo style or presentation form of the target button can be set in advance, for example, it can be a "start" button, a "return" button, "1", Volume "+" button, etc., this disclosure does not limit this.

另外,目标操控模式,可以为对目标按键所进行的操控处理,比如可以为:增大音量、返回上一级、退出当前页面等等,本公开对此不做限定。In addition, the target control mode can be a control process performed on the target button, for example, it can be: increasing the volume, returning to the previous level, exiting the current page, etc. This disclosure does not limit this.

步骤302,启动监听进程。Step 302: Start the listening process.

可以理解的是,待测试系统在接收到测试系统发送的按键指令之后,可以启动监听进程,以对待进行的测试操作进行监听。比如,可以对内存进行监听、对运行状态进行监听等等,本公开对此不做限定。It can be understood that after receiving the key press command sent by the test system, the system to be tested can start a monitoring process to monitor the test operation to be performed. For example, the memory can be monitored, the running status can be monitored, etc. This disclosure does not limit this.

步骤303,基于目标操控模式,对目标按键的标识对应的目标按键进行操控。Step 303: Based on the target control mode, control the target button corresponding to the identification of the target button.

举例来说,若目标按键的标识为“音量+”、目标操控模式为“增大音量”,那么可以触发“音量+”键,以使音量增加。For example, if the label of the target button is "Volume +" and the target control mode is "Volume Increase", then the "Volume +" button can be triggered to increase the volume.

或者,在目标按键的标识为“退出”、目标操控模式为“退出当前界面”,那么可以通过触发“退出”按键,以退出当前界面。Alternatively, if the target button is labeled "Exit" and the target control mode is "Exit current interface", then the "Exit" button can be triggered to exit the current interface.

需要说明的是,上述示例只是示意性说明,不能作为对本公开实施例中目标操控模式、目标按键的标识等的限定。It should be noted that the above examples are only schematic illustrations and cannot be used as limitations on the target control mode, identification of target buttons, etc. in the embodiments of the present disclosure.

步骤304,通过RPC模块,将监听进程获取的状态信息发送给测试系统。Step 304: Send the status information obtained by the listening process to the test system through the RPC module.

可以理解的是,待测试系统在启动监听进程之后,可以基于目标操控模式,对目标按键的标识对应的目标按键进行操控,在此期间,监听进程可以对待测试系统对目标按键进行的操控进行监控,并获取相应的状态信息,之后可以将监听进程获取的状态信息,通过RPC模块,发送给测试系统。It can be understood that after the system to be tested starts the monitoring process, it can control the target button corresponding to the target button's logo based on the target control mode. During this period, the monitoring process can monitor the control of the target button by the system to be tested. , and obtain the corresponding status information, and then send the status information obtained by the listening process to the test system through the RPC module.

本公开实施例,待测试系统可以先通过远程过程调用RPC模块接收测试系统发送的按键指令,其中,按键指令中包含目标按键的标识及目标操控模式,之后可以启动监听进程,之后可以基于目标操控模式,对目标按键的标识对应的目标按键进行操控,之后再通过RPC模块,将监听进程获取的状态信息发送给测试系统。由此,待测试系统在对接收的按键指令解析之后,可以启动监听进程,并基于目标操控模式,对目标按键进行操控,之后可以将监听进程获取的状态信息发送给测试系统,以使测试系统仅根据待测试系统返回的状态信息,即可确定目标按键的测试结果,从而无需测试系统多次查询才能确定测试结果,简化了按键测试的过程,节省了时间,提高了按键测试的效率。In this disclosed embodiment, the system to be tested can first receive the key command sent by the test system through the remote procedure call RPC module. The key command includes the identification of the target key and the target control mode. Then the monitoring process can be started, and then the control can be based on the target. mode, control the target button corresponding to the target button's logo, and then send the status information obtained by the listening process to the test system through the RPC module. Therefore, after parsing the received key command, the system to be tested can start the listening process and control the target key based on the target control mode. Afterwards, the status information obtained by the listening process can be sent to the test system, so that the test system The test result of the target button can be determined based only on the status information returned by the system to be tested. This eliminates the need for the test system to query multiple times to determine the test result, simplifying the button test process, saving time, and improving the efficiency of button test.

图4为本公开实施例提供的一种跨系统的按键测试方法的流程示意图,该方法可以由待测试系统执行。如图4所示,该跨系统的按键测试方法可以包括以下步骤:FIG. 4 is a schematic flowchart of a cross-system key testing method provided by an embodiment of the present disclosure. The method can be executed by the system to be tested. As shown in Figure 4, the cross-system key testing method can include the following steps:

步骤401,通过远程过程调用RPC模块接收测试系统发送的按键指令,其中,按键指令中包含目标按键的标识及目标操控模式。Step 401: Receive the key command sent by the test system through the remote procedure call RPC module, where the key command includes the identification of the target key and the target control mode.

步骤402,启动监听进程。Step 402: Start the listening process.

步骤403,基于目标操控模式,对目标按键的标识对应的目标按键进行操控。Step 403: Based on the target control mode, control the target button corresponding to the identification of the target button.

需要说明的是,步骤401至步骤403的具体内容及实现方式,可以参照本公开其他各实施例的说明,此处不再赘述。It should be noted that, for the specific contents and implementation methods of steps 401 to 403, reference can be made to the descriptions of other embodiments of the present disclosure, and will not be described again here.

步骤404,根据目标按键的标识,确定待返回的状态信息。Step 404: Determine the status information to be returned according to the identification of the target button.

其中,目标按键的标识可以有多种,不同目标按键的标识,所确定的待返回的状态信息,可能相同,或者也可能不同等,本公开对此不做限定。There may be multiple identifications of the target button. The identification of different target buttons and the determined status information to be returned may be the same or may be different, etc. This disclosure does not limit this.

可以理解的是,待测试系统在基于目标操控模式,对目标按键的标识对应的目标按键进行操控之后,对应的状态信息。It can be understood that, after the system to be tested controls the target button corresponding to the identification of the target button based on the target control mode, the corresponding status information will be obtained.

可选的,响应于目标按键的标识为返回按键,根据系统中当前显示的应用、页面及焦 点所在的位置信息,生成状态信息。Optionally, in response to the target button being identified as the return button, status information is generated based on the currently displayed application, page and focus location information in the system.

举例来说,若目标按键的标识为:回退按键,在应用1中的页面1中触发了“回退”按键,那么可以表明进行了返回操作,可能返回应用1中的上一页面2,若当前焦点在页面2中的输入框处,那么根据当前显示的:应用1、页面2及页面2中的输入框处,生成的状态信息可以为:当前处于应用1的页面2中的输入框的位置处。For example, if the target button is identified as: Back button, and the "Back" button is triggered on Page 1 in Application 1, it can indicate that a return operation has been performed, possibly returning to the previous Page 2 in Application 1. If the current focus is on the input box in page 2, then based on the currently displayed: application 1, page 2 and the input box in page 2, the generated status information can be: the input box currently in page 2 of application 1 location.

或者,在目标按键的标识为:返回按键,比如back按键的情况下,若在应用1中触发了“返回按键”,那么也可能从应用1中进行了退出,可能相应的应用也发生了变化。若当前显示的应用为:应用2、页面为应用2中的首页面、焦点位于应用2中首页面的“精选”控件处,那么生成的状态信息可以为:应用2的首页面、焦点位于首页面的“精选”控件处。Or, when the target button is identified as: return button, such as the back button, if the "return button" is triggered in application 1, then it is possible to exit from application 1, and the corresponding application may also have changed. . If the currently displayed application is: Application 2, the page is the home page of Application 2, and the focus is at the "Select" control on the home page of Application 2, then the generated status information can be: the home page of Application 2, the focus is at The "Featured" control on the homepage.

需要说明的是,上述示例只是示意性说明,不能作为对本公开实施例中生成状态信息的方式等的限定。It should be noted that the above examples are only schematic illustrations and cannot be used as limitations on the manner of generating status information in the embodiments of the present disclosure.

可选的,响应于目标按键的标识为音量按键,根据系统当前的音量生成状态信息。Optionally, in response to the target button being identified as a volume button, status information is generated based on the current volume of the system.

举例来说,在目标按键的标识为音量按键的情况下,若系统当前的音量为:15,那么生成的状态信息可以为:当前音量为15。或者,若系统当前的音量为0,那么生成的状态信息可以为:当前处于静音状态等等,本公开对此不做限定。For example, when the target button is identified as a volume button, if the current volume of the system is: 15, then the generated status information can be: the current volume is 15. Alternatively, if the current volume of the system is 0, the generated status information may be: it is currently in a mute state, etc. This disclosure does not limit this.

可选的,响应于目标按键的标识为任一应用关联的启动按键,根据系统中当前显示的应用生成状态信息。Optionally, in response to the identification of the target key being a startup key associated with any application, status information is generated according to the application currently displayed in the system.

其中,任一应用,可以为视频应用、游戏应用、浏览器应用、办公应用、健身应用等等,本公开对此不做限定。Among them, any application can be a video application, a game application, a browser application, an office application, a fitness application, etc., and this disclosure does not limit this.

举例来说,若目标按键的标识为“XX视频”关联的启动按键,若系统中当前显示的应用为:XX视频,那么生成的状态信息可以为:XX视频处于开启状态;或者XX视频已开启。或者,若目标按键的标识为“YY浏览器”关联的启动按键,若系统中当前显示的应用为:AA游戏,那么生成的状态信息可以为:AA游戏处于开启状态。For example, if the identification of the target button is the start button associated with "XX Video", and if the application currently displayed in the system is: XX Video, then the generated status information can be: XX Video is on; or XX Video is on. . Or, if the identification of the target button is the start button associated with "YY Browser", and if the application currently displayed in the system is: AA game, then the generated status information can be: AA game is in the open state.

需要说明的是,上述示例只是示意性说明,不能作为对本公开实施例中任一应用及状态信息等的限定。It should be noted that the above examples are only schematic illustrations and cannot be used as limitations on any application, status information, etc. in the embodiments of the present disclosure.

可选的,响应于目标按键的标识为主界面按键,根据系统中当前显示的界面生成状态信息。Optionally, in response to the identification of the target key as the main interface key, status information is generated according to the interface currently displayed in the system.

举例来说,在目标按键的标识为主界面按键的情况下,若系统中当前显示的界面为:主界面,那么生成的状态信息可以为:主界面。或者,在目标按键的标识为主界面按键的情况下,若系统中当前显示的界面为:XX浏览器,那么生成的状态信息可以为:XX浏览器等等,本公开对此不做限定。For example, when the target button is identified as a main interface button, if the interface currently displayed in the system is: main interface, then the generated status information can be: main interface. Or, in the case where the target button is identified as the main interface button, if the interface currently displayed in the system is: XX browser, then the generated status information can be: XX browser, etc. This disclosure does not limit this.

步骤405,通过RPC模块,将监听进程获取的状态信息发送给测试系统。Step 405: Send the status information obtained by the listening process to the test system through the RPC module.

需要说明的是,步骤405的具体内容及实现方式,可以参照本公开其他各实施例的说明,此处不再赘述。It should be noted that, for the specific content and implementation manner of step 405, reference can be made to the descriptions of other embodiments of the present disclosure, and will not be described again here.

本公开实施例,待测试系统可以先通过远程过程调用RPC模块接收测试系统发送的按键指令,之后可以启动监听进程,之后可以基于目标操控模式,对目标按键的标识对应的目标按键进行操控,并根据目标按键的标识,确定待返回的状态信息,之后再通过RPC模块,将监听进程获取的状态信息发送给测试系统。由此,待测试系统可以先对通过RPC模块接收的按键指令进行解析,之后可以启动监听进程,并基于目标操控模式,对目标按键进行操控,之后可以确定待返回的状态信息,并将监听进程获取的状态信息发送给测试系统,以使测试系统仅根据待测试系统返回的状态信息,即可确定目标按键的测试结果,从而无需测试系统多次查询才能确定测试结果,简化了按键测试的过程,节省了时间,提高了按键测试的效率。In this disclosed embodiment, the system to be tested can first receive the key command sent by the test system through the remote procedure call RPC module, and then can start the monitoring process, and then can control the target key corresponding to the identification of the target key based on the target control mode, and According to the identification of the target button, the status information to be returned is determined, and then the status information obtained by the listening process is sent to the test system through the RPC module. Therefore, the system to be tested can first parse the key commands received through the RPC module, and then start the listening process, and control the target keys based on the target control mode. After that, the status information to be returned can be determined, and the listening process can be The obtained status information is sent to the test system, so that the test system can determine the test results of the target button only based on the status information returned by the system to be tested. This eliminates the need for the test system to query multiple times to determine the test results, simplifying the button test process. , saves time and improves the efficiency of key testing.

本公开实施例还提出了一种跨系统的按键测试装置,图5是根据本公开实施例的跨系 统的按键测试装置的结构示意图。An embodiment of the present disclosure also provides a cross-system key testing device. Figure 5 is a schematic structural diagram of a cross-system key testing device according to an embodiment of the present disclosure.

如图5所示,该跨系统的按键测试装置500,被配置在测试系统侧,包括:发送模块510、接收模块520及确定模块530。As shown in FIG. 5 , the cross-system key testing device 500 is configured on the test system side and includes: a sending module 510 , a receiving module 520 and a determining module 530 .

其中,发送模块510,用于通过远程过程调用RPC模块向待测试系统发送按键指令,其中,所述按键指令中包含目标按键的标识及目标操控模式。Among them, the sending module 510 is used to send key instructions to the system to be tested through the remote procedure call RPC module, where the key instructions include the identification of the target key and the target control mode.

接收模块520,用于通过所述RPC模块接收所述待测试系统返回的状态信息。The receiving module 520 is configured to receive the status information returned by the system to be tested through the RPC module.

确定模块530,用于根据所述状态信息及所述目标按键的标识,确定所述目标按键标识对应的测试结果。The determination module 530 is configured to determine the test result corresponding to the target button identifier according to the status information and the target button identifier.

可选的,所述确定模块530,包括:Optionally, the determination module 530 includes:

确定单元,用于响应于所述状态信息指示应用切换成功,确定切换至所述待测试系统后台的第一应用的类型;a determining unit configured to determine the type of the first application switched to the background of the system to be tested in response to the status information indicating that the application switching is successful;

调整单元,用于根据所述第一应用的类型,对所述第一应用与所述测试系统间的连接状态进行调整。An adjustment unit, configured to adjust the connection state between the first application and the test system according to the type of the first application.

可选的,所述调整单元,具体用于:Optional, the adjustment unit is specifically used for:

在所述第一应用为常驻应用的情况下,保持与所述第一应用间的连接;When the first application is a resident application, maintain the connection with the first application;

在所述第一应用为非常驻应用的情况下,断开与所述第一应用间的连接,并释放所述第一应用对应的状态信息。When the first application is a non-resident application, disconnect the connection with the first application and release the status information corresponding to the first application.

可选的,还包括:Optional, also includes:

更新模块,用于响应于所述状态信息指示第二应用中焦点变化或页面变化,更新存储的所述第二应用对应的状态信息。An update module, configured to update the stored status information corresponding to the second application in response to the status information indicating a focus change or page change in the second application.

可选的,还包括:Optional, also includes:

解析模块,用于对获取的测试用例进行解析,以确定所述目标按键的标识及所述目标操控模式。An analysis module is used to analyze the obtained test cases to determine the identification of the target button and the target control mode.

可选的,所述确定模块,具体用于:Optional, the determination module is specifically used for:

响应于所述目标按键的标识为返回按键,根据所述状态信息中的所述待测试系统中当前显示的应用、页面和/或焦点所在的位置信息,确定所述返回按键对应的测试结果;或者,In response to the identification of the target button as the return button, determine the test result corresponding to the return button based on the currently displayed application, page and/or focus location information in the system to be tested in the status information; or,

响应于所述目标按键的标识为音量按键,根据所述状态信息中的所述待测试系统当前的音量,确定所述音量按键对应的测试结果;或者,In response to the identification of the target button as a volume button, determine the test result corresponding to the volume button according to the current volume of the system to be tested in the status information; or,

响应于所述目标按键的标识为任一应用关联的启动按键,根据所述状态信息中所述待测试系统中当前显示的应用,确定所述任一应用关联的启动按键对应的测试结果;或者,In response to the identification of the target button as a startup button associated with any application, determine the test result corresponding to the startup button associated with any application according to the application currently displayed in the system to be tested in the status information; or ,

响应于所述目标按键的标识为主界面按键,根据状态信息中所述待测试系统中当前显示的界面,确定所述主界面按键对应的测试结果。In response to the identification of the target button as a main interface button, the test result corresponding to the main interface button is determined according to the interface currently displayed in the system to be tested in the status information.

本公开实施例中的上述各模块的功能及具体实现原理,可参照上述各方法实施例,此处不再赘述。For the functions and specific implementation principles of the above-mentioned modules in the embodiments of the present disclosure, reference may be made to the above-mentioned method embodiments and will not be described again here.

本公开实施例的跨系统的按键测试装置,测试系统可以通过远程过程调用RPC模块向待测试系统发送按键指令,其中,按键指令中包含目标按键的标识及目标操控模式,之后可以通过RPC模块接收所述待测试系统返回的状态信息,并根据状态信息及目标按键的标识,确定目标按键标识对应的测试结果。由此,测试系统可以通过RPC模块向待测试系统发送按键指令,并接收待测试系统返回的状态信息,之后根据状态信息及目标按键的标识,即可确定对应的测试结果,从而避免了多次查询来确定目标按键的测试结果,简化了按键测试的过程,节省了时间,提高了按键测试的效率。In the cross-system key testing device of the embodiment of the present disclosure, the test system can send key instructions to the system to be tested through the remote procedure call RPC module. The key instructions include the identification of the target key and the target control mode, and can then be received through the RPC module. The status information returned by the system to be tested is determined, and the test result corresponding to the target button ID is determined based on the status information and the target button ID. As a result, the test system can send key commands to the system under test through the RPC module, and receive the status information returned by the system under test. Then, the corresponding test results can be determined based on the status information and the identification of the target button, thus avoiding multiple attempts. Query to determine the test results of the target button, which simplifies the button test process, saves time, and improves the efficiency of the button test.

图6是根据本公开实施例的跨系统的按键测试装置的结构示意图。FIG. 6 is a schematic structural diagram of a cross-system key testing device according to an embodiment of the present disclosure.

如图6所示,该跨系统的按键测试装置600,被配置在待测试系统侧,包括:接收模块610、启动模块620、操控模块630及发送模块640。As shown in FIG. 6 , the cross-system key testing device 600 is configured on the side of the system to be tested, and includes: a receiving module 610 , a starting module 620 , a control module 630 and a sending module 640 .

其中,接收模块610,用于通过远程过程调用RPC模块接收测试系统发送的按键指令,其中,所述按键指令中包含目标按键的标识及目标操控模式。Among them, the receiving module 610 is used to receive the key instructions sent by the test system through the remote procedure call RPC module, where the key instructions include the identification of the target key and the target control mode.

启动模块620,用于启动监听进程。Start module 620, used to start the listening process.

操控模块630,用于基于所述目标操控模式,对所述目标按键的标识对应的目标按键进行操控。The control module 630 is configured to control the target button corresponding to the identification of the target button based on the target control mode.

发送模块640,用于通过所述RPC模块,将所述监听进程获取的状态信息发送给所述测试系统。The sending module 640 is configured to send the status information obtained by the listening process to the test system through the RPC module.

可选的,还包括:Optional, also includes:

确定模块,用于根据所述目标按键的标识,确定待返回的所述状态信息。A determining module, configured to determine the status information to be returned according to the identification of the target button.

可选的,所述确定模块,具体用于:Optional, the determination module is specifically used for:

响应于所述目标按键的标识为返回按键,根据所述系统中当前显示的应用、页面及焦点所在的位置信息,生成所述状态信息;或者,In response to the identification of the target button as the return button, the status information is generated based on the currently displayed application, page and focus location information in the system; or,

响应于所述目标按键的标识为音量按键,根据所述系统当前的音量生成所述状态信息;或者,In response to the target button being identified as a volume button, generating the status information according to the current volume of the system; or,

响应于所述目标按键的标识为任一应用关联的启动按键,根据所述系统中当前显示的应用生成所述状态信息;或者,In response to the identification of the target button as a startup button associated with any application, generate the status information according to the application currently displayed in the system; or,

响应于所述目标按键的标识为主界面按键,根据所述系统中当前显示的界面生成所述状态信息。本公开实施例中的上述各模块的功能及具体实现原理,可参照上述各方法实施例,此处不再赘述。In response to the identification of the target button as a main interface button, the status information is generated according to the interface currently displayed in the system. For the functions and specific implementation principles of the above-mentioned modules in the embodiments of the present disclosure, reference may be made to the above-mentioned method embodiments and will not be described again here.

本公开实施例的跨系统的按键测试装置,待测试系统可以先通过远程过程调用RPC模块接收测试系统发送的按键指令,其中,按键指令中包含目标按键的标识及目标操控模式,之后可以启动监听进程,之后可以基于目标操控模式,对目标按键的标识对应的目标按键进行操控,之后再通过RPC模块,将监听进程获取的状态信息发送给测试系统。由此,待测试系统在对接收的按键指令解析之后,可以启动监听进程,并基于目标操控模式,对目标按键进行操控,之后可以将监听进程获取的状态信息发送给测试系统,以使测试系统仅根据待测试系统返回的状态信息,即可确定目标按键的测试结果,从而无需测试系统多次查询才能确定测试结果,简化了按键测试的过程,节省了时间,提高了按键测试的效率。In the cross-system key testing device according to the embodiment of the present disclosure, the system to be tested can first receive the key instructions sent by the test system through the remote procedure call RPC module. The key instructions include the identification of the target key and the target control mode, and then the monitoring can be started. The process can then control the target button corresponding to the target button's logo based on the target control mode, and then send the status information obtained by the listening process to the test system through the RPC module. Therefore, after parsing the received key command, the system to be tested can start the listening process and control the target key based on the target control mode. Afterwards, the status information obtained by the listening process can be sent to the test system, so that the test system The test result of the target button can be determined based only on the status information returned by the system to be tested. This eliminates the need for the test system to query multiple times to determine the test result, simplifying the button test process, saving time, and improving the efficiency of button test.

图7是根据本公开实施例的电子设备的结构框图。FIG. 7 is a structural block diagram of an electronic device according to an embodiment of the present disclosure.

如图7所示,该电子设备200包括:存储器210和处理器220,连接不同组件(包括存储器210和处理器220)的总线230。As shown in FIG. 7 , the electronic device 200 includes: a memory 210 and a processor 220 , and a bus 230 connecting different components (including the memory 210 and the processor 220 ).

其中,存储器210用于存储处理器220的可执行指令;处理器201被配置为调用并执行存储器202存储的可执行指令,以实现本公开上述实施例提出的跨系统的按键测试方法。The memory 210 is used to store executable instructions of the processor 220; the processor 201 is configured to call and execute the executable instructions stored in the memory 202 to implement the cross-system key testing method proposed in the above embodiments of the present disclosure.

总线230表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(ISA)总线,微通道体系结构(MAC)总线,增强型ISA总线、视频电子标准协会(VESA)局域总线以及外围组件互连(PCI)总线。Bus 230 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics accelerated port, a processor, or a local bus using any of a variety of bus structures. For example, these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect ( PCI) bus.

电子设备200典型地包括多种电子设备可读介质。这些介质可以是任何能够被电子设备200访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。Electronic device 200 typically includes a variety of electronic device-readable media. These media can be any available media that can be accessed by electronic device 200, including volatile and nonvolatile media, removable and non-removable media.

存储器210还可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(RAM)240和/或高速缓存存储器250。电子设备200可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统260可以用于读写不可移动的、非易失性磁介质(图7未显示,通常称为“硬盘驱动器”)。尽管图7中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如CD-ROM,DVD-ROM或者其它光介质)读写的光盘驱动器。在 这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线230相连。存储器210可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本公开各实施例的功能。Memory 210 may also include computer system readable media in the form of volatile memory, such as random access memory (RAM) 240 and/or cache memory 250 . Electronic device 200 may further include other removable/non-removable, volatile/non-volatile computer system storage media. By way of example only, storage system 260 may be used to read and write to non-removable, non-volatile magnetic media (not shown in Figure 7 and commonly referred to as a "hard drive"). Although not shown in FIG. 7, a disk drive for reading and writing removable non-volatile disks (e.g., "floppy disks"), and removable non-volatile optical disks (e.g., CD-ROM, DVD-ROM) may be provided. or other optical media) that can read and write optical disc drives. In these cases, each drive may be connected to bus 230 through one or more data media interfaces. The memory 210 may include at least one program product having a set (eg, at least one) of program modules configured to perform the functions of embodiments of the present disclosure.

具有一组(至少一个)程序模块270的程序/实用工具280,可以存储在例如存储器210中,这样的程序模块270包括——但不限于——操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块270通常执行本公开所描述的实施例中的功能和/或方法。A program/utility 280 having a set of (at least one) program modules 270, which may be stored, for example, in the memory 210, such program modules 270 including, but not limited to, an operating system, one or more application programs, other programs Modules, as well as program data, each of these examples or some combination may include an implementation of a network environment. Program modules 270 generally perform functions and/or methods in the embodiments described in this disclosure.

电子设备200也可以与一个或多个外部设备290(例如键盘、指向设备、显示器291等)通信,还可与一个或者多个使得用户能与该电子设备200交互的设备通信,和/或与使得该电子设备200能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口292进行。并且,电子设备200还可以通过网络适配器293与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器293通过总线230与电子设备200的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备200使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。Electronic device 200 may also communicate with one or more external devices 290 (e.g., keyboard, pointing device, display 291, etc.), may also communicate with one or more devices that enable a user to interact with electronic device 200, and/or with Any device (eg, network card, modem, etc.) that enables the electronic device 200 to communicate with one or more other computing devices. This communication may occur through input/output (I/O) interface 292. Furthermore, the electronic device 200 may also communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) through the network adapter 293. As shown, network adapter 293 communicates with other modules of electronic device 200 via bus 230. It should be understood that, although not shown in the figures, other hardware and/or software modules may be used in conjunction with electronic device 200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives And data backup storage system, etc.

处理器220通过运行存储在存储器210中的程序,从而执行各种功能应用以及数据处理。The processor 220 executes various functional applications and data processing by running programs stored in the memory 210 .

需要说明的是,本公开实施例的电子设备的实施过程参见前述对本公开实施例的跨系统的按键测试方法的解释说明,此处不再赘述。It should be noted that, for the implementation process of the electronic device according to the embodiment of the present disclosure, please refer to the foregoing explanation of the cross-system key testing method according to the embodiment of the present disclosure, and will not be described again here.

本公开实施例的电子设备,测试系统可以通过远程过程调用RPC模块向待测试系统发送按键指令,其中,按键指令中包含目标按键的标识及目标操控模式,之后可以通过RPC模块接收所述待测试系统返回的状态信息,并根据状态信息及目标按键的标识,确定目标按键标识对应的测试结果。由此,测试系统可以通过RPC模块向待测试系统发送按键指令,并接收待测试系统返回的状态信息,之后根据状态信息及目标按键的标识,即可确定对应的测试结果,从而避免了多次查询来确定目标按键的测试结果,简化了按键测试的过程,节省了时间,提高了按键测试的效率。For the electronic device according to the embodiment of the present disclosure, the test system can send key instructions to the system to be tested through remote procedure call RPC module, where the key instructions include the identification of the target key and the target control mode, and can then receive the key instructions to be tested through the RPC module. The system returns the status information and determines the test results corresponding to the target button ID based on the status information and the target button ID. As a result, the test system can send key commands to the system under test through the RPC module, and receive the status information returned by the system under test. Then, the corresponding test results can be determined based on the status information and the identification of the target button, thus avoiding multiple attempts. Query to determine the test results of the target button, which simplifies the button test process, saves time, and improves the efficiency of the button test.

为了实现上述实施例,本公开实施例还提出了一种非临时性计算机可读存储介质,该存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行如前所述的跨系统的按键测试方法。In order to implement the above embodiments, embodiments of the present disclosure also propose a non-transitory computer-readable storage medium. When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can perform the cross-processing as mentioned above. System key testing method.

为了实现上述实施例,本公开实施例还提供一种计算机程序产品,该计算机程序由电子设备的处理器执行时,使得电子设备能够执行如前所述的跨系统的按键测试方法。In order to implement the above embodiments, embodiments of the present disclosure also provide a computer program product. When the computer program is executed by a processor of an electronic device, the electronic device can perform the cross-system key testing method as described above.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the disclosure that follow the general principles of the disclosure and include common common sense or customary technical means in the technical field that are not disclosed in the disclosure. . It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the disclosure is limited only by the appended claims.

以上所述,仅为本公开的具体实施方式,但本公开的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure. should be covered by the protection scope of this disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.

Claims (20)

一种跨系统的按键测试方法,其特征在于,由测试系统执行,所述方法包括:A cross-system key testing method, characterized in that it is executed by a testing system, and the method includes: 通过远程过程调用RPC模块向待测试系统发送按键指令,其中,所述按键指令中包含目标按键的标识及目标操控模式;Send key press instructions to the system under test through remote procedure call RPC module, where the key press instructions include the identification of the target key and the target control mode; 通过所述RPC模块接收所述待测试系统返回的状态信息;Receive status information returned by the system under test through the RPC module; 根据所述状态信息及所述目标按键的标识,确定所述目标按键标识对应的测试结果。According to the status information and the identification of the target key, the test result corresponding to the identification of the target key is determined. 如权利要求1所述的方法,其特征在于,在所述通过所述RPC模块接收所述待测试系统返回的状态信息之后,还包括:The method according to claim 1, characterized in that, after receiving the status information returned by the system to be tested through the RPC module, it further includes: 响应于所述状态信息指示应用切换成功,确定切换至所述待测试系统后台的第一应用的类型;In response to the status information indicating that the application switch is successful, determine the type of the first application switched to the background of the system to be tested; 根据所述第一应用的类型,对所述第一应用与所述测试系统间的连接状态进行调整。Adjust the connection state between the first application and the test system according to the type of the first application. 如权利要求2所述的方法,其特征在于,所述根据所述第一应用的类型,对所述第一应用与所述测试系统间的连接状态进行调整,包括:The method of claim 2, wherein adjusting the connection state between the first application and the test system according to the type of the first application includes: 在所述第一应用为常驻应用的情况下,保持与所述第一应用间的连接;When the first application is a resident application, maintain the connection with the first application; 在所述第一应用为非常驻应用的情况下,断开与所述第一应用间的连接,并释放所述第一应用对应的状态信息。When the first application is a non-resident application, disconnect the connection with the first application and release the status information corresponding to the first application. 如权利要求1所述的方法,其特征在于,在所述通过所述RPC模块接收所述待测试系统返回的状态信息之后,还包括:The method according to claim 1, characterized in that, after receiving the status information returned by the system to be tested through the RPC module, it further includes: 响应于所述状态信息指示第二应用中焦点变化或页面变化,更新存储的所述第二应用对应的状态信息。In response to the status information indicating a focus change or a page change in the second application, the stored status information corresponding to the second application is updated. 如权利要求1-4任一所述的方法,其特征在于,在所述通过远程过程调用RPC模块向待测试系统发送按键指令之前,还包括:The method according to any one of claims 1 to 4, characterized in that, before sending the key command to the system to be tested through the remote procedure call RPC module, it also includes: 对获取的测试用例进行解析,以确定所述目标按键的标识及所述目标操控模式。The obtained test cases are parsed to determine the identification of the target button and the target control mode. 如权利要求1-4任一所述的方法,其特征在于,所述根据所述状态信息及所述目标按键的标识,确定所述目标按键标识对应的测试结果,包括:The method according to any one of claims 1 to 4, wherein determining the test result corresponding to the target key identification based on the status information and the identification of the target key includes: 响应于所述目标按键的标识为返回按键,根据所述状态信息中的所述待测试系统中当前显示的应用、页面和/或焦点所在的位置信息,确定所述返回按键对应的测试结果;或者,In response to the identification of the target button as the return button, determine the test result corresponding to the return button based on the currently displayed application, page and/or focus location information in the system to be tested in the status information; or, 响应于所述目标按键的标识为音量按键,根据所述状态信息中的所述待测试系统当前的音量,确定所述音量按键对应的测试结果;或者,In response to the identification of the target button as a volume button, determine the test result corresponding to the volume button according to the current volume of the system to be tested in the status information; or, 响应于所述目标按键的标识为任一应用关联的启动按键,根据所述状态信息中所述待测试系统中当前显示的应用,确定所述任一应用关联的启动按键对应的测试结果;或者,In response to the identification of the target button as a startup button associated with any application, determine the test result corresponding to the startup button associated with any application according to the application currently displayed in the system to be tested in the status information; or , 响应于所述目标按键的标识为主界面按键,根据状态信息中所述待测试系统中当前显示的界面,确定所述主界面按键对应的测试结果。In response to the identification of the target button as a main interface button, the test result corresponding to the main interface button is determined according to the interface currently displayed in the system to be tested in the status information. 一种跨系统的按键测试方法,其特征在于,由待测试系统执行,所述方法包括:A cross-system key testing method, characterized in that it is executed by the system to be tested, and the method includes: 通过远程过程调用RPC模块接收测试系统发送的按键指令,其中,所述按键指令中包含目标按键的标识及目标操控模式;Receive the key instructions sent by the test system through the remote procedure call RPC module, where the key instructions include the identification of the target key and the target control mode; 启动监听进程;Start the listening process; 基于所述目标操控模式,对所述目标按键的标识对应的目标按键进行操控;Based on the target control mode, control the target button corresponding to the identification of the target button; 通过所述RPC模块,将所述监听进程获取的状态信息发送给所述测试系统。Through the RPC module, the status information obtained by the listening process is sent to the test system. 如权利要求7所述的方法,其特征在于,在所述将所述监听进程获取的状态信息发送给所述测试系统之前,还包括:The method according to claim 7, characterized in that, before sending the status information obtained by the listening process to the test system, it further includes: 根据所述目标按键的标识,确定待返回的所述状态信息。The status information to be returned is determined according to the identification of the target button. 如权利要求8所述的方法,其特征在于,所述根据所述目标按键的标识,确定待返回的所述状态信息,包括:The method of claim 8, wherein determining the status information to be returned according to the identification of the target button includes: 响应于所述目标按键的标识为返回按键,根据所述系统中当前显示的应用、页面及焦点所在的位置信息,生成所述状态信息;或者,In response to the identification of the target button as the return button, the status information is generated based on the currently displayed application, page and focus location information in the system; or, 响应于所述目标按键的标识为音量按键,根据所述系统当前的音量生成所述状态信息;或者,In response to the target button being identified as a volume button, generating the status information according to the current volume of the system; or, 响应于所述目标按键的标识为任一应用关联的启动按键,根据所述系统中当前显示的应用生成所述状态信息;或者,In response to the identification of the target button as a startup button associated with any application, generate the status information according to the application currently displayed in the system; or, 响应于所述目标按键的标识为主界面按键,根据所述系统中当前显示的界面生成所述状态信息。In response to the identification of the target button as a main interface button, the status information is generated according to the interface currently displayed in the system. 一种跨系统的按键测试装置,其特征在于,被配置在测试系统侧,所述装置包括:A cross-system key testing device, characterized in that it is configured on the test system side, and the device includes: 发送模块,用于通过远程过程调用RPC模块向待测试系统发送按键指令,其中,所述按键指令中包含目标按键的标识及目标操控模式;A sending module, configured to send key instructions to the system to be tested through remote procedure call RPC modules, where the key instructions include the identification of the target key and the target control mode; 接收模块,用于通过所述RPC模块接收所述待测试系统返回的状态信息;A receiving module, configured to receive status information returned by the system under test through the RPC module; 确定模块,用于根据所述状态信息及所述目标按键的标识,确定所述目标按键标识对应的测试结果。A determining module, configured to determine a test result corresponding to the target button identification based on the status information and the target button identification. 如权利要求10所述的装置,其特征在于,所述确定模块,包括:The device according to claim 10, characterized in that the determining module includes: 确定单元,用于响应于所述状态信息指示应用切换成功,确定切换至所述待测试系统后台的第一应用的类型;a determining unit configured to determine the type of the first application switched to the background of the system to be tested in response to the status information indicating that the application switching is successful; 调整单元,用于根据所述第一应用的类型,对所述第一应用与所述测试系统间的连接状态进行调整。An adjustment unit, configured to adjust the connection state between the first application and the test system according to the type of the first application. 如权利要求11所述的装置,其特征在于,所述调整单元,具体用于:The device according to claim 11, characterized in that the adjustment unit is specifically used for: 在所述第一应用为常驻应用的情况下,保持与所述第一应用间的连接;When the first application is a resident application, maintain the connection with the first application; 在所述第一应用为非常驻应用的情况下,断开与所述第一应用间的连接,并释放所述第一应用对应的状态信息。When the first application is a non-resident application, disconnect the connection with the first application and release the status information corresponding to the first application. 如权利要求10所述的装置,其特征在于,还包括:The device of claim 10, further comprising: 更新模块,用于响应于所述状态信息指示第二应用中焦点变化或页面变化,更新存储的所述第二应用对应的状态信息。An update module, configured to update the stored status information corresponding to the second application in response to the status information indicating a focus change or page change in the second application. 如权利要求10-13任一所述的装置,其特征在于,还包括:The device according to any one of claims 10 to 13, further comprising: 解析模块,用于对获取的测试用例进行解析,以确定所述目标按键的标识及所述目标操控模式。An analysis module is used to analyze the obtained test cases to determine the identification of the target button and the target control mode. 如权利要求10-13任一所述的装置,其特征在于,所述确定模块,具体用于:The device according to any one of claims 10 to 13, characterized in that the determining module is specifically used to: 响应于所述目标按键的标识为返回按键,根据所述状态信息中的所述待测试系统中当前显示的应用、页面和/或焦点所在的位置信息,确定所述返回按键对应的测试结果;或者,In response to the identification of the target button as the return button, determine the test result corresponding to the return button based on the currently displayed application, page and/or focus location information in the system to be tested in the status information; or, 响应于所述目标按键的标识为音量按键,根据所述状态信息中的所述待测试系统当前的音量,确定所述音量按键对应的测试结果;或者,In response to the identification of the target button as a volume button, determine the test result corresponding to the volume button according to the current volume of the system to be tested in the status information; or, 响应于所述目标按键的标识为任一应用关联的启动按键,根据所述状态信息中所述待测试系统中当前显示的应用,确定所述任一应用关联的启动按键对应的测试结果;或者,In response to the identification of the target button as a startup button associated with any application, determine the test result corresponding to the startup button associated with any application according to the application currently displayed in the system to be tested in the status information; or , 响应于所述目标按键的标识为主界面按键,根据状态信息中所述待测试系统中当前显示的界面,确定所述主界面按键对应的测试结果。In response to the identification of the target button as a main interface button, the test result corresponding to the main interface button is determined according to the interface currently displayed in the system to be tested in the status information. 一种跨系统的按键测试装置,其特征在于,被配置在待测试系统侧,所述装置包括:A cross-system key testing device, characterized in that it is configured on the side of the system to be tested, and the device includes: 接收模块,用于通过远程过程调用RPC模块接收测试系统发送的按键指令,其中,所述按键指令中包含目标按键的标识及目标操控模式;The receiving module is used to receive the key instructions sent by the test system through the remote procedure call RPC module, wherein the key instructions include the identification of the target key and the target control mode; 启动模块,用于启动监听进程;Start module, used to start the listening process; 操控模块,用于基于所述目标操控模式,对所述目标按键的标识对应的目标按键进行操控;A control module, configured to control the target button corresponding to the identification of the target button based on the target control mode; 发送模块,用于通过所述RPC模块,将所述监听进程获取的状态信息发送给所述测试系统。A sending module, configured to send the status information obtained by the listening process to the test system through the RPC module. 如权利要求16所述的装置,其特征在于,还包括:The device of claim 16, further comprising: 确定模块,用于根据所述目标按键的标识,确定待返回的所述状态信息。A determining module, configured to determine the status information to be returned according to the identification of the target button. 如权利要求17所述的装置,其特征在于,所述确定模块,具体用于:The device according to claim 17, characterized in that the determining module is specifically used to: 响应于所述目标按键的标识为返回按键,根据所述系统中当前显示的应用、页面及焦点所在的位置信息,生成所述状态信息;或者,In response to the identification of the target button as the return button, the status information is generated based on the currently displayed application, page and focus location information in the system; or, 响应于所述目标按键的标识为音量按键,根据所述系统当前的音量生成所述状态信息;或者,In response to the target button being identified as a volume button, generating the status information according to the current volume of the system; or, 响应于所述目标按键的标识为任一应用关联的启动按键,根据所述系统中当前显示的应用生成所述状态信息;或者,In response to the identification of the target button as a startup button associated with any application, generate the status information according to the application currently displayed in the system; or, 响应于所述目标按键的标识为主界面按键,根据所述系统中当前显示的界面生成所述状态信息。In response to the identification of the target button as a main interface button, the status information is generated according to the interface currently displayed in the system. 一种电子设备,其特征在于,包括:An electronic device, characterized by including: 处理器;processor; 用于存储所述处理器的可执行指令的存储器;memory for storing executable instructions for the processor; 其中,所述处理器被配置为调用并执行所述存储器存储的可执行指令,以实现如权利要求1-6中任一项所述的跨系统的按键测试方法、或实现如权利要求7-9中任一项所述的跨系统的按键测试方法。Wherein, the processor is configured to call and execute executable instructions stored in the memory to implement the cross-system key testing method as described in any one of claims 1-6, or to implement the method as claimed in claim 7- The cross-system key testing method described in any one of 9. 一种非临时性计算机可读存储介质,当所述存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行如权利要求1-6中任一项所述的跨系统的按键测试方法、或执行如权利要求7-9中任一项所述的跨系统的按键测试方法。A non-transitory computer-readable storage medium that, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform the cross-system keystrokes as described in any one of claims 1-6 test method, or perform the cross-system key testing method as described in any one of claims 7-9.
PCT/CN2022/096087 2022-05-30 2022-05-30 Cross-system key testing method and apparatus Ceased WO2023230798A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202280004254.3A CN117480496A (en) 2022-05-30 2022-05-30 A cross-system key testing method and device
PCT/CN2022/096087 WO2023230798A1 (en) 2022-05-30 2022-05-30 Cross-system key testing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/096087 WO2023230798A1 (en) 2022-05-30 2022-05-30 Cross-system key testing method and apparatus

Publications (1)

Publication Number Publication Date
WO2023230798A1 true WO2023230798A1 (en) 2023-12-07

Family

ID=89026547

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/096087 Ceased WO2023230798A1 (en) 2022-05-30 2022-05-30 Cross-system key testing method and apparatus

Country Status (2)

Country Link
CN (1) CN117480496A (en)
WO (1) WO2023230798A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130339930A1 (en) * 2012-06-18 2013-12-19 South Dakota Board Of Regents Model-based test code generation for software testing
CN104484273A (en) * 2014-12-19 2015-04-01 广州博冠信息科技有限公司 Test method for application program, device and system
CN108717393A (en) * 2018-05-16 2018-10-30 平安科技(深圳)有限公司 A kind of applied program testing method and mobile terminal
CN112463618A (en) * 2020-12-04 2021-03-09 斑马网络技术有限公司 Automated testing method, device, medium and equipment
CN112732576A (en) * 2021-01-08 2021-04-30 网易(杭州)网络有限公司 Automatic testing method, device and equipment based on user interface

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130339930A1 (en) * 2012-06-18 2013-12-19 South Dakota Board Of Regents Model-based test code generation for software testing
CN104484273A (en) * 2014-12-19 2015-04-01 广州博冠信息科技有限公司 Test method for application program, device and system
CN108717393A (en) * 2018-05-16 2018-10-30 平安科技(深圳)有限公司 A kind of applied program testing method and mobile terminal
CN112463618A (en) * 2020-12-04 2021-03-09 斑马网络技术有限公司 Automated testing method, device, medium and equipment
CN112732576A (en) * 2021-01-08 2021-04-30 网易(杭州)网络有限公司 Automatic testing method, device and equipment based on user interface

Also Published As

Publication number Publication date
CN117480496A (en) 2024-01-30

Similar Documents

Publication Publication Date Title
CN108174248B (en) Video playing method, video playing control device and storage medium
US9582245B2 (en) Electronic device, server and control method thereof
US11582321B2 (en) Service request processing method and related apparatus
KR20160014038A (en) Synchronizing device association data among computing devices
CN111901695B (en) Video content interception method, device and equipment and computer storage medium
CN106027631B (en) Data transmission method and device
US20190222793A1 (en) Smart television playing method and device
US10666707B2 (en) Nonconsecutive file downloading
CN119166555A (en) Method, device, equipment and storage medium for obtaining device information of access device
WO2020135131A1 (en) Network hotspot switching method, intelligent terminal and computer-readable storage medium
CN111343506B (en) Video searching method, device, system, server and readable storage medium
WO2023230798A1 (en) Cross-system key testing method and apparatus
CN110826048A (en) Resource request processing method, device and equipment
KR20200086212A (en) Communication method for virtual machines, electronic device, and non-transitory computer readable storage medium
US20230267050A1 (en) Backup management method and system, device, and mediumbackup management method and system, device, and medium
KR102072003B1 (en) Method and device for resource sharing between devices
US20240340492A1 (en) Video processing method and apparatus, and device and storage medium
CN112347275B (en) Media file push method, device, equipment and computer-readable storage medium
WO2023230797A1 (en) Cross-system test method and apparatus
KR102204223B1 (en) Apparatus, system, and method for remote connection
KR20220031871A (en) Apparatus and method for remote connection
CN108134718A (en) Method, apparatus, equipment and the computer storage media of discovering device
CN118689843A (en) Interaction log tracking method, related device, electronic device and readable storage medium
WO2023221001A1 (en) Web application program access method and apparatus
CN116028751A (en) Browser message interaction method, device, equipment and storage medium

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 202280004254.3

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22944138

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22944138

Country of ref document: EP

Kind code of ref document: A1