CN110471853A - APP test method, device, computer equipment and storage medium - Google Patents

APP test method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110471853A
CN110471853A CN201910754732.2A CN201910754732A CN110471853A CN 110471853 A CN110471853 A CN 110471853A CN 201910754732 A CN201910754732 A CN 201910754732A CN 110471853 A CN110471853 A CN 110471853A
Authority
CN
China
Prior art keywords
app
test
obtains
cloud platform
environment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910754732.2A
Other languages
Chinese (zh)
Inventor
胡鹏强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201910754732.2A priority Critical patent/CN110471853A/en
Publication of CN110471853A publication Critical patent/CN110471853A/en
Pending legal-status Critical Current

Links

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/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The invention discloses a kind of APP test method, device, computer equipment and storage mediums, which comprises obtains the APP of state of activation by cloud platform, and obtains the corresponding environmental information of each APP;Test case is sent to the APP based on the corresponding environmental information of the APP, and obtains the test data of the APP feedback in real time;Defect analysis is carried out to the corresponding environmental information of the APP and the test data, obtains defective data;Based on the defective data, defect report is generated;Regression test is carried out to the APP according to the defect report, obtains test result.The APP test method realizes the intelligence test to the APP of Cross-environment, avoids the retest to APP, and only complete test result need to once can be obtained to APP procedure operation, improves APP testing efficiency and accuracy rate.

Description

