CN110955596B - Application testing method, device, electronic equipment and computer readable storage medium - Google Patents

Application testing method, device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN110955596B
CN110955596B CN201911136453.6A CN201911136453A CN110955596B CN 110955596 B CN110955596 B CN 110955596B CN 201911136453 A CN201911136453 A CN 201911136453A CN 110955596 B CN110955596 B CN 110955596B
Authority
CN
China
Prior art keywords
test
information
application
parameter information
display information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911136453.6A
Other languages
Chinese (zh)
Other versions
CN110955596A (en
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.)
Lazas Network Technology Shanghai Co Ltd
Original Assignee
Lazas Network Technology Shanghai 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 Lazas Network Technology Shanghai Co Ltd filed Critical Lazas Network Technology Shanghai Co Ltd
Priority to CN201911136453.6A priority Critical patent/CN110955596B/en
Publication of CN110955596A publication Critical patent/CN110955596A/en
Application granted granted Critical
Publication of CN110955596B publication Critical patent/CN110955596B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

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 embodiment of the disclosure discloses an application testing method, an application testing device, electronic equipment and a computer readable storage medium, wherein the application testing method comprises the following steps: acquiring test parameter information and sending the test parameter information to a server, wherein the test parameter information comprises parameter information of test equipment and attribute information of a test party, and the parameter information of the test equipment is real information; responding to receiving application test display information corresponding to the test parameter information sent by the server, and displaying the application test display information; and determining an application test result according to the application test display information. According to the technical scheme, the problem sources can be exposed as much as possible, the accuracy of application test results is improved, and the situation of shielding problem factors is avoided.

Description

