Application interface awakening method, device, equipment, storage medium and program product
By obtaining and utilizing the target description information of the application module to be tested on the cloud mobile platform, positioning and urging the application page to be tested, the problems of cumbersome operation and low testing efficiency of the existing cloud mobile platform mobile application test methods are solved, and more efficient is achieved test process.
Patent Information
- Application Number
- CN202411053114.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2044-08-02
AI Technical Summary
The existing mobile application testing methods based on cloud mobile phone platforms are cumbersome to operate and have low testing efficiency.
By obtaining the target description information of the application module to be tested, including text description information and image description information, positioning the module location of the application module to be tested, and performing a click operation after successful positioning to evoke the application page to be tested; otherwise , use the page evoking template library to automatically evoke the application page to be tested.
It improves the testing efficiency of the application page corresponding to the mobile application module, reduces the testing steps, and reduces the work burden of relevant personnel.
Smart Images

Figure CN118568006B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of cloud phone technology, and in particular to an application interface awakening method, device, equipment, storage medium and program product. Background Art
[0002] Traditional manual mobile application testing methods require evaluators to test on multiple real mobile devices, which is not only costly but also inefficient.
[0003] Cloud phone platform refers to a smart phone application platform based on cloud computing virtual technology and mobile Internet, which is increasingly widely used in the field of mobile application testing. However, the existing mobile application testing methods based on cloud phone platform are cumbersome to operate and have low testing efficiency. Summary of the invention
[0004] The present invention provides an application interface awakening method, device, equipment, storage medium and program product to improve the testing efficiency of application pages corresponding to mobile phone application modules.
[0005] According to one aspect of the present invention, a method for invoking an application interface is provided, the method comprising:
[0006] Obtain target description information of the application module to be tested from the front end of the cloud phone platform; wherein the target description information includes text description information and image description information;
[0007] When it is detected that the page native element of the application page to be tested corresponding to the application module to be tested does not exist in the text description information, locating the module position of the application module to be tested on the front end of the cloud phone platform according to at least one of the text description information and the image description information;
[0008] If the module position is successfully located, a click operation is performed at the module position to call up the application page to be tested on the front end of the cloud phone platform;
[0009] Otherwise, the application page to be tested is called up on the front end of the cloud phone platform according to the page identifier to be tested in the text description information and the page calling template library.
[0010] According to another aspect of the present invention, there is provided an application interface awakening device, the device comprising:
[0011] A description information acquisition module is used to obtain target description information of the application module to be tested from the front end of the cloud phone platform; wherein the target description information includes text description information and image description information;
[0012] A module position positioning module, used to locate the module position of the application module to be tested on the front end of the cloud phone platform according to at least one of the text description information and the image description information when it is detected that the page native element of the application page to be tested corresponding to the application module to be tested does not exist in the text description information;
[0013] The first page calling module is used to perform a click operation at the module location if the module location is successfully located, so as to call up the application page to be tested on the front end of the cloud phone platform;
[0014] The second page calling module is used to call up the application page to be tested on the front end of the cloud phone platform according to the page identifier to be tested in the text description information and the page calling template library.
[0015] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0016] at least one processor; and
[0017] a memory communicatively connected to at least one processor; wherein,
[0018] The memory stores a computer program that can be executed by at least one processor, and the computer program is executed by at least one processor so that the at least one processor can execute the application interface calling method of any embodiment of the present invention.
[0019] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the application interface awakening method of any embodiment of the present invention when executed.
[0020] According to another aspect of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the application interface awakening method according to any embodiment of the present invention is implemented.
[0021] The technical solution of the embodiment of the present invention obtains target description information of the application module to be tested from the front end of the cloud phone platform; wherein the target description information includes text description information and image description information; when it is detected that there is no page native element of the application page to be tested corresponding to the application module to be tested in the text description information, the module position of the application module to be tested is located at the front end of the cloud phone platform according to at least one of the text description information and the image description information; if the module position is successfully located, a click operation is performed at the module position to call up the application page to be tested at the front end of the cloud phone platform; otherwise, the application page to be tested is called up at the front end of the cloud phone platform according to the page to be tested identifier and the page call-up template library in the text description information. The above technical scheme provides the function of locating the application module to be tested on the cloud phone platform when the page native elements of the application page to be tested do not exist in the text description information, so that the application module to be tested can be quickly located on the front end of the cloud phone platform, and after successfully locating the module position of the application module to be tested, the application page to be tested can be quickly called up; at the same time, if the module position is not successfully located, the application page to be tested is automatically called up by calling the page call-up script corresponding to the page to be tested identifier in the page call-up template library, which reduces the workload of relevant personnel to a certain extent, reduces the test steps for the application page corresponding to the mobile application module, and thus improves the test efficiency for the application page corresponding to the mobile application module.
[0022] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0024] Figure 1 is a flowchart of an application interface awakening method provided according to Embodiment 1 of the present invention;
[0025] Figure 2 This is a flow chart of a method for invoking an application interface provided according to Embodiment 2 of the present invention;
[0026] Figure 3 is a structural diagram of an application interface awakening device provided according to Embodiment 3 of the present invention;
[0027] Figure 4It is a structural schematic diagram of an electronic device that implements the application interface awakening method of an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "target", "candidate", "first" and "second" in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] In addition, it should be noted that in the technical solution of the present invention, the collection, storage, use, processing, transmission, provision and disclosure of the page call template library, etc. are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0031] Embodiment 1
[0032] Figure 1 This is a flow chart of an application interface awakening method provided in the first embodiment of the present invention. This embodiment can be applied to the case where an application page corresponding to a mobile application module is enabled in a mobile application module testing scenario. The method can be executed by an application interface awakening device, which can be implemented in the form of hardware and / or software and can be configured in an electronic device. Figure 1 As shown, the method includes:
[0033] S101. Obtain target description information of the application module to be tested from the front end of the cloud phone platform; wherein the target description information includes text description information and image description information.
[0034] The application module to be tested refers to a mobile application module that needs to be tested. For example, the application module to be tested may be a contact list, or a leave application module. The target description information refers to information used to describe the application module to be tested.
[0035] Optionally, the text description information may include the page identifier to be tested, the module name, and the application file identifier of the application module to be tested; wherein the application file identifier may be one of the Android application package name (i.e., APK name) and the Apple program application file name (i.e., IPA name). The image description information may include the module icon of the application module to be tested. Among them, APK (Android application package) is the Android application package; IPA (iPhoneApplication) is the Apple program application file.
[0036] Specifically, after uploading the application software package of the application module to be tested on the cloud phone platform and the relevant personnel successfully log in to the cloud phone platform, the target description information of the application module to be tested input by the relevant personnel is obtained from the front end of the cloud phone platform. Among them, the application software package can be one of the APK software package and the IPA software package. For example, the application software package can be i8.newgrand.apk, and for another example, the application software package can be i8.newgrand.ipa. The relevant personnel can be the evaluators who evaluate the mobile application module, or they can be the developers who develop the mobile application module.
[0037] S102. When it is detected that there is no page native element of the application page to be tested corresponding to the application module to be tested in the text description information, locate the module position of the application module to be tested on the front end of the cloud phone platform according to at least one of the text description information and the image description information.
[0038] Among them, the application page to be tested refers to the page that needs to be tested corresponding to the application module to be tested. For example, if the application module to be tested is an address book, the application page to be tested is a specific page of the address book; if the application module to be tested is a leave module, the application page to be tested is a specific leave page. Page native elements refer to page elements written in native code. For example, page native elements can be page Activities. Page Activity is a window for users to interact with applications, which is essentially a screen display page. Among them, native code refers to machine language code written directly for specific computer hardware and operating systems.
[0039] Specifically, when it is detected that there is no page native element of the application page to be tested corresponding to the application module to be tested in the text description information, the module position of the application module to be tested can be located at the front end of the cloud phone platform according to the module name in the text description information; the module position of the application module to be tested can also be located at the front end of the cloud phone platform according to the module icon of the application module to be tested in the image description information; the module position of the application module to be tested can also be located at the front end of the cloud phone platform according to the module name in the text description information and the module icon of the application module to be tested in the image description information.
[0040] Optionally, when it is detected that a page native element of the application page to be tested exists in the text description information, a native awakening mechanism is called to awaken the application page to be tested on the front end of the cloud phone platform.
[0041] S103: If the module position is successfully located, a click operation is performed at the module position to call up the application page to be tested on the front end of the cloud phone platform.
[0042] Specifically, when the module position of the application module to be tested is successfully located, a click operation is performed at the module position to call up the application page to be tested corresponding to the application module to be tested on the front end of the cloud phone platform.
[0043] Optional methods for successfully locating the module include but are not limited to:
[0044] 1) Using the module name in the text description information as the index condition, the display position of the module name is retrieved on the front end of the cloud phone platform. If the display position of the module name is successfully retrieved, the module position is successfully located, and the display position of the module name is used as the module position of the application module to be tested.
[0045] 2) Using the module icon of the application module to be tested in the image description information as an index condition, the display position of the module icon is retrieved on the front end of the cloud phone platform. If the display position of the module icon is successfully retrieved, the module position is successfully located, and the display position of the module icon is used as the module position of the application module to be tested.
[0046] 3) Using the module name in the text description information as the first index condition, searching for the first display position of the module name on the front end of the cloud phone platform; using the module icon of the application module to be tested in the image description information as the second index condition, searching for the second display position of the module icon on the front end of the cloud phone platform; if the first display position and the second display position are successfully retrieved, the module position is successfully located, and the first display position and the second display position are fused (for example, averaged) to obtain a fused display position; the fused display position is used as the module position of the application module to be tested.
[0047] S104 , otherwise, calling up the application page to be tested on the front end of the cloud phone platform according to the page identifier to be tested in the text description information and the page calling template library.
[0048] The page call template library can be pre-set according to actual business needs; the page call template library refers to a database for recording page call scripts of application pages corresponding to various mobile application modules. The page call script refers to a script used to successfully call a page.
[0049] Specifically, if the module position is not successfully located, the page identifier to be tested in the text description information can be used as an index condition, and a candidate page identifier consistent with the page identifier to be tested can be retrieved from the candidate page identifiers in the page call-up template library, and the page call-up script corresponding to the candidate page identifier can be extracted from the page call-up template library; the page call-up script corresponding to the candidate page identifier is executed to call up the application page to be tested on the front end of the cloud phone platform.
[0050] The technical solution of the embodiment of the present invention obtains target description information of the application module to be tested from the front end of the cloud phone platform; wherein the target description information includes text description information and image description information; when it is detected that there is no page native element of the application page to be tested corresponding to the application module to be tested in the text description information, the module position of the application module to be tested is located at the front end of the cloud phone platform according to at least one of the text description information and the image description information; if the module position is successfully located, a click operation is performed at the module position to call up the application page to be tested at the front end of the cloud phone platform; otherwise, the application page to be tested is called up at the front end of the cloud phone platform according to the page to be tested identifier and the page call-up template library in the text description information. The above technical scheme provides the function of locating the application module to be tested on the cloud phone platform when the page native elements of the application page to be tested do not exist in the text description information, so that the application module to be tested can be quickly located on the front end of the cloud phone platform, and after successfully locating the module position of the application module to be tested, the application page to be tested can be quickly called up; at the same time, if the module position is not successfully located, the application page to be tested is automatically called up by calling the page call-up script corresponding to the page to be tested identifier in the page call-up template library, which reduces the workload of relevant personnel to a certain extent, reduces the test steps for the application page corresponding to the mobile application module, and thus improves the test efficiency for the application page corresponding to the mobile application module.
[0051] On the basis of the above embodiments, as an optional method of the embodiments of the present invention, after the application page to be tested is successfully invoked, the corresponding test framework of the application module to be tested can be automatically loaded according to the application file identifier of the application module to be tested and the current operating environment of the current cloud phone platform, thereby avoiding the occurrence of mobile phone system incompatibility problems during the testing of the application module to be tested, and there is no need to repeatedly test the same application module to be tested on mobile phones of different mobile phone systems, thereby improving the testing efficiency of the application module to be tested.
[0052] Embodiment 2
[0053] Figure 2 This is a flowchart of a method for invoking an application interface provided in Example 2 of the present invention. Based on the above example, this example further optimizes "invoking the application page to be tested on the front end of the cloud phone platform according to the page identifier to be tested in the text description information and the page invoking template library", and provides an optional implementation scheme. It should be noted that for the parts not described in detail in the examples of the present invention, please refer to the relevant descriptions of other examples. Figure 2 As shown, the method includes:
[0054] S201. Obtain target description information of the application module to be tested from the front end of the cloud phone platform; wherein the target description information includes text description information and image description information.
[0055] S202. When it is detected that there is no page native element of the application page to be tested corresponding to the application module to be tested in the text description information, locate the module position of the application module to be tested on the front end of the cloud phone platform according to at least one of the text description information and the image description information.
[0056] S203: If the module position is successfully located, a click operation is performed at the module position to call up the application page to be tested on the front end of the cloud phone platform.
[0057] S204: If the module position is not successfully located, then check whether the page identifier to be tested in the text description information exists in the page call template library.
[0058] It should be noted that the page identifier of the application page pre-stored in the page invocation template library is consistent with the page identifier of the application page in the actual mobile phone.
[0059] S205 , if it exists, extracting the target page calling script corresponding to the page identifier to be tested from the page calling template library according to the page identifier to be tested and the correspondence between the candidate page identifiers and the candidate page calling scripts in the page calling template library.
[0060] Among them, the candidate page identifier refers to the page identifier stored in the page call template library. The candidate page call script refers to the page call script stored in the page call template library. The target page call script refers to the script used to successfully call the application page to be tested. It should be noted that one candidate page identifier corresponds to one candidate page call script.
[0061] Specifically, if the page identifier to be tested in the text description information exists in the page call template library, the page identifier to be tested is used as an index condition, and a candidate page identifier that is consistent with the page identifier to be tested is retrieved from the candidate page identifiers in the page call template library as the target page identifier; then, based on the correspondence between the candidate page identifiers and the candidate page call scripts in the page call template library, the candidate page call script corresponding to the target page identifier is extracted from the page call template library as the target page call script corresponding to the page identifier to be tested.
[0062] S206, executing the target page calling script to call up the application page to be tested on the front end of the cloud phone platform.
[0063] The technical solution of the embodiment of the present invention obtains target description information of the application module to be tested from the front end of the cloud phone platform; wherein the target description information includes text description information and image description information; when it is detected that the page native element of the application page to be tested corresponding to the application module to be tested does not exist in the text description information, the module position of the application module to be tested is located at the front end of the cloud phone platform according to at least one of the text description information and the image description information; if the module position is successfully located, a click operation is performed at the module position to call up the application page to be tested at the front end of the cloud phone platform; if the module position is not successfully located, it is detected whether there is a page to be tested identifier in the text description information in the page call-up template library; if so, according to the page to be tested identifier and the correspondence between the candidate page identifier and the candidate page call-up script in the page call-up template library, a target page call-up script corresponding to the page to be tested identifier is extracted from the page call-up template library; the target page call-up script is executed to call up the application page to be tested at the front end of the cloud phone platform. The above technical scheme provides the function of locating the application module to be tested on the cloud phone platform when the page native elements of the application page to be tested do not exist in the text description information, so that the application module to be tested can be quickly located on the front end of the cloud phone platform, and after successfully locating the module position of the application module to be tested, the application page to be tested can be quickly called up; at the same time, if the module position is not successfully located, the application page to be tested is automatically called up by calling the page call-up script corresponding to the page to be tested identifier in the page call-up template library, which reduces the workload of relevant personnel to a certain extent, reduces the test steps for the application page corresponding to the mobile application module, and thus improves the test efficiency for the application page corresponding to the mobile application module.
[0064] On the basis of the above-mentioned embodiment, as an optional method of the embodiment of the present invention, if the page identifier to be tested does not exist in the page call-up template library, a page call-up query message is generated, and the page call-up query message is displayed on the front end of the cloud phone platform; response information to the page call-up query information is obtained; and according to the response information, the page call-up template library is updated.
[0065] The page call query information refers to information used to inquire about the page call method to be tested; optionally, the page call query information may include failure prompt information of page call failure. For example, the page call query information may be "page call failed, please ask whether to record manually". The response information refers to information responding to the page call query information, for example, the response information may be "record manually".
[0066] Optionally, updating the page call-up template library according to the response information may be: determining whether to jump to the manual recording interface according to the response information; if it is determined to jump to the manual recording interface, generating a page call-up script corresponding to the application page to be tested according to the operation steps for manually calling up the application page to be tested; and updating the page call-up template library according to the page call-up script.
[0067] The manual recording interface refers to an interface for manually recording the wake-up operation steps of the application page to be tested.
[0068] Specifically, a semantic analysis is performed on the response information. If the response information includes affirmative information for the manual recording response, the interface for manual recording is automatically jumped to start the recording function for manually calling up the application page to be tested, and the operation behaviors of relevant personnel in the manual recording interface to call up the application page to be tested are recorded, such as scrolling, clicking, sliding and other operation behaviors; and according to the operation steps of the relevant personnel to manually call up the application page to be tested, a page call-up script corresponding to the application page to be tested is generated; according to the corresponding storage relationship between the candidate page identifier and the candidate page call-up script in the page call-up template library, the page call-up script corresponding to the generated application page to be tested and the page identifier of the application page to be tested are stored in the page call-up template library, so as to facilitate the subsequent regression testing of the application page to be tested without the need for relevant personnel to manually call up the application page to be tested again, thereby improving the regression testing efficiency of the application page corresponding to the mobile application module.
[0069] Embodiment 3
[0070] Figure 3 This is a schematic diagram of the structure of an application interface awakening device provided in the third embodiment of the present invention. This embodiment can be applied to the case of enabling the application page corresponding to the mobile application module in the mobile application module test scenario. The device can be implemented in the form of hardware and / or software and can be configured in an electronic device. Figure 3 As shown, the device comprises:
[0071] The description information acquisition module 301 is used to obtain the target description information of the application module to be tested from the front end of the cloud phone platform; wherein the target description information includes text description information and image description information;
[0072] The module position positioning module 302 is used to locate the module position of the application module to be tested on the front end of the cloud phone platform according to at least one of the text description information and the image description information when it is detected that the page native element of the application page to be tested corresponding to the application module to be tested does not exist in the text description information;
[0073] The first page calling module 303 is used to perform a click operation at the module position if the module position is successfully located, so as to call up the application page to be tested on the front end of the cloud phone platform;
[0074] The second page invoking module 304 is used to, if not, invoking the application page to be tested on the front end of the cloud phone platform according to the page identifier to be tested in the text description information and the page invoking template library.
[0075] The technical solution of the embodiment of the present invention obtains target description information of the application module to be tested from the front end of the cloud phone platform; wherein the target description information includes text description information and image description information; when it is detected that there is no page native element of the application page to be tested corresponding to the application module to be tested in the text description information, the module position of the application module to be tested is located at the front end of the cloud phone platform according to at least one of the text description information and the image description information; if the module position is successfully located, a click operation is performed at the module position to call up the application page to be tested at the front end of the cloud phone platform; otherwise, the application page to be tested is called up at the front end of the cloud phone platform according to the page to be tested identifier and the page call-up template library in the text description information. The above technical scheme provides the function of locating the application module to be tested on the cloud phone platform when the page native elements of the application page to be tested do not exist in the text description information, so that the application module to be tested can be quickly located on the front end of the cloud phone platform, and after successfully locating the module position of the application module to be tested, the application page to be tested can be quickly called up; at the same time, if the module position is not successfully located, the application page to be tested is automatically called up by calling the page call-up script corresponding to the page to be tested identifier in the page call-up template library, which reduces the workload of relevant personnel to a certain extent, reduces the test steps for the application page corresponding to the mobile application module, and thus improves the test efficiency for the application page corresponding to the mobile application module.
[0076] Optionally, the second page calling module 304 is specifically used for:
[0077] Detect whether there is a page identifier to be tested in the text description information in the page call template library;
[0078] If it exists, then according to the page identifier to be tested and the correspondence between the candidate page identifiers and the candidate page invocation scripts in the page invocation template library, extract the target page invocation script corresponding to the page identifier to be tested from the page invocation template library;
[0079] Execute the target page call script to call up the application page to be tested on the front end of the cloud phone platform.
[0080] Optionally, the device further comprises:
[0081] The query information generation and display module is used to generate page call query information if the page identifier to be tested does not exist in the page call template library, and display the page call query information on the front end of the cloud phone platform;
[0082] A response information acquisition module is used to obtain response information to the page evoked query information;
[0083] The template library update module is used to update the page and call the template library according to the response information.
[0084] Optional, template library update module, specifically used for:
[0085] According to the response information, determine whether to jump to the manual recording interface;
[0086] In the case of determining to jump to the manual recording interface, generating a page calling script corresponding to the application page to be tested according to the operation steps of manually calling the application page to be tested;
[0087] Update the page call-up template library according to the page call-up script.
[0088] Optionally, the device further comprises:
[0089] The third page awakening module is used to call the native awakening mechanism to awaken the application page to be tested on the front end of the cloud phone platform when detecting that the page native elements of the application page to be tested exist in the text description information.
[0090] The application interface awakening device provided in the embodiment of the present invention can execute the application interface awakening method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing each application interface awakening method.
[0091] According to an embodiment of the present invention, the present invention also provides an electronic device, a readable storage medium and a computer program product.
[0092] Embodiment 4
[0093] Figure 4A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0094] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11 in communication, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, ROM 12 and RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0095] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0096] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the application interface awakening method.
[0097] In some embodiments, the application interface awakening method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the application interface awakening method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the application interface awakening method in any other appropriate manner (e.g., by means of firmware).
[0098] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0099] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0100] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0101] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0102] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0103] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0104] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0105] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for invoking an application interface, characterized in that: include: After uploading the application software package of the application module to be tested on the cloud phone platform and the relevant personnel successfully log in to the cloud phone platform, the target description information of the application module to be tested is obtained from the front end of the cloud phone platform; wherein the target description information includes text description information and image description information; In the case where it is detected that the page native element of the application page to be tested corresponding to the application module to be tested does not exist in the text description information, locating the module position of the application module to be tested on the front end of the cloud phone platform according to at least one of the text description information and the image description information; If the module position is successfully located, a click operation is performed at the module position to call up the application page to be tested on the front end of the cloud phone platform; Otherwise, calling up the application page to be tested on the front end of the cloud phone platform according to the page identifier to be tested and the page calling template library in the text description information; Among them, calling up the application page to be tested on the front end of the cloud phone platform according to the page identifier to be tested in the text description information and the page calling template library includes: Detecting whether there is a page identifier to be tested in the text description information in the page call template library; If it exists, extracting the target page calling script corresponding to the page identifier to be tested from the page calling template library according to the page identifier to be tested and the correspondence between the candidate page identifiers and the candidate page calling scripts in the page calling template library; The target page calling script is executed to call up the application page to be tested on the front end of the cloud phone platform.
2. The method according to claim 1, characterized in that The method further comprises: If the page identifier to be tested does not exist in the page call template library, page call query information is generated, and the page call query information is displayed on the front end of the cloud phone platform; Obtaining response information to the page evokes the query information; The page invocation template library is updated according to the response information.
3. The method according to claim 2, characterized in that The updating of the page call template library according to the response information includes: Determine whether to jump to the manual recording interface according to the response information; In the case of determining to jump to the manual recording interface, generating a page calling script corresponding to the application page to be tested according to the operation steps of manually calling the application page to be tested; According to the page invocation script, the page invocation template library is updated.
4. The method according to claim 1, characterized in that: The method further comprises: When it is detected that the page native element of the application page to be tested exists in the text description information, a native awakening mechanism is called to awaken the application page to be tested on the front end of the cloud phone platform.
5. An application interface awakening device, characterized in that: include: A description information acquisition module is used to upload the application software package of the application module to be tested on the cloud phone platform, and after the relevant personnel successfully log in to the cloud phone platform, obtain the target description information of the application module to be tested from the front end of the cloud phone platform; wherein the target description information includes text description information and image description information; A module position positioning module, used to locate the module position of the application module to be tested on the front end of the cloud phone platform according to at least one of the text description information and the image description information when it is detected that the page native element of the application page to be tested corresponding to the application module to be tested does not exist in the text description information; A first page calling module is used to perform a click operation at the module position if the module position is successfully located, so as to call up the application page to be tested on the front end of the cloud phone platform; A second page calling module is used to call up the application page to be tested on the front end of the cloud phone platform according to the page identifier to be tested in the text description information and the page calling template library; The second page calling module is specifically used for: Detecting whether there is a page identifier to be tested in the text description information in the page call template library; If it exists, extracting the target page calling script corresponding to the page identifier to be tested from the page calling template library according to the page identifier to be tested and the correspondence between the candidate page identifiers and the candidate page calling scripts in the page calling template library; The target page calling script is executed to call up the application page to be tested on the front end of the cloud phone platform.
6. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the application interface calling method described in any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the application interface invoking method described in any one of claims 1 to 4 when executed.
8. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the application interface invoking method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Cloud mobile phone application program testing method and device, equipment, medium and product
CN113821433A