CN110321278A - System detection method and device, computer equipment, storage medium - Google Patents

System detection method and device, computer equipment, storage medium Download PDF

Info

Publication number
CN110321278A
CN110321278A CN201910419762.8A CN201910419762A CN110321278A CN 110321278 A CN110321278 A CN 110321278A CN 201910419762 A CN201910419762 A CN 201910419762A CN 110321278 A CN110321278 A CN 110321278A
Authority
CN
China
Prior art keywords
test parameter
test
end page
background server
parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910419762.8A
Other languages
Chinese (zh)
Other versions
CN110321278B (en
Inventor
秦勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910419762.8A priority Critical patent/CN110321278B/en
Priority to PCT/CN2019/103443 priority patent/WO2020232900A1/en
Publication of CN110321278A publication Critical patent/CN110321278A/en
Application granted granted Critical
Publication of CN110321278B publication Critical patent/CN110321278B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Abstract

This application discloses a kind of system detection method and devices, are related to the field of test technology.The described method includes: obtaining the test parameter that the test operation executes when detecting currently performed test operation failure;The test parameter that will acquire is sent to background server, and the storage of the test parameter is executed by the background server;When triggering the test operation of progress in listening to the front end page, the test parameter stored in the background server is written back to the front end page;According to the test parameter of write-back in the front end page, the test operation is executed again.Method disclosed herein greatly improves the efficiency tested system after reparation.

Description

System detection method and device, computer equipment, storage medium
Technical field
This application involves the field of test technology, in particular to a kind of system detection method and device, computer equipment, calculating Machine readable storage medium storing program for executing.
Background technique
Application developer is after completing system development, and in order to verify, whether the function of development system reaches expected effect Fruit need to simulate several real users and input user information to system respectively, to carry out system testing.If system is in test process In can not achieve the desired results, need application developer carry out system reparation after test again.
Since the user information that different user is inputted to system is different, for example, for the combobox option in system, The selected option of different user is different, and for the Text Entry in system, the information that different user is inputted is more It is difference, application developer need to input a large amount of test datas to system when carrying out system testing, and after to reparation When system is tested again, application developer is needed by these test data input systems, to take time and effort again, serious shadow The development progress of acoustic system.
Therefore, the simplification for how realizing system testing process is that currently still have technical problem to be solved.
Summary of the invention
Based on above-mentioned technical problem, this application provides a kind of system detection method and device, computer equipment, computers Readable storage medium storing program for executing.
Techniques disclosed in this application scheme includes:
A kind of system testing method, which comprises when detecting currently performed test operation failure, described in acquisition The test parameter that test operation executes;The test parameter that will acquire is sent to background server, by the background server Execute the storage of the test parameter;When triggering the test operation of progress in listening to the front end page, by the backstage The test parameter stored in server is written back to the front end page;According to the test parameter of write-back in the front end page, then It is secondary to execute the test operation.
Further, described when detecting currently performed test operation failure, obtain what the test operation executed Test parameter, comprising: when detecting currently performed test operation failure, traverse all controls in front end page;Acquisition The test parameter inputted in each control.
Further, the test parameter that will acquire is sent to background server, is held by the background server The storage of the row test parameter, comprising: after the background server receives the test parameter, the received test of institute is joined Number is stored in the interim table of database or caching.
Further, when the test operation for triggering progress in listening to the front end page, the backstage is taken The test parameter that stores is written back to the front end page in business device, comprising: listen to Local hydrodynamic unit in the front end page by When button is triggered, Xiang Suoshu background service initiates test parameter acquisition request;The background server is joined according to the test The front end page is written in the test parameter that number acquisition request is returned.
Further, it when the Local hydrodynamic unit button listened in the front end page is triggered, is taken to the backstage Test parameter acquisition request is initiated in business, comprising: when the Local hydrodynamic unit button listened in the front end page is triggered, according to institute It states the preset method of Local hydrodynamic unit button and creates Local hydrodynamic unit object in front end;Pass through the Local hydrodynamic unit object created and institute It states background server and establishes asynchronous communication connection;The connection response of the background server described in the Local hydrodynamic unit object acquisition Afterwards, Xiang Suoshu background server sends test parameter acquisition request.
Further, described in the test parameter that the background server is returned according to the Asynchronous Request is written Front end page, comprising: after the data for receiving the returned specified format of the background server, pass through the parsing to the data Obtain the test parameter;By the way that the test parameter to be written in corresponding html tag, the test parameter is carried out in institute State the write-back of front end page.
A kind of opening machine system test device, described device include: test parameter obtain module, for detect it is currently performed Test operation failure when, obtain the test parameter that the test operation executes;Test parameter memory module, for what be will acquire The test parameter is sent to background server, and the storage of the test parameter is executed by the background server;Test parameter Write-back module when for triggering the test operation of progress in listening to the front end page, will deposit in the background server The test parameter of storage is written back to the front end page;Testing execution module, for the test according to write-back in the front end page Parameter executes the test operation again.
A kind of computer equipment, comprising:
Processor;
Memory is stored with computer-readable instruction on the memory, and the computer-readable instruction is by the processing When device executes, foregoing system detection method is realized.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor When row, foregoing system detection method is realized.
The technical solution that embodiments herein provides can include the following benefits:
In the above-mentioned technical solutions, when detecting that the currently performed test operation of system fails, by current test operation Performed test parameter is stored in background server, and after triggering in listening to front end page the test operation of progress, will The test parameter stored in background server is written back to front end page, thus again according to the test parameter of write-back in front end page System testing is executed, eliminates application developer manually for the process of test parameter input system, is greatly improved to repairing The efficiency that system is tested after multiple.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited Application.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the application Example, and in specification it is used to explain the principle of the application together;
Fig. 1 is a kind of schematic diagram of implementation environment involved in the application;
Fig. 2 is a kind of flow chart of system detection method shown according to an exemplary embodiment;
Fig. 3 is the flow chart of step 130 in one embodiment according to Fig.2,;
Fig. 4 is the flow chart of step 130 in another embodiment according to Fig.2,;
Fig. 5 is a kind of block diagram of opening machine system test device shown according to an exemplary embodiment;
Fig. 6 is a kind of hardware block diagram of computer equipment shown according to an exemplary embodiment.
Through the above attached drawings, it has been shown that the specific embodiment of the present invention will be hereinafter described in more detail, these attached drawings It is not intended to limit the scope of the inventive concept in any manner with verbal description, but is by referring to specific embodiments Those skilled in the art illustrate idea of the invention.
Specific embodiment
Here will the description is performed on the exemplary embodiment in detail, the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the application.
Fig. 1 is a kind of schematic diagram of implementation environment shown according to an exemplary embodiment, which can be regarded as A kind of operation system.As shown in Figure 1, the implementation environment includes: terminal 100 and server 200.
Wherein, terminal 100 is loaded with front end page for running browser to interact behaviour with user in the browser Make.Terminal 100 specifically can be smart phone, tablet computer, laptop, computer or it is any other can run it is clear It lookes at the electronic equipment of device, is not limited herein.
Server 200, to respond the service request of terminal initiation, carries out then for storing mass data according to service request Data processing.Server 200 can be a server, or the server cluster being made of several servers, this place Without limiting.
It should be noted that wired or wireless network connection is pre-established between terminal 100 and server 200, from And terminal 100 is enabled to carry out data interaction with server 200.
Fig. 2 is a kind of flow chart of system detection method shown according to an exemplary embodiment.As shown in Figure 1, the party Method may comprise steps of:
Step 110, when detecting currently performed test operation failure, the test parameter that test operation executes is obtained.
Firstly the need of explanation, system described by the present embodiment is applied to implementation environment shown in Fig. 1, including front end is with after End.Front end is operate in the user interface in terminal, interacts operation for providing front end page and user;Rear end is Background server, the interactive operation for being carried out by front end page provide data support.
System detection method described in the present embodiment applies equally to implementation environment shown in Fig. 1, works as application developer After completing system development, by front end page input test parameter, so that system is run according to the test parameter inputted, from And realize system testing.
If system can not achieve the desired results for the operation of application developer institute input test parameter, then it represents that when Preceding performed test operation failure, needs application developer accordingly to repair system.After the system of completion is repaired, journey Sequence developer is usually by the test parameter run before system reparation the input front end page again, to carry out system survey again Examination, until system achieves the desired results to the operation of test parameter.In other words, during system testing, program development people Member needs continually forward end page input same test parameter, cumbersome.
Also, application developer generally requires several users of simulation and inputs respectively to system when carrying out system testing Different test parameter, to carry out comprehensive system test.During carrying out system testing to each user simulated, it is both needed to It wants application developer to execute the process of above-mentioned continually forward end page input same test parameter, seriously affects opening for system Hair progress.Therefore, it is necessary to a kind of system detection method be proposed, with the system test operation in the existing realization of simplification.
In the present embodiment institute providing method, detect that the currently performed test operation of system unsuccessfully refers to, system root In operation according to front end page institute input test parameter, fail to achieve the desired results.Such as in a purchase system, system can not Commodity are added to the shopping cart of current institute's analog subscriber or system can not be according to the information life that current institute's analog subscriber selects At order.
Test parameter performed by test operation then refers to that system is in currently performed test operation, front end page Middle inputted test parameter.Therefore, when the currently performed test operation failure of the system that detects, then front end page is obtained Middle inputted test parameter.
In one exemplary embodiment, in the currently performed test operation failure of the system that detects, traversal can be passed through All controls in front end page, and the test parameter inputted in each control is acquired, to obtain the execution of this test operation Test parameter.
Wherein, the control in front end page may include text control, picture control, button control, check box control, into Spend the control of the common types such as control.Since system is when executing test operation, these controls input test parameter, by This, by all controls in traversal front end page, and acquires the test parameter inputted in each control, can obtain front end The test parameter inputted in the page.
In a further exemplary embodiment, it by all controls in traversal front end page, also obtains corresponding to each control Control type and id information.Wherein, the id information of control is that system is arranged to distinguish same type of different controls.
Step 120, the test parameter that will acquire is sent to background server, executes depositing for test parameter by background server Storage.
Wherein, after the test parameter inputted in end page face before acquisition, by test parameter collected and each control The corresponding control type of part and id information are sent to background server and are stored.
In one exemplary embodiment, by background server institute configuration database, the storage of the interim table of database Capacity is very big, and is convenient for data modification and extraction, therefore background server stores test parameter after receiving test parameter In the interim table of database.
Wherein, background server configuration database can be relevant database, such as can be oracle database, MySQL database etc..
In a further exemplary embodiment, since the efficiency for carrying out reading data from the caching of background server is higher, Therefore test parameter is stored in caching by background server after receiving test parameter.
Illustratively, if background server is used using MySQL database as primary database, and with Redis database Data storage is carried out as auxiliary cache database, then test parameter is stored in Redis database.It should be noted that Background server can also be limited using other data storage formats, the present embodiment not to this
In a further exemplary embodiment, background server is right with each control institute when carrying out the storage of test parameter The control type and id information associated storage answered, so that background server in read test parameter, can read correspondence simultaneously Control information.
For example, test parameter is stored in Redis database, can using test parameter corresponding to each control as Each control Value is carried out data storage by key.It, can be by being tested corresponding to each control when carrying out test parameter reading Parameter, the control type and id information of quick search to each control.
Step 130, when triggering the test operation of progress in listening to front end page, the survey that will be stored in background server Examination parameter is written back to front end page.
Wherein, the test operation that progress is triggered in front end page refers to, listens to the Local hydrodynamic unit button in front end page It is triggered by user.
Local hydrodynamic unit button is one or more button being set in front end page, and Local hydrodynamic unit button is triggered Mode may include that application developer clicks or touches the Local hydrodynamic unit button, for example, application developer can be used Mouse-click is perhaps double-clicked the Local hydrodynamic unit button and can also be clicked by finger or the long-pressing Local hydrodynamic unit button, this place It is not limited.
When application developer clicks Local hydrodynamic unit button, system accordingly listens to the Local hydrodynamic unit button in front end page It is triggered, then it represents that application developer has been completed system reparation, institute's input front end page before needing to repair using system In test parameter execute system testing again.At this moment, the test parameter that will be stored in background server is needed to be written back to front end Corresponding position in the page re-enters test parameter performed before system modification in front end page to realize, thus Eliminate many and diverse operation that application developer is manually entered test parameter.
It should be noted that the Local hydrodynamic unit button and the text control in aforementioned front end page, picture control, button control are multiple Select the control essence of the common types such as frame control, progress bar control different.Aforementioned controls are in bearing system test operation Specific test parameter, such as application developer is when carrying out system testing, by clicking control or inputting in control Corresponding information realizes the input test parameter into system, and generally, each control respectively corresponds a kind of test parameter.But journey The test parameter that background server stores only is written back to aforementioned each by sequence developer by triggering the Local hydrodynamic unit button In control, without concrete operations, therefore the Local hydrodynamic unit button such as the test parameter in each control being increased, being modified It is significantly different with aforementioned controls.
Illustratively, in order to distinguish Local hydrodynamic unit button mutually with aforementioned controls, can by Local hydrodynamic unit button be arranged with Edge in front end page, and aforementioned controls are set to the intermediate region of front end page.Alternatively, can also be by playing a game The appearance of portion's refresh button carries out special designing, so that it be made obviously to be distinguished with aforementioned controls, this place is not limited.
In one exemplary embodiment, the Local hydrodynamic unit button being arranged in front end page is AJAX (Asynchronous JavaScript and XML) button.AJAX is a kind of web development technologies of creation interaction network page application, without again It, being capable of data in update section subnetting page in the case where loading entire webpage.
When the Local hydrodynamic unit button listened in the front end page is triggered, test parameter is initiated to background server and is obtained Request is taken, to request background server that the test parameter of storage is returned to front end, the test that front end then returns to background server The corresponding position in front end page is written in parameter.
As shown in figure 3, in one exemplary embodiment, the process packet of test parameter acquisition request is initiated to background server Include following steps:
Step 131, Local hydrodynamic unit object is created in front end according to Local hydrodynamic unit button institute's pre-setting method.
Wherein, front end page is also prefixed creation part while Local hydrodynamic unit button is arranged for Local hydrodynamic unit button The method for refreshing object then enables this method, and create Local hydrodynamic unit object in front end when local refresh button is triggered.
It illustratively, is (hereinafter referred to as xhr pairs of XMLHttpRequest object in the Local hydrodynamic unit object of front end creation As).Due to being had differences between different types of front end (i.e. browser), to each front end preset creation Local hydrodynamic unit object Method may be different.
Difference between browser is mainly reflected between IE browser and other browsers.For non-IE browser, Xhr object can be directly created on a web browser;But for IE browser, ActiveXObject object reference need to be passed through The attribution method of Microsoft.XMLHttp component, to create xhr object on a web browser.
Step 132, asynchronous communication is established with background server by the Local hydrodynamic unit object created to connect.
Wherein, realize that Local hydrodynamic unit object establishes the method that asynchronous communication is connect with background server, using xhr object Open method.
Illustratively, in the open method of xhr object, specifying and submitting the type of data to background server is post, And the requested address url and Transfer Parameters are specified, while specified transmission mode is asynchronous system.
Step 133, it after the connection response of Local hydrodynamic unit object acquisition background server, sends and tests to background server Data acquisition request.
It wherein, can correspondingly received backstage clothes after asynchronous communication connection is established between Local hydrodynamic unit object and background server The connection response that business device returns.After receiving connection response, Local hydrodynamic unit object then sends test data to background server Acquisition request.
Local hydrodynamic unit object sends test data acquisition request to background server, is the send method according to xhr object It realizes.As described above, Local hydrodynamic unit object, in open method, the specified type for submitting data to background server is Post, then, Local hydrodynamic unit object, will be corresponding by send method when sending test data acquisition request to background server Request data is sent to background server.
As a result, by method provided by the present exemplary embodiment, realize that initiating test data to background server obtains Request.
As shown in figure 4, in one exemplary embodiment, the test parameter write-in front end page that background server is returned Process may comprise steps of:
Step 135, after the data for receiving the returned specified format of background server, pass through the parsing to received data Obtain test parameter.
Wherein, after background server receives test parameter acquisition request, by responding the request, test that it is stored Parameter and with the control type of test parameter associated storage, control id information with specified format return front end.
Illustratively, the format of background server institute returned data can be json format Javascript code or Character string, can also be the plain text stream of XML format or html format, this place does not carry out any restrictions to this.
By the parsing to specified format data, so as to obtain corresponding test parameter, and each survey is obtained simultaneously Try control type and control id information corresponding to parameter.In an exemplary embodiment mode, background server is returned The parsing for returning data, is realized by Javascript parser.
Step 136, by the way that test parameter to be written in corresponding html tag, test parameter returning in front end page is carried out It writes.
Wherein, after parsing obtains test parameter and corresponding control information, setting is searched according to control type and id information Html tag in front-end application, and test parameter is written in corresponding html tag, by reloading these Write-back of the test parameter in front end page can be realized in html tag.
Application developer passes through the Local hydrodynamic unit button in touching front end page after the system of completion is repaired as a result, According to the content that embodiment corresponding to figure 3 above and Fig. 4 describes, the test parameter stored in background server is written back to by realization Front end page.
Step 140, according to the test parameter of write-back in front end page, test operation is executed again.
Wherein, it recognizes in front end page after the test parameter of institute's write-back, system can execute test operation again.If Test operation performed by this still can not achieve the desired results, then repeats in described by step 110 to step 140 Hold, until test operation performed by system achieves the desired results.
To sum up, method provided herein eliminates application developer manually for the process of test parameter input system, Greatly improve the efficiency tested system after reparation.
As 5 be a kind of block diagram of opening machine system test device according to shown by an exemplary embodiment.As shown in figure 5, the dress It sets and specifically includes:
Test parameter obtains module 210, for obtaining test behaviour when detecting currently performed test operation failure Make the test parameter executed;
Test parameter memory module 220, the test parameter for will acquire is sent to background server, by background server Execute the storage of the test parameter;
Test parameter write-back module 230 will backstage when for triggering the test operation of progress in listening to front end page The test parameter stored in server is written back to the front end page;
Testing execution module 240 executes test operation for the test parameter according to write-back in front end page again.
In a further exemplary embodiment, test parameter acquisition module 210 includes:
Control visiting unit, for traversing in front end page when detecting currently performed test operation failure All controls;
Test parameter acquisition unit, for acquiring the test parameter inputted in each control.
In a further exemplary embodiment, test parameter write-back module 230 includes:
Control triggers monitoring unit, when for being triggered in the Local hydrodynamic unit button listened in the front end page, to Background service initiates test parameter acquisition request;
Test parameter writing unit, the test parameter for being returned to background server according to test parameter acquisition request Front end page is written.
In a further exemplary embodiment, control triggering monitoring unit includes:
Object Creation subelement, when for being triggered in the Local hydrodynamic unit button listened in front end page, according to part The preset method of refresh button creates Local hydrodynamic unit object in front end;
Asynchronous communication connects subelement, asynchronous logical for being established by created Local hydrodynamic unit object and background server Letter connection;
Transmission sub-unit is requested, for being taken after the connection response of Local hydrodynamic unit object acquisition background server to backstage Business device sends test parameter acquisition request.
In a further exemplary embodiment, test parameter writing unit includes:
Data parsing subunit passes through logarithm after the data of the returned specified format of platform server upon receipt According to parsing obtain test parameter;
Subelement is written in label information, for carrying out test ginseng by the way that test parameter to be written in corresponding html tag Write-back of the number in front end page.
It should be noted that method provided by device provided by above-described embodiment and above-described embodiment belongs to same structure Think, the concrete mode that wherein modules execute operation is described in detail in embodiment of the method, no longer superfluous herein It states.
In one exemplary embodiment, the application also provides a kind of computer equipment, which includes:
Processor;
Memory is stored with computer-readable instruction on the memory, when which is executed by processor, Realize method as previously shown.
Fig. 6 is a kind of hardware block diagram of computer equipment shown according to an exemplary embodiment.As shown in fig. 6, The computer equipment may include one or more following component: processing component 401, memory 402, and power supply module 403 is more Media component 404, audio component 405, sensor module 407 and communication component 408.
Wherein, said modules and it is not all necessary, computer equipment can increase other groups according to itself functional requirement Part reduces certain components, and this embodiment is not limited.
Processing component 401 usually control computer equipment integrated operation, such as with display, data communication, camera operation And associated operation of daily record data processing etc..Processing component 401 may include that one or more processors 409 refer to execute It enables, to complete all or part of the steps of aforesaid operations.In addition, processing component 401 may include one or more modules, it is convenient for Interaction between processing component 401 and other assemblies.For example, processing component 401 may include multi-media module, to facilitate more matchmakers Interaction between body component 404 and processing component 401.
Memory 402 is configured as storing various types of data to support the operation in terminal.The example of these data Instruction including any application or method for operating on a computing device.Memory 402 can be by any type Volatibility or non-volatile memory device or their combination realize, such as SRAM (static random access memory), EEPROM (electrically erasable programmable read-only memory), EPROM (Erasable Programmable Read Only Memory EPROM), PROM (programmable Read memory), ROM (read-only memory) etc..One or more modules are also stored in memory 402, the one or more mould Block is configured to be executed by the one or more processors 409, complete in system detection method shown in above-described embodiment to complete Portion or part steps.
Power supply module 403 provides electric power for the various assemblies of terminal.Power supply module 403 may include power-supply management system, One or more power supplys and other with for computer equipment generate, manage, and distribute the associated component of electric power.
Multimedia component 404 includes the screen of one output interface of offer between the computer equipment and user. In some embodiments, screen may include LCD (liquid crystal display) and TP (touch panel).If screen includes touch surface Plate, screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touches Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding The boundary of movement, but also detect duration and pressure associated with the touch or slide operation.
Audio component 405 is configured as output and/or input audio signal.For example, audio component 405 may include one Microphone, when terminal is in operation mode, when such as logging mode and speech recognition mode, microphone is configured as receiving external sound Frequency signal.The received audio signal can be further stored in memory 402 or send via communication component 408.Audio Component 405 further includes a loudspeaker, output audio signal is used for, to realize the behaviour that conversates between computer equipment and user Make.
Sensor module 407 includes one or more sensors, for providing the state of various aspects for computer equipment Assessment.For example, sensor module 407 can detecte the temperature change for opening/closing state and terminal of terminal.One In a little embodiments, sensor module 407 can also include Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 408 is configured to facilitate the communication of wired or wireless way between computer equipment and other equipment. Terminal can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.It is exemplary at one Embodiment in, communication component 408 receives broadcast singal from external broadcasting management system or broadcast phase via broadcast channel Close information.
In the exemplary embodiment, processor can be by one or more ASIC (application specific integrated circuit), DSP (number Word signal processor), PLD (programmable logic device), FPGA (field programmable gate array), controller, microcontroller, Wei Chu It manages device or other electronic components is realized, for executing system detection method described in detail in above-described embodiment, herein will not Elaborate explanation.
In one exemplary embodiment, the application also provides a kind of computer readable storage medium, is stored thereon with calculating Machine program when the computer program is executed by processor, realizes method as previously shown.
It should be understood that the application is not limited to the precise structure that has been described above and shown in the drawings, and And various modifications and change can executed without departing from the scope.Scope of the present application is only limited by the accompanying claims.

Claims (10)

1. a kind of system detection method, which is characterized in that the described method includes:
When detecting currently performed test operation failure, the test parameter that the test operation executes is obtained;
The test parameter that will acquire is sent to background server, executes depositing for the test parameter by the background server Storage;
When triggering the test operation of progress in listening to the front end page, the test stored in the background server is joined Number is written back to the front end page;
According to the test parameter of write-back in the front end page, the test operation is executed again.
2. the method according to claim 1, wherein described detect currently performed test operation failure When, obtain the test parameter that the test operation executes, comprising:
When detecting currently performed test operation failure, all controls in front end page are traversed;
Acquire the test parameter inputted in each control.
3. being taken the method according to claim 1, wherein the test parameter that will acquire is sent to backstage Business device, the storage of the test parameter is executed by the background server, comprising:
After the background server receives the test parameter, by the received test parameter of institute be stored in the interim table of database or In person's caching.
4. the method according to claim 1, wherein what the triggering in listening to the front end page carried out When test operation, the test parameter stored in the background server is written back to the front end page, comprising:
When the Local hydrodynamic unit button listened in the front end page is triggered, Xiang Suoshu background service is initiated test parameter and is obtained Request;
The front end page is written into according to the test parameter that the test parameter acquisition request is returned in the background server.
5. according to the method described in claim 4, it is characterized in that, the Local hydrodynamic unit listened in the front end page by When button is triggered, Xiang Suoshu background service initiates test parameter acquisition request, comprising:
When the Local hydrodynamic unit button listened in the front end page is triggered, according to the preset side of the Local hydrodynamic unit button Method creates Local hydrodynamic unit object in front end;
Asynchronous communication is established with the background server by the Local hydrodynamic unit object created to connect;
After the connection response of the background server described in the Local hydrodynamic unit object acquisition, Xiang Suoshu background server sends test Parameter acquisition request.
6. according to the method described in claim 4, it is characterized in that, it is described by the background server according to the Asynchronous Request The front end page is written in the test parameter returned, comprising:
After the data for receiving the returned specified format of the background server, the survey is obtained by the parsing to the data Try parameter;
By the way that the test parameter to be written in corresponding html tag, the test parameter returning in the front end page is carried out It writes.
7. a kind of opening machine system test device, which is characterized in that described device includes:
Test parameter obtains module, for obtaining the test operation when detecting currently performed test operation failure The test parameter of execution;
Test parameter memory module, the test parameter for will acquire is sent to background server, by the background service Device executes the storage of the test parameter;
Test parameter write-back module, when for triggering the test operation of progress in listening to the front end page, after described The test parameter stored in platform server is written back to the front end page;
Testing execution module executes the test operation for the test parameter according to write-back in the front end page again.
8. device according to claim 7, which is characterized in that the test parameter obtains module and includes:
Control visiting unit, for traversing all in front end page when detecting currently performed test operation failure Control;
Test parameter acquisition unit, for acquiring the test parameter inputted in each control.
9. a kind of computer equipment, which is characterized in that the equipment includes:
Processor;
Memory is stored with computer-readable instruction on the memory, and the computer-readable instruction is held by the processor When row, such as method as claimed in any one of claims 1 to 6 is realized.
10. a kind of computer readable storage medium, which is characterized in that be stored thereon with computer program, the computer program When being executed by processor, such as method as claimed in any one of claims 1 to 6 is realized.
CN201910419762.8A 2019-05-20 2019-05-20 System testing method and device, computer equipment and storage medium Active CN110321278B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910419762.8A CN110321278B (en) 2019-05-20 2019-05-20 System testing method and device, computer equipment and storage medium
PCT/CN2019/103443 WO2020232900A1 (en) 2019-05-20 2019-08-29 System test method and apparatus, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910419762.8A CN110321278B (en) 2019-05-20 2019-05-20 System testing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110321278A true CN110321278A (en) 2019-10-11
CN110321278B CN110321278B (en) 2022-09-13

Family

ID=68113161

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910419762.8A Active CN110321278B (en) 2019-05-20 2019-05-20 System testing method and device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN110321278B (en)
WO (1) WO2020232900A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020232900A1 (en) * 2019-05-20 2020-11-26 平安科技(深圳)有限公司 System test method and apparatus, computer device and storage medium
CN112685286A (en) * 2019-10-18 2021-04-20 拉扎斯网络科技(上海)有限公司 Test object generation method and device, electronic equipment and computer storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101487769A (en) * 2008-01-18 2009-07-22 中兴通讯股份有限公司 Automatic test system and method
CN105808417A (en) * 2014-12-29 2016-07-27 平安科技(深圳)有限公司 Automated testing method and proxy server
US20170097882A1 (en) * 2015-10-06 2017-04-06 Ca, Inc. Generating Tests for Testing Software Applications
CN107832206A (en) * 2017-10-16 2018-03-23 深圳市牛鼎丰科技有限公司 Method of testing, device, computer-readable recording medium and computer equipment
CN107861864A (en) * 2017-08-25 2018-03-30 平安普惠企业管理有限公司 Automated testing method, system and computer-readable recording medium
CN109144856A (en) * 2018-07-27 2019-01-04 北京皮尔布莱尼软件有限公司 A kind of UI automated testing method calculates equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020147561A1 (en) * 2001-04-09 2002-10-10 William Baracat System and method for intelligent wire testing
CN104899149B (en) * 2015-06-29 2017-12-19 上海瀚银信息技术有限公司 A kind of automatic test management method
CN110321278B (en) * 2019-05-20 2022-09-13 平安科技(深圳)有限公司 System testing method and device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101487769A (en) * 2008-01-18 2009-07-22 中兴通讯股份有限公司 Automatic test system and method
CN105808417A (en) * 2014-12-29 2016-07-27 平安科技(深圳)有限公司 Automated testing method and proxy server
US20170097882A1 (en) * 2015-10-06 2017-04-06 Ca, Inc. Generating Tests for Testing Software Applications
CN107861864A (en) * 2017-08-25 2018-03-30 平安普惠企业管理有限公司 Automated testing method, system and computer-readable recording medium
CN107832206A (en) * 2017-10-16 2018-03-23 深圳市牛鼎丰科技有限公司 Method of testing, device, computer-readable recording medium and computer equipment
CN109144856A (en) * 2018-07-27 2019-01-04 北京皮尔布莱尼软件有限公司 A kind of UI automated testing method calculates equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020232900A1 (en) * 2019-05-20 2020-11-26 平安科技(深圳)有限公司 System test method and apparatus, computer device and storage medium
CN112685286A (en) * 2019-10-18 2021-04-20 拉扎斯网络科技(上海)有限公司 Test object generation method and device, electronic equipment and computer storage medium

Also Published As

Publication number Publication date
WO2020232900A1 (en) 2020-11-26
CN110321278B (en) 2022-09-13

Similar Documents

Publication Publication Date Title
CN108628741B (en) Webpage testing method and device, electronic equipment and medium
CN104133828B (en) Drag and drop clipbook for html document
US11330392B2 (en) Systems and methods for providing mobile proving ground
CN103810089A (en) Application of automatic test based on posture
CN103729285A (en) Method, device and system for testing web page
US20200050540A1 (en) Interactive automation test
CN105260420A (en) Method and device for providing target page in mobile application
CN107526492A (en) The interface display method and mobile terminal of a kind of application program
CN107948131A (en) User is set to sign in the method, system and equipment of browser
US10417114B2 (en) Testing tool for testing applications while executing without human interaction
CN111552633A (en) Interface abnormal call testing method and device, computer equipment and storage medium
US20170168913A9 (en) Method and system for testing of applications in asset management software
CN107609910A (en) Data processing method based on trustship, registration recommendation method and relevant device
CN110532159A (en) Data decryptor method, apparatus, equipment and computer readable storage medium
CN107040535A (en) Mobile solution channel logs in monitoring method, device, system and storage medium
WO2015043352A1 (en) Method and apparatus for selecting test nodes on webpages
CN110321278A (en) System detection method and device, computer equipment, storage medium
US20230035104A1 (en) Verification method, apparatus and device, and storage medium
CN109885793A (en) Page data acquisition method and device, electronic equipment, storage medium
CN107784484A (en) Model and flow hooking method and device
CN112486797A (en) Interface test method and device
CN111475388A (en) Data push test method and device, computer equipment and storage medium
CN103019931A (en) Method and device for detecting and treating Asn.1 interfaces
CN111556993A (en) Electronic product testing system and method
CN106959867A (en) Method and system for monitoring application program unloading

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant