CN110837476A - Application program testing method and device - Google Patents

Application program testing method and device Download PDF

Info

Publication number
CN110837476A
CN110837476A CN201911115596.9A CN201911115596A CN110837476A CN 110837476 A CN110837476 A CN 110837476A CN 201911115596 A CN201911115596 A CN 201911115596A CN 110837476 A CN110837476 A CN 110837476A
Authority
CN
China
Prior art keywords
installation package
target
information
task
application program
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
CN201911115596.9A
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.)
Zhuhai Xishan Mobile Game Technology Co Ltd
Original Assignee
Zhuhai Xishan Mobile Game 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 Zhuhai Xishan Mobile Game Technology Co Ltd filed Critical Zhuhai Xishan Mobile Game Technology Co Ltd
Priority to CN201911115596.9A priority Critical patent/CN110837476A/en
Publication of CN110837476A publication Critical patent/CN110837476A/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

Landscapes

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

Abstract

The application provides a method and a device for testing an application program, which are used for receiving a construction task, wherein the construction task comprises an original code and target equipment information; building an installation package according to the building task; acquiring equipment attribute information corresponding to each equipment in an equipment set; based on the target device information corresponding to the installation package, searching device attribute information which is the same as the target device information in the device set, and taking the device which is the same as the target device information and corresponds to the device attribute information as the target device; and sending the installation package to target equipment to test the installation package. According to the method and the device, the time for downloading the installation package on the target device is saved, and the test efficiency of the application program corresponding to the installation package is greatly improved.

Description