APP test method, device, computer equipment and storage medium
Technical field
The present invention relates to research and development management domain more particularly to a kind of APP test method, device, computer equipment and storages Medium.
Background technique
As internet enters mobile internet era, APP (Application, application program) is widely applied, People gradually get used to the mode surfed the Internet using APP client, such as pass through wechat APP, Alipay APP, happy safety APP, E reason Pay for APP etc..For APP program, it should guarantee that its function meet demand defines, and be necessary to ensure that its performance optimizes enough, Its user interface (User Interface, UI) is beautiful enough, can have preferable user experience, this requires complete set Testing scheme guarantees that indices meet the requirements.
Traditional APP test generally tests function, performance and UI respectively, and generally manual test, items are surveyed Contact less between examination, accordingly, there exist the repetitive operation to APP, affect testing efficiency, and functional test, performance test and UI tests the corresponding relationship of not standard, is unfavorable for positioning problems.And test item teacher and business expert need to be grasped professional skill Can, the exploitation of test case can be just completed, to increase the workload of test item teacher and business expert, it is difficult to Neng Goushi The whole of existing operational motion and verification result is write, and non-IT professional is difficult to can be used, and applicability is limited, so that APP It tests adaptability to weaken, reduces the efficiency of APP test.
Summary of the invention
The embodiment of the present invention provides a kind of APP test method, device, computer equipment and storage medium, to solve APP survey Try inefficient problem.
A kind of APP test method, comprising:
The APP of state of activation is obtained by cloud platform, and obtains the corresponding environmental information of each APP;
Test case is sent to the APP based on the corresponding environmental information of the APP, and obtains the APP in real time The test data of feedback;
Defect analysis is carried out to the corresponding environmental information of the APP and the test data, obtains defective data;
Based on the defective data, defect report is generated;
Regression test is carried out to the APP according to the defect report, obtains test result.
A kind of APP test device, comprising:
Environment information acquisition module for obtaining the APP of state of activation by cloud platform, and obtains each described APP pairs The environmental information answered;
Test data feedback module is used for sending test to the APP based on the corresponding environmental information of the APP Example, and the test data of the APP feedback is obtained in real time;
Defective data obtains module, for carrying out defect point to the corresponding environmental information of the APP and the test data Analysis, obtains defective data;
Defect report generation module generates defect report for being based on the defective data;
Test result obtains module, for carrying out regression test to the APP according to the defect report, obtains test knot Fruit.
A kind of computer equipment, including memory, processor and storage are in the memory and can be in the processing The computer program run on device, the processor realize above-mentioned APP test method when executing the computer program.
A kind of computer readable storage medium, the computer-readable recording medium storage have computer program, the meter Calculation machine program realizes above-mentioned APP test method when being executed by processor.
In above-mentioned APP test method, device, computer equipment and storage medium, firstly, obtaining activation shape by cloud platform The APP of state, and the corresponding environmental information of every APP is obtained, the APP and application environment of state of activation are obtained by cloud platform, The accuracy that test is influenced using the test environment simulated in advance is avoided, meanwhile, by obtaining various environmental factors, so that cloud The environment of platform is more fully accurate;Then, test case is sent to APP based on the corresponding environmental information of APP, and obtained in real time The test data of APP feedback;Then, defect analysis is carried out to the corresponding environmental information of APP and test data, obtains defect number According to;Next, being based on defective data, defect report is generated, so that writing for defect report is more intelligent, realization is quick and precisely given birth to The equipment of every APP is managed concentratedly at defect report, and then conveniently;Finally, being returned according to defect report to APP Test, obtains test result, due to using automatic test module, i.e., after obtaining APP automatically by cloud platform, has carried out one Series Intelligent test operation is chosen test case according to the application environment of APP and is tested, so that the acquisition nothing of test result Special expertise need to be grasped, be easy to learn and use, functional test personnel will soon go up hand use, while the acquisition of the test result is not to APP with application environment is all suitable for, and realizes the intelligence test to the APP of Cross-environment, avoids the retest to APP, and Only complete test result need to once can be obtained to APP procedure operation, therefore improve APP testing efficiency and accuracy rate.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is the application environment schematic diagram of APP test method provided in an embodiment of the present invention;
Fig. 2 is one exemplary diagram of APP test method provided in an embodiment of the present invention;
Fig. 3 is another exemplary diagram of APP test method provided in an embodiment of the present invention;
Fig. 4 is another exemplary diagram of APP test method provided in an embodiment of the present invention;
Fig. 5 is another exemplary diagram of APP test method provided in an embodiment of the present invention;
Fig. 6 is another exemplary diagram of APP test method provided in an embodiment of the present invention;
Fig. 7 is another exemplary diagram of APP test method provided in an embodiment of the present invention;
Fig. 8 is a functional block diagram of APP test device provided in an embodiment of the present invention;
Fig. 9 is another functional block diagram of APP test device provided in an embodiment of the present invention;
Figure 10 is a schematic diagram of computer equipment 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.
APP test method provided by the present application, can be applicable in the application environment such as Fig. 1, wherein client passes through network It is communicated with server-side, server-side obtains the APP of state of activation by cloud platform, receives every one APP pairs that client is sent The environmental information answered is then based on the corresponding environmental information of APP to APP and sends test case, and obtains the survey of APP feedback in real time Try data;Then, defect analysis is carried out to the corresponding environmental information of APP and test data, obtains defective data;Based on defect number According to generation defect report;Regression test is finally carried out to APP according to defect report, obtains test result.Wherein, client can With but be not limited to various personal computers, laptop, smart phone, tablet computer and portable wearable device.Clothes Business end can be realized with the server cluster of the either multiple server compositions of independent server.
In one embodiment, as shown in Fig. 2, being applied to be illustrated for the server-side in Fig. 1 in this way, including Following steps:
S10: the APP of state of activation is obtained by cloud platform, and obtains the corresponding environmental information of every APP.
Wherein, cloud platform refers to the platform with cloud computing function, can allow for developers or the program that will be finished writing Be placed on that " cloud " is inner to be run, or " cloud " inner service provided be provided, or both be all.Creating an indoor application (on- Premises application, i.e., the application run in mechanism) when, this has all been deposited in advance using required many bases In operating system, to execute the support that provides the foundation such as application and access storage;Other computers in mechanism provide as The service of long-range storage etc, and compatible suitability test, performance test, distributed testing can be carried out at any time etc., it is used for It supports local device and cloud equipment shuffling, supports user items authorization, supports application time setting and setting of delaying, be prototype tune Examination, compatibility test, Function Test Automation, manual test provide unified support.It is to be appreciated that being obtained by using cloud platform APP is taken, so that carrying out various APP tests in various projects becomes convenient and be easily managed.
The APP of state of activation refers to the APP for starting test mode, and what is be only active can just be handed over Mutually.The corresponding environmental information of APP refers to the information of the current application environment composition of the APP, the including but not limited to behaviour of client Make system, resolution ratio, memory, APP version and network configuration information etc., and the corresponding application environment of each APP.It can manage Xie Di, cloud platform are that the APP of server-side with the APP of client mixes composition, therefore, pass through cloud platform and obtain state of activation APP and application environment avoid the accuracy that test is influenced using the test environment simulated in advance, meanwhile, it is each by obtaining Kind environmental factor, the i.e. environmental factor of influence APP test, so that the environment of cloud platform is more fully accurate.
S20: test case is sent to APP based on the corresponding environmental information of APP, and obtains the test number of APP feedback in real time According to.
Wherein, test case is one group of condition or variable, for determining whether application software or software systems correctly work, The test case is by realizing what the functional based method for encapsulating and defining formed.For example, some button is clicked, it is right in test case What is answered is click (id=" submit ") method.
Specifically, the test case editted in advance is sent by APP of the corresponding environmental information of APP to state of activation, And the test case editted in advance is the prior Self -adaptive of different environmental informations of the APP in cloud platform, the test Use-case can be to be increased logic judgment, or parameterizes to the ginseng that enters of certain methods to certain methods, function.Then, In Increase checkpointing in test case, since the test case of editor is unknown for test target information, can survey Appropriate location in example on probation increases some checkpoints, for example increases the inspection to element behind the method for clicking some button It looks into, whether the effect after being clicked with review button is correct.A test cases is increased newly in cloud platform, by test case and APP It is associated, and executes the test case, obtain the test data of APP feedback.Wherein, test data, which refers to, surveys APP The result data obtained after examination.
(each test data has pair further, in this embodiment test data can be configured on platform The unique name variable answered), for this purpose, just can read the value of corresponding name variable, as test in implementation of test cases Use-case executes the parameter value of method, carries out corresponding operation.Illustratively, in configuration data, using the symbol $ { } of agreement, It then can first be calculated and again be operated the function that value is assigned to test case.For example, the value of a variable is $ { 1+2 }, then just The value after calculating, 3 can be assigned to a.As the preferred of the present embodiment, multiple test cases can be put into a case library, Starting timing executes.
S30: defect analysis is carried out to the corresponding environmental information of APP and test data, obtains defective data.
Wherein, defect analysis is to be collected in defect to the item of information for including, and is summarized, and statistical method is used after classification (or analysis model) obtains analysis result.The result that defect analysis obtains can be used in metric software development process each stage The quality of middle work product, understands the region that defect is concentrated, and apparent development of defects tends to.Improvement for software process, software There is highly important reference value for the publication of product.In the present embodiment, by obtaining defective data, for APP It is further tested, it is ensured that the comprehensive and accuracy of APP test.Defect analysis method therein includes but is not limited to be ODC (Orthogonal Defect Classification) analysis method, Gompertz analytic approach and DRE/DRM analytic approach.Defective data refers to application program The data such as the middle data, including software defect property, grade, position for influencing software quality.
Specifically, it is calculated using GQM (the software metrics methods of Goal-Questions-Measure target drives) method It determines the preset defect characteristic of the corresponding environmental information of APP, is then collected in test data according to preset defect characteristic Defect characteristic;And defect characteristic is counted, to form defective data.
S40: being based on defective data, generates defect report.
Wherein, defect report is the set for describing software defect phenomenon and reproduction step.Software deficiency report Software Bug Report (SBR) or software problem reporting Software Problem Report (SPR), defect report are software tests One of achievement embodies the value of software test.Come for defect existing for software to be accurately depicted, is convenient for exploit person Member's corrective pitting report can reflect the current quality state of Project Product.Specifically, classify to defective data, and to every A kind of other defective data carries out the trace analysis of data, for example, it is for statistical analysis to the defective data of each classification etc., it is raw At defect report, so that writing for defect report is more intelligent, realization quick and precisely generates defect report, and then conveniently to each The equipment of APP is managed concentratedly.
S50: regression test is carried out to APP according to defect report, obtains test result.
Wherein, regression test is that a kind of reparation code position to the software to change is tested, to verify modification Correctness and its influence, namely examine the defect that has been found to either with or without during correctly being modified and modified either with or without Cause new defect.Specifically, can be by being counted to recurrence repair module coverage rate, and tied coverage rate as test Fruit, it is possible to understand that ground, it is higher due to returning repair module accuracy, thus it is guaranteed that coverage rate can reach maximization, Jin Erti The high accuracy and testing efficiency of test result.It is to be appreciated that in the present embodiment, due to using automatic test mould Block after obtaining APP automatically by cloud platform, has carried out a series of intelligence test operations and has been chosen according to the application environment of APP Test case is tested, so that the acquisition of test result is without grasping special expertise, being easy to learn and use, functional test personnel are quickly Hand uses on energy, while the acquisition of the test result is all suitable for the APP of different application environment, realizes to Cross-environment The intelligence test of APP avoids the retest to APP, and only complete test need to once can be obtained to APP procedure operation As a result, therefore improving APP testing efficiency and accuracy rate.
In the present embodiment, firstly, obtaining the APP of state of activation by cloud platform, and the corresponding environment letter of every APP is obtained Breath obtains the APP and application environment of state of activation by cloud platform, and avoid influences to survey using the test environment simulated in advance The accuracy of examination, meanwhile, by obtaining various environmental factors, so that the environment of cloud platform is more fully accurate;Then, it is based on The corresponding environmental information of APP sends test case to APP, and obtains the test data of APP feedback in real time;Then, corresponding to APP Environmental information and test data carry out defect analysis, obtain defective data;Next, being based on defective data, defect report is generated It accuses, so that writing for defect report is more intelligent, realization quick and precisely generates defect report, and then conveniently sets to every APP It is standby to be managed concentratedly;Finally, carrying out regression test to APP according to defect report, test result is obtained, it is automatic due to using Change test module, i.e., after obtaining APP automatically by cloud platform, carries out a series of intelligence test operations i.e. according to the application of APP Environment is chosen test case and is tested, so that the acquisition of test result is not necessarily to grasp special expertise, be easy to learn and use, functional test Personnel will soon go up hand use, while the acquisition of the test result is all suitable for the APP of different application environment, realize to across The intelligence test of the APP of environment avoids the retest to APP, and only APP procedure operation once need to can be obtained completely Test result, therefore improve APP testing efficiency and accuracy rate.
In one embodiment, as shown in figure 3, in step S10, the APP of state of activation is obtained by cloud platform, comprising:
S11: obtaining cloud platform mark, and identification cloud platform identifies corresponding APP running environment.
Wherein, cloud platform mark is that multiple APP are stored in each cloud platform for identifying different cloud platforms.Specifically Ground all runs identical client-side program for different cloud platforms, is the identical side of managing and controlling for cloud platform Formula.After all client-side program start up, server-side can send a cloud platform mark, to obtain corresponding cloud platform APP, and then identify according to the IP address of APP configuration item the running environment of APP.
S12: if APP running environment is test environment, the APP that will be tested the corresponding APP of environment and be determined as state of activation.
Wherein, the running environment of APP includes test environment and formal environments, and server-side is right according to the test environment of differentiation APP is marked, and will test the corresponding APP of environment as the APP of state of activation and shows in status list, to realize to need The unified management of the APP tested, realizes the integration of cloud platform, and so as to follow-up test, personnel are efficiently tested. Further, the APP of state of activation is obtained based on cloud platform, so that test environment is more true complicated and comprehensive, and then is had Higher serious forgiveness.
In the present embodiment, cloud platform mark is obtained, identification cloud platform identifies corresponding APP running environment;If APP runs ring Border is test environment, and the APP that will be tested the corresponding APP of environment and be determined as state of activation obtains state of activation based on cloud platform APP, so that test environment is more true complicated and comprehensive, and then serious forgiveness with higher.
In one embodiment, as shown in figure 4, before step S11, i.e., corresponding APP operation is identified in identification cloud platform Before environment, the APP test method further include:
S13: the preset encryption function of cloud platform is called.
Wherein, preset encryption function refers to the pre-set cipher mode of cloud platform, which includes but unlimited Then rsa encryption function, SALT encryption function, BASE64 encryption function or serializing function etc..Specifically, in cloud platform When operating remote equipment (such as mobile phone), (need to input when needing to be implemented register or registration when needing to input password Password etc.), before input, preset encryption function (such as rsa encryption function) can be first called in cloud platform.Optionally, it calls It can be entered a password into the input frame of remote handset after the cipher mode of cloud platform.
S14: encryption jar packet is uploaded in cloud platform based on encryption function.
Wherein, jar packet is a kind of file that can be encapsulated in different platform, and what encryption jar packet was includes encryption function File, the encryption jar packet in the present embodiment is the file configured according to the preset function of cloud platform, for disposing and encapsulating Library, component and plug-in card program.Specifically, it is entered by order line under the catalogue where the project pom.xml of corresponding cloud platform, The transmission order for running scp (secure copy) uploads encryption jar packet.
S15: it executes encryption jar packet and the security password of each cloud platform is packaged.
Specifically, it executes the realization of encryption jar packet to encapsulate the security password of cloud platform, encapsulates cipher mode, and configure Encryption function title, newly-increased Encryption Options.And can also to the security password frame of application (cloud platform identify corresponding APP) into The customized encapsulation of row, supports a step that can input complicated password, and password value can parameterize, and adjusts convenient for the later period, improves Convenience can also be increased while the safety of test, eliminate the complicated processes of repeated authentication password.
In the present embodiment, firstly, calling the preset encryption function of cloud platform;Then, based on encryption function in cloud platform Upload encryption jar packet;The security password of each cloud platform is packaged finally, executing encryption jar packet, to support a step Suddenly complicated password can be inputted, password value can parameterize, and adjust convenient for the later period, can also while improving the safety of test Increase convenience, eliminates the complicated processes of repeated authentication password.
In one embodiment, as shown in figure 5, in step S20, in real time obtain APP feedback test data, specifically include as Lower step:
S21: the object ID in APP is extracted, and APP is positioned according to object ID.
Wherein, object ID is for the program to be tested in unique identification APP.Specifically, it is based on Android Debug The mobile phone operation program of Bridge command set exploitation, first detects the ID of each application in current mobile phone, and according to object ID APP to be detected is navigated to, clicking operation is carried out to the object, so as to guarantee to execute subsequent behaviour again after practical object is locked Make.It should be noted that can be realized certainly for slide cannot do not recorded in the object of current screen, test script It moves and redos after sliding into object physical location, to enhance playback stability.
S22: to APP implementation of test cases, test data is obtained.
Specifically, to APP implementation of test cases, test data is got in real time.By being according to object in this present embodiment After ID positions APP, implementation of test cases, therefore, the testing procedure in test case can also be arranged after navigating to APP It is operated if target bullet frame or object occur for optional step, if do not occurred, directly skips and do not report an error, that is, exist Optional step can be configured in test cases, also will the step be added if logic judgment, when object occurs, if Rule of judgment For true, subsequent test operation is just executed, realizes the adaptive testing to APP, so that the test data of Real-time Feedback is more It is accurate to add.
In the present embodiment, the object ID in APP is extracted, and APP is positioned according to object ID;To APP implementation of test cases, obtain To test data, the adaptive testing to APP is realized, so that the test data of Real-time Feedback is more accurate.
In one embodiment, it as shown in fig. 6, before step S20, i.e., is being sent out based on the corresponding environmental information of APP to APP Test case is sent, and in real time before the test data of acquisition APP feedback, the APP test method further include:
S60: obtaining the preset error handling mechanism stored in cloud platform, grabs every APP using error handling mechanism Abnormal script.
Wherein, error handling mechanism is to preset unified error handling mode in cloud platform under a kind of storage, at this In embodiment, for grabbing the mistake or exception that occur in APP test process.Specifically, it is developed at mistake in cloud platform Reason mechanism grabs the abnormal script of every APP using preset error handling mechanism.Illustratively, when needing to pair in APP When as executing operation, if the object does not load out, error handling mechanism grabs the abnormal script of the APP.
S70: autopolling is carried out to abnormal script and determines target exception script.
Wherein, target exception script refers to the script of necessary being mistake or exception.Specifically, by step S60 In abnormal script carry out autopolling can determine target exception script.By taking the APP Object Operations in step S60 as an example, In When executing operation, as abnormal script, server-side is different to this for the error message that the object for the APP not loaded can report object to be not present Normal script execution autopolling processing, after cloud platform waits preset time, which is not loaded yet, it is determined that should Abnormal script is target exception script.
S80: exception handling performance objective exception script is used, test case is obtained.
Wherein, a kind of abnormality processing mould that test case is obtained for being handled exception information of exception handling Formula.Specifically, using exception handling performance objective exception script, test case is obtained.Since operation APP object is to be based on The exploitation of Android Debug Bridge command set, and wrong exception information is grabbed based on cloud platform and is handled, it is to be based on The exception handling Development of Framework of JAVA.It is to be appreciated that in page loading procedure, what target object not yet occurred Situation does not need the setting waiting time in test script, so that the adaptability to network environment is enhanced, simultaneously as test Exception error information in the process is handled, so that test case is more accurate.
In the present embodiment, firstly, obtaining the exception that the preset error handling mechanism stored in cloud platform grabs every APP Script;Then, autopolling is carried out to abnormal script and determines target exception script;Finally, executing mesh using exception handling Abnormal script is marked, test case is obtained, enhances the adaptability to network environment, simultaneously as the exception in test process is wrong False information is handled, so that test case is more accurate.
In one embodiment, as shown in fig. 7, in step S50, regression test is carried out to APP according to defect report, is surveyed Test result specifically comprises the following steps:
S51: being counted using coverage rate of the code coverage tool to defect report, obtains returning coverage rate.
Wherein, coverage rate is a kind of index for measuring test quality, and coverage rate is higher, shows that test quality is higher.Code Coverage rate tool includes but is not limited to EMMA tool.EMMA is an open source, towards the collection of java applet test coverage and report Announcement tool.It is by carrying out pitching pile to the Java bytecode file after compiling, the collection coverage rate information in measuring executing process, And coverage rate result is shown by a variety of statement forms.The inserting of bytecode used in EMMA not only guarantees that EMMA will not " dirty code " is brought to source code, also assures that EMMA gets rid of the constraint of source code, improves and returns coverage rate computational efficiency, make It is larger that covering rate score must be returned, reach maximization.
S52: it is compared according to coverage rate is returned with preset coverage rate threshold value, obtains test result.
Wherein, preset coverage rate threshold value refers to preset for measuring the recurrence coverage rate of test result accuracy Critical value.Specifically, coverage rate will be returned to be compared with preset coverage rate threshold value, is greater than or waits if returns coverage rate When preset coverage rate threshold value, test result is to return the corresponding recurrence repair module of coverage rate test essence with higher Degree, it is possible to understand that ground reaches maximization due to returning coverage rate, so that test result is more accurate, improves the standard of APP test True property and testing efficiency.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
In one embodiment, a kind of APP test device is provided, the test side APP in the APP test device and above-described embodiment Method corresponds.As shown in figure 8, the APP test device include environment information acquisition module 10, test data feedback module 20, Defective data obtains module 30, defect report generation module 40 and test result and obtains module 50.Each functional module is described in detail It is as follows:
Environment information acquisition module 10, for obtaining the APP of state of activation by cloud platform, and it is corresponding to obtain every APP Environmental information;
Test data feedback module 20, for sending test case to APP based on the corresponding environmental information of APP, and in real time Obtain the test data of APP feedback;
Defective data obtains module 30, for carrying out defect analysis to the corresponding environmental information of APP and test data, obtains Defective data;
Defect report generation module 40 generates defect report for being based on defective data;
Test result obtains module 50, for carrying out regression test to APP according to defect report, obtains test result.
Preferably, as shown in figure 9, environment information acquisition module 10 includes mark recognition unit 11 and APP determination unit 12.
Recognition unit 11 is identified, for obtaining cloud platform mark, identification cloud platform identifies corresponding APP running environment;
APP determination unit 12 will test the corresponding APP of environment and be determined as swashing if being test environment for APP running environment The APP of state living.
Preferably, which further includes raise the price function calling cell, jar packet uploading unit and password encapsulation list Member.
It raises the price function calling cell, for calling the preset encryption function of cloud platform;
Jar packet uploading unit, for uploading encryption jar packet in cloud platform based on encryption function;
Password encapsulation unit is packaged the security password of each cloud platform for executing encryption jar packet.
Preferably, test data feedback module includes APP positioning unit and test data acquiring unit.
APP positioning unit positions APP for extracting the object ID in APP, and according to object ID;
Test data acquiring unit, for obtaining test data to APP implementation of test cases.
Preferably, which further includes that abnormal script obtains module, target exception script determining module and test Use-case obtains module.
Abnormal script obtains module, for obtaining the preset error handling mechanism stored in cloud platform, at mistake Reason mechanism grabs the abnormal script of every APP;
Target exception script determining module determines target exception script for carrying out autopolling to abnormal script;
Test case obtains module, for using exception handling performance objective exception script, obtains test case.
Preferably, it includes returning coverage rate statistic unit and test result acquiring unit that test result, which obtains module,.
Coverage rate statistic unit is returned, for being counted using code coverage tool to the coverage rate of defect report, It obtains returning coverage rate;
Test result acquiring unit is surveyed for being compared according to recurrence coverage rate with preset coverage rate threshold value Test result.
Specific about APP test device limits the restriction that may refer to above for APP test method, herein no longer It repeats.Modules in above-mentioned APP test device can be realized fully or partially through software, hardware and combinations thereof.It is above-mentioned Each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also be stored in a software form In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction Composition can be as shown in Figure 10.The computer equipment include by system bus connect processor, memory, network interface and Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The database of machine equipment is for storing the data arrived used in APP test method.The network interface of the computer equipment is used for It is communicated with external terminal by network connection.To realize a kind of APP test method when the computer program is executed by processor.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory And the computer program that can be run on a processor, processor realize that the APP in above-described embodiment is surveyed when executing computer program Method for testing.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program realizes the APP test method in above-described embodiment when being executed by processor.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of APP test method, which is characterized in that the APP test method includes:
The APP of state of activation is obtained by cloud platform, and obtains the corresponding environmental information of each APP;
Test case is sent to the APP based on the corresponding environmental information of the APP, and obtains the APP feedback in real time Test data;
Defect analysis is carried out to the corresponding environmental information of the APP and the test data, obtains defective data;
Based on the defective data, defect report is generated;
Regression test is carried out to the APP according to the defect report, obtains test result.
2. APP test method as described in claim 1, which is characterized in that described to obtain state of activation by cloud platform APP, comprising:
Cloud platform mark is obtained, identifies that the cloud platform identifies corresponding APP running environment;
If the APP running environment is test environment, the corresponding APP of the test environment is determined as the state of activation APP。
3. APP test method as claimed in claim 2, which is characterized in that corresponding in the identification cloud platform mark Before APP running environment, the APP test method further include:
Call the preset encryption function of the cloud platform;
Encryption jar packet is uploaded in the cloud platform based on the encryption function;
The encryption jar packet is executed to be packaged the security password of each cloud platform.
4. APP test method as described in claim 1, which is characterized in that the test number for obtaining the APP feedback in real time According to, comprising:
The object ID in the APP is extracted, and the APP is positioned according to the object ID;
The test case is executed to the APP, obtains the test data.
5. APP test method as described in claim 1, which is characterized in that be based on the corresponding environment of the APP described Information sends test case to the APP, and before obtaining the test data of APP feedback in real time, the APP test method Further include:
The preset error handling mechanism stored in the cloud platform is obtained, is grabbed using the error handling mechanism each described The abnormal script of APP;
Autopolling is carried out to the abnormal script and determines target exception script;
The target exception script is executed using exception handling, obtains the test case.
6. APP test method as described in claim 1, which is characterized in that it is described according to the defect report to the APP into Row regression test, obtains test result, comprising:
It is counted using coverage rate of the code coverage tool to the defect report, obtains returning coverage rate;
It is compared according to coverage rate is returned with preset coverage rate threshold value, obtains the test result.
7. a kind of APP test device, which is characterized in that the APP test device includes:
Environment information acquisition module, for obtaining the APP of state of activation by cloud platform, and it is corresponding to obtain each APP Environmental information;
Test data feedback module, for sending test case to the APP based on the corresponding environmental information of the APP, And the test data of the APP feedback is obtained in real time;
Defective data obtains module, for carrying out defect analysis to the corresponding environmental information of the APP and the test data, obtains To defective data;
Defect report generation module generates defect report for being based on the defective data;
Test result obtains module, for carrying out regression test to the APP according to the defect report, obtains test result.
8. APP test device as claimed in claim 7, which is characterized in that the environment information acquisition module includes:
Recognition unit is identified, for obtaining cloud platform mark, identifies that the cloud platform identifies corresponding APP running environment;
The corresponding APP of the test environment is determined as by APP determination unit if being test environment for the APP running environment The APP of the state of activation.
9. a kind of computer equipment, including memory, processor and storage are in the memory and can be in the processor The computer program of upper operation, which is characterized in that the processor realized when executing the computer program as claim 1 to Any one of 6 APP test methods.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In realization APP test method as described in any one of claim 1 to 6 when the computer program is executed by processor.
CN201910754732.2A 2019-08-15 2019-08-15 APP test method, device, computer equipment and storage medium Pending CN110471853A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910754732.2A CN110471853A (en) 2019-08-15 2019-08-15 APP test method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910754732.2A CN110471853A (en) 2019-08-15 2019-08-15 APP test method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110471853A true CN110471853A (en) 2019-11-19

Family

ID=68511897

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910754732.2A Pending CN110471853A (en) 2019-08-15 2019-08-15 APP test method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110471853A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111240978A (en) * 2020-01-09 2020-06-05 上海丰蕾信息科技有限公司 Data report generation and analysis method
CN111258888A (en) * 2020-01-09 2020-06-09 上海丰蕾信息科技有限公司 Data report generation and analysis system
CN111813697A (en) * 2020-08-26 2020-10-23 四川新网银行股份有限公司 Test coverage rate statistical method based on test object calling mark
CN111858302A (en) * 2020-06-05 2020-10-30 百度在线网络技术(北京)有限公司 Method and device for testing small program, electronic equipment and storage medium
CN112862457A (en) * 2021-03-02 2021-05-28 岭东核电有限公司 Nuclear power test procedure item jumping method and device, computer equipment and storage medium
CN116932413A (en) * 2023-09-14 2023-10-24 深圳市智慧城市科技发展集团有限公司 Defect processing method, defect processing device and storage medium for test task

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111240978A (en) * 2020-01-09 2020-06-05 上海丰蕾信息科技有限公司 Data report generation and analysis method
CN111258888A (en) * 2020-01-09 2020-06-09 上海丰蕾信息科技有限公司 Data report generation and analysis system
CN111858302A (en) * 2020-06-05 2020-10-30 百度在线网络技术(北京)有限公司 Method and device for testing small program, electronic equipment and storage medium
CN111858302B (en) * 2020-06-05 2023-12-12 百度在线网络技术(北京)有限公司 Method and device for testing small program, electronic equipment and storage medium
CN111813697A (en) * 2020-08-26 2020-10-23 四川新网银行股份有限公司 Test coverage rate statistical method based on test object calling mark
CN111813697B (en) * 2020-08-26 2021-07-16 四川新网银行股份有限公司 Test coverage rate statistical method based on test object calling mark
CN112862457A (en) * 2021-03-02 2021-05-28 岭东核电有限公司 Nuclear power test procedure item jumping method and device, computer equipment and storage medium
CN116932413A (en) * 2023-09-14 2023-10-24 深圳市智慧城市科技发展集团有限公司 Defect processing method, defect processing device and storage medium for test task
CN116932413B (en) * 2023-09-14 2023-12-19 深圳市智慧城市科技发展集团有限公司 Defect processing method, defect processing device and storage medium for test task

Similar Documents

Publication Publication Date Title
CN110471853A (en) APP test method, device, computer equipment and storage medium
US11281570B2 (en) Software testing method, system, apparatus, device medium, and computer program product
CN106844217B (en) Method and device for embedding point of applied control and readable storage medium
US11500762B2 (en) System and method for automated intelligent mobile application testing
US10310968B2 (en) Developing software project plans based on developer sensitivity ratings detected from monitoring developer error patterns
CN104407980B (en) Mobile solution automatic test device and method
US10277622B2 (en) Enterprise level cybersecurity automatic remediation
Collins et al. Strategies for agile software testing automation: An industrial experience
CN105426310B (en) A kind of method and apparatus for the performance for detecting target process
CN103164328A (en) Method and device and system for regression testing of service function
CN103365770A (en) Mobile terminal software testing system and software testing method
CN107832207A (en) Interface performance test method, apparatus, storage medium and computer equipment
CN107526676B (en) Cross-system test method and device
EP2629205A1 (en) Multi-entity test case execution workflow
Fursin et al. Collective knowledge: Towards R&D sustainability
Lity et al. Applying incremental model slicing to product-line regression testing
CN109902005A (en) A kind of method and system of automatic test
US10185559B2 (en) Documentation notification
CN107357721B (en) Method and device for testing system
CN108304326A (en) Android intelligent terminal automatization test system and method
CN114356631A (en) Fault positioning method and device, computer equipment and storage medium
US9612944B2 (en) Method and system for verifying scenario based test selection, execution and reporting
Khan et al. Systematic analysis of software development in cloud computing perceptions
CN113220597B (en) Test method, test device, electronic equipment and storage medium
CN104484275A (en) Method and system capable of remotely testing smart cards

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