CN109918287A - APP upgrading test method, apparatus, computer equipment and storage medium - Google Patents

APP upgrading test method, apparatus, computer equipment and storage medium Download PDF

Info

Publication number
CN109918287A
CN109918287A CN201910039370.9A CN201910039370A CN109918287A CN 109918287 A CN109918287 A CN 109918287A CN 201910039370 A CN201910039370 A CN 201910039370A CN 109918287 A CN109918287 A CN 109918287A
Authority
CN
China
Prior art keywords
app
test
upgrading
upgrade
upgrade file
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
CN201910039370.9A
Other languages
Chinese (zh)
Inventor
刘子牧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201910039370.9A priority Critical patent/CN109918287A/en
Publication of CN109918287A publication Critical patent/CN109918287A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The embodiment of the present application provides a kind of APP upgrading test method, apparatus, computer equipment and computer readable storage medium.If method includes: to detect to meet preset condition, mandatory upgrade button is triggered by enabled instruction;If judging, mandatory upgrade button is triggered, and carries out multiple predetermined registration operations according to preset order to carry out APP upgrading test;If detecting, test stops, and obtains and stores test result.The embodiment of the present application belongs to testing tool technical field, when realizing APP upgrading test, based on use automatization testing technique carry out mandatory upgrade test, it may be implemented to carry out multiple predetermined registration operations according to preset order to carry out APP upgrading test, realize automatic test course when APP mandatory upgrade, artificial progress test job can be substituted at night, thus manpower service efficiency when improving APP mandatory upgrade test.

Description

APP upgrading test method, apparatus, computer equipment and storage medium
Technical field
This application involves automatization testing technique field more particularly to a kind of APP upgrading test method, apparatus, computer Equipment and computer readable storage medium.
Background technique
APP mandatory upgrade is since version has great Bug or APP complete correcting on line, due to legacy version APP It can not reuse, it is necessary to user be forced to carry out APP version updating.It, can be to using APP when due to APP mandatory upgrade test Early version, which carries out business operation, to be had an impact, and is carried out more so being placed on nighttime users few period, is carried out APP mandatory upgrade test When, if just needing the stay-at-home till all hours of test development personnel by manual test, manpower when APP mandatory upgrade being caused to be tested is used Efficiency is lower.
Summary of the invention
The embodiment of the present application provides a kind of APP upgrading test method, apparatus, computer equipment and computer-readable storage Medium is able to solve the not high problem of group's fraud recognition accuracy to target group in traditional technology.
In a first aspect, the embodiment of the present application provides a kind of APP upgrading test method, which comprises if detecting Meet preset condition, mandatory upgrade button is triggered by enabled instruction;If the mandatory upgrade button is triggered, suitable according to presetting Sequence carries out multiple predetermined registration operations to carry out APP upgrading test;If detecting, test stops, and obtains and stores test result.
Second aspect, the embodiment of the present application also provides a kind of APP upgrading test devices, comprising: trigger unit, if for It detects and meets preset condition, mandatory upgrade button is triggered by enabled instruction;Test cell, if being pressed for the mandatory upgrade Button is triggered, and carries out multiple predetermined registration operations according to preset order to carry out APP upgrading test;Acquiring unit, if for detecting Test stops, and obtains and stores test result.
The third aspect, the embodiment of the present application also provides a kind of computer equipments comprising memory and processor, it is described Computer program is stored on memory, the processor realizes the upgrading test side APP when executing the computer program Method.
Fourth aspect, it is described computer-readable to deposit the embodiment of the present application also provides a kind of computer readable storage medium Storage media is stored with computer program, and the computer program makes the processor execute the APP liter when being executed by processor Grade test method.
The embodiment of the present application provides a kind of APP upgrading test method, apparatus, computer equipment and computer-readable storage Medium.The described method includes: meeting preset condition if detecting, mandatory upgrade button is triggered by enabled instruction;If described strong Upgrade button processed is triggered, and carries out multiple predetermined registration operations according to preset order to carry out APP upgrading test;If detecting, test stops Only, it obtains and stores test result.The embodiment of the present application belongs to testing tool technical field, when realizing APP upgrading test, is based on Mandatory upgrade test is carried out using automatization testing technique, may be implemented to carry out multiple predetermined registration operations according to preset order to carry out APP upgrading test, for example realize that automation clicks mandatory upgrade button, downloading upgrade file, covering installation and opens app verifying Each service line entrance etc. is operated to realize automatic test course when APP mandatory upgrade, can substitute artificial carry out at night Test job, so that manpower service efficiency when improving APP mandatory upgrade test, saves human cost.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is some embodiments of the present application, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the application scenarios schematic diagram of APP upgrading test method provided by the embodiments of the present application;
Fig. 2 is the flow diagram of APP upgrading test method provided by the embodiments of the present application;
Fig. 3 is the sub-process schematic diagram of APP upgrading test method provided by the embodiments of the present application;
Fig. 4 is another flow diagram of APP upgrading test method provided by the embodiments of the present application;
Fig. 5 is the schematic block diagram of APP upgrading test device provided by the embodiments of the present application;
Fig. 6 is another schematic block diagram of APP upgrading test device provided by the embodiments of the present application;And Fig. 7 is this Apply for the schematic block diagram for the computer equipment that embodiment provides.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiment is some embodiments of the present application, instead of all the embodiments.Based on this Shen Please in embodiment, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall in the protection scope of this application.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this present specification merely for the sake of description specific embodiment And be not intended to limit the application.As present specification and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
Referring to Fig. 1, Fig. 1 is the application scenarios schematic diagram of APP upgrading test method provided by the embodiments of the present application.It is described Application scenarios include:
(1) terminal.The application program of APP upgrading test is installed, research staff is upgraded by APP to survey in terminal shown in Fig. 1 The application program of examination is interacted with server, to realize the step of primary server executes APP upgrading test method, the terminal It can be the electronic equipments such as laptop, tablet computer or desktop computer, the terminal in Fig. 1 passes through wired with primary server Or it is wirelessly connected.
(2) server.The upgrade file etc. that server is used to provide APP upgrading test needs needs server to provide Content, so that the step of terminal executes APP upgrading test method according to the upgrade file obtained from server, to improve APP The efficiency of upgrading test.Server and terminal in Fig. 1 pass through wired or wireless connection.
Each body of work process in Fig. 1 is as follows: if terminal, which detects, meets preset condition, being triggered by enabled instruction Mandatory upgrade button;If terminal detects that the mandatory upgrade button is triggered, multiple predetermined registration operations are carried out according to preset order To carry out APP upgrading test, wherein download from a server the upgrade file that APP upgrading needs;If terminal detects that test stops Only, it obtains and stores test result.
It should be noted that only illustrating desktop computer as terminal, in the actual operation process, terminal in Fig. 1 Type is not limited to shown in Fig. 1, and the terminal can also be the electronic equipments such as mobile phone, laptop or tablet computer, on The application scenarios for stating APP upgrading test method are merely illustrative technical scheme, are not used to limit present techniques Scheme, above-mentioned connection relationship can also have other forms.
Fig. 2 is the schematic flow chart of APP upgrading test method provided by the embodiments of the present application.The upgrading test side APP Method is applied in the terminal in Fig. 1, to complete all or part of function of APP upgrading test method.
Referring to Fig. 2, Fig. 2 is the flow diagram of APP upgrading test method provided by the embodiments of the present application.Such as Fig. 2 institute Show, this approach includes the following steps S210-S230:
If S210, detecting and meeting preset condition, passes through enabled instruction and trigger mandatory upgrade button.
Wherein, the preset condition can be preset time.The preset time refers to starting APP mandatory upgrade test Time, the preset time not influence APP business as principle as far as possible, such as the customer services ratio such as after ten one points at night The less period, to reduce the influence operated to APP early version customer service.The preset condition can also be to receive hair The instruction that the test brought starts, such as the instruction started by the test that other applications are sent.
Mandatory upgrade button, and can button be referred to as risen by force, it is the function for the progress mandatory upgrade being arranged in APP in advance Energy menu when mandatory upgrade button is triggered, can star APP and carry out mandatory upgrade.
Specifically, if terminal, which detects, meets preset condition, for example meet the condition of preset time, further, such as Time reaches at ten one points at night, strong to carry out APP by the mandatory upgrade button being arranged in starting time-of-the-day order automatic trigger APP Upgrading test processed, to realize that automation clicks strong liter button and carries out mandatory upgrade test to use automatization testing technique. Further, in one embodiment, if described detect meets preset condition, mandatory upgrade button is triggered by enabled instruction The step of before, further includes:
Mandatory upgrade button is preset in the interface APP.
Specifically, mandatory upgrade button can be arranged by research staff in research and development and be specified on interface in APP, only to research and development Open when personnel test, when user downloads APP, mandatory upgrade button is hidden.It needs to force to rise in the setting of the default interface of APP Grade button.For example mandatory upgrade button is set in the set interface of APP, the mandatory upgrade button is arranged with hiding, only Research staff need to be shown in test, when user downloads APP, mandatory upgrade button is arranged to hidden state.
If S220, the mandatory upgrade button are triggered, multiple predetermined registration operations are carried out to carry out APP liter according to preset order Grade test.
Specifically, if terminal detects mandatory upgrade, button is triggered, and carries out according to preset order more in test process A deliberate action is tested whether normally with carrying out APP mandatory upgrade, described according to preset order progress deliberate action, including according to Following sequence carries out following movement: downloading upgrade file, covering installation, opening app verify the operation such as each service line entrance, thus It may be implemented to substitute artificial progress APP upgrading test work at night.
Referring to Fig. 3, Fig. 3 is the sub-process schematic diagram of APP upgrading test method provided by the embodiments of the present application;In the reality It applies in example, it is described to carry out multiple predetermined registration operations according to preset order to include: the step of carrying out APP upgrading test
S2201, the upgrade file that APP is downloaded from the APP upgrade file download address of test environment;
If S2202, detecting that the upgrade file downloading is completed, start the APP covering installation;
If S2203, detecting that the APP is installed successfully, the APP is opened to verify each service line entrance of the APP and be It is no normal.
Specifically, automatic test course is as manual testing's process, will by downloading APP upgrade file, into Whether the installation of row APP upgrade file and opening APP application program can be just with each ingress for service for verifying application program one by one Often enter, that is, whether each function of application program can normally execute, for example, application program there are tri- function dishes of A, B and C It is single, open tri- function menus of A, B and C one by one automatically, can verifying tri- function menus of A, B and C normally execute, if energy respectively It is normal to execute, it was demonstrated that APP is normal, and otherwise, the function menu that cannot normally execute in tri- function menus of A, B and C is recorded Error code is modified with being prompted to research staff.Automatic test course and the difference of manual testing's process are entirely to test Process is carried out automatically by application program controlling, entire test program, by each of application program controlling test process step, And the link that manual testing needs manpower intervention in the process is eliminated, such as during manual testing, in APP upgrade installation package During installation, the installation path of application program can be set, in automatic test course, due to there is no manpower intervention, Need to take the installation path etc. of default.Sequence executes following operation: from the APP upgrade file download address downloading of test environment The upgrade file of APP;If detecting, the upgrade file downloading is completed, and starts the APP covering installation;If detecting described APP is installed successfully, and whether open the APP normal to verify each service line entrance of the APP;Record above steps was tested Result in journey is to obtain test result.If each step is smoothly to execute, entire test process success, APP forces to rise Grade is normal, if occurring mistake in test process, records the error code, to prompt research staff to be adjusted, if also, surveying The mistake occurred during examination does not influence the progress of test process, records the subsequent step that error code continues test process Suddenly, if the erroneous effects occurred in test process continuing to execute to test process, the error code of mistake appearance is recorded simultaneously Finish test procedure.For example, if there is mistake from the upgrade file of the APP upgrade file download address downloading APP of test environment, It can not be downloaded, record the error code of this step, since the upgrade file downloading of APP goes wrong, after can not carrying out Continuous step, test process terminate.Equally, if application program there are tri- function menus of A, B and C, A, B and C tri- is opened one by one automatically Can a function menu, verifying tri- function menus of A, B and C normally execute, if mistake occurs in menu B, record the mistake of menu B Accidentally code, continues the functional test of menu C, finally, the test result in record above steps test process is as most Test result afterwards.
If S230, detecting that test stops, obtaining and store test result.
Specifically, if terminal detects that test stops, each step test result in test process is obtained according to setting Record, and store test result.The record of the test result, for example, the button starting of mandatory upgrade it is whether normal, from test Whether the upgrade file of the APP upgrade file download address downloading APP of environment normal, APP covering installation whether normally with And the APP is opened to verify the record for the test results such as whether each service line entrance of the APP normal.
Further, test result includes test normally and test is abnormal.Terminal carries out predetermined registration operation according to preset order The movement for including obtains the test result of each deliberate action.For example, whether occur mistake when downloading upgrade file, including under Whether set address is correct, is the address of test wrapper condition location or production environment, and whether covering installation goes on smoothly, and opens Can whether APP verifies each service line entry operation normal, for example normally open each service line entrance of APP, between the progress interface APP Switching and opening etc., record the test result of each step in test process.Further, for appearance exception in test Situation can also record the correspondence error code for anomalies occur, after test result is prompted to research staff, with convenient Research staff determines abnormal cause as early as possible, is modified, and improves the efficiency of APP test and research and development.
The embodiment of the present application carries out mandatory upgrade test by using the automatization testing technique of APP mandatory upgrade, can be with Realize that automation clicks mandatory upgrade button, downloading upgrade file, covers installation and open APP and verify each service line entrance etc. Operation can substitute artificial progress test job at night and it is strong to improve APP to save the cost of human resources of APP mandatory upgrade Make the efficiency of upgrading.
Please continue to refer to Fig. 3, in this embodiment, the APP upgrade file download address from test environment downloads APP Upgrade file the step of before, further includes:
If S2200, the APP are connected to server, whether the upgrade file download address for detecting the APP is test wrapper The upgrade file download address in border, if the upgrade file download address of the APP is to test the upgrade file download address of environment, The step of APP upgrade file download address from test environment downloads the upgrade file of APP is executed, if the liter of the APP Grade file download address is not the upgrade file download address for testing environment, stops test.
Specifically, if terminal detects mandatory upgrade, button is triggered, the APP starting in terminal, if the APP is connected to Server, whether the upgrade file download address for detecting the APP is correct, that is, detects the upgrade file downloading of the APP Whether address is the upgrade file download address for testing environment.Since APP upgrade file will be by test environmental testing, after tested Environmental testing is out of question, is just distributed in production environment and goes to use so that user downloads.But due to test environment and production The high similarity of environment, it is easy to the file download address obfuscation of the file download address and production environment of environment will be tested, Therefore, APP upgrade file download address is detected, whether APP upgrade file download address is correctly detected. The detection of APP upgrade file download address refers to that detecting file download address according to the domain name of download address is production environment or survey Test ring border, so that whether detect file download address correct.The APP upgrade file for testing the corresponding test environment of environment downloads ground Location, production environment correspond to the download address of the APP upgrade file of production environment, and otherwise the APP upgrade file download address is It is incorrect.
If the upgrade file download address of the APP is to test the upgrade file download address of environment, and detect described There are upgrade files on server selects update date newest upgrade file to carry out according to the version number of the upgrade file Downloading.If detecting, the upgrade file downloading is completed, and carries out the automatic covering installation of upgrade file, skips over usual APP upgrading The related option for needing user to carry out selection such as installation site in the process, the covering installation defaulted.
If the upgrade file can not install success, the error code of install failure is recorded, and by the error code As test result.If the upgrade file is installed successfully, automatically open APP, verify each page service line entrance whether It can successively open, operation is similar to every business function entrance in the manual operation APP opening interface APP.If each service line Entrance mistake is recorded the content of mistake, is also subject to as test result as test result if each service line entrance is normal Record.
Referring to Fig. 4, Fig. 4 is another flow diagram of APP upgrading test method provided by the embodiments of the present application.Such as Shown in Fig. 4, in this embodiment, if described detect was tested after the step of stopping, obtaining and store test result, also wrap It includes:
If including abnormal results in S240, the test result, it is different to carry out to obtain the error code of the abnormal results Often prompt.
Specifically, if in the test result of APP mandatory upgrade test comprising test it is abnormal as a result, to particularly point out test different The contents such as normal error code, reason and position.For example, failing normally to download, fail normal mounting, in APP a business Entrance fails normally to open or fail normally display etc., to facilitate research staff to lock anomalies as early as possible, carries out specific aim Modification, improve APP mandatory upgrade treatment effeciency.
Please continue to refer to Fig. 4, in this embodiment, if described detect meets preset condition, triggered by enabled instruction Before the step of mandatory upgrade button, further includes:
Whether S208, detection client end AP P version are the new versions with mandatory upgrade function;
If S209, the client end AP P version are the versions without mandatory upgrade function, clothes are logged in by limitation APP Business device is to prompt user to carry out APP edition upgrading.
Specifically, if the new version of APP just has mandatory upgrade function, whether detection client end AP P version is new version.If User's current version can pass through following step however, there remains forcing the user of legacy version to go to upgrade without mandatory upgrade function Rapid to realize: APP has the function that user logs in, then starts login function, is similar to and realizes that APP is run in backstage self-starting, with Family can broadcast data to server, such as user name, password, identifying code etc. when logging in.Under normal circumstances, server receives The data that POST comes, are judged.If verifying logs in failure, one section of message of client will be returned to, such as " failure is logged in, Password mistake " etc..Client just will pop up the message of passback, such as " logging in failure, password mistake " etc..Now, pass through server End modification user logs in judgement, increases a field " AppUpdateFlag ", if not transmitting this word when user logs in Section comes, and server judges that the version of user now is early version, does not allow user to log in, and return to the message of client It is " version is excessively old, please download latest edition ".If the message that terminal APP judgement receives is that " version is excessively old, please download latest edition This ", then mandatory upgrade button is triggered to carry out APP version mandatory upgrade.
Please continue to refer to Fig. 4, as shown in figure 4, in this embodiment, if described detect that test stops, obtaining and storing After the step of test result, further includes:
S250, the test result is prompted with predetermined manner.
Specifically, the predetermined manner refers to by showing test result in display interface, or by test result with short Letter mode is sent in the preset mobile phone of research staff, or sends test result to default mailbox, to realize by mail Research staff knows test result as early as possible, and takes alignment processing, for example, if the APP mandatory upgrade test result is normal, it will APP mandatory upgrade is distributed to production environment so that user carries out APP mandatory upgrade, if the APP mandatory upgrade test result is different Often, research staff can be modified according to test result, be tested with further progress, to improve the whole of APP mandatory upgrade The efficiency of a test process.
In one embodiment, described the step of prompting the test result with predetermined manner, includes:
The test result is sent to default mailbox by mail.
Specifically, after terminal has executed APP upgrading test, the test result that will acquire, by presetting automatic transmission Mail is tested into pre-set mailbox, the permission for sending mail can be transferred in advance by api interface, and pass through mail mould The setting of plate realizes the mail of test result being sent to related personnel, make related personnel as early as possible know test result, with into Anomalies in the subsequent processing of row APP mandatory upgrade, such as modification APP mandatory upgrade test process, or APP is forced Upgrading, which is distributed in production environment, goes so that user carries out APP mandatory upgrade.
The embodiment of the present application by using automatization testing technique test app mandatory upgrade, can bring it is following the utility model has the advantages that
1) it, saves and tests manpower, minimum 2 people/time.
2), more artificial accuracy is stronger, and objectivity is stronger.
3), related personnel can be notified with automatic trigger test report mail.
It should be noted that APP upgrading test method described in above-mentioned each embodiment, can according to need different realities Apply the technical characteristic for including in example and re-start combination, with obtain combination after embodiment, but all this application claims guarantor Within the scope of shield.
Referring to Fig. 5, Fig. 5 is the schematic block diagram of APP upgrading test device provided by the embodiments of the present application.Corresponding to upper APP upgrading test method is stated, the embodiment of the present application also provides a kind of APP upgrading test device.As shown in figure 5, APP upgrading is surveyed Trial assembly is set including the unit for executing above-mentioned APP upgrading test method, which can be configured in the computers such as server In equipment.Specifically, referring to Fig. 5, the APP upgrading test device 500 includes trigger unit 501, test cell 502 and obtains Unit 503.
Wherein, mandatory upgrade is triggered by enabled instruction and is pressed if meeting preset condition for detecting in trigger unit 501 Button;
Test cell 502 carries out multiple predetermined registration operations according to preset order if being triggered for the mandatory upgrade button To carry out APP upgrading test;
Acquiring unit 503, if obtaining for detecting that test stops and storing test result.
Referring to Fig. 6, Fig. 6 is another schematic block diagram of APP upgrading test device provided by the embodiments of the present application.Such as Shown in Fig. 6, in this embodiment, the test cell 502 includes:
Lower subelements 5021, the upgrade file for the APP upgrade file download address downloading APP from test environment;
Promoter unit 5022, if starting the APP covering installation for detecting that the upgrade file downloading is completed;
Subelement 5023 is opened, if it is each to verify the APP to open the APP for detecting that the APP is installed successfully Whether service line entrance is normal.
Please continue to refer to Fig. 6, in this embodiment, the APP upgrading test device 500 further include:
First detection unit 504 detects the upgrade file downloading ground of the APP if being connected to server for the APP Whether location is the upgrade file download address for testing environment, if the upgrade file download address of the APP is to test the liter of environment Grade file download address executes the step of the upgrade file of the APP upgrade file download address downloading APP from test environment Suddenly, if the upgrade file download address of the APP is not the upgrade file download address for testing environment, stop test.
Please continue to refer to Fig. 6, in this embodiment, the acquiring unit 503 includes if being also used in the test result Abnormal results obtain the error code of the abnormal results to carry out abnormal prompt.
Please continue to refer to Fig. 6, in this embodiment, the APP upgrading test device 500 further include:
Second detection unit 505, for detecting whether client end AP P version is the new version with mandatory upgrade function, If the client end AP P version is the version without mandatory upgrade function, by limitation APP login service device to prompt user Carry out APP edition upgrading.
As shown in fig. 6, in this embodiment, the APP upgrading test device 500 further include:
Prompt unit 506, for prompting the test result with predetermined manner.
Please continue to refer to Fig. 6, in this embodiment, the prompt unit 506 is tied for sending the test by mail Fruit is to default mailbox.
It should be noted that it is apparent to those skilled in the art that, above-mentioned APP upgrading test device and The specific implementation process of each unit can refer to the corresponding description in preceding method embodiment, for convenience of description and succinctly, Details are not described herein.
Meanwhile the division of each unit and connection type are only used for for example, at it in above-mentioned APP upgrading test device In his embodiment, APP upgrading test device can be divided into different units as required, it can also be by APP upgrading test device Middle each unit takes the different order of connection and mode, to complete all or part of function of above-mentioned APP upgrading test device.
Above-mentioned APP upgrading test device can be implemented as a kind of form of computer program, which can be It is run in computer equipment as shown in Figure 7.
Referring to Fig. 7, Fig. 7 is a kind of schematic block diagram of computer equipment provided by the embodiments of the present application.The computer Equipment 700 can be desktop computer, and perhaps the computer equipments such as notebook are also possible to component or portion in other equipment Part.
Refering to Fig. 7, which includes processor 702, memory and the net connected by system bus 701 Network interface 705, wherein memory may include non-volatile memory medium 703 and built-in storage 704.
The non-volatile memory medium 703 can storage program area 7031 and computer program 7032.The computer program 7032 are performed, and processor 702 may make to execute a kind of above-mentioned APP upgrading test method.
The processor 702 is for providing calculating and control ability, to support the operation of entire computer equipment 700.
The built-in storage 704 provides environment for the operation of the computer program 7032 in non-volatile memory medium 703, should When computer program 7032 is executed by processor 702, processor 702 may make to execute a kind of above-mentioned APP upgrading test method.
The network interface 705 is used to carry out network communication with other equipment.It will be understood by those skilled in the art that in Fig. 7 The structure shown, only the block diagram of part-structure relevant to application scheme, does not constitute and is applied to application scheme The restriction of computer equipment 700 thereon, specific computer equipment 700 may include more more or fewer than as shown in the figure Component perhaps combines certain components or with different component layouts.For example, in some embodiments, computer equipment can Only to include memory and processor, in such embodiments, reality shown in the structure and function and Fig. 7 of memory and processor It is consistent to apply example, details are not described herein.
Wherein, the processor 702 is for running computer program 7032 stored in memory, to realize following step It is rapid: to meet preset condition if detecting, mandatory upgrade button is triggered by enabled instruction;If the mandatory upgrade button is touched Hair carries out multiple predetermined registration operations according to preset order to carry out APP upgrading test;If detecting, test stops, and obtains and stores Test result.
In one embodiment, the processor 702 realize it is described according to preset order carry out multiple predetermined registration operations with into When the step of row APP upgrading test, following steps are implemented:
From the upgrade file of the APP upgrade file download address downloading APP of test environment;
If detecting, the upgrade file downloading is completed, and starts the APP covering installation;
If detecting, the APP is installed successfully, and whether open the APP normal to verify each service line entrance of the APP;
The result in above steps test process is recorded to obtain test result.
In one embodiment, the processor 702 is described under the APP upgrade file download address of test environment in realization Before the step of carrying the upgrade file of APP, also perform the steps of
If the APP is connected to server, whether the upgrade file download address for detecting the APP is the liter for testing environment Grade file download address;
If the upgrade file download address of the APP is to test the upgrade file download address of environment, execute described from survey The step of upgrade file of the APP upgrade file download address downloading APP in test ring border;
If the upgrade file download address of the APP is not the upgrade file download address for testing environment, stop test.
In one embodiment, it if the processor 702 tests stopping in described detect of realization, obtains and stores test and tie After the step of fruit, also perform the steps of
If in the test result including abnormal results, the error code of the abnormal results is obtained to carry out abnormal mention Show.
In one embodiment, if the processor 702 meets preset condition in described detect of realization, pass through enabled instruction Before the step of triggering mandatory upgrade button, also perform the steps of
Detect whether client end AP P version is the new version with mandatory upgrade function;
If the client end AP P version is the version without mandatory upgrade function, by limitation APP login service device with User is prompted to carry out APP edition upgrading.
In one embodiment, it if the processor 702 tests stopping in described detect of realization, obtains and stores test and tie After the step of fruit, also perform the steps of
The test result is prompted with predetermined manner.
In one embodiment, the processor 702 is realizing described the step of prompting the test result with predetermined manner When, implement following steps:
The test result is sent to default mailbox by mail.
It should be appreciated that in the embodiment of the present application, processor 702 can be central processing unit (Central ProcessingUnit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable GateArray, FPGA) or other programmable logic devices Part, discrete gate or transistor logic, discrete hardware components etc..Wherein, general processor can be microprocessor or The processor is also possible to any conventional processor etc..
Those of ordinary skill in the art will appreciate that be realize above-described embodiment method in all or part of the process, It is that can be completed by computer program, which can be stored in a computer readable storage medium.The computer Program is executed by least one processor in the computer system, to realize the process step of the embodiment of the above method.
Therefore, the application also provides a kind of computer readable storage medium.The computer readable storage medium can be non- The computer readable storage medium of volatibility, the computer-readable recording medium storage have computer program, the computer program Processor is set to execute following steps when being executed by processor:
A kind of computer program product, when run on a computer, so that computer executes in the above various embodiments The step of described APP upgrading test method.
The computer readable storage medium can be the internal storage unit of aforementioned device, such as the hard disk or interior of equipment It deposits.What the computer readable storage medium was also possible to be equipped on the External memory equipment of the equipment, such as the equipment Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the computer readable storage medium can also both include the inside of the equipment Storage unit also includes External memory equipment.
It is apparent to those skilled in the art that for convenience of description and succinctly, foregoing description is set The specific work process of standby, device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
The computer readable storage medium can be USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), the various computer readable storage mediums that can store program code such as magnetic or disk.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not It is considered as beyond scope of the present application.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary.For example, the division of each unit, only Only a kind of logical function partition, there may be another division manner in actual implementation.Such as multiple units or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.
Step in the embodiment of the present application method can be sequentially adjusted, merged and deleted according to actual needs.This Shen Please the unit in embodiment device can be combined, divided and deleted according to actual needs.In addition, in each implementation of the application Each functional unit in example can integrate in one processing unit, is also possible to each unit and physically exists alone, can also be with It is that two or more units are integrated in one unit.
If the integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product, It can store in one storage medium.Based on this understanding, the technical solution of the application is substantially in other words to existing skill The all or part of part or the technical solution that art contributes can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that an electronic equipment (can be individual Computer, terminal or network equipment etc.) execute each embodiment the method for the application all or part of the steps.
The above, the only specific embodiment of the application, but the bright protection scope of the application is not limited thereto, and is appointed What those familiar with the art within the technical scope of the present application, can readily occur in various equivalent modifications or Replacement, these modifications or substitutions should all cover within the scope of protection of this application.Therefore, the protection scope Ying Yiquan of the application Subject to the protection scope that benefit requires.