Application program testing method and device
Technical Field
The present application relates to the field of program testing technologies, and in particular, to a method and an apparatus for testing an application program, a computing device, and a computer-readable storage medium.
Background
In the smart phone industry, with the market share of mobile phone games becoming higher and higher, most of the well-known game development companies invest in more technical research and development in mobile phone game development. As the complexity of mobile phone games is continuously increased, various performance problems, such as stability and fluency of games, pressure bearing of servers, temperature and power consumption of mobile phones, etc., are inevitably introduced in the development process of the mobile phone games. Before the mobile phone game is published for testing or released formally, game development companies need to spend a large amount of resources to execute related tests.
The testing process of the hand game relates to the testing of a plurality of items, such as the installation, the starting and the login process of a game program are successful; performance monitoring tests, and the like. In order to ensure that most brands of mobile phones can normally run the hand game programs corresponding to the installation packages, the hand game programs generally need to be tested on the mobile phones of various brands, so that a person needing to be tested can find a target mobile phone from a large number of test mobile phones and manually download the game installation package from the target mobile phone, the tester spends a large amount of time in the process, the installation efficiency corresponding to the game installation package is low, and the test efficiency of the game is further influenced.
Disclosure of Invention
In view of this, embodiments of the present application provide a method and an apparatus for testing an application program, a computing device, and a computer-readable storage medium, so as to solve technical defects in the prior art.
The embodiment of the application discloses a method for testing an application program, which comprises the following steps:
receiving a construction task, wherein the construction task comprises an original code and target equipment information;
building an installation package according to the building task;
acquiring equipment attribute information corresponding to each equipment in an equipment set;
based on the target device information corresponding to the installation package, searching device attribute information which is the same as the target device information in the device set, and taking the device which is the same as the target device information and corresponds to the device attribute information as the target device;
and sending the installation package to target equipment to test the installation package.
The embodiment of the application discloses device of application program test includes:
a receiving module configured to receive a build task, the build task including an original code and target device information;
a build module configured to build an installation package according to the build task;
the acquisition module is configured to acquire device attribute information corresponding to each device in the device set;
the searching module is configured to search the device attribute information which is the same as the target device information in the device set based on the target device information corresponding to the installation package, and take the device which is the same as the target device information and corresponds to the device attribute information as the target device;
a sending module configured to send the installation package to a target device for testing the installation package.
The embodiment of the application discloses a computing device, which comprises a memory, a processor and computer instructions stored on the memory and capable of running on the processor, wherein the processor executes the instructions to realize the steps of the method for testing the application program.
The embodiment of the application discloses a computer readable storage medium, which stores computer instructions, and the instructions are executed by a processor to realize the steps of the method for testing the application program.
In the above embodiment of the application, the installation package is built according to the original code and the target device information in the building task, so that the installation package has the attribute of the target device information, based on the target device information corresponding to the installation package, the device intensively searches the device attribute information identical to the target device information and determines the target device corresponding to the device attribute information, and the installation package is directly sent to the target device without obtaining the target device after searching a large amount of devices in the device centralization and manually downloading the installation package in the target device.
Drawings
FIG. 1 is a schematic block diagram of a computing device according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a method for testing an application according to a first embodiment of the present application;
FIG. 3 is a schematic flow chart diagram of a method of application testing of a second embodiment of the present application;
FIG. 4 is a schematic flow chart diagram of a method of application testing of a third embodiment of the present application;
FIG. 5 is a schematic flow chart illustrating the testing of the function to be tested in the application program according to the present application;
FIG. 6 is a timing diagram of a method of application testing of the present application;
fig. 7 is a schematic structural diagram of an apparatus for testing an application according to a fourth embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
The terminology used in the description of the one or more embodiments is for the purpose of describing the particular embodiments only and is not intended to be limiting of the description of the one or more embodiments. As used in one or more embodiments of the present specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present specification refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first can also be referred to as a second and, similarly, a second can also be referred to as a first without departing from the scope of one or more embodiments of the present description. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
First, the noun terms to which one or more embodiments of the present invention relate are explained.
Android installation Package (Android Package, APK for short): and packaging the project compiled by the Android sdk into an installation program file with an APK format, and directly transmitting the APK file to an Android simulator or an Android mobile phone for execution to install.
Test Case (Test Case): refers to the description of testing tasks performed on a particular software product, embodying test schemes, methods, techniques and strategies. The contents of the test object, the test environment, the input data, the test steps, the expected results, the test scripts and the like are included, and finally, a document is formed. It is simply considered that a test case is a set of test inputs, execution conditions, and expected results compiled for a particular target, and a test is performed with reference to the test case to ensure the quality of the test.
In the present application, a method and an apparatus for testing an application program, a computing device and a computer-readable storage medium are provided, which are described in detail in the following embodiments one by one.
Fig. 1 is a block diagram illustrating a configuration of a computing device 100 according to an embodiment of the present specification. The components of the computing device 100 include, but are not limited to, memory 110 and processor 120. The processor 120 is coupled to the memory 110 via a bus 130 and a database 150 is used to store data.
Computing device 100 also includes access device 140, access device 140 enabling computing device 100 to communicate via one or more networks 160. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. Access device 140 may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the present description, the above-described components of computing device 100 and other components not shown in FIG. 1 may also be connected to each other, such as by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 1 is for purposes of example only and is not limiting as to the scope of the description. Those skilled in the art may add or replace other components as desired.
Computing device 100 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), a mobile phone (e.g., smartphone), a wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 100 may also be a mobile or stationary server.
Wherein the processor 120 may perform the steps of the method shown in fig. 2. Fig. 2 is a schematic flow chart diagram illustrating a method of application testing according to a first embodiment of the present application, including steps 202 to 210.
Step 202: receiving a build task, wherein the build task comprises an original code and target device information.
And the application program corresponding to the installation package needs to be tested on the target equipment corresponding to the target equipment information. The target device information may be at least one of device name information, brand name information, device version information, and operating system information, for example, if the target device information is a device name a, the installation package needs to be tested on the device with the device name a to verify whether the installation package can complete a test item on the device with the device name a, and analyze and optimize an application program corresponding to the installation package.
It should be noted that the target device information may be information corresponding to more than two types of devices, so that the following steps need to test the multiple types of devices, and directly determine the multiple types of target device information in the construction task.
Step 204: and building an installation package according to the building task.
The original code in the construction task can be translated into an application program in an equivalent machine language format through a compiler, the construction task also comprises target equipment information, and therefore the attribute of the installation package constructed according to the construction task comprises the target equipment information.
The installation package can be an android installation package or an installation package in other formats, and the application does not limit the installation package.
Step 206: and acquiring the corresponding equipment attribute information of each equipment in the equipment set.
For example, the device is a mobile phone, in order to ensure that most of brands of mobile phones can normally run the application corresponding to the installation package, a general application needs to be tested on the mobile phones of multiple brands, the set of the mobile phones of multiple brands is a device set, so that the attribute information of the mobile phone corresponding to each mobile phone in the device set is obtained, the attribute information of the device includes at least one of mobile phone name information, brand name information, device version information and operating system information, and the obtained device attribute information corresponding to the device can also be other information.
Step 208: and searching the device attribute information which is the same as the target device information in the device set based on the target device information corresponding to the installation package, and taking the device which is the same as the target device information and corresponds to the device attribute information as the target device.
Based on the target equipment information corresponding to the installation package, equipment attribute information which is the same as the target equipment information is searched in the equipment set, and automatic matching of the installation package and the target equipment is achieved.
Step 210: and sending the installation package to target equipment to test the installation package.
According to the method and the device for installing the installation package, the installation package is built according to the original codes and the target device information in the building task, so that the installation package has the attribute of the target device information, the device attribute information identical to the target device information is searched in the device set on the basis of the target device information corresponding to the installation package, the target device corresponding to the device attribute information is determined, the installation package is directly sent to the target device, the installation package does not need to be manually downloaded in the target device after a large number of devices are searched in the device set, the time for downloading the installation package on the target device is saved, and the testing efficiency of the application program corresponding to the installation package is greatly improved.
The present embodiment will be further described with reference to the actual scenario.
For example, in an actual testing process, the original code needs to be frequently changed, so that a large amount of time is required for testing the conventional application program, and the testing efficiency of the application program is low, the installation package is reconstructed by the changed original code and the target identification information and then sent to the target device for testing, even if the original code is changed, the installation package constructed by the changed original code can be directly sent to the target device for testing as long as the target device information is determined in the construction task, and the target device does not need to be found and downloaded on the target device after the change.
Fig. 3 is a schematic flowchart showing a method of application testing according to a second embodiment of the present application, which is described below in conjunction with a timing chart of the method of application testing shown in fig. 6.
The method for testing the application program comprises steps 302 to 314.
Step 302: and receiving a construction task, wherein the construction task comprises an original code, target equipment information and requirement information of an installation package constructed by the original code.
The building machine is a device for running a compiler program according to an original code in a building task to build an installation package, the compiler program is an application program for translating the original code into an equivalent machine language format, and the original code is built into the requirement information of the installation package, namely the compiler program can be run to build the original code into the performance information of the machine which needs to be built into the installation package.
For example, the requirement information of the installation package constructed by the original code is six-core twelve-thread, main frequency 3.0GHz and 2G cache.
In addition, the construction machine can directly obtain the requirement information of the construction task including the original code, the target device information and the original code to construct the installation package in the following steps in a hard disk mounting mode, the construction task does not need to be copied to the construction machine, and the construction efficiency of the installation package is improved.
For example, the task A needs 10G space, the task B needs 20G space, and the hard disk with the existing task A file is directly mounted from the network in a hard disk mounting mode, so that the copying process is omitted.
Step 304: and obtaining the corresponding machine attribute of each building machine in the building machine set.
The building machine set includes a plurality of building machines, and obtains a machine attribute corresponding to each building machine, where the machine attribute includes processor information, and the processor information includes a cache, a core number, and a thread number, and for example, the core number and the thread number in the processor information may be a four-core four-thread, a six-core twelve-thread, or a sixteen-core thirty-two-thread.
The main frequency is the clock frequency of a processor core, the high main frequency can be understood as fast operation speed, and the main frequency information can be 3.0GHz and 3.7 GHz.
Because the operation speed of the processor is high, the read-write speed of the memory bank is not matched with the operation speed of the processor, the processor can store the part of data into the cache, so that the contradiction between the operation speed of the processor and the read-write speed of the memory bank is relieved, and the cache can be 2G or 4G.
Step 306: based on the requirement information of the construction task, searching the machine attributes which accord with the requirement information of the construction task in the construction machine set, and taking the construction machine corresponding to the searched machine attributes as a target construction machine.
For example, the requirement information for constructing the installation package is sixteen-core thirty-two threads and 2G cache, and the machine set is searched for a construction machine conforming to the sixteen-core thirty-two threads and 4G cache, for example, the attribute of the construction machine a is four-core four-threads and 4G cache, the attribute of the construction machine B is six-core thirty-two threads and 5G cache, and the attribute of the construction machine C is sixteen-core thirty-two threads and 5G cache.
And searching the machine C with the attributes of sixteen-core thirty-two threads and 5G cache to meet the requirement information of the construction task, and sending the construction task to the machine C to construct the installation package in the following steps, so that the installation package can be efficiently constructed.
Step 308: and sending the construction task to a target construction machine to construct an installation package.
In the process of constructing the installation package by the construction machine, the condition that the construction machine constructs the installation package and reports errors can occur, error reporting information is received, and the error reporting information is sent to the submitting party of the original code.
And determining a file where the code corresponding to the error-reported information is located according to the code corresponding to the error-reported information, and sending the error-reported information to a submitting party through the submitting party corresponding to the file.
Step 310: and acquiring the corresponding equipment attribute information of each equipment in the equipment set.
Step 312: and searching the device attribute information which is the same as the target device information in the device set based on the target device information corresponding to the installation package, and taking the device which is the same as the target device information and corresponds to the device attribute information as the target device.
Step 314: and sending the installation package to target equipment to test the installation package.
And the construction machine directly sends the constructed installation package to the target equipment for installation of the installation package.
In this embodiment, when the complexity of the project needs to be compiled is high, a high-performance building machine is required to perform a building task, and if the high-complexity building task is sent to a low-performance building machine to be completed, the building efficiency of the installation package is greatly affected, and the time spent on completing the building task is long, which results in the test progress of the application program test. Therefore, based on the requirement information of the construction task, the construction machines corresponding to the searched machine attributes are used as target construction machines by searching the machine attributes meeting the requirement information of the construction task in a centralized manner, the construction machines corresponding to the searched machine attributes do not need to be searched for proper construction machines in a plurality of construction machines manually, the construction task is directly sent to the target machines for implementation, the efficiency of completing the construction task is improved, the construction task is ensured to be completed within the planned time, the testing efficiency of the application program corresponding to the installation package is improved, and the testing task is ensured to be completed smoothly.
Fig. 4 is a schematic flow chart diagram illustrating a method of application testing according to a third embodiment of the present application, including steps 402 to 414.
Step 402: receiving a build task, wherein the build task comprises an original code and target device information.
Step 404: and building an installation package according to the building task.
Step 406: and acquiring the corresponding equipment attribute information of each equipment in the equipment set.
Step 408: and searching the device attribute information which is the same as the target device information in the device set based on the target device information corresponding to the installation package, and taking the device which is the same as the target device information and corresponds to the device attribute information as the target device.
The concept of the above steps 402 to 408 referring to the steps 202 to 208 is the same, and the details of the above steps 202 to 208 are specifically referred to, and are not repeated here.
Step 410: and sending the installation package to target equipment, and installing the installation package in the target equipment.
Step 412: and starting the application program under the condition that the application program corresponding to the installation package is successfully installed in the target equipment.
Step 414: and under the condition that the application program is started successfully, testing the function to be tested in the application program.
After the application is started, it may happen that the resolution of the game run is 800 × 600, while the resolution at the mobile phone is already 1200 × 720, which may cause the picture displayed on the mobile phone to be jumbled.
The method comprises the steps of setting screenshot frame numbers, and intercepting the picture displayed on target equipment when the application program runs every other screenshot frame number. Therefore, errors of pictures in the running process of the game program can be clearly seen, the display problem in the testing process of the application program can be found, and the testing quality of the application program is ensured.
For example, the number of screenshot frames is set to ten frames, in the running process of the application program, the picture displayed on the target device when the application program runs is intercepted every ten frames, and the intercepted picture displayed on the target device when the application program runs is stored so as to be fed back to a tester.
In this embodiment, the installation package is sent to the target device; installing the installation package in the target device; starting the application program under the condition that the application program corresponding to the installation package is successfully installed in the target equipment; under the condition that the application program is started successfully, the functions to be tested in the application program are tested, the steps are connected in series, automatic testing of the application program is achieved, the target equipment does not need to be obtained after a large number of equipment is searched in a centralized mode, the installation package does not need to be downloaded manually in the target equipment, and manual operation is conducted on the testing process.
Referring to fig. 5, the step 414 includes steps 502 to 510.
Step 502: and determining the function to be tested of the client corresponding to the application program and the mark of the client.
Step 504: and determining a test case according to the function to be tested of the client corresponding to the application program.
The tester designs a test case according to the interactive scene required by the function to be tested in the application program, and the test case can comprise a group of test input, execution conditions and expected results compiled for a special target.
Step 506: and inquiring the mark of the server which is the same as the mark of the client according to the mark of the client, and taking the server as a target server.
And different service terminals correspond to different functional items of the verification client, and the mark of the service terminal which is the same as the mark of the client is inquired through the mark of the client, so that the client is automatically matched with the target service terminal.
Step 508: and logging in the target server.
After the target server is determined, the client automatically logs in the server, namely the client and the server realize communication, so that the function to be tested of the client is tested in the following steps.
Step 510: and completing the test of the function to be tested of the client corresponding to the application program based on the test case.
For example, in a test of a role skill release function in a mobile game application program, a test case is determined according to the role skill release function to be tested, and corresponding parameters need to be configured according to the test case to form a configuration file corresponding to the test case. The configuration file comprises the role identification of the game role related to the test case and the role information of each game role. The character identifier is used for uniquely identifying a middle character of a game scene, and the character information may include a skill information sequence of a corresponding game character.
The skill information includes specific skill content and an object of the skill effect, the target game role is an implementation subject of the skill information, for example, if the skill information of the target game role a is an attack B, then a is the implementation subject of the attack, and B is the object of the attack effect. The skill content may include attributes, bullets, buffs, equipment, and the like, and the attributes may include attack power, speed, defense power, and the like.
And running a test case through a test client corresponding to the application program, and loading a configuration file corresponding to the test case, wherein the automatic execution of the steps in the test case can be realized through a written test script.
In actual application, the test of the function to be tested of the client corresponding to the application program is finally completed to obtain a test result, and the game is optimized according to the test result and the expected result according to the expected result in the test case.
In this embodiment, the test case is determined according to the function to be tested of the client corresponding to the application program and the mark of the client, the mark of the server identical to the mark of the client is inquired according to the mark of the client, and the server is used as the target server, so that the client is automatically matched with the target server, the corresponding server does not need to be manually selected, and the test efficiency of the application program corresponding to the installation package is improved.
Fig. 7 is a schematic structural diagram of an apparatus for testing an application according to a fourth embodiment of the present application, including:
a receiving module 702 configured to receive a build task, the build task including original code and target device information;
a build module 704 configured to build an installation package according to the build task;
an obtaining module 706 configured to obtain device attribute information corresponding to each device in the device set;
a searching module 708 configured to search, in the device set, device attribute information that is the same as the target device information based on the target device information corresponding to the installation package, and take a device corresponding to the device attribute information that is the same as the target device information as a target device;
a processing module 710 configured to send the installation package to a target device for testing of the installation package.
The construction task also comprises the requirement information of constructing the installation package by the original code;
the build module 704 is further configured to obtain a machine attribute corresponding to each build machine in the set of build machines;
based on the requirement information of the construction task, searching machine attributes which accord with the requirement information of the construction task in the construction machine set, and taking the construction machine corresponding to the searched machine attributes as a target construction machine;
and sending the construction task to a target construction machine to construct an installation package.
The device further comprises:
and the error reporting module is configured to receive error reporting information and send the error reporting information to a submitter of the original code under the condition that the construction machine constructs the installation package and reports errors.
The processing module 710 is further configured to install the installation package in the target device;
starting the application program under the condition that the application program corresponding to the installation package is successfully installed in the target equipment;
and under the condition that the application program is started successfully, testing the function to be tested in the application program.
The processing module 710 is further configured to determine a function to be tested of a client corresponding to the application program and a mark of the client;
determining a test case according to the function to be tested of the client corresponding to the application program;
inquiring the mark of a server which is the same as the mark of the client according to the mark of the client, and taking the server as a target server;
logging in the target server;
and completing the test of the function to be tested of the client corresponding to the application program based on the test case.
The device further comprises:
a setting module configured to set a screenshot frame number; and intercepting the picture displayed on the target equipment by the application program at intervals of the screenshot frame number.
According to the method and the device for installing the installation package, the installation package is built according to the original codes and the target device information in the building task, so that the installation package has the attribute of the target device information, the device attribute information identical to the target device information is searched in the device set on the basis of the target device information corresponding to the installation package, the target device corresponding to the device attribute information is determined, the installation package is directly sent to the target device, the installation package does not need to be manually downloaded in the target device after a large number of devices are searched in the device set, the time for downloading the installation package on the target device is saved, and the testing efficiency of the application program corresponding to the installation package is greatly improved.
An embodiment of the present application further provides a computing device, which includes a memory, a processor, and computer instructions stored on the memory and executable on the processor, and when the processor executes the instructions, the steps of the method for testing the application program are implemented as described above.
An embodiment of the present application also provides a computer readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the method for application testing as described above.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium and the technical solution of the method for testing the application program belong to the same concept, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the method for testing the application program.
The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The preferred embodiments of the present application disclosed above are intended only to aid in the explanation of the application. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and the practical application, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and their full scope and equivalents.

Claims (10)

1. A method for application testing, comprising:
receiving a construction task, wherein the construction task comprises an original code and target equipment information;
building an installation package according to the building task;
acquiring equipment attribute information corresponding to each equipment in an equipment set;
based on the target device information corresponding to the installation package, searching device attribute information which is the same as the target device information in the device set, and taking the device which is the same as the target device information and corresponds to the device attribute information as the target device;
and sending the installation package to target equipment to test the installation package.
2. The method of claim 1, wherein the build task further comprises the raw code building requirements information of the installation package;
building an installation package according to the building task, comprising:
obtaining a machine attribute corresponding to each construction machine in a construction machine set;
based on the requirement information of the construction task, searching machine attributes which accord with the requirement information of the construction task in the construction machine set, and taking the construction machine corresponding to the searched machine attributes as a target construction machine;
and sending the construction task to a target construction machine to construct an installation package.
3. The method of claim 2, wherein: after sending the build task to the target build machine to build the installation package, the method further includes:
and under the condition that the construction machine constructs the installation package to report errors, receiving error reporting information, and sending the error reporting information to the submitting party of the original code.
4. The method of claim 1, wherein: sending the installation package to a target device to enable the target device to test the installation package, wherein the method comprises the following steps:
installing the installation package in the target device;
starting the application program under the condition that the application program corresponding to the installation package is successfully installed in the target equipment;
and under the condition that the application program is started successfully, testing the function to be tested in the application program.
5. The method of claim 4, wherein: testing the function to be tested in the application program, comprising:
determining a function to be tested of a client corresponding to the application program and a mark of the client;
determining a test case according to the function to be tested of the client corresponding to the application program;
inquiring the mark of a server which is the same as the mark of the client according to the mark of the client, and taking the server as a target server;
logging in the target server;
and completing the test of the function to be tested of the client corresponding to the application program based on the test case.
6. The method according to claim 4 or 5, characterized in that: after the application program is started, the method further comprises the following steps:
setting a screenshot frame number;
and intercepting the picture displayed on the target equipment by the application program at intervals of the screenshot frame number.
7. An apparatus for application testing, comprising:
a receiving module configured to receive a build task, the build task including an original code and target device information;
a build module configured to build an installation package according to the build task;
the acquisition module is configured to acquire device attribute information corresponding to each device in the device set;
the searching module is configured to search the device attribute information which is the same as the target device information in the device set based on the target device information corresponding to the installation package, and take the device which is the same as the target device information and corresponds to the device attribute information as the target device;
a processing module configured to send the installation package to a target device for testing of the installation package.
8. The apparatus of claim 7, wherein the build task further comprises the raw code building requirement information of the installation package; the build module is further configured to obtain a machine attribute corresponding to each build machine in a set of build machines; based on the requirement information of the construction task, searching machine attributes which accord with the requirement information of the construction task in the construction machine set, and taking the construction machine corresponding to the searched machine attributes as a target construction machine; and sending the construction task to a target construction machine to construct an installation package.
9. A computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, wherein the processor implements the steps of the method of any one of claims 1-6 when executing the instructions.
10. A computer-readable storage medium storing computer instructions, which when executed by a processor, perform the steps of the method of any one of claims 1 to 6.
CN201911115596.9A 2019-11-14 2019-11-14 Application program testing method and device Pending CN110837476A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911115596.9A CN110837476A (en) 2019-11-14 2019-11-14 Application program testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911115596.9A CN110837476A (en) 2019-11-14 2019-11-14 Application program testing method and device

Publications (1)

Publication Number Publication Date
CN110837476A true CN110837476A (en) 2020-02-25

Family

ID=69575059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911115596.9A Pending CN110837476A (en) 2019-11-14 2019-11-14 Application program testing method and device

Country Status (1)

Country Link
CN (1) CN110837476A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4109277A1 (en) * 2021-06-24 2022-12-28 L & T Technology Services Limited A system and method for stability testing of infotaintment unit

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104050076A (en) * 2013-03-12 2014-09-17 阿里巴巴集团控股有限公司 Testing method, device and system of application software on mobile terminal
CN104679659A (en) * 2015-03-24 2015-06-03 小米科技有限责任公司 Testing method and testing device of application program as well as electronic equipment
CN105302727A (en) * 2015-11-17 2016-02-03 小米科技有限责任公司 Testing method, device and system
CN105320598A (en) * 2015-11-24 2016-02-10 广州华多网络科技有限公司 Software testing method and device
CN106843880A (en) * 2017-01-20 2017-06-13 广东欧珀移动通信有限公司 The method for customizing of Android installation kits APK, device and server
CN107357727A (en) * 2017-07-04 2017-11-17 广州君海网络科技有限公司 APP testing results method, apparatus, readable storage medium storing program for executing and computer equipment
CN110048908A (en) * 2019-04-15 2019-07-23 网易(杭州)网络有限公司 Instruction Network Test System Platform, network test method and device
CN110187912A (en) * 2019-05-16 2019-08-30 华为技术有限公司 A kind of node selecting method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104050076A (en) * 2013-03-12 2014-09-17 阿里巴巴集团控股有限公司 Testing method, device and system of application software on mobile terminal
CN104679659A (en) * 2015-03-24 2015-06-03 小米科技有限责任公司 Testing method and testing device of application program as well as electronic equipment
CN105302727A (en) * 2015-11-17 2016-02-03 小米科技有限责任公司 Testing method, device and system
CN105320598A (en) * 2015-11-24 2016-02-10 广州华多网络科技有限公司 Software testing method and device
CN106843880A (en) * 2017-01-20 2017-06-13 广东欧珀移动通信有限公司 The method for customizing of Android installation kits APK, device and server
CN107357727A (en) * 2017-07-04 2017-11-17 广州君海网络科技有限公司 APP testing results method, apparatus, readable storage medium storing program for executing and computer equipment
CN110048908A (en) * 2019-04-15 2019-07-23 网易(杭州)网络有限公司 Instruction Network Test System Platform, network test method and device
CN110187912A (en) * 2019-05-16 2019-08-30 华为技术有限公司 A kind of node selecting method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4109277A1 (en) * 2021-06-24 2022-12-28 L & T Technology Services Limited A system and method for stability testing of infotaintment unit

Similar Documents

Publication Publication Date Title
CN109117169B (en) Method and device for repairing kernel vulnerability
CN107133180B (en) Dynamic page testing method, testing device and storage medium
CN104991793B (en) A kind of method, apparatus and system for application program subpackage
CN110858172A (en) Automatic test code generation method and device
CN108228444B (en) Test method and device
CN112241360A (en) Test case generation method, device, equipment and storage medium
CN113485880A (en) Test method and device
CN104899134A (en) Automatic domain name registration server testing system and method
CN115391219A (en) Test case generation method and device, electronic equipment and storage medium
CN110837476A (en) Application program testing method and device
CN113704112A (en) Data processing method and system
CN111930625B (en) Log acquisition method, device and system based on cloud service platform
CN115473810B (en) Double-end synchronous script hot updating method and device
CN116150029A (en) Automatic overdue batch testing method and device for loan system
CN112114845B (en) Gray message processing method and device, storage medium and computer equipment
CN115061785A (en) Information issuing method and device, storage medium and server
CN113419957A (en) Rule-based big data offline batch processing performance capacity scanning method and device
CN113723800A (en) Risk identification model training method and device and risk identification method and device
CN112905457A (en) Software testing method and device
CN112667491A (en) Function test method and device of virtual machine
CN115543227B (en) Cross-system data migration method, system, electronic device and storage medium
CN111324525A (en) Method and device for processing Mock service and Mock service system
CN116166545A (en) Test environment creation method, test environment creation device, medium and electronic device
CN115480745A (en) Code generation method and device based on configuration file
CN112068967A (en) Method and device for information synchronization, target environment creation and information processing

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 519000 room 402, Room 401, No. 327, Qiandao Ring Road, Tangjiawan Town, high tech Zone, Zhuhai City, Guangdong Province

Applicant after: Zhuhai Xishanju Digital Technology Co.,Ltd.

Address before: 519000 room 402, Room 401, No. 327, Qiandao Ring Road, Tangjiawan Town, high tech Zone, Zhuhai City, Guangdong Province

Applicant before: ZHUHAI SEASUN MOBILE GAME TECHNOLOGY Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200225