CN113268416A - Application program testing method and device, storage medium and terminal - Google Patents

Application program testing method and device, storage medium and terminal Download PDF

Info

Publication number
CN113268416A
CN113268416A CN202110533018.8A CN202110533018A CN113268416A CN 113268416 A CN113268416 A CN 113268416A CN 202110533018 A CN202110533018 A CN 202110533018A CN 113268416 A CN113268416 A CN 113268416A
Authority
CN
China
Prior art keywords
application
text information
tested
test
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110533018.8A
Other languages
Chinese (zh)
Inventor
吴婕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202110533018.8A priority Critical patent/CN113268416A/en
Publication of CN113268416A publication Critical patent/CN113268416A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing

Abstract

The embodiment of the application discloses a method and a device for testing an application program, a storage medium and a terminal. According to the scheme, the automatic application page testing framework is designed, automatic testing is conducted on the to-be-tested application installed on the to-be-tested equipment, in the testing process, a user is simulated to click buttons, slide pages and the like on the to-be-tested application to obtain all application pages of the to-be-tested application, then text contents of all the pages are compared with preset text contents, a testing report is generated according to a comparison result, the whole automatic testing process is free of additional resource input, the labor cost is greatly reduced, and the software testing efficiency can be improved.

Description

Application program testing method and device, storage medium and terminal
Technical Field
The application relates to the technical field of computers, in particular to a method and a device for testing an application program, a storage medium and a terminal.
Background
The software test is an essential link in the software development process, and aims to find latent defects in software, reduce software development and maintenance cost and promote software quality improvement.
In the software testing process, besides performing conventional tests such as a function test, a pressure test, a performance test and the like on the application program, a tester needs to test the text of each page of the application program.
The existing text testing mode mainly depends on a tester to check, but for some application programs with more pages, the consumed labor cost is higher, and errors are easy to occur in the testing, so that the software testing efficiency is influenced.
Disclosure of Invention
The embodiment of the application provides a method and a device for testing an application program, a storage medium and a terminal, and can improve software testing efficiency.
The embodiment of the application provides a method for testing an application program, which comprises the following steps:
receiving a test instruction aiming at an application to be tested in a tested device, and executing a test script, wherein the test script is used for triggering the application to be tested to display an application page in the tested device;
acquiring text information to be detected in the application page;
matching the text information to be detected with a preset text information base according to the language type of the text information to be detected, wherein the preset text information base comprises preset text information of the application page;
and generating a test result of the application to be tested based on the matching result.
Correspondingly, the embodiment of the present application further provides a device for testing an application program, including:
the device comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving a test instruction aiming at an application to be tested in a tested device and executing a test script, and the test script is used for triggering the application to be tested to display an application page in the tested device;
the first acquisition unit is used for acquiring text information to be detected in the application page;
the matching unit is used for matching the text information to be detected with a preset text information base according to the language type of the text information to be detected, wherein the preset text information base comprises preset text information of the application page;
and the generating unit is used for generating a test result of the application to be tested based on the matching result.
In some embodiments, the matching unit comprises:
the identification subunit is used for identifying the language type of the text information to be detected to obtain a target language type;
the first obtaining subunit is configured to obtain, based on the target language type, preset text information corresponding to the application page from a preset text information base, to obtain the target text information;
and the matching subunit is used for matching the text information to be detected with the target text information.
In some embodiments, the apparatus further comprises:
the second obtaining unit is used for obtaining a text information set corresponding to the application page from the preset text information base based on the page identifier of the application page;
the dividing unit is used for dividing the text information set into a plurality of candidate text information according to a plurality of preset language types, wherein different candidate text information correspond to different preset language types.
In some embodiments, the obtaining subunit is specifically configured to:
and acquiring corresponding candidate text information from a plurality of candidate text information based on the target language type to obtain the target text information, wherein the candidate text information and the target text information have the same language type.
In some embodiments, the apparatus further comprises:
a third obtaining unit, configured to obtain the number of application pages of the application to be tested;
the determining unit is used for determining the number of the tested devices according to the number of the application pages if the number of the application pages is larger than the preset number;
and the establishing unit is used for establishing connection with the number of the tested devices.
In some embodiments, a receiving unit comprises:
the dividing subunit is used for dividing the application page of the application to be tested based on the number of the tested equipment;
and the triggering subunit is used for triggering the application to be tested to display different application pages in different pieces of equipment to be tested according to the division result, and the application pages displayed in the different pieces of equipment to be tested form all the application pages of the application to be tested.
In some embodiments, the trigger subunit is specifically configured to:
acquiring an automatic test case corresponding to each application page of the application to be tested;
and executing the automatic test case corresponding to the application page through the tested equipment corresponding to the application page.
In some embodiments, the generating unit comprises:
the second obtaining subunit is configured to obtain preset text information corresponding to the application page if the matching result indicates that the matching between the text information to be detected and a preset text information base fails;
and the generating subunit is used for generating a text information comparison table according to the text information to be tested and the preset text information to obtain the test result.
In some embodiments, the apparatus further comprises:
the detection unit is used for detecting the application to be detected through an anomaly detection algorithm in the process of executing the test script;
and the adding unit is used for generating abnormal information when the failure of switching and displaying the application page of the application to be tested is detected, and adding the abnormal information into the test result.
Correspondingly, the embodiment of the application also provides a storage medium, wherein the storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the application testing method.
Correspondingly, the embodiment of the application also provides a terminal, which comprises a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the test method of the application program.
According to the embodiment of the application, the automatic testing framework of the application page is designed, the to-be-tested application installed on the to-be-tested device is automatically tested, in the testing process, a user is simulated to click buttons, slide pages and the like on the to-be-tested application, all application pages of the to-be-tested application are obtained, text contents of all pages are compared with preset text contents, a testing report is generated according to a comparison result, the whole automatic testing process is free of additional resource input, the labor cost is greatly reduced, and the software testing efficiency can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is an application scenario diagram of a testing method for an application program according to an embodiment of the present application.
Fig. 2 is a schematic flowchart of a method for testing an application according to an embodiment of the present disclosure.
Fig. 3 is a schematic application page diagram of a method for testing an application program according to an embodiment of the present application.
Fig. 4 is a flowchart illustrating another application testing method according to an embodiment of the present application.
Fig. 5 is a block diagram of a testing apparatus for an application according to an embodiment of the present disclosure.
Fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a method and a device for testing an application program, a storage medium and a terminal. Specifically, the terminal provided in the embodiment of the present application may include a test device and a device under test. The testing device can be a computer or other devices, and the tested device can be a mobile phone or other devices.
For example, referring to fig. 1, fig. 1 is a schematic view of an application scenario of a testing method for an application program according to an embodiment of the present application. FIG. 1 provides a test system that includes a test device and a device under test that may be wired.
The test equipment can receive a test instruction aiming at the application to be tested in the tested equipment, execute a test script and trigger the application to be tested to display an application page in the tested equipment; acquiring text information to be detected in an application page; matching the text information to be detected with a preset text information base according to the language type of the text information to be detected; and generating a test result of the application to be tested based on the matching result.
The above example of fig. 1 is only an example of a system architecture for implementing the embodiment of the present invention, and the embodiment of the present invention is not limited to the system architecture shown in fig. 1, and various embodiments of the present invention are proposed based on the system architecture.
Based on the above problems, embodiments of the present application provide a method and an apparatus for testing an application program, a storage medium, and a terminal, which can improve software testing efficiency. The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for testing an application according to an embodiment of the present disclosure. Taking the application of the test method of the application program to the test equipment as an example, the specific flow of the test method of the application program may be as follows:
101. and receiving a test instruction aiming at the application to be tested in the tested equipment and executing the test script.
The device to be tested refers to a device on which an application to be tested is installed, and for example, the device to be tested may be a mobile phone or the like. The device under test may install the application under test in a variety of ways.
For example, the device to be tested may download the installation package of the application to be tested from the internet, or share the installation package of the application to be tested through a third-party device, and then install the application to be tested.
The application to be tested refers to application software needing software testing, the software testing is a process of operating or determining a certain software system by using a manual or automatic means, and the purpose of the software testing method comprises the following steps: the method comprises the steps of finding errors in a software program, whether the software meets design requirements and whether the software meets technical requirements to be met in a contract, and carrying out relevant verification and software quality evaluation. Finally, the purpose of handing the high-quality software system to the user is achieved.
In the embodiment of the application, the testing device may be installed with programming software, and the programming software may be used for a tester to write a testing script.
The test script is used for triggering the application to be tested to display the application page in the tested equipment. A test script generally refers to a series of instructions for a particular test that may be executed by an automated test tool. To improve the maintainability and reusability of test scripts, they must be built before they are executed. A test script is computer readable instructions that automatically perform a test procedure (or a portion of a test procedure). The test scripts can be created (recorded) or automatically generated using a test automation tool, or can be implemented using programming language programming, or can be implemented by combining the first three approaches.
The automatic testing method and the automatic testing device can be used for carrying out automatic testing, and the automatic testing is a process for converting testing behaviors driven by people into machine execution. Typically, after a test case is designed and passes review, the test is performed step by a tester according to the procedures described in the test case, resulting in a comparison of the actual results with the expected results. In the process, in order to save manpower, time or hardware resources, the testing efficiency is improved.
For example, in the embodiment of the application, an automation testing framework such as a UI (user interface) of airtest/app and the like may be used to perform automation operations on the application to be tested, such as simulating behaviors of clicking a button, sliding a page, switching a screen and the like, and through a UI control instruction, functions of entering a secondary interface, a tertiary interface, turning pages and the like are realized, and then text information of all application pages in the application to be tested is acquired.
In some embodiments, in order to save the test time, after the step "receiving the test instruction for the application to be tested in the device under test" and before the step "executing the test script", the following steps may be further included:
acquiring the number of application pages of the application to be tested;
if the number of the application pages is larger than the preset number, determining the number of the tested devices according to the number of the application pages;
establishing connections with the number of devices under test.
The number of application pages refers to all application pages of the application to be tested, for example, the application to be tested may include 10 application pages, and the number of application pages of the application to be tested is as follows: 10.
when the software of the application to be tested is tested, the text of each application page of the application to be tested needs to be tested, when the number of the application pages is small, the time for completing the test of all the application pages through one tested device is not too long, but if the number of the application pages of the application to be tested is large, the time for completing the test of all the application pages through one tested device is possibly long, so when the number of the application pages of the application to be tested is large, different application pages of the application to be tested can be tested through a plurality of tested devices simultaneously, and the test of all the application pages of the application to be tested is completed quickly.
The preset number is used for detecting whether different application pages of the application to be tested need to be tested through a plurality of tested devices, for example, the preset number may be: and 8, the preset number can be set according to the actual test condition, and is not limited herein.
Specifically, when the page number of the application pages to be tested is less than or equal to the preset number, the test on all the application pages to be tested can be completed through one tested device; when the number of the application pages of the application to be tested is larger than the preset number, synchronous testing of all the application pages of the application to be tested can be completed through the multiple tested devices.
For example, the preset number may be: 8, the number of the obtained application pages of the application to be tested can be 10, and if the number of the application pages of the application to be tested is larger than the preset number, the application pages of the application to be tested can be synchronously tested through the multiple pieces of equipment to be tested.
Specifically, the number of the devices to be tested can be determined according to the number of application pages of the application to be tested. For example, the preset number may be used as the number of application pages tested by each device under test.
For example, if the number of application pages may be 20 and the preset number may be 8, the number of test devices may be determined as follows: determining the device under test may include: the first tested device, the second tested device and the third tested device can synchronously test the application page of the application to be tested through the 3 tested devices.
And then, connection with the tested device is established, and a tester can connect the testing device with the tested device in a data line connection mode so as to ensure that the testing device controls the tested device to execute the testing script.
In some embodiments, the device under test may be provided with different operating systems, and in order to complete the test, the device under test of different operating systems may be connected in different ways. The operating system may include at least a first operating system and a second operating system. The connection means may include at least a first connection means and a second connection means.
If the operating system of the tested device is the first operating system, the first operating system can be connected with the tested device in a first connection mode; if the operating system of the device to be tested is the second operating system, the device to be tested can be connected with the device to be tested in a second connection mode. To ensure that data transmission of the test device and the device under test is achieved.
For example, the first operating system may be an android system, the test device and the tested device may be connected through an adb uiautomator, the adb uiautomator refers to a mode for connecting an android mobile phone, the uiautomator is an automatic test tool for controlling an android ui, and the uiautomator is called by calling a relevant instruction of the uiautomator under an adb shell. The second operating system may be an iOS system, and the test device and the device under test may be connected through appium (an application program) to control the operation of the application under test at the device under test.
After the connection between the test device and the device under test is completed, the test can be performed on the application under test. Specifically, the step "execute the test script" may include the following operations:
dividing the application pages of the application to be tested based on the number of the devices to be tested;
and triggering the application to be tested to display different application pages in different tested equipment according to the division result, wherein the application pages displayed in the different tested equipment form all the application pages of the application to be tested.
Specifically, the application pages may be divided according to the number of the devices to be tested, for example, in order to ensure that each device to be tested completes the same workload, all the application pages of the application to be tested may be evenly distributed to each device to be tested.
For example, the number of application pages may be 21, and the number of test devices may be: determining the device under test comprises: the first tested device, the second tested device and the third tested device divide the 1 st to 21 st application pages of the applications to be tested according to an average division mode, and the obtained division result is as follows: 1 st to 7 th application pages, 8 th to 14 th application pages, and 15 th to 21 th application pages. Then, 1 st to 7 th application pages are tested synchronously through the first tested equipment, 8 th to 14 th application pages are tested through the second tested equipment, and 15 th to 21 th application pages are tested through the third tested equipment. Thus, test time can be saved.
In some embodiments, in order to improve the test efficiency, the step of "triggering the application to be tested to show different application pages in the number of devices under test" may include the following operations:
acquiring an automatic test case corresponding to each application page of the application to be tested;
and executing the automatic test case corresponding to the application page through the tested equipment corresponding to the application page.
The test cases are a set of conditions or variables in the software test, and a tester determines whether the application software or the software system works correctly according to the test cases. The method of determining whether a software program or system passes a test is called a test criterion. Specifically, the automated test case includes a test step of testing the application to be tested.
In this embodiment of the present application, the application page display content of the application to be tested may be tested, and the automated test case may include: and automatically operating the application page elements, such as clicking a button, switching pages, sliding pages and the like, so as to simulate the real operation scene of a tester. The tester can compile test scripts according to the automated test cases.
When different application pages of the application to be tested are synchronously tested by the multiple pieces of tested equipment, that is, the tested equipment is controlled to execute the test steps in the automatic test cases corresponding to the different application pages, and finally the test of the display contents of all the application pages of the application to be tested is realized.
102. And acquiring text information to be detected in the application page.
The text information to be detected refers to the text content displayed in the application page.
For example, please refer to fig. 3, and fig. 3 is a schematic application page diagram of a testing method for an application program according to an embodiment of the present application. Fig. 3 may be a top page of an application to be tested, and the application page shown in fig. 3 includes four controls: the display method comprises a startup page control, a shutdown page control, a setting page control and a mode selection page control, wherein the display page of the application to be tested can be switched through touch operation on the controls. Wherein, the text information to be measured includes: "power-on page", "power-off page", "setup page", and "mode selection page".
103. And matching the text information to be detected with a preset text information base according to the language type of the text information to be detected.
The language type refers to languages used in different countries, and the language type may include a plurality of languages, for example, the language type may include: chinese, english, french, german, etc.
In the embodiment of the application, the application to be tested can have application pages of multiple language versions of the application to be tested, and the texts corresponding to the language types can be displayed according to the set language types.
For example, in fig. 3, the language type of the application to be tested may be set to be chinese, and then the application page shown in fig. 3 is a chinese text.
Wherein, predetermine the text information base and include: and presetting text information of all application pages of the application to be tested.
For example, the application to be tested includes a first application page, a second application page, and a third application page. The language types supported by the application to be tested may include: chinese, english, and french, etc. The preset text information base includes: the method comprises the following steps of (1) Chinese text of a first application page, English text of the first application page and French text of the first application page; the Chinese text of the second application page, the English text of the second application page and the French text of the second application page; the Chinese text of the third application page, the English text of the third application page and the French text of the third application page.
In some embodiments, in order to avoid increasing workload in the test process by matching the text information to be tested with all the text information in the preset text information base one by one in the test process, the step "matching the text information to be tested with the preset text information base according to the language type of the text information to be tested" may include the following operations:
identifying the language type of the text information to be detected to obtain a target language type;
acquiring preset text information corresponding to the application page from a preset text information base based on the target language type to obtain the target text information;
and matching the text information to be detected with the target text information.
Specifically, the text information to be detected can be identified by a text identification technology, and the text identification includes: collecting character information, analyzing and processing information, classifying and judging information, and the like. Wherein, a template matching method can be adopted when classifying the text information.
For example, the language type of the text information to be detected, that is, the target language type, may be determined by performing character acquisition on the acquired text information to be detected, performing correlation matching on the acquired characters and given standard characters (templates) of each category, calculating the degree of similarity between the input characters and each template, and taking the category with the largest degree of similarity as the recognition result.
Further, after the target language type of the text information to be detected is determined, the preset text information corresponding to the target language type of the page to be applied can be obtained, and then the text information to be detected is matched with the preset text information.
In some embodiments, in order to improve the matching efficiency of the text information, before the step "matching the text information to be tested with a preset text information base according to the language type of the text information to be tested", the following steps may be further included:
acquiring a text information set corresponding to the application page from the preset text information base based on the page identifier of the application page;
and dividing the text information set into a plurality of candidate text information according to a plurality of preset language types, wherein different candidate text information correspond to different preset language types.
The text information set represents all the text information corresponding to the application page. The page identifier refers to different identifiers set for different application pages to distinguish the different application pages, for example, the application to be tested includes: the home page, the startup page, the shutdown page, and the like may be set to have a page identifier of the home page as the "home page", a page identifier of the startup page as the "startup page", and a page identifier of the shutdown page as the "shutdown page". Correspondingly, the corresponding information of the application page is stored in the preset text information base correspondingly according to the page identification of the application page.
For example, the application page may be a first application page, and the language types supported by the application to be tested may include: chinese, english, and french, etc. The text information set corresponding to the first application page includes: the Chinese text of the first application page, the English text of the first application page and the French text of the first application page.
The preset language type, that is, the language type supported by the application to be tested, may be designed by a developer in the application design stage.
Specifically, the text information set is divided according to a preset language type, that is, the text information corresponding to the same language type in the text information set is divided into a candidate text information.
For example, for a text information set corresponding to an application page, dividing a chinese text of the application page into first candidate text information, dividing an english text of the application page into second candidate text information, and dividing a french text of the application page into third candidate text information, so as to obtain a plurality of candidate text information corresponding to the application page.
Further, the step "obtaining preset text information corresponding to the application page from a preset text information library based on the target language type to obtain the target text information" may include the following operations:
and acquiring corresponding candidate text information from a plurality of candidate text information based on the target language type to obtain the target text information, wherein the candidate text information and the target text information have the same language type.
For example, the application page is a first application page, the target language type of the text information to be detected of the first application page can be identified as English, the English candidate text information of the first application page is obtained, and then the text information to be detected is matched with the preset text information in the English candidate text information, so that the preset text information matched with the text information to be detected can be quickly determined from a preset text information base, and the matching efficiency of the text information is improved.
104. And generating a test result of the application to be tested based on the matching result.
The test result at least comprises a test report of the application to be tested, and the test report is the text information to be tested, which is recorded and failed to be matched with the preset text information, so that a tester can conveniently and quickly find the problem of the application to be tested.
In some embodiments, in order to improve the testing efficiency, the step of "generating the testing result of the application to be tested based on the matching result" may include the following operations:
if the matching result indicates that the matching between the text information to be detected and a preset text information base fails, acquiring preset text information corresponding to the application page;
and generating a text information comparison table according to the text information to be tested and the preset text information to obtain the test result.
For example, acquiring text information to be tested of the application page includes: "Bot page", "Close page", "Setting page", and "Mode selection page", the preset text information of the application page is: the matching failure of the text information to be detected "Bot page" and the preset text information "Boot page" can be determined by matching the text information to be detected with the preset text information.
The text information comparison table comprises wrong text information in the displayed application page, namely the wrong text information is not consistent with the expected text information, and the wrong text information and the expected text information corresponding to the wrong text information are recorded.
For example, please refer to table 1, where table 1 is a text information comparison table provided in the embodiments of the present application.
Erroneous text information to be tested Prospective languageThis information
Bot page Boot page
Cloe page Close page
Mode selction page Mode selection page
TABLE 1
In table 1, the text information to be tested that is wrong in the test process is recorded, and the wrong text information to be tested includes: "Bot page", "Cloe page", "Mode selection page"; then obtaining expected text information corresponding to each wrong text information to be detected, and obtaining a corresponding table of the wrong text information and the expected text information: "Bot page" corresponds to expected text information "Boot page", "Close page" corresponds to expected text information "Close page", and "Mode selection page" corresponds to expected text information "Mode selection page". By the method, the information which is inconsistent with the expected result in the test process is recorded, and the error information and the expected information are correspondingly recorded, so that the tester can conveniently and quickly find out the problem, and the test time is saved.
In some embodiments, in order to detect the software operation condition simultaneously, the method may further include the steps of:
detecting the application to be detected through an anomaly detection algorithm in the process of executing the test script;
and when detecting that the application page to be tested is failed to be switched and displayed, generating abnormal information, and adding the abnormal information into the test result.
The anomaly detection algorithm is an anomaly detection tool provided in the programming software, and can be used for detecting an anomaly condition occurring in the software running process, for example, the anomaly condition may include: software flash back, page display failure, etc. The testing personnel can adjust the parameters of the abnormality detection tool according to the running parameters of the application to be detected, so that the abnormality detection can be conveniently carried out on the specific application to be detected.
In the embodiment of the present application, since all application pages of the application to be tested need to be displayed in the test process, a tester can design, by using an anomaly detection tool, a pair of: software flash back, and exception detection of page switching failures. Furthermore, in the test process, the running of the application to be tested can be detected while the text information of the application page is tested, when the abnormal condition of the application to be tested is detected, the abnormal information can be generated,
for example, in the test process, when it is detected that the application to be tested fails to switch from the current application page to the next application page, the abnormal information may be generated as follows: and the abnormal information is added into the test result so that the tester can check the abnormal information and correct the problem.
The embodiment of the application discloses a test method of an application program, which comprises the following steps: receiving a test instruction aiming at an application to be tested in the tested equipment and executing a test script; acquiring text information to be detected in an application page; matching the text information to be detected with a preset text information base according to the language type of the text information to be detected; and generating a test result of the application to be tested based on the matching result. The automatic testing framework of the application page is designed, automatic testing is conducted on the to-be-tested application installed on the to-be-tested device, in the testing process, a user is simulated to click buttons, slide pages and the like on the to-be-tested application to obtain all application pages of the to-be-tested application, then text contents of all the pages are compared with preset text contents, a testing report is generated according to a comparison result, the whole automatic testing process is free of additional resource investment, labor cost is greatly reduced, and software testing efficiency can be improved.
Referring to fig. 4, fig. 4 is a schematic flowchart of another application testing method according to an embodiment of the present disclosure. Taking the application program testing method applied to the testing terminal and the tested terminal as an example, wherein the testing terminal can be a computer, and the tested terminal can be a mobile phone. The specific test method of the application program can be as follows:
201. the test terminal obtains a text translation summary table of the application to be tested and all application pages of the application to be tested.
The text translation summary table can be designed in advance, and the content of the text translation summary table comprises the following components: and the multi-language translation results corresponding to all texts in the application to be tested are correct translation results defined by the product end of the application to be tested.
For example, the application to be tested may be an intelligent home control application, and an application page of the intelligent home control application may include: a power-on page, a power-off page, a mode selection page, a setting page, and the like. The language types that this intelligent house control application can support include: chinese, English, German, etc. The text translation table corresponding to the smart home control application includes: chinese text of the starting page, English text of the starting page and German text of the starting page; chinese text of the closed page, English text of the closed page and German text of the closed page; chinese text of the mode selection page, English text of the mode selection page and German text of the mode selection page; chinese text of a set page, English text of a set page, German text of a set page.
In the embodiment of the application, the text translation summary table of the application to be tested can take Chinese as a reference, and provides translation results of a plurality of national languages. Therefore, the automatic test case is written according to the specific content of the application page. For example, taking the smart home control application as an example, the smart home control application can be separately compiled according to the basic contents of the smart home control application, such as a shutdown page, a startup page, a mode selection page, a wind speed selection page, a timing page, a setting page, and the like, and a control policy is set according to each application page scene, where the control policy includes: covering all pages of the function according to the interactive logic of the intelligent home control application; according to the test execution flow, decoupling of each test scene is achieved (decoupling means that each test case does not interfere with each other, and the method and the device can achieve independent testing of a certain application page in the intelligent home control application, do not need to cover all application pages all at every time, can reduce operation steps), and do not affect testing of other scenes when the operation of any test scene is performed.
202. And the test terminal generates a data driving table corresponding to each application page according to the text translation summary table.
Wherein the data driving table includes: and presetting text information when any application page of the application to be tested corresponds to one language type. The data driving table aims at a translation result of a text to be detected in each test case, for example, a home page of an application to be detected, and then the data driving table of the home page contains all preset text information of the home page.
Specifically, the chinese translation result of each text in each application page of the application to be tested may be determined first, and the data-driven table may be established according to the chinese representation. The data-driven table may be named as a current application page, such as a power-off page, a power-on page, a mode selection page, and the like. Taking the boot page as an example, the data driving table content corresponding to the boot page of the application to be tested includes: the method comprises the steps of shutdown, mode, wind speed, energy conservation, wind direction and sleeping content, different pages are switched according to the mode, and Chinese texts corresponding to all texts can be counted.
Further, the Chinese text fields in the data driven table are the same for different language types. According to the scheme, each Chinese field in the data driving table can be automatically detected by operating the data driving table updating codes, and the translation result of the corresponding language in the translation summary table is automatically updated to each data driving table, so that the mapping relation between each text in the application page to be tested and the corresponding standard translation result is established.
The updating code of the data driving table is mainly used for copying the content of the corresponding field in the text translation summary table to the data driving table by running the code. For example, the home page of the application to be tested may include controls of power on, power off, mode selection, and timing, and then the data driving table corresponds to the chinese fields of the controls, and each field has a corresponding translation result. The data driving table updating code can judge the language type of the current application page (can judge the naming of the document), then finds the corresponding language translation result of the Chinese field in the text translation summary table and copies the language translation result into the data driving table, so that the data driving tables of all language types can be obtained by changing the naming of the document without manually searching in the translation summary table, and the efficiency is improved.
For example, the data-driven table update code is designed as follows:
Figure BDA0003068630280000161
Figure BDA0003068630280000171
the implementation logic of the update codes of the data-driven table is to traverse all contents in the text translation summary table and find the corresponding translation result under the Chinese field of the text contents of the application page.
203. And the testing terminal establishes data connection with the tested terminal.
Specifically, the tester may connect the terminal to be tested to the test terminal through a USB (Universal Serial Bus) data line, so as to ensure that the terminal to be tested can be controlled by the test terminal using the automation framework. The automation framework applied by the embodiment of the application can be a unittest framework.
For example, if the running system of the tested terminal is an android system, before the running system is connected with the test terminal, it is ensured that the developer mode of the tested terminal is started, the running system is connected to the tested terminal by using a data line, and the running system is connected through an adb ui automation; if the running system of the tested terminal is an iOS system, the measured terminal can be connected by using appium, so that data transmission can be realized. In order to ensure the stability of connection in the test process, a data line connection mode is selected. And then, the screen lightening function of the tested terminal can be started, and the tested terminal is ensured to be always in a monitoring state under the condition that the battery electric quantity of the tested terminal is sufficient.
204. And the test terminal executes the test script and triggers the application to be tested to display the application page at the tested terminal.
Wherein, the test script is written in advance for the tester. In the embodiment of the application, a Python (Python is a cross-platform computer programming language) language can be used as a programming language, and programming software, airtest and a poco third-party library are installed on a test terminal.
Specifically, an airtest IDE can be used to locate an application page element of an application to be tested, a UI automation test script is compiled, and the application page element is automatically operated through the test script, for example: and clicking a screen button, switching pages, sliding a screen and the like to simulate the real operation scene of a tester.
Furthermore, the function is clicked through a control in the poco library, the action of clicking of the tester is simulated, the shutdown page of the application to be tested is switched to the startup page to be displayed, and for other pages, the function is controlled according to the test scene combination to simulate the operation process of the tester. The control functions used primarily are shown in the following code:
poco (text) exists () used for judging whether text in an application page exists;
poco (name). click (), for clicking the control by the control name;
click (pos) for clicking according to the coordinate point of the control on the screen of the terminal to be tested
A control;
swipe (x, y) for sliding from coordinate point x to coordinate point y of an application page displayed by a terminal under test.
The test personnel of the embodiment can design a group of automatic test cases and a data driving table to be multiplexed in all language tests, and for different languages, different parts in the test cases only exist in translation results corresponding to Chinese fields in the data driving table. The method can automatically update the translation language corresponding to each Chinese field in the data driving table by executing the data driving table updating code. By executing the test script, the application page corresponding to each language type is detected, and the workload of testers is reduced.
205. The test terminal obtains text information to be tested of the application page, and matches the text information to be tested with the data driving table to obtain a matching result.
By executing the test script, the application to be tested displays each application page in the terminal to be tested, and the text information of each application page during display can be acquired, that is, the text information to be tested of the application page can be acquired.
For example, in the process of executing the automated test case, the acquired text information to be tested of each application page is compared with the correct translation result in the data driving table corresponding to the application page, that is, the text information to be tested is matched with the data driving table, so as to obtain a matching result.
206. And the test terminal generates a test report according to the matching result and judges whether the test report is normal or not.
Wherein, the content that the test result contains is: the checked translated text is not found, the test case of the application page fails to be executed, and all text contents of the application page are saved.
For example, if it is detected that a text in the text information to be tested is inconsistent with the correct translation result in the data driven table, it may be determined that the test case corresponding to the application page fails to be executed. Then the chinese field corresponding to the text whose result is inconsistent will be recorded in the data driven table. The text which is not detected in the specific data driving table is given in the test report, so that the text which is in error in the application page is determined and recorded in the test report.
In the whole automatic test process, the test personnel do not need to intervene, and all test cases are completed through the operation of the test terminal. And after the test is finished, the automatic test script generates a final test report and a test log and stores the final test report and the test log in the local.
The test log records the log of the running of the automatic test script, the test report records the test result of each application page to be tested when the application page is displayed in different language types, and each language type corresponds to one test report.
Furthermore, the tester can check the test report to confirm whether the result of the test report is normal. If the result of the test report indicates that the test is normal, go to step 207; if the results of the test report indicate that the test is not normal, step 208 is performed.
207. And the test terminal stores the test report.
For example, if the result of the test report indicates that the test is normal, the tester can locate the wrong text of the application page of the application to be tested according to the test result given by the test report and submit the corresponding defect, thereby completing the automated test of the application to be tested.
208. And the test terminal generates abnormal information.
If the abnormal result exists, whether the problem is the problem of the test case and the data driving table is determined, the problem is timely modified, and the test is carried out again.
The embodiment of the application discloses a method for testing an application program, which comprises the steps of acquiring a text translation summary table of an application to be tested and all application pages of the application to be tested through a test terminal; the test terminal generates a data driving table corresponding to each application page according to the text translation summary table; the testing terminal establishes data connection with the tested terminal; the test terminal executes the test script and triggers the application to be tested to display an application page at the tested terminal; the test terminal acquires text information to be tested of the application page, and matches the text information to be tested with the data driving table to obtain a matching result; the test terminal generates a test report according to the matching result and judges whether the test report is normal or not; the test terminal saves the test report; and the test terminal generates abnormal information. Therefore, the software testing efficiency can be improved.
In order to better implement the testing method of the application program provided by the embodiment of the present application, the embodiment of the present application further provides a device based on the testing method of the application program. The terms are the same as those in the above-mentioned test method of the application program, and the details of the implementation can be referred to the description in the method embodiment.
Referring to fig. 5, fig. 5 is a block diagram of an application testing apparatus according to an embodiment of the present disclosure, which can be applied to a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palm computer, a Portable Media Player (PMP), and a fixed terminal such as a desktop computer, and the apparatus includes:
a receiving unit 301, configured to receive a test instruction for an application to be tested in a device under test, and execute a test script, where the test script is used to trigger the application to be tested to display an application page in the device under test;
a first obtaining unit 302, configured to obtain text information to be detected in the application page;
a matching unit 303, configured to match the text information to be detected with a preset text information base according to a language type of the text information to be detected, where the preset text information base includes preset text information of the application page;
a generating unit 304, configured to generate a test result of the application to be tested based on the matching result.
In some embodiments, the matching unit 303 may include:
the identification subunit is used for identifying the language type of the text information to be detected to obtain a target language type;
the first obtaining subunit is configured to obtain, based on the target language type, preset text information corresponding to the application page from a preset text information base, to obtain the target text information;
and the matching subunit is used for matching the text information to be detected with the target text information.
In some embodiments, the apparatus may further comprise:
the second obtaining unit is used for obtaining a text information set corresponding to the application page from the preset text information base based on the page identifier of the application page;
the dividing unit is used for dividing the text information set into a plurality of candidate text information according to a plurality of preset language types, wherein different candidate text information correspond to different preset language types.
In some embodiments, the obtaining subunit is specifically configured to:
and acquiring corresponding candidate text information from a plurality of candidate text information based on the target language type to obtain the target text information, wherein the candidate text information and the target text information have the same language type.
In some embodiments, the apparatus may further comprise:
a third obtaining unit, configured to obtain the number of application pages of the application to be tested;
the determining unit is used for determining the number of the tested devices according to the number of the application pages if the number of the application pages is larger than the preset number;
and the establishing unit is used for establishing connection with the number of the tested devices.
In some embodiments, the receiving unit 301 may include:
the dividing subunit is used for dividing the application page of the application to be tested based on the number of the tested equipment;
and the triggering subunit is used for triggering the application to be tested to display different application pages in different pieces of equipment to be tested according to the division result, and the application pages displayed in the different pieces of equipment to be tested form all the application pages of the application to be tested.
In some embodiments, the trigger subunit may be specifically configured to:
acquiring an automatic test case corresponding to each application page of the application to be tested;
and executing the automatic test case corresponding to the application page through the tested equipment corresponding to the application page.
In some embodiments, the generating unit 304 may include:
the second obtaining subunit is configured to obtain preset text information corresponding to the application page if the matching result indicates that the matching between the text information to be detected and a preset text information base fails;
and the generating subunit is used for generating a text information comparison table according to the text information to be tested and the preset text information to obtain the test result.
In some embodiments, the apparatus may further comprise:
the detection unit is used for detecting the application to be detected through an anomaly detection algorithm in the process of executing the test script;
and the adding unit is used for generating abnormal information when the failure of switching and displaying the application page of the application to be tested is detected, and adding the abnormal information into the test result.
The embodiment of the application discloses testing arrangement of application, this testing arrangement of application includes: the receiving unit 301 receives a test instruction for an application to be tested in a device to be tested, and executes a test script, where the test script is used to trigger the application to be tested to display an application page in the device to be tested; a first obtaining unit 302 obtains text information to be tested in the application page; the matching unit 303 matches the text information to be detected with a preset text information base according to the language type of the text information to be detected, where the preset text information base includes preset text information of the application page; the generating unit 304 generates a test result of the application to be tested based on the matching result. Therefore, the software testing efficiency can be improved.
The embodiment of the application also provides a terminal. As shown in fig. 6, the terminal may include a Radio Frequency (RF) circuit 601, a memory 602 including one or more storage media, an input unit 603, a display unit 604, a sensor 605, an audio circuit 606, a Wireless Fidelity (WiFi) module 607, a processor 608 including one or more processing cores, and a power supply 609. Those skilled in the art will appreciate that the terminal structure shown in fig. 6 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 601 may be used for receiving and transmitting signals during the process of transmitting and receiving information, and in particular, for processing the received downlink information of the base station by one or more processors 608; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuit 601 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 601 may also communicate with networks and other devices via wireless communications.
The memory 602 may be used to store software programs and modules, and the processor 608 may execute various functional applications and tests of the application programs by running the software programs and modules stored in the memory 602. The memory 602 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like. Further, the memory 602 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 608 and the input unit 603 access to the memory 602.
The input unit 603 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, input unit 603 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. The input unit 603 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 604 may be used to display information input by or provided to the user and various graphical user interfaces of the server, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 604 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (lcd), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 608 to determine the type of touch event, and the processor 608 then provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 6 the touch-sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that turns off the display panel and the backlight when the server moves to the ear.
Audio circuitry 606, speakers, and microphones may provide an audio interface between the user and the server. The audio circuit 606 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 606 and converted into audio data, which is then processed by the audio data output processor 608, and then passed through the RF circuit 601 to be sent to, for example, a terminal, or the audio data is output to the memory 602 for further processing. The audio circuitry 606 may also include an ear-bud jack to provide communication of peripheral headphones with the server.
WiFi belongs to short-distance wireless transmission technology, and the terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 607, and provides wireless broadband internet access for the user. Although fig. 6 shows the WiFi module 607, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope of not changing the essence of the application.
The processor 608 is a control center of the terminal, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the server and processes data by operating or executing software programs and modules stored in the memory 602 and calling data stored in the memory 602, thereby performing overall monitoring of the handset. Optionally, processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 608.
The terminal also includes a power supply 609 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 608 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 609 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Specifically, in this embodiment, the processor 608 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 602 according to the following instructions, and the processor 608 runs the application programs stored in the memory 602, thereby implementing various functions:
receiving a test instruction aiming at an application to be tested in a tested device, and executing a test script, wherein the test script is used for triggering the application to be tested to display an application page in the tested device;
acquiring text information to be detected in the application page;
matching the text information to be detected with a preset text information base according to the language type of the text information to be detected, wherein the preset text information base comprises preset text information of the application page;
and generating a test result of the application to be tested based on the matching result.
The embodiment of the application discloses a method and a device for testing an application program, a storage medium and a terminal. The test method of the application program comprises the following steps: receiving a test instruction aiming at an application to be tested in the tested equipment and executing a test script; acquiring text information to be detected in an application page; matching the text information to be detected with a preset text information base according to the language type of the text information to be detected; and generating a test result of the application to be tested based on the matching result. The automatic testing framework of the application page is designed, automatic testing is conducted on the to-be-tested application installed on the to-be-tested device, in the testing process, a user is simulated to click buttons, slide pages and the like on the to-be-tested application to obtain all application pages of the to-be-tested application, then text contents of all the pages are compared with preset text contents, a testing report is generated according to a comparison result, the whole automatic testing process is free of additional resource investment, labor cost is greatly reduced, and software testing efficiency can be improved.
It will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by instructions or by instructions controlling associated hardware, which may be stored in a storage medium and loaded and executed by a processor.
To this end, the present application provides a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in the method for testing an application program provided in the present application. For example, the instructions may perform the steps of:
receiving a test instruction aiming at an application to be tested in a tested device, and executing a test script, wherein the test script is used for triggering the application to be tested to display an application page in the tested device; acquiring text information to be detected in the application page; matching the text information to be detected with a preset text information base according to the language type of the text information to be detected, wherein the preset text information base comprises preset text information of the application page; and generating a test result of the application to be tested based on the matching result.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in the method for testing any application program provided in the embodiment of the present application, the beneficial effects that can be achieved by the method for testing any application program provided in the embodiment of the present application can be achieved, which are detailed in the foregoing embodiments and will not be described again here.
The foregoing describes in detail a method, an apparatus, a storage medium, and a terminal for testing an application provided in an embodiment of the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the foregoing embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method for testing an application program, comprising:
receiving a test instruction aiming at an application to be tested in a tested device, and executing a test script, wherein the test script is used for triggering the application to be tested to display an application page in the tested device;
acquiring text information to be detected in the application page;
matching the text information to be detected with a preset text information base according to the language type of the text information to be detected, wherein the preset text information base comprises preset text information of the application page;
and generating a test result of the application to be tested based on the matching result.
2. The method according to claim 1, wherein the matching the text information to be tested with a preset text information base according to the language type of the text information to be tested comprises:
identifying the language type of the text information to be detected to obtain a target language type;
acquiring preset text information corresponding to the application page from a preset text information base based on the target language type to obtain the target text information;
and matching the text information to be detected with the target text information.
3. The method according to claim 2, before said matching the text information to be tested with a preset text information base according to the language type of the text information to be tested, further comprising:
acquiring a text information set corresponding to the application page from the preset text information base based on the page identifier of the application page;
dividing the text information set into a plurality of candidate text information according to a plurality of preset language types, wherein different candidate text information correspond to different preset language types;
the obtaining of the preset text information corresponding to the application page from a preset text information base based on the target language type to obtain the target text information includes:
and acquiring corresponding candidate text information from a plurality of candidate text information based on the target language type to obtain the target text information, wherein the candidate text information and the target text information have the same language type.
4. The method of claim 1, after receiving the test instruction for the application under test in the device under test, and before executing the test script, further comprising:
acquiring the number of application pages of the application to be tested;
if the number of the application pages is larger than the preset number, determining the number of the tested devices according to the number of the application pages;
establishing connections with the number of devices under test;
the executing the test script comprises:
dividing the application pages of the application to be tested based on the number of the devices to be tested;
and triggering the application to be tested to display different application pages in different tested equipment according to the division result, wherein the application pages displayed in the different tested equipment form all the application pages of the application to be tested.
5. The method of claim 4, wherein the triggering the application under test to present different application pages in the number of devices under test comprises:
acquiring an automatic test case corresponding to each application page of the application to be tested;
and executing the automatic test case corresponding to the application page through the tested equipment corresponding to the application page.
6. The method of claim 1, wherein the generating a test result of the application under test based on the matching result comprises:
if the matching result indicates that the matching between the text information to be detected and a preset text information base fails, acquiring preset text information corresponding to the application page;
and generating a text information comparison table according to the text information to be tested and the preset text information to obtain the test result.
7. The method of claim 1, further comprising:
detecting the application to be detected through an anomaly detection algorithm in the process of executing the test script;
and when detecting that the application page to be tested is failed to be switched and displayed, generating abnormal information, and adding the abnormal information into the test result.
8. An apparatus for testing an application, comprising:
the device comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving a test instruction aiming at an application to be tested in a tested device and executing a test script, and the test script is used for triggering the application to be tested to display an application page in the tested device;
the first acquisition unit is used for acquiring text information to be detected in the application page;
the matching unit is used for matching the text information to be detected with a preset text information base according to the language type of the text information to be detected, wherein the preset text information base comprises preset text information of the application page;
and the generating unit is used for generating a test result of the application to be tested based on the matching result.
9. A storage medium storing a plurality of instructions adapted to be loaded by a processor to perform a method for testing an application program according to any one of claims 1 to 7.
10. A terminal comprising a processor and a memory, said memory storing a plurality of instructions, said processor loading said instructions to perform a method of testing an application program according to any one of claims 1 to 7.
CN202110533018.8A 2021-05-17 2021-05-17 Application program testing method and device, storage medium and terminal Pending CN113268416A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110533018.8A CN113268416A (en) 2021-05-17 2021-05-17 Application program testing method and device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110533018.8A CN113268416A (en) 2021-05-17 2021-05-17 Application program testing method and device, storage medium and terminal

Publications (1)

Publication Number Publication Date
CN113268416A true CN113268416A (en) 2021-08-17

Family

ID=77231107

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110533018.8A Pending CN113268416A (en) 2021-05-17 2021-05-17 Application program testing method and device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN113268416A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113671348A (en) * 2021-08-18 2021-11-19 北京博清科技有限公司 Circuit board testing method, device, equipment, system and storage medium
CN116089256A (en) * 2022-05-13 2023-05-09 荣耀终端有限公司 Terminal testing method, device and storage medium
WO2023093137A1 (en) * 2021-11-24 2023-06-01 中国银联股份有限公司 Application (app) testing method and apparatus, electronic device, and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080115111A1 (en) * 2006-11-10 2008-05-15 International Business Machines Corporation Method for Automating Internationalization Software Testing
CN103793322A (en) * 2012-11-05 2014-05-14 深圳中兴网信科技有限公司 Test method and test system for translation problems in software localization testing
CN106294178A (en) * 2016-08-22 2017-01-04 北京奇虎科技有限公司 Automated testing method and device
US20180300318A1 (en) * 2017-04-18 2018-10-18 Salesforce.Com, Inc. Natural language translation and localization
US10275266B1 (en) * 2017-12-01 2019-04-30 Sap Se Language acceptance testing
CN110704304A (en) * 2019-09-06 2020-01-17 平安普惠企业管理有限公司 Application program testing method and device, storage medium and server
CN111143001A (en) * 2019-12-23 2020-05-12 Tcl海外电子(惠州)有限公司 Language detection method of terminal, user equipment, storage medium and device
CN111737071A (en) * 2020-06-24 2020-10-02 四川长虹电器股份有限公司 Automatic contrast testing method for multinational language entries of android television
CN112100063A (en) * 2020-08-31 2020-12-18 腾讯科技(深圳)有限公司 Interface language display test method and device, computer equipment and storage medium
CN112416777A (en) * 2020-11-23 2021-02-26 珠海格力电器股份有限公司 Text display test method and device, computer equipment and storage medium
CN112463574A (en) * 2019-09-06 2021-03-09 北京京东尚科信息技术有限公司 Software testing method, device, system, equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080115111A1 (en) * 2006-11-10 2008-05-15 International Business Machines Corporation Method for Automating Internationalization Software Testing
CN103793322A (en) * 2012-11-05 2014-05-14 深圳中兴网信科技有限公司 Test method and test system for translation problems in software localization testing
CN106294178A (en) * 2016-08-22 2017-01-04 北京奇虎科技有限公司 Automated testing method and device
US20180300318A1 (en) * 2017-04-18 2018-10-18 Salesforce.Com, Inc. Natural language translation and localization
US10275266B1 (en) * 2017-12-01 2019-04-30 Sap Se Language acceptance testing
CN110704304A (en) * 2019-09-06 2020-01-17 平安普惠企业管理有限公司 Application program testing method and device, storage medium and server
CN112463574A (en) * 2019-09-06 2021-03-09 北京京东尚科信息技术有限公司 Software testing method, device, system, equipment and storage medium
CN111143001A (en) * 2019-12-23 2020-05-12 Tcl海外电子(惠州)有限公司 Language detection method of terminal, user equipment, storage medium and device
CN111737071A (en) * 2020-06-24 2020-10-02 四川长虹电器股份有限公司 Automatic contrast testing method for multinational language entries of android television
CN112100063A (en) * 2020-08-31 2020-12-18 腾讯科技(深圳)有限公司 Interface language display test method and device, computer equipment and storage medium
CN112416777A (en) * 2020-11-23 2021-02-26 珠海格力电器股份有限公司 Text display test method and device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
潘海兰等: "基于Java EE的电子商务网站建设》", 30 August 2010, pages: 157 - 161 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113671348A (en) * 2021-08-18 2021-11-19 北京博清科技有限公司 Circuit board testing method, device, equipment, system and storage medium
WO2023093137A1 (en) * 2021-11-24 2023-06-01 中国银联股份有限公司 Application (app) testing method and apparatus, electronic device, and storage medium
TWI822301B (en) * 2021-11-24 2023-11-11 大陸商中國銀聯股份有限公司 An application APP testing method, device, electronic equipment and storage medium
CN116089256A (en) * 2022-05-13 2023-05-09 荣耀终端有限公司 Terminal testing method, device and storage medium
CN116089256B (en) * 2022-05-13 2024-03-12 荣耀终端有限公司 Terminal testing method, device and storage medium