Claims (10)

1. a kind of APP upgrading test method, which is characterized in that the described method includes:
Meet preset condition if detecting, mandatory upgrade button is triggered by enabled instruction;
If the mandatory upgrade button is triggered, multiple predetermined registration operations are carried out to carry out APP upgrading test according to preset order;
If detecting, test stops, and obtains and stores test result.
2. APP upgrading test method according to claim 1, which is characterized in that described multiple pre- according to preset order progress If operation to include: the step of carrying out APP upgrading test
From the upgrade file of the APP upgrade file download address downloading APP of test environment;
If detecting, the upgrade file downloading is completed, and starts the APP covering installation;
If detecting, the APP is installed successfully, and whether open the APP normal to verify each service line entrance of the APP.
3. APP upgrading test method according to claim 2, which is characterized in that the APP upgrade file from test environment Download address was downloaded before the step of upgrade file of APP, further includes:
If the APP is connected to server, whether the upgrade file download address for detecting the APP is the upgrading text for testing environment Part download address;
If the upgrade file download address of the APP is to test the upgrade file download address of environment, execute described from test wrapper The step of upgrade file of the APP upgrade file download address downloading APP in border;
If the upgrade file download address of the APP is not the upgrade file download address for testing environment, stop test.
4. APP upgrading test method according to claim 1, which is characterized in that if described detect that test stops, obtaining simultaneously After the step of storing test result, further includes:
If including abnormal results in the test result, the error code of the abnormal results is obtained to carry out abnormal prompt.
5. APP upgrading test method according to claim 1, which is characterized in that if described detect meets preset condition, lead to Before the step of crossing enabled instruction triggering mandatory upgrade button, further includes:
Detect whether client end AP P version is the new version with mandatory upgrade function;
If the client end AP P version is the version without mandatory upgrade function, by limitation APP login service device to prompt User carries out APP edition upgrading.
6. APP upgrading test method according to claim 1, which is characterized in that if described detect that test stops, obtaining simultaneously After the step of storing test result, further includes:
The test result is prompted with predetermined manner.
7. APP upgrading test method according to claim 6, which is characterized in that described to prompt the test with predetermined manner As a result the step of includes:
The test result is sent to default mailbox by mail.
8. a kind of APP upgrading test device characterized by comprising
Trigger unit triggers mandatory upgrade button by enabled instruction if meeting preset condition for detecting;
Test cell carries out multiple predetermined registration operations according to preset order if being triggered for the mandatory upgrade button to carry out APP upgrading test;
Acquiring unit, if obtaining for detecting that test stops and storing test result.
9. a kind of computer equipment, which is characterized in that the computer equipment includes memory and is connected with the memory Processor;The memory is for storing computer program;The processor is based on running and storing in the memory Calculation machine program, to execute as described in claim any one of 1-7 the step of APP upgrading test method.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey Sequence, the computer program make the processor execute the APP liter as described in any one of claim 1-7 when being executed by processor The step of grade test method.
CN201910039370.9A 2019-01-16 2019-01-16 APP upgrading test method, apparatus, computer equipment and storage medium Pending CN109918287A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910039370.9A CN109918287A (en) 2019-01-16 2019-01-16 APP upgrading test method, apparatus, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910039370.9A CN109918287A (en) 2019-01-16 2019-01-16 APP upgrading test method, apparatus, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109918287A true CN109918287A (en) 2019-06-21