Application testing method, device, electronic equipment and computer readable storage medium
Technical Field
The disclosure relates to the technical field of data testing, and in particular relates to an application testing method, an application testing device, electronic equipment and a computer readable storage medium.
Background
With the development of internet technology, more and more merchants or service providers provide services to users through internet applications, and thus, stability of the internet applications is becoming more and more important. In practical applications, the internet application generally performs display of related content according to various information such as configuration information and system configuration information fed back by a user, that is, stability of the internet application may be related to the various factors, so, in order to ensure stability of the internet application in practical applications, in the prior art, software-level testing is performed on the internet application based on simulation of the various factors, so as to discover and solve possible problems and possible faults in the internet application in a testing process. However, in practice, the cause of the application fault may be a factor, so that the strategy of the simulation of all the factors shields the problem source, and the result of the application test is deviated.
Disclosure of Invention
The embodiment of the disclosure provides an application testing method, an application testing device, electronic equipment and a computer readable storage medium.
In a first aspect, an embodiment of the present disclosure provides an application testing method.
Specifically, the application test method comprises the following steps:
acquiring test parameter information and sending the test parameter information to a server, wherein the test parameter information comprises parameter information of test equipment and attribute information of a test party, and the parameter information of the test equipment is real information;
responding to receiving application test display information corresponding to the test parameter information sent by the server, and displaying the application test display information;
and determining an application test result according to the application test display information.
With reference to the first aspect, in a first implementation manner of the first aspect, the attribute information of the testing party is analog information.
With reference to the first aspect and the first implementation manner of the first aspect, in a second implementation manner of the first aspect, the parameter information of the test device includes one or more of the following parameter information: geographical location information of the test equipment, network address information of the test equipment and unique identification information of the test equipment.
With reference to the first aspect, the first implementation manner of the first aspect, and the second implementation manner of the first aspect, in a third implementation manner of the first aspect, the application test display information includes application test real information and application test activity information related to the test parameter information.
With reference to the first aspect, the first implementation manner of the first aspect, the second implementation manner of the first aspect, and the third implementation manner of the first aspect, in a fourth implementation manner of the first aspect, the determining, according to the application test display information, an application test result includes:
comparing the application test display information with preset application display information;
and when the application test display information is not matched with the preset application display information, confirming that the application test is failed.
With reference to the first aspect, the first implementation manner of the first aspect, the second implementation manner of the first aspect, the third implementation manner of the first aspect, and the fourth implementation manner of the first aspect, in a fifth implementation manner of the first aspect, the embodiment of the present invention further includes:
And executing preset operation according to the application test result.
In a second aspect, an application testing method is provided in an embodiment of the present disclosure.
Specifically, the application test method comprises the following steps:
the method comprises the steps that test equipment obtains test parameter information and sends the test parameter information to a server, wherein the test parameter information comprises parameter information of the test equipment and attribute information of a test party, and the parameter information of the test equipment is real information;
the server determines application test display information corresponding to the test parameter information according to the received test parameter information and sends the application test display information to the test equipment;
and in response to receiving the application test display information sent by the server, the test equipment displays the application test display information and determines an application test result according to the application test display information.
With reference to the second aspect, in a first implementation manner of the second aspect, the attribute information of the testing party is analog information.
With reference to the second aspect and the first implementation manner of the second aspect, in a second implementation manner of the second aspect, the parameter information of the test device includes one or more of the following parameter information: geographical location information of the test equipment, network address information of the test equipment and unique identification information of the test equipment.
With reference to the second aspect, the first implementation manner of the second aspect, and the second implementation manner of the second aspect, in a third implementation manner of the second aspect, the application test display information includes application test real information and application test activity information related to the test parameter information.
With reference to the second aspect, the first implementation manner of the second aspect, the second implementation manner of the second aspect, and the third implementation manner of the second aspect, in a fourth implementation manner of the second aspect, the test device determines, according to the application test display information, an application test result, where the application test result is implemented as follows:
comparing the application test display information with preset application display information;
and when the application test display information is not matched with the preset application display information, confirming that the application test is failed.
With reference to the second aspect, the first implementation manner of the second aspect, the second implementation manner of the second aspect, the third implementation manner of the second aspect, and the fourth implementation manner of the second aspect, in a fifth implementation manner of the second aspect, an embodiment of the present invention further includes:
And the testing equipment executes preset operation according to the application testing result.
In a third aspect, an embodiment of the present disclosure provides an application testing apparatus.
Specifically, the application testing device includes:
the system comprises an acquisition module, a server and a control module, wherein the acquisition module is configured to acquire test parameter information and send the test parameter information to the server, the test parameter information comprises parameter information of test equipment and attribute information of a test party, and the parameter information of the test equipment is real information;
the display module is configured to respond to receiving application test display information corresponding to the test parameter information sent by the server and display the application test display information;
and the determining module is configured to determine an application test result according to the application test display information.
With reference to the third aspect, in a first implementation manner of the third aspect, the attribute information of the testing party is analog information.
With reference to the third aspect and the first implementation manner of the third aspect, in a second implementation manner of the third aspect, the parameter information of the test device includes one or more of the following parameter information: geographical location information of the test equipment, network address information of the test equipment and unique identification information of the test equipment.
With reference to the third aspect, the first implementation manner of the third aspect, and the second implementation manner of the third aspect, in a third implementation manner of the third aspect, the application test display information includes application test real information and application test activity information related to the test parameter information.
With reference to the third aspect, the first implementation manner of the third aspect, the second implementation manner of the third aspect, and the third implementation manner of the third aspect, in a fourth implementation manner of the third aspect, the determining module according to an embodiment of the present invention includes:
a comparison sub-module configured to compare the application test display information with preset application display information;
and the determining submodule is configured to confirm that the application test is successful when the application test display information is matched with the preset application display information, and confirm that the application test fails when the application test display information is not matched with the preset application display information.
With reference to the third aspect, the first implementation manner of the third aspect, the second implementation manner of the third aspect, the third implementation manner of the third aspect, and the fourth implementation manner of the third aspect, in a fifth implementation manner of the third aspect, the embodiment of the present invention further includes:
And the execution module is configured to execute preset operation according to the application test result.
In a fourth aspect, an application testing apparatus is provided in an embodiment of the present disclosure.
Specifically, the application testing device includes:
the test equipment is configured to acquire test parameter information, send the test parameter information to the server, respond to receiving application test display information sent by the server, display the application test display information, and determine an application test result according to the application test display information, wherein the test parameter information comprises parameter information of the test equipment and attribute information of a test party, and the parameter information of the test equipment is real information;
and the server is configured to determine application test display information corresponding to the test parameter information according to the received test parameter information and send the application test display information to the test equipment.
With reference to the fourth aspect, in a first implementation manner of the fourth aspect, the attribute information of the testing party is analog information.
With reference to the fourth aspect and the first implementation manner of the fourth aspect, in a second implementation manner of the fourth aspect, the parameter information of the test device includes one or more of the following parameter information: geographical location information of the test equipment, network address information of the test equipment and unique identification information of the test equipment.
With reference to the fourth aspect, the first implementation manner of the fourth aspect, and the second implementation manner of the fourth aspect, in a third implementation manner of the fourth aspect, the application test display information includes application test real information and application test activity information related to the test parameter information.
With reference to the fourth aspect, the first implementation manner of the fourth aspect, the second implementation manner of the fourth aspect, and the third implementation manner of the fourth aspect, in a fourth implementation manner of the fourth aspect, the portion for determining the application test result according to the application test display information is further configured to:
comparing the application test display information with preset application display information;
and when the application test display information is not matched with the preset application display information, confirming that the application test is failed.
With reference to the fourth aspect, the first implementation manner of the fourth aspect, the second implementation manner of the fourth aspect, the third implementation manner of the fourth aspect, and the fourth implementation manner of the fourth aspect, in a fifth implementation manner of the fourth aspect, the test device is further configured to: and executing preset operation according to the application test result.
In a fifth aspect, an embodiment of the present disclosure provides an electronic device, including a memory and a processor, where the memory is configured to store one or more computer instructions, where the one or more computer instructions are executed by the processor to implement the method steps of the application test method described above.
In a sixth aspect, embodiments of the present disclosure provide a computer-readable storage medium storing computer instructions for use by an application testing apparatus, including computer instructions for performing the above-described application testing method for use with the application testing apparatus.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
according to the technical scheme, the application is tested by determining the real test equipment parameter information and the simulated test party attribute information, namely, only the factors with smaller fault probability are simulated, and the real information is adopted for the factors with larger fault probability. According to the technical scheme, the problem sources can be exposed as much as possible, the accuracy of application test results is improved, and the situation of shielding problem factors is avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
Other features, objects and advantages of the present disclosure will become more apparent from the following detailed description of non-limiting embodiments, taken in conjunction with the accompanying drawings. In the drawings:
FIG. 1 illustrates a flow chart of an application testing method according to an embodiment of the present disclosure;
fig. 2 shows a flowchart of step S103 of the application test method according to the embodiment shown in fig. 1;
FIG. 3 illustrates a flow chart of an application testing method according to another embodiment of the present disclosure;
FIG. 4 illustrates a flow chart of an application testing method according to another embodiment of the present disclosure;
FIG. 5 illustrates a flow chart of an application testing method according to yet another embodiment of the present disclosure;
FIG. 6 illustrates an overall flowchart of application testing according to an embodiment of the present disclosure;
FIG. 7 shows a block diagram of an application testing apparatus according to an embodiment of the present disclosure;
FIG. 8 shows a block diagram of the determination module 703 of the application test apparatus according to the embodiment shown in FIG. 7;
FIG. 9 shows a block diagram of an application testing apparatus according to another embodiment of the present disclosure;
FIG. 10 shows a block diagram of an application testing apparatus according to yet another embodiment of the present disclosure;
FIG. 11 shows a block diagram of an electronic device according to an embodiment of the present disclosure;
FIG. 12 is a schematic diagram of a computer system suitable for use in implementing an application test method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. In addition, for the sake of clarity, portions irrelevant to description of the exemplary embodiments are omitted in the drawings.
In this disclosure, it should be understood that terms such as "comprises" or "comprising," etc., are intended to indicate the presence of features, numbers, steps, acts, components, portions, or combinations thereof disclosed in this specification, and are not intended to exclude the possibility that one or more other features, numbers, steps, acts, components, portions, or combinations thereof are present or added.
In addition, it should be noted that, without conflict, the embodiments of the present disclosure and features of the embodiments may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
According to the technical scheme provided by the embodiment of the disclosure, the application is tested by determining the real test equipment parameter information and the simulated test party attribute information, namely, only the factor with smaller fault probability is simulated, and the real information is adopted for the factor with larger fault probability. According to the technical scheme, the problem sources can be exposed as much as possible, the accuracy of application test results is improved, and the situation of shielding problem factors is avoided.
Fig. 1 shows a flowchart of an application test method according to an embodiment of the present disclosure, suitable for a test apparatus, as shown in fig. 1, including the following steps S101 to S103:
in step S101, test parameter information is obtained, and the test parameter information is sent to a server, where the test parameter information includes parameter information of a test device and attribute information of a test party, and the parameter information of the test device is real information;
in step S102, in response to receiving the application test display information corresponding to the test parameter information sent by the server, displaying the application test display information;
in step S103, an application test result is determined according to the application test display information.
As mentioned above, with the development of internet technology, more and more merchants or service providers provide services to users through internet applications, and thus, stability of internet applications is becoming more and more important. In practical applications, the internet application generally performs display of related content according to various information such as configuration information and system configuration information fed back by a user, that is, stability of the internet application may be related to the various factors, so, in order to ensure stability of the internet application in practical applications, in the prior art, software-level testing is performed on the internet application based on simulation of the various factors, so as to discover and solve possible problems and possible faults in the internet application in a testing process. However, in practice, the cause of the application fault may be a factor, so that the strategy of the simulation of all the factors shields the problem source, and the result of the application test is deviated.
In view of the above-described drawbacks, in this embodiment, an application test method is proposed that performs a test on an application by determining real test equipment parameter information and simulated test party attribute information, i.e., simulating only factors with a small probability of failure, and employing real information for factors with a large probability of failure. According to the technical scheme, the problem sources can be exposed as much as possible, the accuracy of application test results is improved, and the situation of shielding problem factors is avoided.
In an alternative implementation manner of this embodiment, the application may be, for example, an application program capable of executing a certain function, which may be installed on the terminal, and displays corresponding content information according to corresponding configuration information.
In an optional implementation manner of this embodiment, the test parameter information refers to a preset parameter with a certain authenticity, which is used for providing the application program or the server with the test parameter information to run the application program, and judging whether the running or the configuration of the application program is normal according to the running result.
In an optional implementation manner of this embodiment, the test parameter information includes parameter information of the test device and attribute information of the test party.
As mentioned above, in the prior art, a full simulation is generally performed for a plurality of factors to perform an application test on a software layer, for example, a customized APP capable of simulating all required information is developed, and then the customized APP is used to simulate and generate positioning information, device information and user information to run the APP, so as to determine whether the running state of the APP is normal. However, in practical application, if problems occur in the processes of positioning process and obtaining the equipment information, such as the process of failing to obtain the real information on the software level, the customized plate APP will have a missing problem source because of shielding the information generating process, thereby greatly affecting the accuracy of application test. Therefore, the whole application running process needs to be simulated more truly so as to truly judge whether the running state of the application is normal.
Thus, in an alternative implementation of the present embodiment, the parameter information of the test device in which acquisition failure is likely to occur is set as the real information, i.e., the test of the application is performed using the real, non-simulated test device parameter information. Wherein the parameter information of the test equipment may include one or more of the following parameter information: testing the geographic position information of the equipment; test equipment network address information, such as test equipment IP address information, test equipment MAC address information, etc.; test equipment unique identification information such as test equipment IMEI information and the like.
Considering that the attribute information of the testing party has low possibility of acquiring faults, and can basically perform traversal simulation, the attribute information of the testing party can be set as simulation information, namely information obtained by simulation rather than information obtained truly. The attribute information of the testing party may be, for example: risk information of users, such as whether a certain user is a white list user or a black list user, whether a high risk user or a low risk user, whether a limited user or an unlimited user, whether a normal state user or an abnormal state user, and the like; attribute information of a user, such as whether a certain user is a new user or an old user, whether a user with a higher consumption amount or a user with a lower consumption amount, whether a male user or a female user, a personal user or an enterprise user, which age group of users, which occupation of users, which consumption preference exists, and the like.
In an optional implementation manner of this embodiment, after the test parameter information is sent to the server, the server may determine and feed back application test display information corresponding to the test parameter information according to the test parameter information, and finally display the application test display information.
Considering that the information displayed by the application may include information directly related to the test parameter information, for example, specific information related to test equipment parameter information such as geographical location information of the test equipment, network address information of the test equipment, unique identification information of the test equipment, and the like, for example, if the user a is located in the Shanghai, the information directly related to the test parameter information may be content information promoted only in the Shanghai; and the information relatively independent of the test parameter information can also be included, such as general information which is irrelevant to the test equipment parameter information, such as the geographical position information of the test equipment, the network address information of the test equipment, the unique identification information of the test equipment and the like, for example, general content information of an undeployed popularization area. Thus, in an alternative implementation of the present embodiment, the application test display information includes application test real information unrelated to the test parameter information and application test activity information related to the test parameter information.
In an alternative implementation manner of this embodiment, as shown in fig. 2, the step S103, that is, the step of determining the application test result according to the application test display information, includes the following steps S201 to S202:
In step S201, comparing the application test display information with preset application display information;
in step S202, when the application test display information matches the preset application display information, the application test is confirmed to be successful, and when the application test display information does not match the preset application display information, the application test is confirmed to be failed.
After the application test display information is displayed, an application test result can be detected through comparison of the application test display information and preset application display information, for example, if the application test display information is detected to be matched with the preset application display information, the application test can be considered to be successful, namely, the application is normally operated; if the application test display information is not matched with the preset application display information, the application test is considered to fail, namely the application is abnormally operated.
The preset application display information is information which is obtained according to an application program running normally and can be used as a detection basis for other application display information.
In an optional implementation manner of this embodiment, the method further includes a step of executing a preset operation according to the application test result, that is, as shown in fig. 3, the application test method includes the following steps S301 to S304:
In step S301, test parameter information is obtained, and the test parameter information is sent to a server, where the test parameter information includes parameter information of a test device and attribute information of a test party, and the parameter information of the test device is real information;
in step S302, in response to receiving application test display information corresponding to the test parameter information sent by the server, displaying the application test display information;
in step S303, determining an application test result according to the application test display information;
in step S304, a preset operation is performed according to the application test result.
In order to correct the application having a problem in time and shorten the time required for the application test, in this embodiment, it is also necessary to perform a preset operation according to the result of the application test. When the application test result is that the application runs normally, the preset operation may include one or more of the following operations: release applications, enter next level application testing, etc. When the application test result is that the application is abnormal in operation, the preset operation may include one or more of the following operations: application fault localization, application fault troubleshooting, application modification, application testing re-execution, and the like.
Fig. 4 shows a flowchart of an application testing method according to another embodiment of the present disclosure, which is applicable to a testing system including a testing device and a server, and as shown in fig. 4, the application testing method includes the following steps S401 to S403:
in step S401, a test device acquires test parameter information, and sends the test parameter information to a server, where the test parameter information includes parameter information of the test device and attribute information of a test party, and the parameter information of the test device is real information;
in step S402, the server determines application test display information corresponding to the test parameter information according to the received test parameter information, and sends the application test display information to the test device;
in step S403, in response to receiving the application test display information sent by the server, the test device displays the application test display information, and determines an application test result according to the application test display information.
As mentioned above, with the development of internet technology, more and more merchants or service providers provide services to users through internet applications, and thus, stability of internet applications is becoming more and more important. In practical applications, the internet application generally performs display of related content according to various information such as configuration information and system configuration information fed back by a user, that is, stability of the internet application may be related to the various factors, so, in order to ensure stability of the internet application in practical applications, in the prior art, software-level testing is performed on the internet application based on simulation of the various factors, so as to discover and solve possible problems and possible faults in the internet application in a testing process. However, in practice, the cause of the application fault may be a factor, so that the strategy of the simulation of all the factors shields the problem source, and the result of the application test is deviated.
In view of the above-described drawbacks, in this embodiment, an application test method is proposed that performs a test on an application by determining real test equipment parameter information and simulated test party attribute information, i.e., simulating only factors with a small probability of failure, and employing real information for factors with a large probability of failure. According to the technical scheme, the problem sources can be exposed as much as possible, the accuracy of application test results is improved, and the situation of shielding problem factors is avoided.
In an optional implementation manner of this embodiment, the parameter information of the test device may include one or more of the following parameter information: testing the geographic position information of the equipment; test equipment network address information, such as test equipment IP address information, test equipment MAC address information, etc.; test equipment unique identification information such as test equipment IMEI information and the like.
In an optional implementation manner of this embodiment, the attribute information of the test party may be set to be simulation information, that is, information obtained by simulation, rather than information obtained actually. The attribute information of the testing party may be, for example: risk information of users, such as whether a certain user is a white list user or a black list user, whether a high risk user or a low risk user, whether a limited user or an unlimited user, whether a normal state user or an abnormal state user, and the like; attribute information of a user, such as whether a certain user is a new user or an old user, whether a user with a higher consumption amount or a user with a lower consumption amount, whether a male user or a female user, a personal user or an enterprise user, which age group of users, which occupation of users, which consumption preference exists, and the like.
In an optional implementation manner of this embodiment, the application test display information includes application test real information and application test activity information related to the test parameter information.
In an optional implementation manner of this embodiment, the step of determining, by the test device, the application test result according to the application test display information in step S403 may be implemented as follows:
comparing the application test display information with preset application display information;
and when the application test display information is not matched with the preset application display information, confirming that the application test is failed.
In an optional implementation manner of this embodiment, the method further includes a step of executing, by the test device, a preset operation according to the application test result, that is, as shown in fig. 5, the application test method includes the following steps S501 to S504:
in step S501, a test device obtains test parameter information, and sends the test parameter information to a server, where the test parameter information includes parameter information of the test device and attribute information of a test party, and the parameter information of the test device is real information;
In step S502, the server determines application test display information corresponding to the test parameter information according to the received test parameter information, and sends the application test display information to the test device;
in step S503, in response to receiving the application test display information sent by the server, the test device displays the application test display information, and determines an application test result according to the application test display information;
in step S504, the test device performs a preset operation according to the application test result.
In order to correct the application having problems in time and shorten the time required for the application test, in this embodiment, the test apparatus also needs to perform a preset operation according to the application test result. When the application test result is that the application runs normally, the preset operation may include one or more of the following operations: release applications, enter next level application testing, etc. When the application test result is that the application is abnormal in operation, the preset operation may include one or more of the following operations: application fault localization, application fault troubleshooting, application modification, application testing re-execution, and the like.
Fig. 6 is an overall flowchart of an application test according to an embodiment of the disclosure, where, as shown in fig. 6, a test device obtains test parameter information and sends the test parameter information to a server, the server determines application test display information corresponding to the test parameter information according to the received test parameter information and sends the application test display information to the test device, and the test device displays the application test display information after receiving the application test display information sent by the server and determines an application test result according to the application test display information.
The following are device embodiments of the present disclosure that may be used to perform method embodiments of the present disclosure.
Fig. 7 shows a block diagram of an application testing apparatus according to an embodiment of the present disclosure, which may be implemented as part or all of an electronic device, as a testing device, by software, hardware, or a combination of both. As shown in fig. 7, the application test apparatus includes:
the obtaining module 701 is configured to obtain test parameter information, and send the test parameter information to a server, where the test parameter information includes parameter information of a test device and attribute information of a test party, and the parameter information of the test device is real information;
A display module 702 configured to display the application test display information in response to receiving the application test display information corresponding to the test parameter information sent by the server;
a determining module 703 configured to determine an application test result according to the application test display information.
As mentioned above, with the development of internet technology, more and more merchants or service providers provide services to users through internet applications, and thus, stability of internet applications is becoming more and more important. In practical applications, the internet application generally performs display of related content according to various information such as configuration information and system configuration information fed back by a user, that is, stability of the internet application may be related to the various factors, so, in order to ensure stability of the internet application in practical applications, in the prior art, software-level testing is performed on the internet application based on simulation of the various factors, so as to discover and solve possible problems and possible faults in the internet application in a testing process. However, in practice, the cause of the application fault may be a factor, so that the strategy of the simulation of all the factors shields the problem source, and the result of the application test is deviated.
In view of the above-described drawbacks, in this embodiment, an application test apparatus is proposed that performs a test on an application by determining real test equipment parameter information and simulated tester attribute information, i.e., simulating only factors with a small probability of failure, and employing real information for factors with a large probability of failure. According to the technical scheme, the problem sources can be exposed as much as possible, the accuracy of application test results is improved, and the situation of shielding problem factors is avoided.
In an alternative implementation manner of this embodiment, the application may be, for example, an application program capable of executing a certain function, which may be installed on the terminal, and displays corresponding content information according to corresponding configuration information.
In an optional implementation manner of this embodiment, the test parameter information refers to a preset parameter with a certain authenticity, which is used for providing the application program or the server with the test parameter information to run the application program, and judging whether the running or the configuration of the application program is normal according to the running result.
In an optional implementation manner of this embodiment, the test parameter information includes parameter information of the test device and attribute information of the test party.
As mentioned above, in the prior art, a full simulation is generally performed for a plurality of factors to perform an application test on a software layer, for example, a customized APP capable of simulating all required information is developed, and then the customized APP is used to simulate and generate positioning information, device information and user information to run the APP, so as to determine whether the running state of the APP is normal. However, in practical application, if problems occur in the processes of positioning process and obtaining the equipment information, such as the process of failing to obtain the real information on the software level, the customized plate APP will have a missing problem source because of shielding the information generating process, thereby greatly affecting the accuracy of application test. Therefore, the whole application running process needs to be simulated more truly so as to truly judge whether the running state of the application is normal.
Thus, in an alternative implementation of the present embodiment, the parameter information of the test device in which acquisition failure is likely to occur is set as the real information, i.e., the test of the application is performed using the real, non-simulated test device parameter information. Wherein the parameter information of the test equipment may include one or more of the following parameter information: testing the geographic position information of the equipment; test equipment network address information, such as test equipment IP address information, test equipment MAC address information, etc.; test equipment unique identification information such as test equipment IMEI information and the like.
Considering that the attribute information of the testing party has low possibility of acquiring faults, and can basically perform traversal simulation, the attribute information of the testing party can be set as simulation information, namely information obtained by simulation rather than information obtained truly. The attribute information of the testing party may be, for example: risk information of users, such as whether a certain user is a white list user or a black list user, whether a high risk user or a low risk user, whether a limited user or an unlimited user, whether a normal state user or an abnormal state user, and the like; attribute information of a user, such as whether a certain user is a new user or an old user, whether a user with a higher consumption amount or a user with a lower consumption amount, whether a male user or a female user, a personal user or an enterprise user, which age group of users, which occupation of users, which consumption preference exists, and the like.
In an optional implementation manner of this embodiment, after the test parameter information is sent to the server, the server may determine and feed back application test display information corresponding to the test parameter information according to the test parameter information, and finally display the application test display information.
Considering that the information displayed by the application may include information directly related to the test parameter information, for example, specific information related to test equipment parameter information such as geographical location information of the test equipment, network address information of the test equipment, unique identification information of the test equipment, and the like, for example, if the user a is located in the Shanghai, the information directly related to the test parameter information may be content information promoted only in the Shanghai; and the information relatively independent of the test parameter information can also be included, such as general information which is irrelevant to the test equipment parameter information, such as the geographical position information of the test equipment, the network address information of the test equipment, the unique identification information of the test equipment and the like, for example, general content information of an undeployed popularization area. Thus, in an alternative implementation of the present embodiment, the application test display information includes application test real information unrelated to the test parameter information and application test activity information related to the test parameter information.
In an alternative implementation of the present embodiment, as shown in fig. 8, the determining module 703 includes:
a comparing sub-module 801 configured to compare the application test display information with preset application display information;
A determining sub-module 802 configured to confirm that the application test is successful when the application test display information matches the preset application display information, and confirm that the application test is failed when the application test display information does not match the preset application display information.
After the application test display information is displayed, an application test result can be detected through comparison of the application test display information and preset application display information, for example, if the application test display information is detected to be matched with the preset application display information, the application test can be considered to be successful, namely, the application is normally operated; if the application test display information is not matched with the preset application display information, the application test is considered to fail, namely the application is abnormally operated.
The preset application display information is information which is obtained according to an application program running normally and can be used as a detection basis for other application display information.
In an optional implementation manner of this embodiment, the apparatus further includes a portion that performs a preset operation according to the application test result, that is, as shown in fig. 9, the application test apparatus includes:
The acquisition module 901 is configured to acquire test parameter information and send the test parameter information to a server, wherein the test parameter information comprises parameter information of test equipment and attribute information of a test party, and the parameter information of the test equipment is real information;
a display module 902 configured to display application test display information corresponding to the test parameter information in response to receiving the application test display information sent by the server;
a determining module 903 configured to determine an application test result according to the application test display information;
and the execution module 904 is configured to execute a preset operation according to the application test result.
In order to correct the application having a problem in time and shorten the time required for the application test, in this embodiment, it is also necessary to perform a preset operation according to the result of the application test. When the application test result is that the application runs normally, the preset operation may include one or more of the following operations: release applications, enter next level application testing, etc. When the application test result is that the application is abnormal in operation, the preset operation may include one or more of the following operations: application fault localization, application fault troubleshooting, application modification, application testing re-execution, and the like.
Fig. 10 shows a block diagram of an application testing apparatus according to another embodiment of the present disclosure, which may be implemented as part or all of an electronic device by software, hardware, or a combination of both, as a testing system comprising a testing device and a server. As shown in fig. 10, the application test apparatus includes:
the test equipment 1001 is configured to acquire test parameter information, send the test parameter information to a server, respond to receiving application test display information sent by the server, display the application test display information, and determine an application test result according to the application test display information, wherein the test parameter information comprises parameter information of test equipment and attribute information of a test party, and the parameter information of the test equipment is real information;
and a server 1002 configured to determine application test display information corresponding to the test parameter information according to the received test parameter information, and transmit the same to the test device.
As mentioned above, with the development of internet technology, more and more merchants or service providers provide services to users through internet applications, and thus, stability of internet applications is becoming more and more important. In practical applications, the internet application generally performs display of related content according to various information such as configuration information and system configuration information fed back by a user, that is, stability of the internet application may be related to the various factors, so, in order to ensure stability of the internet application in practical applications, in the prior art, software-level testing is performed on the internet application based on simulation of the various factors, so as to discover and solve possible problems and possible faults in the internet application in a testing process. However, in practice, the cause of the application fault may be a factor, so that the strategy of the simulation of all the factors shields the problem source, and the result of the application test is deviated.
In view of the above-described drawbacks, in this embodiment, an application test apparatus is proposed that performs a test on an application by determining real test equipment parameter information and simulated tester attribute information, i.e., simulating only factors with a small probability of failure, and employing real information for factors with a large probability of failure. According to the technical scheme, the problem sources can be exposed as much as possible, the accuracy of application test results is improved, and the situation of shielding problem factors is avoided.
In an optional implementation manner of this embodiment, the parameter information of the test device may include one or more of the following parameter information: testing the geographic position information of the equipment; test equipment network address information, such as test equipment IP address information, test equipment MAC address information, etc.; test equipment unique identification information such as test equipment IMEI information and the like.
In an optional implementation manner of this embodiment, the attribute information of the test party may be set to be simulation information, that is, information obtained by simulation, rather than information obtained actually. The attribute information of the testing party may be, for example: risk information of users, such as whether a certain user is a white list user or a black list user, whether a high risk user or a low risk user, whether a limited user or an unlimited user, whether a normal state user or an abnormal state user, and the like; attribute information of a user, such as whether a certain user is a new user or an old user, whether a user with a higher consumption amount or a user with a lower consumption amount, whether a male user or a female user, a personal user or an enterprise user, which age group of users, which occupation of users, which consumption preference exists, and the like.
In an optional implementation manner of this embodiment, the application test display information includes application test real information and application test activity information related to the test parameter information.
In an optional implementation of this embodiment, the portion of the test apparatus 1001 that determines an application test result according to the application test display information is further configured to:
comparing the application test display information with preset application display information;
and when the application test display information is not matched with the preset application display information, confirming that the application test is failed.
In an alternative implementation of this embodiment, the test device is further configured to: and executing preset operation according to the application test result.
In order to correct the application having problems in time and shorten the time required for the application test, in this embodiment, the test apparatus also needs to perform a preset operation according to the application test result. When the application test result is that the application runs normally, the preset operation may include one or more of the following operations: release applications, enter next level application testing, etc. When the application test result is that the application is abnormal in operation, the preset operation may include one or more of the following operations: application fault localization, application fault troubleshooting, application modification, application testing re-execution, and the like.
The present disclosure also discloses an electronic device, fig. 11 shows a block diagram of the electronic device according to an embodiment of the present disclosure, and as shown in fig. 11, the electronic device 1100 includes a memory 1101 and a processor 1102; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory 1101 is configured to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor 1102 to implement the above-described method steps.
FIG. 12 is a schematic diagram of a computer system suitable for use in implementing an application test method in accordance with an embodiment of the present disclosure.
As shown in fig. 12, the computer system 1200 includes a Central Processing Unit (CPU) 1201, which can execute various processes in the above-described embodiments in accordance with a program stored in a Read Only Memory (ROM) 1202 or a program loaded from a storage section 1208 into a Random Access Memory (RAM) 1203. In the RAM1203, various programs and data required for the operation of the system 1200 are also stored. The CPU1201, ROM1202, and RAM1203 are connected to each other through a bus 1204. An input/output (I/O) interface 1205 is also connected to the bus 1204.
The following components are connected to the I/O interface 1205: an input section 1206 including a keyboard, a mouse, and the like; an output portion 1207 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 1208 including a hard disk or the like; and a communication section 1209 including a network interface card such as a LAN card, a modem, or the like. The communication section 1209 performs communication processing via a network such as the internet. The drive 1210 is also connected to the I/O interface 1205 as needed. A removable medium 1211 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on the drive 1210 so that a computer program read out therefrom is installed into the storage section 1208 as needed.
In particular, according to embodiments of the present disclosure, the methods described above may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a medium readable thereby, the computer program comprising program code for performing the application testing method described above. In such an embodiment, the computer program can be downloaded and installed from a network through the communication portion 1209, and/or installed from the removable media 1211.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present disclosure may be implemented by software, or may be implemented by hardware. The units or modules described may also be provided in a processor, the names of which in some cases do not constitute a limitation of the unit or module itself.
As another aspect, the present disclosure also provides a computer-readable storage medium, which may be a computer-readable storage medium included in the apparatus described in the above embodiment; or may be a computer-readable storage medium, alone, that is not assembled into a device. The computer-readable storage medium stores one or more programs for use by one or more processors in performing the methods described in the present disclosure.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by those skilled in the art that the scope of the invention referred to in this disclosure is not limited to the specific combination of features described above, but encompasses other embodiments in which any combination of features described above or their equivalents is contemplated without departing from the inventive concepts described. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).

Claims (22)

1. An application test method applied to test equipment, comprising:
acquiring test parameter information and sending the test parameter information to a server, wherein the test parameter information comprises parameter information of test equipment and attribute information of a test party, the parameter information of the test equipment is real information, and the attribute information of the test party is analog information;
responding to receiving application test display information corresponding to the test parameter information sent by the server, and displaying the application test display information;
determining an application test result according to the application test display information;
wherein the fault probability of the attribute information of the testing party is smaller than the fault probability of the parameter information of the testing equipment.
2. The method of claim 1, wherein the parameter information of the test device comprises one or more of the following parameter information: geographical location information of the test equipment, network address information of the test equipment and unique identification information of the test equipment.
3. The method of claim 1, wherein the application test display information includes application test real information and application test activity information related to the test parameter information.
4. The method of claim 1, wherein determining an application test result from the application test display information comprises:
comparing the application test display information with preset application display information;
and when the application test display information is not matched with the preset application display information, confirming that the application test is failed.
5. The method of any one of claims 1-4, further comprising:
and executing preset operation according to the application test result.
6. An application test method applied to a test system including a test device and a server, comprising:
the method comprises the steps that test equipment obtains test parameter information and sends the test parameter information to a server, wherein the test parameter information comprises parameter information of the test equipment and attribute information of a test party, the parameter information of the test equipment is real information, and the attribute information of the test party is analog information;
the server determines application test display information corresponding to the test parameter information according to the received test parameter information and sends the application test display information to the test equipment;
Responding to the received application test display information sent by the server, displaying the application test display information by test equipment, and determining an application test result according to the application test display information;
wherein the fault probability of the attribute information of the testing party is smaller than the fault probability of the parameter information of the testing equipment.
7. The method of claim 6, wherein the parameter information of the test device includes one or more of the following parameter information: geographical location information of the test equipment, network address information of the test equipment and unique identification information of the test equipment.
8. The method of claim 6, wherein the application test display information includes application test real information and application test activity information related to the test parameter information.
9. The method of claim 6, wherein the test device determining application test results from the application test display information is implemented as:
comparing the application test display information with preset application display information;
and when the application test display information is not matched with the preset application display information, confirming that the application test is failed.
10. The method according to any one of claims 6-9, further comprising:
and the testing equipment executes preset operation according to the application testing result.
11. An application testing apparatus, comprising:
the system comprises an acquisition module, a server and a test module, wherein the acquisition module is configured to acquire test parameter information and send the test parameter information to the server, the test parameter information comprises parameter information of test equipment and attribute information of a test party, the parameter information of the test equipment is real information, and the attribute information of the test party is analog information;
the display module is configured to respond to receiving application test display information corresponding to the test parameter information sent by the server and display the application test display information;
a determining module configured to determine an application test result according to the application test display information;
wherein the fault probability of the attribute information of the testing party is smaller than the fault probability of the parameter information of the testing equipment.
12. The apparatus of claim 11, wherein the parameter information of the test device comprises one or more of the following parameter information: geographical location information of the test equipment, network address information of the test equipment and unique identification information of the test equipment.
13. The apparatus of claim 11, wherein the application test display information includes application test real information and application test activity information related to the test parameter information.
14. The apparatus of claim 11, wherein the means for determining comprises:
a comparison sub-module configured to compare the application test display information with preset application display information;
and the determining submodule is configured to confirm that the application test is successful when the application test display information is matched with the preset application display information, and confirm that the application test fails when the application test display information is not matched with the preset application display information.
15. The apparatus according to any one of claims 11-14, further comprising:
and the execution module is configured to execute preset operation according to the application test result.
16. An application testing apparatus, comprising:
the test equipment is configured to acquire test parameter information, send the test parameter information to the server, respond to receiving application test display information sent by the server, display the application test display information, and determine an application test result according to the application test display information, wherein the test parameter information comprises parameter information of the test equipment and attribute information of a test party, the parameter information of the test equipment is real information, and the attribute information of the test party is analog information;
The server is configured to determine application test display information corresponding to the test parameter information according to the received test parameter information and send the application test display information to the test equipment;
wherein the fault probability of the attribute information of the testing party is smaller than the fault probability of the parameter information of the testing equipment.
17. The apparatus of claim 16, wherein the parameter information of the test device comprises one or more of the following parameter information: geographical location information of the test equipment, network address information of the test equipment and unique identification information of the test equipment.
18. The apparatus of claim 16, wherein the application test display information includes application test real information and application test activity information related to the test parameter information.
19. The apparatus of claim 16, wherein the portion for determining application test results from the application test display information is further configured to:
comparing the application test display information with preset application display information;
and when the application test display information is not matched with the preset application display information, confirming that the application test is failed.
20. The apparatus of any of claims 16-19, wherein the test device is further configured to: and executing preset operation according to the application test result.
21. An electronic device comprising a memory and a processor; wherein the memory is for storing one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method steps of any of claims 1-10.
22. A computer readable storage medium having stored thereon computer instructions, which when executed by a processor, implement the method steps of any of claims 1-10.
CN201911136453.6A 2019-11-19 2019-11-19 Application testing method, device, electronic equipment and computer readable storage medium Active CN110955596B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911136453.6A CN110955596B (en) 2019-11-19 2019-11-19 Application testing method, device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911136453.6A CN110955596B (en) 2019-11-19 2019-11-19 Application testing method, device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110955596A CN110955596A (en) 2020-04-03
CN110955596B true CN110955596B (en) 2023-05-19

Family

ID=69977812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911136453.6A Active CN110955596B (en) 2019-11-19 2019-11-19 Application testing method, device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110955596B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102016202772A1 (en) * 2016-02-23 2017-08-24 Siemens Aktiengesellschaft Method for monitoring and planning a production cell and network management system for a production cell
CN108734344A (en) * 2018-05-07 2018-11-02 拉扎斯网络科技(上海)有限公司 Order distribution prediction method, device, equipment and computer readable storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8054750B2 (en) * 2007-10-18 2011-11-08 Cisco Technology, Inc. Virtual responder for the auto-discovery of a real responder in a network performance test
KR20140082266A (en) * 2012-12-24 2014-07-02 한국전자통신연구원 Simulation system for mixed reality contents
US10216869B2 (en) * 2013-05-10 2019-02-26 Trane International Inc. System and method for simulating multiple BACnet devices and objects
US11003668B2 (en) * 2017-02-21 2021-05-11 Sap Se Programming language independent software testing environment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102016202772A1 (en) * 2016-02-23 2017-08-24 Siemens Aktiengesellschaft Method for monitoring and planning a production cell and network management system for a production cell
CN108734344A (en) * 2018-05-07 2018-11-02 拉扎斯网络科技(上海)有限公司 Order distribution prediction method, device, equipment and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
计算机静态仿真结果统计检验方法;张昌年;刘晓刚;;计算机工程与设计(第13期);全文 *

Also Published As

Publication number Publication date
CN110955596A (en) 2020-04-03

Similar Documents

Publication Publication Date Title
US11132284B2 (en) Probationary software tests
CN112650685B (en) Automatic test method, device, electronic equipment and computer storage medium
CN114168471A (en) Test method, test device, electronic equipment and storage medium
CN105138451B (en) A kind of methods, devices and systems of function for probe card
CN109240928A (en) Test method, device, equipment and storage medium
CN110955596B (en) Application testing method, device, electronic equipment and computer readable storage medium
CN113849356A (en) Equipment testing method and device, electronic equipment and storage medium
CN110955597B (en) Object testing method and device, electronic equipment and computer readable storage medium
US11121912B2 (en) Method and apparatus for processing information
CN111984543B (en) Instruction testing method, device and system
CN112346994B (en) Test information association method, device, computer equipment and storage medium
CN109739752B (en) Built-in resource testing method and device, electronic equipment and readable storage medium
CN114978923A (en) Fault drilling method, device and system
CN113656301A (en) Interface testing method, device, equipment and storage medium
US10977146B2 (en) Application operation monitoring apparatus and application operation monitoring method
CN112258116A (en) Position coverage range data updating method of logistics service and related equipment
CN111258890A (en) Program test method, storage medium, and system
CN111694556A (en) Verification method and system, computer system and medium
CN112882908B (en) Method and device for generating information
CN112699017A (en) Sound testing method and device, electronic equipment and computer readable storage medium
CN115994097B (en) Method and device for generating abnormal cash-out use cases based on error codes
CN114218056B (en) Performance test method and device for transaction system, computer equipment and storage medium
CN114116468A (en) Application testing method and device, electronic equipment and storage medium
CN116796098A (en) Webpage style display method, device, equipment, system and medium
CN112817849A (en) Test data processing method, device, equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant