CN109582579A - Applied program testing method, device, electronic equipment and storage medium - Google Patents
Applied program testing method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN109582579A CN109582579A CN201811451273.2A CN201811451273A CN109582579A CN 109582579 A CN109582579 A CN 109582579A CN 201811451273 A CN201811451273 A CN 201811451273A CN 109582579 A CN109582579 A CN 109582579A
- Authority
- CN
- China
- Prior art keywords
- test
- application
- case
- instruction
- user
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3692—Test management for test results analysis
Abstract
The invention discloses a kind of applied program testing method, device, electronic equipment and storage mediums, belong to network technique field.This method comprises: when receiving test instruction, determine destination application to be tested, the test instruction, which is used to indicate, tests the destination application based on multiple test cases, and each test case is used to indicate the test logic for the subprogram tested in the destination application;Based on the multiple test case, the destination application is tested;During the test, show that the test information of each test case, the test information are used to indicate the implementing result of test logic indicated by each test case on the application interface of test application;Test information based on the multiple test case, exports the test result of the destination application.The present invention tests information by real-time display in test process, improves actual test efficiency.
Description
Technical field
The present invention relates to network technique field, in particular to a kind of applied program testing method, device, electronic equipment and deposit
Storage media.
Background technique
With the development of internet technology, the application program type that people usually use is increasingly various.Every kind of application program
When writing completion, technical staff needs to test the application program, and the application program is just issued after being successfully tested.Mesh
Before, technical staff is generally by test application come test application program.
In the related technology, after terminal opens test application, based on the test logic in the test application, to be tested is answered
It is tested with the file destination of program, to test whether normally realize function corresponding to the file destination.Test terminates
When, terminal outputs test result.For example, testing the corresponding file of the login page of social application, to judge log in page
Whether the login function in face is normal, then exports the test result that can normally log in or cannot normally log in.
After the above method is actually test process, feedback test result.However, a usual test process is held
The row time is longer, and user needs to wait the long period, also, the information for including in test result is more, user also need spend compared with
More browsing times causes actual test efficiency lower so that information display efficiency is lower in entire test process.
Summary of the invention
The embodiment of the invention provides a kind of applied program testing method, device, electronic equipment and storage mediums, can solve
The certainly lower problem of actual test efficiency in the related technology.The technical solution is as follows:
On the one hand, a kind of applied program testing method is provided, which comprises
When receiving test instruction, destination application to be tested is determined, the test instruction, which is used to indicate, to be based on
Multiple test cases test the destination application, and each test case is used to indicate the test target application journey
The test logic of subprogram in sequence;
Based on the multiple test case, the destination application is tested;
During the test, the test information of each test case, the survey are shown on the application interface of test application
Examination information is used to indicate the implementing result of test logic indicated by each test case;
Test information based on the multiple test case, exports the test result of the destination application.
On the other hand, a kind of Application testing device is provided, described device includes:
Determining module, for when receiving test instruction, determining destination application to be tested, the test instruction
It is used to indicate and the destination application is tested based on multiple test cases, each test case is used to indicate test institute
State the test logic of the subprogram in destination application;
Test module tests the destination application for being based on the multiple test case;
Display module, for during the test, the survey of each test case being shown on the application interface of test application
Information is tried, the test information is used to indicate the implementing result of test logic indicated by each test case;
Output module exports the survey of the destination application for the test information based on the multiple test case
Test result.
On the other hand, a kind of electronic equipment is provided, the electronic equipment includes processor and memory, the memory
In be stored at least one instruction, described instruction is loaded by the processor and is executed to realize such as above-mentioned Application testing
Operation performed by method.
On the other hand, a kind of computer readable storage medium is provided, at least one finger is stored in the storage medium
It enables, described instruction is loaded as processor and executed to realize the operation as performed by above-mentioned applied program testing method.
Technical solution provided in an embodiment of the present invention has the benefit that
Method and device provided in an embodiment of the present invention is being based on multiple test cases by terminal, to mesh to be tested
During mark application program is tested, the test letter of each test case can be shown on the application interface of test application
Breath, by showing that the test information provides the implementing result of test logic indicated by each test case for user, to make
The test case of each test case can be understood in real time in test whole process by obtaining user;When the test is finished, based on multiple
The test information of test case, exports the test result of the destination application.Due to that can provide in real time during the test
The implementing result of each test case, thus allow user quickly, know test case in real time, it is superfluous compared to just providing at the end of final
Long test result, the embodiment of the present invention improves the timeliness that test result is shown, to further improve actual test
Efficiency.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is a kind of schematic diagram of implementation environment provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of applied program testing method provided in an embodiment of the present invention;
Fig. 3 is a kind of application interface schematic diagram of test application provided in an embodiment of the present invention;
Fig. 4 is a kind of application interface schematic diagram of test application provided in an embodiment of the present invention;
Fig. 5 is a kind of application interface schematic diagram of test application provided in an embodiment of the present invention;
Fig. 6 is a kind of application interface schematic diagram of test application provided in an embodiment of the present invention;
Fig. 7 is a kind of application interface schematic diagram of test application provided in an embodiment of the present invention;
Fig. 8 is a kind of application interface schematic diagram of test application provided in an embodiment of the present invention;
Fig. 9 is a kind of application interface schematic diagram of test application provided in an embodiment of the present invention;
Figure 10 is a kind of application interface schematic diagram of test application provided in an embodiment of the present invention;
Figure 11 is a kind of application interface schematic diagram of test application provided in an embodiment of the present invention;
Figure 12 is a kind of application interface schematic diagram of test application provided in an embodiment of the present invention;
Figure 13 is a kind of application interface schematic diagram of test application provided in an embodiment of the present invention;
Figure 14 is a kind of structural schematic diagram of Application testing device provided in an embodiment of the present invention;
Figure 15 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention;
Figure 16 is a kind of structural schematic diagram of server provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
Fig. 1 is a kind of schematic diagram of implementation environment provided in an embodiment of the present invention, and referring to Fig. 1, which includes: to survey
Try equipment 101, server 102 and server 103.Test application can be opened in the test equipment 101, which is used for
Destination application is tested, which is the background server of the test application, which can be with
By carrying out data interaction between the test application and the server 102.The server 103 is the backstage of the destination application
Server during the test can also be by the dry run destination application, to the target in the test equipment 101
Application program is tested, which can be based on carrying out data between the destination application and the server 103
Interaction.
The test equipment 101 can test the destination application based on the test application.The test equipment 101
When opening the test application, which establishes multiple test cases in the test application, and obtains the target application
Program, each test case are used to indicate the test logic for the subprogram tested in the destination application.The test equipment 101
Based on test logic indicated by multiple test case, the test process to the destination application is executed.In test process
In, which can show the test information of each test case, which is used to indicate each test case
The implementing result of indicated test logic, so that user can know the test process of the destination application in real time.
Wherein, user can log in personal account in the test application, which can obtain from server 102 should
Test assignment of the user on the platform of the test application, the test assignment can be created by the user, or by removing the user
Other users creation in addition, but the user can also have the permission that triggering executes the test assignment.
In addition, it includes database server that the implementation environment, which can also be, which builds with the server 102
Vertical communication connection, the test logic of each test case can be realized that the database server can store more by test suite
A test suite.The test equipment 101 can show the component mark of multiple test suite on the application interface of test application
Know, user selection target test suite, the server 102 can obtain from multiple test suite from the database server
Target detection component is taken, and multiple test suite is sent to test equipment 101, which can be based on the mesh
Test suite is marked, establishes test case in the test application.
It should be noted that the test equipment 101 can be terminal, or server.The test application can be
Test application plug-in unit in the application programs such as browse application, social application, then the test equipment 101 can be in browse application, society
It hands in the application programs such as application and opens the test application, for example, test equipment 101 opens oneself of the test application from browser
Dynamicization tests Web page.Alternatively, the test application may be independently installed test application program, the test equipment 101 is straight
It connects and opens the test application program.Wherein, test logic indicated by multiple test case can include but is not limited to: the mesh
Mark test logic, the test logic of the performance of the destination application, the destination application of the application interface of application program
Configuration test test logic etc..The present invention is not especially limit this.
Fig. 2 is a kind of flow chart of applied program testing method provided in an embodiment of the present invention.This method can be applied to
In test equipment, which can be terminal or server, and the embodiment of the present invention is illustrated by taking terminal as an example, the present invention
The executing subject of embodiment can be terminal, referring to fig. 2, this method comprises:
201, user identifier of the terminal based on multiple test cases and target user, establishes target detection task.
Wherein, which, which refers to, is appointed based on multiple test case to what the destination application was tested
Business.The target user refers to the user for having the permission of triggering performance objective test assignment.In the embodiment of the present invention, when terminal needs
When carrying out target detection to destination application, which obtains multiple test case and the user of the target user marks
Know, according to the user identifier of multiple test case and the target user, target detection task is established in the test application.
Wherein, the number of the target user can be one or more.The terminal obtains the user identifier of the target user
Afterwards, which can be associated with the target detection task by the user identifier, when the target user logs in the test application,
The terminal can show the target detection task on the application interface.
In a kind of possible embodiment, which can will be belonging to the target detection task and the target detection task
Target user group it is associated, which includes multiple target users, is provided with triggering and executes the target detection
The permission of task.In general, in actual use, which may include being responsible for multiple targets of the target detection task
User, for example, the groups of users that a groups of users can be made of the program member of a certain project team, the terminal can be used
Group identification of the project label of the project team as the groups of users.Further, which can also be in the test application
Middle setting project team management module, the project group manage-ment module is for managing test assignment and the corresponding user group of test assignment
Group.In addition, the user in each groups of users can also delete the corresponding test assignment of the groups of users, increase, repair
The operation such as change or search.Wherein, for each test assignment, which can also remove the groups of users for test assignment addition
User in addition, the permission user as the test assignment.Whether permission user has the power that triggering executes the test assignment
Limit, is provided simultaneously with and the operating rights such as the test assignment is deleted, increases, modifies or searched.As shown in figure 3, for APG
Project, the groups of users of the APG project include two users, but for the test assignment, permission user includes four users,
The permission user of the APG project can invite other users that the project or Maintenance Significant Items group is added with setting option purpose title
Configuration etc..When actual techniques operate, the user of the groups of users can be created more first based on destination application to be tested
A test case is based on multiple test case, configures target detection task.
In a kind of possible embodiment, in the embodiment of the present invention, which can also be provided for user to the test
The editting function of use-case is provided with editing area in the application interface of the test application, and user can according to need, and pass through the volume
Function is collected to edit test case.The process can be with are as follows: terminal receives edit instruction, in the editing area of the application interface
Middle display test case to be edited;User can be to be edited to this in the editing area target detection use-case compile
Volume, which obtains edited target detection use-case from the editing area, and edited target detection use-case is determined
To test test case used by the destination application.In this step, the terminal is according to the edited test case, more
Test case under the new target detection task.
Wherein, which can also be arranged user to the editing authority of test case.Terminal is in the use based on active user
When the Information Authentication active user in family has editing authority, just executes and receive edit instruction, in the editing area of the application interface
Middle the step of showing target detection use-case to be edited.Wherein, for each test case, which can be stored in advance each
The user information of the permission user of test case, the permission user of each test case, which refers to, has right of compilation to the test case
The user of limit.The terminal obtains the user information of the user, and according to the power of the user information of the user and each test case
The user information for limiting the use of family, verifies whether the user has the editing authority for editing the test case, when terminal is based on the user
When the Information Authentication user has editing authority, terminal shows that the target to be edited is surveyed in the editing area of the application interface
Example on probation, so that user can edit the test case in the editing area.
The test application can also have frame selection function, which can show multiple frame choosings in application interface
, each frame option is used to indicate a kind of frame, and the terminal is according to the frame option being selected in multiple frame option, really
Surely selected target framework creates the test case according to the target framework.As shown in figure 4, the terminal can show jest
Frame and frameless equal frames option, are selected with standby user.
In a kind of possible embodiment, each test case can be made of multiple test suites, and each test is used
The test function of example can be realized that therefore, for each test case, which obtains the test case by test suite
Process can be with are as follows: and the terminal obtains multiple test suites based on the target subprogram in multiple subprograms to be tested, and according to
Multiple test suite determines the corresponding test case of target subprogram.Wherein, multiple test suite includes testing the mesh
The program used when marking subprogram, multiple subprogram are multiple subprograms included in the destination application.Wherein, exist
During actual techniques, which can create multiple test suites and multiple test cases in advance, for each test case,
The test case can be associated with by the terminal with the foundation of multiple test suites, be used so that the test case can be quoted with the test
Example establishes associated multiple test suites, to create the test case.
The terminal can also provide the editting function to test suite for user, and the right of compilation to the test suite is arranged
Limit.The process that the terminal edits test suite, it is no longer superfluous herein with the process of the editing process of the test case similarly
It states.As shown in figure 5, the terminal can show the editing area edited to the test case or test suite in application interface
Domain, user can edit test suite or test case in editing area.In addition, for each test case, it should
Terminal can also provide component selection function, and each test case is generally made of multiple test suites, which can also be
The function of screening the test suite of each test case is provided.As shown in fig. 6, the component in each test case shows the page
In, which can show multiple alternative test suites, and user can be by choosing operation, the test suite that terminal will be selected
It is added in the test case.Certainly, which can also delete some test suite in the test case.
When wherein, to the destination application performance objective test assignment, multiple test suites, the terminal may be used
It can also classify to multiple test suite, and according to classification belonging to each test suite, be shown in application interface
Multiple test suite.Wherein, which can will belong to generic test suite and show in the same area, alternatively,
Multiple class labels are provided in application interface, when the target category label in multiple class labels is selected, which is being answered
Belong to multiple test suites of the target category with display in interface.As shown in fig. 7, the terminal can be shown in application interface
Component classification belonging to multiple multiple test suites, the terminal can also show that each test suite is corresponding in application interface
Edit button, delete button etc..In addition, the terminal can also provide the classification feature classified to test case, such as Fig. 8
Shown, which can also show that use-case belonging to multiple multiple test cases is classified in application interface, for example, belonging to
" APG use-case " or " digital album " classification etc., which can also show the use-case of each test case in application interface
The information such as title, founder, use-case ID, certainly, the terminal can also show the corresponding Edit button of each test case, deletion
Button etc., the editting function to each test suite is provided, deletes function etc..
In a kind of possible embodiment, included test suite may have coincidence between different test cases,
Target detection component in multiple test suites can also be packaged by the terminal, which can be by multiple surveys
Cited in example on probation.Wherein, which can be general test suite, for example, login or request for test ring
The test suite in border.In addition, the terminal can also be each test component configuration permission user, that is to say, which can close
The user identifier of the permission user of connection storage test suite and the test suite, the permission user of the test suite refer to this
Test suite has the user of administration authority.The terminal can based on the corresponding relationship between the test suite and permission user,
It determines the permission user to each test suite, and provides test suite management function for permission user.
Assembly management module and case management module are also provided in the test application.The assembly management module and use
Example management module is respectively used to management test suite, test case.The terminal can be by the assembly management module, based on above-mentioned
The function to the test suite that process is related to, deletes each test suite, is increased, being edited and user authority management
Deng, operation.Each test is used based on the function to the test case that the above process is related to by the case management module
Example, which is deleted, increased, edit etc., to be managed.
In a kind of possible embodiment, user can log in personal account in the test application, which can be with
From test assignment of the user on the platform of the test application is obtained in server, in addition, the test application is also equipped with outside
Access function, the outside access function refer to by the platform of the application program other than the test application access the test application into
The function of row test.Certainly, which can be the application assigned authority information for having external access authority in advance,
And store the authority information.When application program other than test application initiates access request to the test application, which is asked
The authority information for carrying the application program is sought, which receives the access request, and based on the authority information to the application program
It is verified, when the terminal authentication passes through, the application program is allowed to access the platform of the test application.Further, the end
End can test the destination application using the application program of the access as destination application to be tested.
Wherein, which can realize the key information of distribution for the test application, for example, the authority information can be with
For APP key (api interface verifying serial number).
In a kind of possible embodiment, authority management module can be configured in the test application, the permission pipe
Reason module can be used for managing the access authority of a certain service in each test case, test suite or test application.In reality
When border technology is realized, when creating target detection task, the routine interface of the available multiple test cases of the terminal, and configure
The interface type of the routine interface of each test case, which can be open interface or non-public interface, when this
When interface type is open interface, any user is provided with the access authority to the test case.When the interface type is non-public affairs
When opening, then terminal can verify the user based on the user information of user, when being verified, just determine the user
Has the access authority to the test case.Certainly, which can also manage each test case or test
Other permissions in addition to access authority of component, for example, editing authority, access right, deletion permission etc., the embodiment of the present invention
It is not specifically limited in this embodiment.In addition, the authority management module can store and each test case of real-time servicing or test group
The authority information list of part stores user's letter of the permission user of the test case or test suite in the authority information list
Breath.Permission user, which refers to set up the test case or test, to be had access authority, editing authority, access right or deletes power
The user of any one or more permissions such as limit.The user information stored in the authority information list can be user name, Yong Hubiao
Know etc..
In addition, permission of the authority management module in addition to management of test cases, also supports the pipe of the permission of each project team
Reason.Since terminal directly can distribute the permission for test suite, test case and test assignment for each project team, because
This, the terminal can only be shown in the target area of test application the user have the test suite of permission, test case and
Test assignment.The target area can be the menu bar region in the left side in the application interface.
It should be noted that by the interface class that each test case is arranged, and further, setting authority information is arranged
Table etc. can cover all access requests for accessing each test case or test suite comprehensively, special by configuring
Authority management module can be checked quickly, manage some user to the permission of some test case, thus avoid entirely to survey
Application configuration overall situation white list is tried, but carrys out restricting user access in strict accordance with the interface authority of each test case, is improved
The efficiency of management saves system resource.
202, when receiving test instruction, terminal determines destination application to be tested.
Wherein, test instruction, which is used to indicate, carries out target detection to the destination application.When terminal is detected to this
When the trigger event of target detection task, test instruction is received.In the embodiment of the present invention, which can be based on the target application
The chained address of program obtains the destination application.In this step, when terminal detects test instruction, terminal is obtained
Object linking, the Object linking are used to indicate the storage location of the destination application;The terminal is obtained according to the Object linking
The destination application.Wherein, which can be html (the hyper text markup of the destination application
Language, HyperText Markup Language) link, which can be linked based on the html, from the corresponding net of html link
The destination application is obtained in page.The destination application can be any application program that need to be tested, for example, audio is answered
With application programs such as, Video Applications or social applications.
Wherein, each test case is used to indicate the test logic for the subprogram tested in the destination application, namely
It is that each test case is corresponding with the subprogram in destination application, for each test case, the terminal is available
The link of the corresponding subprogram of each test case, the link can be the storage location of the corresponding subprogram of the test case,
The terminal obtains the subprogram of the corresponding test of the test case according to the link of the corresponding subprogram of each test case.
Wherein, the event or terminal which can be clicked for the task label of target detection task reach mesh
Mark condition, correspondingly, this step can be realized by following two mode.
First way, the terminal can show the task label of the target detection task, the triggering in application interface
Event can be the event that the task label is clicked.When the target user, which logs in this, to be used to test, which opens the mesh
User is marked to the target permission of the target detection task, and shows the task label of the target detection task on application interface,
The target user can click the task label, and when terminal detects that the task label is clicked, which receives test and refer to
It enables.
Wherein, which can store the corresponding test assignment of each user, and provides triggering to each user and execute
The permission of corresponding test assignment.When target user logs in the test application, which can check the goal task, and
Triggering terminal executes the test process.
It should be noted that the sublink may be the html link of the subprogram, which can be in advance by the mesh
Multiple subprograms of mark application program, which are stored to html, to be linked in corresponding webpage, when terminal receives test instruction, directly
It is linked based on the html, obtains the corresponding subprogram of each test case.
The second way, the trigger event can also reach goal condition for the terminal, which can be the end
The present system time at end reaches next test period, and in the embodiment of the present invention, which can be previously set test period,
The duration of end time and test period of the terminal based on last time test, the present system time for detecting the terminal is to reach
To next test period, when reaching next test period, which receives test instruction.
Wherein, which can be based on needing to be configured, and the present invention is not especially limit this.Example
Such as, which can also reach the system charge of object time or the terminal not for the present system time of the terminal
Less than default electricity, alternatively, the current geographic position of the terminal is within a preset range etc..
It should be noted that the target detection process can be triggered by user's operation, can also voluntarily be triggered by terminal, from
And it improves and tests the destination application practicability;Since the terminal by executing the target detection process automatically, liberate
The limitation of manpower allows user that can focus more on other business, improves testing efficiency.Further, which can also be by
The test process is executed according to certain frequency, improves the accuracy of test execution.Also, the target detection task may include
Multiple test cases, when receiving the test instruction for the target detection task, multiple test case can be synchronized open
Begin to execute, to further improve the testing efficiency of the test process by multiple test case parallel forms.
203, terminal is based on multiple test case, tests the destination application.
In this step, the test logic which indicates according to the test case executes the survey to the destination application
Try the corresponding test process of logic.In a kind of possible embodiment, which can simulate the mesh according to the test case
The actual moving process of application program is marked, and is compared based on the operational process of the simulation with standard operational process, with judgement
Whether the destination application can operate normally, to realize the test to the destination application.Then this step can be with are as follows:
For each test case, target subprogram of the terminal according to the corresponding test of the test case, the sub- journey of the dry run target
The operational process of sequence obtains the operation data in the operational process, and the terminal is by the operation data and standard in the operational process
Operation data is compared, to judge whether the target subprogram can operate normally.Wherein, when the operation data and the standard
When operation data matches, which determines that the target subprogram can operate normally, when the operation data and the standard are run
When data mismatch, which determines that the target subprogram can not operate normally.
Wherein, which can be the relevant data of target subprogram activation process, for example, test login page
Login process when, the operation data may include login process consumed duration, login successfully rear shown interface etc..
In a kind of possible embodiment, which can repeatedly be tested the destination application, with
Improve the robustness of the test.The process can be with are as follows: for each test case, which is based on the corresponding survey of the test case
Logic is tried, the test of number of targets contents is repeated to the destination application.Further, the survey which tests every time
Try information.For example, the test case of the operation state for monitoring objective application program, which, which can cache, is repeatedly tested
Information is tested, based on the test information repeatedly tested, to observe the variation of the operation data of the destination application with subsequent
Situation etc..
204, during the test, terminal shows the test letter of each test case on the application interface of test application
Breath.
Wherein, which is used to indicate the corresponding implementing result for testing logic of each test case;The execution
It as a result can be the first instruction information or destination application that the subprogram of destination application can not operate normally
The second indication information that subprogram can operate normally.The target subprogram is the subprogram that the test case is tested.This
In step, for each test case, which can be in the son based on each testing case destination application
When program can operate normally, the first instruction information is shown on the application interface, which is used to indicate the son
Program can operate normally;Alternatively, the subprogram based on each testing case destination application cannot be normal
When operation, second indication information is shown on the application interface, which is used to indicate the subprogram can not be just
Often operation.
Further, during the test, which can be simulated in implementation procedure with the real-time display target subprogram
Interface, which can be with are as follows: during the test, which calls screenshot interface, by the screenshot interface, to target
The interface that program simulates the destination application in implementation procedure carries out screenshot, obtains the interface screenshot of the destination application.
The terminal can show the interface screenshot in the application interface of the test application.Further, which can also have
Identification function, the terminal can identify image, text information etc. in the interface screenshot, and image, the text that will identify that
Information is shown on application interface together.
In a kind of possible embodiment, which is also based on certain trigger condition, shows the interface screenshot,
The trigger condition can be not normally functioning for subprogram, which can be with are as follows: when terminal is based on the testing case
When program can not operate normally, terminal shows image on the application interface, which is used to indicate the subprogram can not
The interface of destination application when normal operation.Wherein, which can answered by way of above-mentioned display interface screenshot
With showing the image on interface.
As shown in figure 9, the terminal can show the implementing result of multiple test cases on the application interface of test application,
So that user can be apparent from the test case of each test case, preferably holds in entire test process and be likely to occur
The problem of.Also, the terminal can also show the corresponding multiple details buttons of multiple test cases, when user triggers a certain test
When the details button of use-case, which can also further display the execution information of the test case.As shown in Figure 10, for every
A test case, the terminal can more specifically show the letter such as the execution parameter of the test case, log information, interface screenshot
Breath.As shown in figure 11, which can also cut the section for the destination application tested in some use-case implementation procedure
Figure improves user experience so as to show in real time by test result is clearer.
As shown in figure 12, which is also based on OCR (Optical Character Recognition, optical character
Identification) function, interface screenshot is identified, text information is obtained, for example, being obtained to when left side screenshot identifies in Figure 12
To text information such as Figure 12 in right side text information, which can further be judged based on the text information in Figure 12
Whether the subprogram of the corresponding test of the test case can operate normally.
In addition, the terminal can also be managed the log of each test case, for example, day can also be arranged in the terminal
The output pattern and the Show Styles of text etc. of text in will.As shown in figure upper in Figure 13, which can be set log Chinese
Word information is exported according to json format, while the Show Styles of text information can also be arranged in the terminal, for example, text
Font size, color, font format etc..For example, will indicate that some word program can not the normal prominent label of information in log
It is overstriking font etc. for red, font.
Further, it can be configured with log management module in the test application, which is mainly used for
The log of management of test cases can also encapsulate inquiry and the record log interface of mongodb in the test application, convenient
It records sql sentence to execute, facilitates positioning when going wrong in test process.
It should be noted that the terminal can provide the test of each test case in real time during the test for user
Information, so that user can in time, accurately recognize the operating condition of each subprogram in the destination application, compared to existing
Have in technology, only just shows final test result at the end of destination application is all tested, the embodiment of the present invention is significantly
The timeliness that information is shown is improved, the time that user knows test case is shortened, improves actual test efficiency.Further
, when testing out subprogram and being not normally functioning, application program when which can specifically provide operation error for user
Interface screenshot so that user can quickly position the source of the run-time error, and is synchronized and is debugged to application program, thus into
One step improves the accuracy and actual test efficiency that test case is shown in test process.
205, test information of the terminal based on multiple test case, exports the test result of the destination application.
In this step, at the end of terminal test, which generates test according to the test information of multiple test case
Report, and using the test report as the test result of the destination application, export the test result.
Further, during the test, which can also be by the test information real-time informing of each test case
To user, in addition, pre-set user can also be arranged in the terminal in advance, and the test information is sent to the pre-set user.Wherein, should
Terminal can store the user identifier of the pre-set user, and by the user identifier, which sends the test information.The use
Family mark can be the Termination ID (IDentity, identity) of the terminal where the phone number of the user, the user, the use
Social account etc. of the family in social application.The pre-set user can be the permission user of the test case, that is to say target user,
Or the user that terminal is separately provided, the embodiment of the present invention are not specifically limited in this embodiment.For example, the terminal can be by the survey
It tries information and generates test report, and the test report is sent to the mailbox of user, the message informing entrance of social application platform
Deng.
It should be noted that the test application can be configured with homepage module, and as shown in the following figure in Figure 13, homepage module
Main users manage the platform homepage of the test application, for example, showing some test assignment on test application platform in homepage
Test data or the test case be responsible for of user or test assignment 24 hours and 30 days success rate and unsuccessfully arrange
Table.
In the embodiment of the present invention, terminal is being based on multiple test cases, tests destination application to be tested
During, the test information of each test case can be shown on the application interface of test application, by showing the test
Information provides the implementing result of test logic indicated by each test case for user, so that user is in test whole process
The test case of each test case can be understood in real time;When the test is finished, based on the test information of multiple test case,
Export the test result of the destination application.Since the execution knot of each test case can be provided in real time during the test
Fruit, thus allow user quickly, know test case in real time, compared to just providing interminable test result at the end of final, the present invention
Embodiment improves the timeliness that test result is shown, to further improve actual test efficiency.
Figure 14 is a kind of structural schematic diagram of Application testing device provided in an embodiment of the present invention.It, should referring to Figure 14
Device comprises determining that module 1401, test module 1402, display module 1403 and output module 1404.
Determining module 1401, for determining destination application to be tested, which refers to when receiving test instruction
Order, which is used to indicate, tests the destination application based on multiple test cases, and each test case is used to indicate test should
The test logic of subprogram in destination application;
Test module 1402 tests the destination application for being based on multiple test case;
Display module 1403, for during the test, each test case being shown on the application interface of test application
Test information, which is used to indicate the implementing result of test logic indicated by each test case;
Output module 1404 exports the survey of the destination application for the test information based on multiple test case
Test result.
Optionally, the display module 1403 is also used to be based on the testing case mesh for each test case
When the subprogram of mark application program can operate normally, the first instruction information is shown on the application interface, the first instruction letter
The subprogram that breath is used to indicate the destination application can operate normally;Alternatively, being based on the testing case target
When the subprogram of application program can not operate normally, second indication information is shown on the application interface, the second instruction letter
The subprogram that breath is used to indicate the destination application can not operate normally.
Optionally, the display module 1403 is also used to when the sub- journey based on the testing case destination application
When sequence can not operate normally, image is shown on the application interface, which is used to indicate the sub- journey of the destination application
The interface of destination application when sequence can not operate normally.
Optionally, the device further include:
Module is obtained, for obtaining the user identifier of multiple test case and target user, which refers to tool
The user of the permission of standby triggering performance objective test assignment, the target detection task refer to based on multiple test case to the mesh
The task that mark application program is tested;
Module is established, for the user identifier according to multiple test case and the target user, target detection is established and appoints
Business;
Receiving module, for when detecting the trigger event to the target detection task, receiving test instruction.
Optionally, which is that the task label of the target detection task is triggered or test equipment reaches target item
Part,
The receiving module is also used to show the mesh on the application interface when the target user logs in the test application
The task label for marking test assignment receives test instruction when detecting that the task label is triggered;Alternatively, when detecting
When test equipment reaches goal condition, test instruction is received.
Optionally, the determining module 1401 is also used to obtain Object linking, the target when receiving test instruction
Link is used to indicate the storage location of the destination application;According to storage location indicated by the Object linking, the mesh is obtained
Mark application program.
Optionally, it is provided with editing area in the application interface of the test application, which is also used to receive
When edit instruction, target detection use-case to be edited is shown in the editing area of the application interface, the edit instruction is for referring to
Show and the target detection use-case in multiple test case is edited;
The determining module 1401 is also used to be used the edited target detection according to edited target detection use-case
Example is determined as the test case used when testing the destination application.
Optionally, the display module 1403 is also used to verify active user tool in the user information based on active user
When standby editing authority, edit instruction is received, target detection use-case to be edited is shown in the editing area of the application interface.
Optionally, the test module 1402 is also used to for each test case, corresponding based on each test case
Logic is tested, the test of number of targets contents is repeated to the destination application, obtains the test letter of number of targets contents test
Breath;The test information that the number of targets contents is tested is stored into target storage space.
In the embodiment of the present invention, terminal is being based on multiple test cases, tests destination application to be tested
During, the test information of each test case can be shown on the application interface of test application, by showing the test
Information provides the implementing result of test logic indicated by each test case for user, so that user is in test whole process
The test case of each test case can be understood in real time;When the test is finished, based on the test information of multiple test case,
Export the test result of the destination application.Since the execution knot of each test case can be provided in real time during the test
Fruit, thus allow user quickly, know test case in real time, compared to just providing interminable test result at the end of final, the present invention
Embodiment improves the timeliness that test result is shown, to further improve actual test efficiency.
All the above alternatives can form the alternative embodiment of the disclosure, herein no longer using any combination
It repeats one by one.
It should be understood that Application testing device provided by the above embodiment is in Application testing, only more than
The division progress of each functional module is stated for example, can according to need and in practical application by above-mentioned function distribution by difference
Functional module complete, i.e., the internal structure of equipment is divided into different functional modules, with complete it is described above whole or
Person's partial function.In addition, Application testing device provided by the above embodiment belongs to applied program testing method embodiment
Same design, specific implementation process are detailed in embodiment of the method, and which is not described herein again.
Figure 15 shows the structural block diagram of the terminal 1500 of an illustrative embodiment of the invention offer.The terminal 1500 can
To be: smart phone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer
III, dynamic image expert's compression standard audio level 3), MP4 (Moving Picture Experts Group Audio
Layer IV, dynamic image expert's compression standard audio level 4) player, laptop or desktop computer.Terminal 1500 is also
Other titles such as user equipment, portable terminal, laptop terminal, terminal console may be referred to as.
In general, terminal 1500 includes: processor 1501 and memory 1502.
Processor 1501 may include one or more processing cores, such as 4 core processors, 8 core processors etc..Place
Reason device 1501 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field-
Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed
Logic array) at least one of example, in hardware realize.Processor 1501 also may include primary processor and coprocessor, master
Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing
Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.?
In some embodiments, processor 1501 can be integrated with GPU (Graphics Processing Unit, image processor),
GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 1501 can also be wrapped
AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processor is for handling related machine learning
Calculating operation.
Memory 1502 may include one or more computer readable storage mediums, which can
To be non-transient.Memory 1502 may also include high-speed random access memory and nonvolatile memory, such as one
Or multiple disk storage equipments, flash memory device.In some embodiments, the non-transient computer in memory 1502 can
Storage medium is read for storing at least one instruction, at least one instruction performed by processor 1501 for realizing this Shen
Please in embodiment of the method provide applied program testing method.
In some embodiments, terminal 1500 is also optional includes: peripheral device interface 1503 and at least one periphery are set
It is standby.It can be connected by bus or signal wire between processor 1501, memory 1502 and peripheral device interface 1503.It is each outer
Peripheral equipment can be connected by bus, signal wire or circuit board with peripheral device interface 1503.Specifically, peripheral equipment includes:
In radio circuit 1504, touch display screen 1505, camera 1506, voicefrequency circuit 1507, positioning component 1508 and power supply 1509
At least one.
Peripheral device interface 1503 can be used for I/O (Input/Output, input/output) is relevant outside at least one
Peripheral equipment is connected to processor 1501 and memory 1502.In some embodiments, processor 1501, memory 1502 and periphery
Equipment interface 1503 is integrated on same chip or circuit board;In some other embodiments, processor 1501, memory
1502 and peripheral device interface 1503 in any one or two can be realized on individual chip or circuit board, this implementation
Example is not limited this.
Radio circuit 1504 is for receiving and emitting RF (Radio Frequency, radio frequency) signal, also referred to as electromagnetic signal.
Radio circuit 1504 is communicated by electromagnetic signal with communication network and other communication equipments.Radio circuit 1504 is by telecommunications
Number being converted to electromagnetic signal is sent, alternatively, the electromagnetic signal received is converted to electric signal.Optionally, radio circuit
1504 include: antenna system, RF transceiver, one or more amplifiers, tuner, oscillator, digital signal processor, volume solution
Code chipset, user identity module card etc..Radio circuit 1504 can by least one wireless communication protocol come with it is other
Terminal is communicated.The wireless communication protocol includes but is not limited to: Metropolitan Area Network (MAN), each third generation mobile communication network (2G, 3G, 4G and
5G), WLAN and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.In some embodiments, radio frequency electrical
Road 1504 can also include NFC (Near Field Communication, wireless near field communication) related circuit, the application
This is not limited.
Display screen 1505 is for showing UI (User Interface, user interface).The UI may include figure, text,
Icon, video and its their any combination.When display screen 1505 is touch display screen, display screen 1505 also there is acquisition to exist
The ability of the touch signal on the surface or surface of display screen 1505.The touch signal can be used as control signal and be input to place
Reason device 1501 is handled.At this point, display screen 1505 can be also used for providing virtual push button and/or dummy keyboard, it is also referred to as soft to press
Button and/or soft keyboard.In some embodiments, display screen 1505 can be one, and the front panel of terminal 1500 is arranged;Another
In a little embodiments, display screen 1505 can be at least two, be separately positioned on the different surfaces of terminal 1500 or in foldover design;
In still other embodiments, display screen 1505 can be flexible display screen, is arranged on the curved surface of terminal 1500 or folds
On face.Even, display screen 1505 can also be arranged to non-rectangle irregular figure, namely abnormity screen.Display screen 1505 can be with
Using LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode,
Organic Light Emitting Diode) etc. materials preparation.
CCD camera assembly 1506 is for acquiring image or video.Optionally, CCD camera assembly 1506 includes front camera
And rear camera.In general, the front panel of terminal is arranged in front camera, the back side of terminal is arranged in rear camera.?
In some embodiments, rear camera at least two is that main camera, depth of field camera, wide-angle camera, focal length are taken the photograph respectively
As any one in head, to realize that main camera and the fusion of depth of field camera realize background blurring function, main camera and wide
Pan-shot and VR (Virtual Reality, virtual reality) shooting function or other fusions are realized in camera fusion in angle
Shooting function.In some embodiments, CCD camera assembly 1506 can also include flash lamp.Flash lamp can be monochromatic temperature flash of light
Lamp is also possible to double-colored temperature flash lamp.Double-colored temperature flash lamp refers to the combination of warm light flash lamp and cold light flash lamp, can be used for
Light compensation under different-colour.
Voicefrequency circuit 1507 may include microphone and loudspeaker.Microphone is used to acquire the sound wave of user and environment, and
It converts sound waves into electric signal and is input to processor 1501 and handled, or be input to radio circuit 1504 to realize that voice is logical
Letter.For stereo acquisition or the purpose of noise reduction, microphone can be separately positioned on the different parts of terminal 1500 to be multiple.
Microphone can also be array microphone or omnidirectional's acquisition type microphone.Loudspeaker is then used to that processor 1501 or radio frequency will to be come from
The electric signal of circuit 1504 is converted to sound wave.Loudspeaker can be traditional wafer speaker, be also possible to piezoelectric ceramics loudspeaking
Device.When loudspeaker is piezoelectric ceramic loudspeaker, the audible sound wave of the mankind can be not only converted electrical signals to, can also be incited somebody to action
Electric signal is converted to the sound wave that the mankind do not hear to carry out the purposes such as ranging.In some embodiments, voicefrequency circuit 1507 may be used also
To include earphone jack.
Positioning component 1508 is used for the current geographic position of positioning terminal 1500, to realize navigation or LBS (Location
Based Service, location based service).Positioning component 1508 can be the GPS (Global based on the U.S.
Positioning System, global positioning system), the dipper system of China, Russia Gray receive this system or European Union
The positioning component of Galileo system.
Power supply 1509 is used to be powered for the various components in terminal 1500.Power supply 1509 can be alternating current, direct current
Electricity, disposable battery or rechargeable battery.When power supply 1509 includes rechargeable battery, which can support wired
Charging or wireless charging.The rechargeable battery can be also used for supporting fast charge technology.
In some embodiments, terminal 1500 further includes having one or more sensors 1510.One or more sensing
Device 1510 includes but is not limited to: acceleration transducer 1511, gyro sensor 1512, pressure sensor 1513, fingerprint sensing
Device 1514, optical sensor 1515 and proximity sensor 1516.
Acceleration transducer 1511 can detecte the acceleration in three reference axis of the coordinate system established with terminal 1500
Size.For example, acceleration transducer 1511 can be used for detecting component of the acceleration of gravity in three reference axis.Processor
The 1501 acceleration of gravity signals that can be acquired according to acceleration transducer 1511, control touch display screen 1505 with transverse views
Or longitudinal view carries out the display of user interface.Acceleration transducer 1511 can be also used for game or the exercise data of user
Acquisition.
Gyro sensor 1512 can detecte body direction and the rotational angle of terminal 1500, gyro sensor 1512
Acquisition user can be cooperateed with to act the 3D of terminal 1500 with acceleration transducer 1511.Processor 1501 is according to gyro sensors
The data that device 1512 acquires, following function may be implemented: action induction (for example changing UI according to the tilt operation of user) is clapped
Image stabilization, game control and inertial navigation when taking the photograph.
The lower layer of side frame and/or touch display screen 1505 in terminal 1500 can be set in pressure sensor 1513.When
When the side frame of terminal 1500 is arranged in pressure sensor 1513, user can detecte to the gripping signal of terminal 1500, by
Reason device 1501 carries out right-hand man's identification or prompt operation according to the gripping signal that pressure sensor 1513 acquires.Work as pressure sensor
1513 when being arranged in the lower layer of touch display screen 1505, is grasped by processor 1501 according to pressure of the user to touch display screen 1505
Make, realization controls the operability control on the interface UI.Operability control include button control, scroll bar control,
At least one of icon control, menu control.
Fingerprint sensor 1514 is used to acquire the fingerprint of user, is collected by processor 1501 according to fingerprint sensor 1514
Fingerprint recognition user identity, alternatively, by fingerprint sensor 1514 according to the identity of collected fingerprint recognition user.Knowing
Not Chu the identity of user when being trusted identity, authorize the user to execute relevant sensitive operation by processor 1501, which grasps
Make to include solving lock screen, checking encryption information, downloading software, payment and change setting etc..Fingerprint sensor 1514 can be set
Set the front, the back side or side of terminal 1500.When being provided with physical button or manufacturer Logo in terminal 1500, fingerprint sensor
1514 can integrate with physical button or manufacturer Logo.
Optical sensor 1515 is for acquiring ambient light intensity.In one embodiment, processor 1501 can be according to light
The ambient light intensity that sensor 1515 acquires is learned, the display brightness of touch display screen 1505 is controlled.Specifically, work as ambient light intensity
When higher, the display brightness of touch display screen 1505 is turned up;When ambient light intensity is lower, the aobvious of touch display screen 1505 is turned down
Show brightness.In another embodiment, the ambient light intensity that processor 1501 can also be acquired according to optical sensor 1515, is moved
The acquisition parameters of state adjustment CCD camera assembly 1506.
Proximity sensor 1516, also referred to as range sensor are generally arranged at the front panel of terminal 1500.Proximity sensor
1516 for acquiring the distance between the front of user Yu terminal 1500.In one embodiment, when proximity sensor 1516 is examined
When measuring the distance between the front of user and terminal 1500 and gradually becoming smaller, by processor 1501 control touch display screen 1505 from
Bright screen state is switched to breath screen state;When proximity sensor 1516 detect the distance between front of user and terminal 1500 by
When gradual change is big, touch display screen 1505 is controlled by processor 1501 and is switched to bright screen state from breath screen state.
It, can be with it will be understood by those skilled in the art that the restriction of the not structure paired terminal 1500 of structure shown in Figure 15
Including than illustrating more or fewer components, perhaps combining certain components or being arranged using different components.
Figure 16 is a kind of structural schematic diagram of server provided in an embodiment of the present invention, the server 1600 can because of configuration or
Performance is different and generates bigger difference, may include one or more processors (central processing
Units, CPU) 1601 and one or more memory 1602, wherein at least one is stored in the memory 1602
Instruction, at least one instruction are loaded by the processor 1601 and are executed the application to realize above-mentioned each embodiment of the method offer
Program testing method.Certainly, which can also have wired or wireless network interface, keyboard and input/output interface etc.
Component, to carry out input and output, which can also include other for realizing the component of functions of the equipments, not do herein superfluous
It states.
In the exemplary embodiment, a kind of computer readable storage medium is additionally provided, the memory for example including instruction,
Above-metioned instruction can be executed by the processor in terminal to complete the applied program testing method in above-described embodiment.For example, the meter
Calculation machine readable storage medium storing program for executing can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage and set
It is standby etc..
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program being somebody's turn to do can store computer-readable deposits in a kind of
In storage media, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (15)
1. a kind of applied program testing method, which is characterized in that the described method includes:
When receiving test instruction, destination application to be tested is determined, the test instruction is used to indicate based on multiple
Test case tests the destination application, and each test case is used to indicate in the test destination application
Subprogram test logic;
Based on the multiple test case, the destination application is tested;
During the test, the test information of each test case, the test letter are shown on the application interface of test application
Breath is used to indicate the implementing result of test logic indicated by each test case;
Test information based on the multiple test case, exports the test result of the destination application.
2. the method according to claim 1, wherein it is described during the test, test application apply boundary
The test information for showing each test case on face includes:
For each test case, can normally be transported in the subprogram based on destination application described in the testing case
When row, show that the first instruction information, the first instruction information are used to indicate the target application journey on the application interface
The subprogram of sequence can operate normally;Alternatively,
When the subprogram based on destination application described in the testing case can not operate normally, in the application
Second indication information is shown on interface, the subprogram that the second indication information is used to indicate the destination application can not
It operates normally.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
When the subprogram based on destination application described in the testing case can not operate normally, in the application
Image, the subprogram that described image is used to indicate destination application mesh when can not operate normally are shown on interface
Mark the interface of application program.
4. the method according to claim 1, wherein it is described when receive test instruction when, determine to be tested
Before destination application, the method also includes:
The multiple test case and the user identifier of target user are obtained, the target user, which refers to, has triggering performance objective
The user of the permission of test assignment, the target detection task refer to based on the multiple test case to the target application journey
The task that sequence is tested;
According to the user identifier of the multiple test case and the target user, target detection task is established;
When detecting the trigger event to the target detection task, the test instruction is received.
5. according to the method described in claim 4, it is characterized in that, the trigger event is the task of the target detection task
Label is triggered or test equipment reaches goal condition, described when detecting the trigger event to the target detection task,
Receiving the test instruction includes:
When the target user logs in the test application, appointing for the target detection task is shown on the application interface
Business label receives the test instruction when detecting that the task label is triggered;Alternatively,
When detecting that test equipment reaches goal condition, the test instruction is received.
6. the method according to claim 1, wherein it is described when receive test instruction when, determine to be tested
Destination application includes:
When receiving test instruction, Object linking is obtained, the Object linking is used to indicate the destination application
Storage location;
According to storage location indicated by the Object linking, the destination application is obtained.
7. the method according to claim 1, wherein being provided with editing area in the application interface of the test application
Domain, it is described to be based on the multiple test case, before testing the destination application, the method also includes:
Edit instruction is received, target detection use-case to be edited, the editor are shown in the editing area of the application interface
Instruction, which is used to indicate, edits the target detection use-case in the multiple test case;
Edited target detection use-case is obtained from the editing area, and the edited target detection use-case is determined as
Test test case used by the destination application.
8. applying boundary described the method according to the description of claim 7 is characterized in that described when receiving edit instruction
Before showing target detection use-case to be edited in the editing area in face, the method also includes:
When the user information based on active user verifies the active user and has editing authority, executes and receives edit instruction,
The step of target detection use-case to be edited is shown in the editing area of the application interface.
9. the method according to claim 1, wherein described be based on the multiple test case, to the target
Application program carries out test
For each test case, it is based on the corresponding test logic of each test case, to the destination application weight
The test of number of targets contents is carried out again, obtains the test information of the number of targets contents test;
The test information that the number of targets contents is tested is stored into target storage space.
10. a kind of Application testing device, which is characterized in that described device includes:
Determining module, for when receiving test instruction, determining destination application to be tested, the test instruction is used for
Instruction tests the destination application based on multiple test cases, and each test case is used to indicate the test mesh
Mark the test logic of the subprogram in application program;
Test module tests the destination application for being based on the multiple test case;
Display module, for during the test, showing the test letter of each test case on the application interface of test application
Breath, the test information are used to indicate the implementing result of test logic indicated by each test case;
Output module exports the test knot of the destination application for the test information based on the multiple test case
Fruit.
11. device according to claim 10, which is characterized in that
The display module is also used to for each test case, based on target application journey described in the testing case
When the subprogram of sequence can operate normally, show that the first instruction information, the first instruction information are used on the application interface
It can be operated normally in the subprogram for indicating the destination application;Alternatively, based on mesh described in the testing case
The subprogram of mark application program be when can not operate normally, and show second indication information on the application interface, and described second
The subprogram that instruction information is used to indicate the destination application can not operate normally.
12. device according to claim 10, which is characterized in that described device further include:
Module is obtained, for obtaining the user identifier of the multiple test case and target user, the target user refers to tool
The user of the permission of standby triggering performance objective test assignment, the target detection task refer to based on the multiple test case pair
The task that the destination application is tested;
Module is established, for the user identifier according to the multiple test case and the target user, target detection is established and appoints
Business;
Receiving module, for when detecting the trigger event to the target detection task, receiving the test instruction.
13. device according to claim 10, which is characterized in that be provided in the application interface of the destination application
Editing area,
The display module is also used to when receiving edit instruction, is shown in the editing area of the application interface wait compile
The target detection use-case collected, the edit instruction, which is used to indicate, compiles the target detection use-case in the multiple test case
Volume;
The determining module is also used to according to edited target detection use-case, and the edited target detection use-case is true
It is set to the test case used when testing the destination application.
14. a kind of electronic equipment, which is characterized in that the electronic equipment includes processor and memory, is deposited in the memory
At least one instruction is contained, described instruction is loaded by the processor and executed to realize as claim 1 to claim 9 is appointed
Operation performed by applied program testing method described in one.
15. a kind of computer readable storage medium, which is characterized in that be stored at least one instruction, institute in the storage medium
Instruction is stated to be loaded by processor and executed to realize such as claim 1 to the described in any item Application testings of claim 9
Operation performed by method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811451273.2A CN109582579B (en) | 2018-11-30 | 2018-11-30 | Application program testing method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811451273.2A CN109582579B (en) | 2018-11-30 | 2018-11-30 | Application program testing method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109582579A true CN109582579A (en) | 2019-04-05 |
CN109582579B CN109582579B (en) | 2022-04-15 |
Family
ID=65924177
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811451273.2A Active CN109582579B (en) | 2018-11-30 | 2018-11-30 | Application program testing method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109582579B (en) |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110083532A (en) * | 2019-04-12 | 2019-08-02 | 北京中科寒武纪科技有限公司 | Run-time error localization method and device under fusion mode based on deep learning frame |
CN110543405A (en) * | 2019-08-15 | 2019-12-06 | 平安普惠企业管理有限公司 | Log display method and device, storage medium and computer equipment |
CN110569194A (en) * | 2019-09-09 | 2019-12-13 | 五八有限公司 | interface testing method and device, electronic equipment and storage medium |
CN110765015A (en) * | 2019-10-24 | 2020-02-07 | 北京云聚智慧科技有限公司 | Method for testing application to be tested and electronic equipment |
CN110865939A (en) * | 2019-11-11 | 2020-03-06 | 南方电网财务有限公司 | Application program quality monitoring method and device, computer equipment and storage medium |
CN110955604A (en) * | 2019-12-04 | 2020-04-03 | 米哈游科技(上海)有限公司 | Information display method, device, server and storage medium |
CN111258902A (en) * | 2020-01-17 | 2020-06-09 | 平安医疗健康管理股份有限公司 | Performance test method and performance test system based on SockJS server |
CN111258898A (en) * | 2020-01-15 | 2020-06-09 | 平安医疗健康管理股份有限公司 | Automatic testing method and device, computer equipment and storage medium |
CN111813685A (en) * | 2020-07-17 | 2020-10-23 | 京东数字科技控股股份有限公司 | Automatic testing method and device |
CN111899443A (en) * | 2020-08-13 | 2020-11-06 | 深圳大势智能科技有限公司 | Method and device for debugging traditional POS machine on intelligent POS machine |
CN111913743A (en) * | 2019-05-09 | 2020-11-10 | 杭州海康威视数字技术股份有限公司 | Data processing method and device |
CN111950821A (en) * | 2019-05-15 | 2020-11-17 | 腾讯科技(深圳)有限公司 | Test method, test device and server |
CN112052153A (en) * | 2019-06-06 | 2020-12-08 | 腾讯科技(深圳)有限公司 | Product version testing method and device |
CN112988552A (en) * | 2019-12-12 | 2021-06-18 | 腾讯科技(深圳)有限公司 | Application program testing method, device, equipment and storage medium |
CN113064823A (en) * | 2021-03-30 | 2021-07-02 | 奇瑞汽车股份有限公司 | Method and device for testing functions of automobile parts and computer storage medium |
CN113342645A (en) * | 2021-05-31 | 2021-09-03 | 北京三快在线科技有限公司 | Method, device, equipment and storage medium for testing service function |
CN114863586A (en) * | 2022-04-25 | 2022-08-05 | 北京新能源汽车股份有限公司 | Test method, test device and terminal |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030070120A1 (en) * | 2001-10-05 | 2003-04-10 | International Business Machines Corporation | Method and system for managing software testing |
CN102331970A (en) * | 2011-07-28 | 2012-01-25 | 北京航空航天大学 | Safety critical system-oriented automatic testing resource management method and platform |
CN104331369A (en) * | 2014-11-21 | 2015-02-04 | 北京奇虎科技有限公司 | Browser-based webpage detection method and device, and server |
CN105159833A (en) * | 2015-09-30 | 2015-12-16 | 努比亚技术有限公司 | Automatic testing device and method |
CN108845956A (en) * | 2018-09-20 | 2018-11-20 | 广州酷狗计算机科技有限公司 | The method and apparatus of Application testing |
-
2018
- 2018-11-30 CN CN201811451273.2A patent/CN109582579B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030070120A1 (en) * | 2001-10-05 | 2003-04-10 | International Business Machines Corporation | Method and system for managing software testing |
CN102331970A (en) * | 2011-07-28 | 2012-01-25 | 北京航空航天大学 | Safety critical system-oriented automatic testing resource management method and platform |
CN104331369A (en) * | 2014-11-21 | 2015-02-04 | 北京奇虎科技有限公司 | Browser-based webpage detection method and device, and server |
CN105159833A (en) * | 2015-09-30 | 2015-12-16 | 努比亚技术有限公司 | Automatic testing device and method |
CN108845956A (en) * | 2018-09-20 | 2018-11-20 | 广州酷狗计算机科技有限公司 | The method and apparatus of Application testing |
Cited By (26)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110083532B (en) * | 2019-04-12 | 2023-05-23 | 中科寒武纪科技股份有限公司 | Method and device for positioning operation errors in fusion mode based on deep learning framework |
CN110083532A (en) * | 2019-04-12 | 2019-08-02 | 北京中科寒武纪科技有限公司 | Run-time error localization method and device under fusion mode based on deep learning frame |
CN111913743A (en) * | 2019-05-09 | 2020-11-10 | 杭州海康威视数字技术股份有限公司 | Data processing method and device |
CN111950821A (en) * | 2019-05-15 | 2020-11-17 | 腾讯科技(深圳)有限公司 | Test method, test device and server |
CN111950821B (en) * | 2019-05-15 | 2023-07-25 | 腾讯科技(深圳)有限公司 | Test method, device and server |
CN112052153B (en) * | 2019-06-06 | 2023-05-16 | 腾讯科技(深圳)有限公司 | Product version testing method and device |
CN112052153A (en) * | 2019-06-06 | 2020-12-08 | 腾讯科技(深圳)有限公司 | Product version testing method and device |
CN110543405A (en) * | 2019-08-15 | 2019-12-06 | 平安普惠企业管理有限公司 | Log display method and device, storage medium and computer equipment |
CN110569194A (en) * | 2019-09-09 | 2019-12-13 | 五八有限公司 | interface testing method and device, electronic equipment and storage medium |
CN110765015A (en) * | 2019-10-24 | 2020-02-07 | 北京云聚智慧科技有限公司 | Method for testing application to be tested and electronic equipment |
CN110865939A (en) * | 2019-11-11 | 2020-03-06 | 南方电网财务有限公司 | Application program quality monitoring method and device, computer equipment and storage medium |
CN110865939B (en) * | 2019-11-11 | 2023-11-03 | 南方电网财务有限公司 | Application program quality monitoring method, device, computer equipment and storage medium |
CN110955604A (en) * | 2019-12-04 | 2020-04-03 | 米哈游科技(上海)有限公司 | Information display method, device, server and storage medium |
CN112988552A (en) * | 2019-12-12 | 2021-06-18 | 腾讯科技(深圳)有限公司 | Application program testing method, device, equipment and storage medium |
CN112988552B (en) * | 2019-12-12 | 2023-06-30 | 腾讯科技(深圳)有限公司 | Application program testing method, device, equipment and storage medium |
CN111258898A (en) * | 2020-01-15 | 2020-06-09 | 平安医疗健康管理股份有限公司 | Automatic testing method and device, computer equipment and storage medium |
CN111258902A (en) * | 2020-01-17 | 2020-06-09 | 平安医疗健康管理股份有限公司 | Performance test method and performance test system based on SockJS server |
CN111258902B (en) * | 2020-01-17 | 2022-07-19 | 深圳平安医疗健康科技服务有限公司 | Performance test method and performance test system based on SockJS server |
CN111813685A (en) * | 2020-07-17 | 2020-10-23 | 京东数字科技控股股份有限公司 | Automatic testing method and device |
CN111813685B (en) * | 2020-07-17 | 2023-12-05 | 京东科技控股股份有限公司 | Automatic test method and device |
CN111899443B (en) * | 2020-08-13 | 2022-08-05 | 深圳大势智能科技有限公司 | Method and device for debugging traditional POS machine on intelligent POS machine |
CN111899443A (en) * | 2020-08-13 | 2020-11-06 | 深圳大势智能科技有限公司 | Method and device for debugging traditional POS machine on intelligent POS machine |
CN113064823A (en) * | 2021-03-30 | 2021-07-02 | 奇瑞汽车股份有限公司 | Method and device for testing functions of automobile parts and computer storage medium |
CN113064823B (en) * | 2021-03-30 | 2024-04-09 | 奇瑞汽车股份有限公司 | Method and device for testing functions of parts of automobile and computer storage medium |
CN113342645A (en) * | 2021-05-31 | 2021-09-03 | 北京三快在线科技有限公司 | Method, device, equipment and storage medium for testing service function |
CN114863586A (en) * | 2022-04-25 | 2022-08-05 | 北京新能源汽车股份有限公司 | Test method, test device and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN109582579B (en) | 2022-04-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109582579A (en) | Applied program testing method, device, electronic equipment and storage medium | |
CN108345543B (en) | Data processing method, device, equipment and storage medium | |
CN106294133B (en) | A kind of detection method, relevant apparatus and the system of application program installation kit | |
CN110210219A (en) | Recognition methods, device, equipment and the storage medium of virus document | |
CN110110263A (en) | Webpage display process, device, terminal and storage medium | |
CN111340482B (en) | Conflict detection method, device, node equipment and storage medium | |
CN109491924A (en) | Code detection method, device, terminal and storage medium | |
CN106326108A (en) | New application testing method and device | |
CN108140038A (en) | Across data center interactive operation and communication | |
CN108829488A (en) | Generate Web can interaction page method, apparatus and storage medium | |
CN109117635A (en) | Method for detecting virus, device, computer equipment and the storage medium of application program | |
CN111192005A (en) | Government affair service processing method and device, computer equipment and readable storage medium | |
CN108536594A (en) | Page test method, device and storage device | |
CN108959361A (en) | The method and apparatus of list management | |
CN110196795A (en) | Detect the method and relevant apparatus of mobile terminal application operating status | |
CN110457571A (en) | Obtain method, apparatus, equipment and the storage medium of interest point information | |
CN108898020A (en) | Leak detection method, device, mobile terminal and storage medium based on agent side | |
CN109451130A (en) | Mobile terminal test method, device, mobile terminal and storage medium | |
CN111428522A (en) | Translation corpus generation method and device, computer equipment and storage medium | |
CN110275836A (en) | Safety detecting method, device and the storage medium of illusory engine application | |
CN109635202A (en) | Content item processing method, device, electronic equipment and storage medium | |
CN109522719A (en) | Reinforcing detection method, device and the mobile terminal of application installation package | |
CN116431138B (en) | Component template building method and device and form building method and device | |
CN115061939B (en) | Data set security test method, device and storage medium | |
CN113467663B (en) | Interface configuration method, device, computer equipment and 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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20230504 Address after: 518000 Room 201, building A, 1 front Bay Road, Shenzhen Qianhai cooperation zone, Shenzhen, Guangdong Patentee after: TENCENT MUSIC ENTERTAINMENT (SHENZHEN) Co.,Ltd. Address before: 518000 Room 201, building A, 1 front Bay Road, Shenzhen Qianhai cooperation zone, Shenzhen, Guangdong Patentee before: TENCENT MUSIC ENTERTAINMENT TECHNOLOGY (SHENZHEN) Co.,Ltd. |
|
TR01 | Transfer of patent right |