Family

ID=66960367

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910039370.9A Pending CN109918287A (en) 2019-01-16 2019-01-16 APP upgrading test method, apparatus, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109918287A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112486528A (en) * 2020-11-09 2021-03-12 浙江吉利控股集团有限公司 Vehicle over-the-air OTA (over-the-air technology) upgrading method
CN113608764A (en) * 2021-08-03 2021-11-05 广州小鹏汽车科技有限公司 Application management method, server, application management system, and readable storage medium
CN114860611A (en) * 2022-05-31 2022-08-05 苏州浪潮智能科技有限公司 BIOS (basic input output System) upgrading test method, device and medium
CN114860611B (en) * 2022-05-31 2024-07-02 苏州浪潮智能科技有限公司 BIOS upgrading test method, device and medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101158917A (en) * 2007-11-09 2008-04-09 中兴通讯股份有限公司 Software version upgrade mounting test system and method thereof
US20100281143A1 (en) * 2009-04-29 2010-11-04 Jim Krahn Maintaining mobile device operations
WO2017041499A1 (en) * 2015-09-08 2017-03-16 中兴通讯股份有限公司 Software upgrade method and system, and computer-readable storage medium
CN107220174A (en) * 2017-05-08 2017-09-29 飞天诚信科技股份有限公司 A kind of method and device of automatic test
CN107491321A (en) * 2017-07-03 2017-12-19 北京奇安信科技有限公司 A kind of processing method and processing device for being used to realize automatic software updating
CN107678759A (en) * 2017-09-11 2018-02-09 上海斐讯数据通信技术有限公司 A kind of method and system of upgrade applications
WO2018033094A1 (en) * 2016-08-17 2018-02-22 中兴通讯股份有限公司 Rich communication suite release platform, method and system for version update, and mobile terminal
CN108804321A (en) * 2018-05-25 2018-11-13 武汉华工正源光子技术有限公司 A kind of automatic test software update system and method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101158917A (en) * 2007-11-09 2008-04-09 中兴通讯股份有限公司 Software version upgrade mounting test system and method thereof
US20100281143A1 (en) * 2009-04-29 2010-11-04 Jim Krahn Maintaining mobile device operations
WO2017041499A1 (en) * 2015-09-08 2017-03-16 中兴通讯股份有限公司 Software upgrade method and system, and computer-readable storage medium
WO2018033094A1 (en) * 2016-08-17 2018-02-22 中兴通讯股份有限公司 Rich communication suite release platform, method and system for version update, and mobile terminal
CN107220174A (en) * 2017-05-08 2017-09-29 飞天诚信科技股份有限公司 A kind of method and device of automatic test
CN107491321A (en) * 2017-07-03 2017-12-19 北京奇安信科技有限公司 A kind of processing method and processing device for being used to realize automatic software updating
CN107678759A (en) * 2017-09-11 2018-02-09 上海斐讯数据通信技术有限公司 A kind of method and system of upgrade applications
CN108804321A (en) * 2018-05-25 2018-11-13 武汉华工正源光子技术有限公司 A kind of automatic test software update system and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
许伟;张涛;王涛;: "TDCS***客户端软件自动升级的研究", 铁道通信信号, no. 02 *
谭安芬;王力;: "***自动更新升级软件SUS研究", 电子工程师, no. 06 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112486528A (en) * 2020-11-09 2021-03-12 浙江吉利控股集团有限公司 Vehicle over-the-air OTA (over-the-air technology) upgrading method
CN112486528B (en) * 2020-11-09 2022-08-02 浙江吉利控股集团有限公司 Vehicle over-the-air OTA (over-the-air technology) upgrading method
CN113608764A (en) * 2021-08-03 2021-11-05 广州小鹏汽车科技有限公司 Application management method, server, application management system, and readable storage medium
CN114860611A (en) * 2022-05-31 2022-08-05 苏州浪潮智能科技有限公司 BIOS (basic input output System) upgrading test method, device and medium
CN114860611B (en) * 2022-05-31 2024-07-02 苏州浪潮智能科技有限公司 BIOS upgrading test method, device and medium

Similar Documents

Publication Publication Date Title
US9116776B2 (en) Updating software objects
CN104461858B (en) software compatibility pre-testing method and system
US8855627B2 (en) System and method for enhanced diagnostics on mobile communication devices
CN103744686B (en) Control method and the system of installation is applied in intelligent terminal
CN106502747A (en) A kind of method of application upgrade and mobile terminal
CN106293811A (en) A kind of packing and issuing method and device automatically
CN105138347A (en) Difference upgrade patch generating method, software upgrading method and corresponding apparatus
CN110119280A (en) The method and device of more firmware upgrades
CN110188296B (en) Application program embedded page processing method, browser, equipment and storage medium
CN107632901A (en) A kind of self-repair method and device of application program operation exception
CN109918287A (en) APP upgrading test method, apparatus, computer equipment and storage medium
CN109325363A (en) Management method, device, computer equipment and the storage medium of authority information
CN112199284A (en) Program automation testing method and corresponding device, equipment and medium
CN106648762A (en) Development environment building method and device
CN109002305B (en) Method and system for updating equipment program
CN114860613A (en) Automatic testing method and device
CN103491189B (en) Method and wireless terminal based on the linkage detection client software installment state of high in the clouds and wireless terminal
CN105426272B (en) Application Backup method and device
CN107766068B (en) Application system patch installation method and device, computer equipment and storage medium
CN106485153A (en) Version upgrading method and terminal unit
US20230315620A1 (en) System and Method for Diagnosing a Computing Device in Safe Mode
CN108848077A (en) The login method and device of application program
CN110837377A (en) Application program updating method and device, storage medium and electronic equipment
CN112199283A (en) Program test control and execution method and corresponding device, equipment and medium
CN110244986B (en) Browser configuration method and device

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