Similar Documents

Publication Publication Date Title
CN113268416A (en) Application program testing method and device, storage medium and terminal
CN110196795B (en) Method and related device for detecting running state of mobile terminal application
CN109753425B (en) Popup window processing method and device
CN112333057B (en) Intelligent household equipment distribution network testing method and device, executive machine and storage medium
CN113407393B (en) Chip verification method, terminal device, verification platform and storage medium
US6898704B2 (en) Method and apparatus for making and using test verbs
CN109089108A (en) test method and system
CN112783756A (en) Automatic test method, terminal, system and storage medium
CN104809054A (en) Method and system for realizing program testing
KR20140046121A (en) System and method for testing application
CN112231206A (en) Script editing method for application program test, computer readable storage medium and test platform
CN112506757A (en) Automatic test method, system, computer device and medium thereof
CN104915228A (en) Application program language setting method and device
CN113568833A (en) Test case determination method and device, computer equipment and readable storage medium
CN103793321B (en) application program detection method and system
CN114387775B (en) Pressure measurement method and device for simulating remote controller
CN115185819A (en) System testing method, device, equipment and computer readable storage medium
CN114706371A (en) Complete vehicle network non-dormancy diagnosis method and device, electronic equipment and storage medium
CN113722203A (en) Program testing method and device, electronic device and computer readable storage medium
CN113315675A (en) White box switch U-Boot automatic testing method, system and storage medium
CN110968519A (en) Game testing method, device, server and storage medium
CN112003647A (en) Detection method, device and equipment for recycled optical modem and storage medium
CN111258618A (en) File configuration method and device, computer equipment and storage medium
CN110275807A (en) Detection method, system, equipment and the storage medium of smart machine
CN109344087B (en) Multi-terminal synchronous debugging method and system of equipment, storage medium and processor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination