CN110297771A - Distributed test method and device for the warehouse receipt page - Google Patents

Distributed test method and device for the warehouse receipt page Download PDF

Info

Publication number
CN110297771A
CN110297771A CN201910530896.7A CN201910530896A CN110297771A CN 110297771 A CN110297771 A CN 110297771A CN 201910530896 A CN201910530896 A CN 201910530896A CN 110297771 A CN110297771 A CN 110297771A
Authority
CN
China
Prior art keywords
warehouse receipt
node
docker
page
selenium
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
CN201910530896.7A
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.)
CITIC Phoenix Harbor Supply Chain Management Co Ltd
Original Assignee
CITIC Phoenix Harbor Supply Chain 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 CITIC Phoenix Harbor Supply Chain Management Co Ltd filed Critical CITIC Phoenix Harbor Supply Chain Management Co Ltd
Priority to CN201910530896.7A priority Critical patent/CN110297771A/en
Publication of CN110297771A publication Critical patent/CN110297771A/en
Pending legal-status Critical Current

Links

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)

Abstract

The embodiment of the present invention provides a kind of distributed test method and device for the warehouse receipt page, the present invention is recorded using UI Recorder in the automatic test script for locally carrying out the warehouse receipt page, to not only can solve the difficult problem of warehouse receipt page elements crawl, entire warehouse receipt process can also be cut, it is made to focus more on the automatic Verification of some function point.Further, the embodiment of the present invention installs docker and based on docker building selenium grid tool in server to dispose distributed test environment, so that warehouse receipt page test process can carry out in such a way that environment is tested in distributed deployment, so that processing speed is very fast, efficiency is higher, is not take up local resource, and it is based on existing warehouse receipt transaction program, transaction reconstruct is not needed, transformation is simple, only needs deployment maintenance one order.

Description

Distributed test method and device for the warehouse receipt page
Technical field
The present invention relates to field of computer technology more particularly to a kind of distributed test methods and dress for the warehouse receipt page It sets.
Background technique
UI Recorder is a zero cost UI automation recording tool, support major browsers such as (chrome, IE, Firefox, Safari) the machine record script after perform script need to start selenium-standalone server, It needs locally-installed and selenium-standalone server to run, causes local load excessive, cannot achieve more browsings Device is synchronous to execute test script.
Currently, being developed for storage cloud platform using third party YIGO framework, has selenium automation framework and need Page elements data are grabbed, page elements are rewritten in YIGO framework, this results in obtaining in the above manner.For Pipe library management project belongs to supply chain production, and workflow examination and approval is longer, causes single test case code quantity larger.For example, figure The element of 2 pages only logged in shown, and element much tens that the warehouse receipt page to be executed and execution It is a, a large amount of element location code can be derived.
F2etest is that the more browser compatibilities towards posies such as front end, test, products test whole solution party Case.Official recommend with UI Rercoder use, wherein component be (Guacamole: the HTML5 of open source long-range solution party Case, Windows Server maximize multiplexing machine resources, hostsShare browser-cross, and the hosts of cross-server is shared). The advantage of F2etest is: a, 10 times of hardware above utilization rates: 1 execution machine of traditional WebDriver be only capable of run 1 Job, one Machine can run N number of Job with high concurrent, this N is configured depending on machine, and theoretically hardware utilization is equivalent to the 10 of conventional node Times or more.B, independent hosts binding is supported: when each application node, it is possible to specify different hosts bindings guarantees same The Job of different nodes will not be interfered with each other on machine.C, all nodes support remote onlines debugging: being existed using Guacamole Line remote functionality can conveniently be in progress to automation when automating when something goes wrong and carry out immediately monitoring and debugging.
However, F2etest equally exists obvious disadvantage: on the one hand, it needs at least 3 separate servers, and Installation configuration step is very more, and the tester on no O&M basis is difficult to build success.On the other hand, its daily maintenance is numerous It is trivial and unstable.
Summary of the invention
For the problems of the prior art, the embodiment of the present invention provides a kind of distributed test method for the warehouse receipt page And device.
In a first aspect, the embodiment of the invention provides a kind of distributed test methods for the warehouse receipt page, comprising:
It is recorded using UI Recorder in the automatic test script for locally carrying out the warehouse receipt page;
Docker is installed in server, and based on docker building selenium grid tool to dispose distributed testing Environment;
The test script is sent to the selenium grid tool, so that in the selenium grid tool Hub node and node node execute the test script;
The script execution result that the selenium grid tool described in local reception is sent.
Further, described to be recorded using UI Recorder in the automatic test script for locally carrying out the warehouse receipt page, tool Body includes:
In locally-installed UI Recorder;
Entire warehouse receipt process to be tested is cut into multiple warehouse receipt pages;
The uniform resource position mark URL of each warehouse receipt page is inputted respectively in browser, utilizes UIRecorder recording pair Answer the test script of the warehouse receipt page.
Further, described that docker is installed in server, and based on docker building selenium grid tool with portion Distributed test environment is affixed one's name to, is specifically included:
Docker, and the test environmental chamber mirror based on docker configuration selenium grid tool are installed in server Picture;
It executes docker-compose up-d line command and completes deployment, and start in the selenium grid tool Hub node and node node.
Further, described that the test script is sent to the selenium grid tool, so that described Hub node and node node in selenium grid tool execute the test script, specifically include:
The test script is sent to the hub node of the selenium grid tool, so that the hub node will The test script is transmitted to the node node under different browsers environment and executes the test script.
Second aspect, the embodiment of the invention provides a kind of distribution testing devices for the warehouse receipt page, comprising:
Module is recorded, for recording using UI Recorder in the automatic test script for locally carrying out the warehouse receipt page;
Deployment module, for installing docker in server, and based on docker building selenium grid tool with portion Affix one's name to distributed test environment;
Execution module, for the test script to be sent to the selenium grid tool, so that described Hub node and node node in selenium grid tool execute the test script;
Receiving module, the script execution result sent for the selenium grid tool described in local reception.
Further, the recording module, is specifically used for:
In locally-installed UI Recorder;
Entire warehouse receipt process to be tested is cut into multiple warehouse receipt pages;
The uniform resource position mark URL of each warehouse receipt page is inputted respectively in browser, utilizes UIRecorder recording pair Answer the test script of the warehouse receipt page.
Further, the deployment module, is specifically used for:
Docker, and the test environmental chamber mirror based on docker configuration selenium grid tool are installed in server Picture;
It executes docker-compose up-d line command and completes deployment, and start in the selenium grid tool Hub node and node node.
Further, the execution module, is specifically used for:
The test script is sent to the hub node of the selenium grid tool, so that the hub node will The test script is transmitted to the node node under different browsers environment and executes the test script.
The third aspect the embodiment of the invention also provides a kind of electronic equipment, including memory, processor and is stored in On reservoir and the computer program that can run on a processor, the processor are realized when executing described program such as first aspect institute The step of stating the distributed test method for the warehouse receipt page.
Fourth aspect, the embodiment of the invention also provides a kind of non-transient computer readable storage mediums, are stored thereon with Computer program is realized when the computer program is executed by processor and is surveyed as described in relation to the first aspect for the distributed of the warehouse receipt page The step of method for testing.
By prior art scheme it is found that the distributed test method and dress provided in an embodiment of the present invention for the warehouse receipt page It sets, is recorded using UI Recorder in the automatic test script for locally carrying out the warehouse receipt page, to not only can solve warehouse receipt The difficult problem of page elements crawl, can also cut entire warehouse receipt process, it is made to focus more on the automation of some function point Verifying.Further, the embodiment of the present invention installs docker in server and constructs selenium grid tool based on docker To dispose distributed test environment, so that warehouse receipt page test process can be in such a way that environment be tested in distributed deployment It carries out, so that processing speed is very fast, efficiency is higher, is not take up local resource, and be based on existing warehouse receipt transaction program, no Need to trade reconstruct, and transformation is simple, only needs deployment maintenance one order.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow chart for the distributed test method for the warehouse receipt page that one embodiment of the invention provides;
Fig. 2 is the element location code schematic diagram of login page in the prior art;
Fig. 3 is the Selenium Grid block schematic illustration that one embodiment of the invention provides;
Fig. 4 is the virtualization technology configuration diagram for the Docker container that one embodiment of the invention provides;
Fig. 5 is the realization principle signal for the distributed test method for the warehouse receipt page that one embodiment of the invention provides Figure;
Fig. 6 was disposed for what one embodiment of the invention provided by executing the completion of docker-compose up-d line command The schematic diagram of journey;
Fig. 7 is that the Selenium Grid Console that one embodiment of the invention provides tests environment construction completion schematic diagram;
Fig. 8 is the schematic diagram for the configuration config.json file that one embodiment of the invention provides;
Fig. 9 is the script execution result schematic diagram that one embodiment of the invention provides;
Figure 10 is the schematic diagram for being viewed locally implementing result that one embodiment of the invention provides;
Figure 11 is the structural schematic diagram for the distribution testing device for the warehouse receipt page that one embodiment of the invention provides;
Figure 12 is the structural schematic diagram for the electronic equipment that one embodiment of the invention provides.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Before the embodiment of the present invention is introduced, first simply it is situated between to noun involved in the embodiment of the present invention It continues.Selenium is the automation tools based on browser, it provides a kind of cross-platform, browser-cross end to end Web automation solutions.Selenium mainly includes three parts: Selenium IDE, Selenium WebDriver and An extension of Selenium Grid:Selenium IDE:Firefox, it can carry out recording and playback, and can be recording Operation export to test case in the form of multilingual (such as java, python etc.).Selenium WebDriver: it mentions For the API that Web Institute of Automation needs, it is mainly used as browser control, page elements selection and debugging.Different browsers needs not Same WebDriver.Selenium Grid: it provides and runs selenium test on the different browsers of different machines Ability.UI Recorder is a zero cost UI automation recording tool, is similar to Selenium IDE, UI Recorder is wanted It is more powerful than Selenium IDE.Docker is the application container engine of an open source, based on Go language and is deferred to Apache2.0 agreement open source.Docker can allow developer to be packaged their application and rely on packet to a lightweight, removable In the container of plant, then it is published on the Linux machine of any prevalence, also may be implemented to virtualize.Container is complete using husky Punch-out equipment system does not have any interface between each other, it is often more important that container performance expense is extremely low.The concrete concept on introduced Afterwards, explanation will be explained in detail by specific embodiment scheme provided by the invention below.
Fig. 1 shows the flow chart of the distributed test method provided in an embodiment of the present invention for the warehouse receipt page.Such as Fig. 1 Shown, the distributed test method provided in an embodiment of the present invention for the warehouse receipt page includes the following steps:
Step 101: being recorded using UI Recorder in the automatic test script for locally carrying out the warehouse receipt page.
In this step, since warehouse receipt process is complicated, therefore cause the warehouse receipt page involved in warehouse receipt management system more.This Outside, for each warehouse receipt page, the page elements being related to are also more, and for this problem, the present embodiment utilizes UI Recorder is recorded in the automatic test script for locally carrying out the warehouse receipt page, since UI Recorder can be directed to according to URL The script of the single page is recorded, and it has inherent advantage in terms of page elements reading, therefore the present embodiment utilizes UI Recorder is recorded in the automatic test script for locally carrying out the warehouse receipt page, and it is tired not only to can solve the crawl of warehouse receipt page elements Difficult problem, can also cut entire warehouse receipt process, it is made to focus more on the automatic Verification of some function point.
In this step, it is needed using UI Recorder when the automatic test script for locally carrying out the warehouse receipt page is recorded Entire warehouse receipt process to be tested is then cut into multiple warehouse receipt pages again, finally first in locally-installed UI Recorder The uniform resource position mark URL of each warehouse receipt page is inputted respectively in browser, records corresponding warehouse receipt page using UI Recorder The test script in face.
Step 102: docker being installed in server, and based on docker building selenium grid tool to dispose point Cloth tests environment.
In this step, it when based on docker building selenium grid tool to dispose distributed test environment, needs The test environmental chamber mirror image that selenium grid tool is first configured based on docker, then executes docker- again Compose up-d line command completes deployment, while starting the hub node in the selenium grid tool and node section Point.
Step 103: the test script being sent to the selenium grid tool, so that the selenium Hub node and node node in grid tool execute the test script.
In this step, specifically, the test script is sent to the hub node of the selenium grid tool, So that the test script is transmitted to the node node under different browsers environment by the hub node executes the test Script.
Step 104: the script execution result that the selenium grid tool described in local reception is sent.
It in this step, can be in the script execution that selenium grid tool described in local reception is sent as a result, at any time It is checked.Further, it is also possible to rely on mochawesome-uirecorder plug-in unit that can configure the wrong script of execution in local Generate screenshot.
In the present embodiment, it should be noted that the executing subject of above-mentioned steps 101-104 is to show there is the warehouse receipt page Client.
The distributed test method provided in this embodiment for the warehouse receipt page is explained below with reference to Fig. 3-Figure 10 Explanation.Fig. 3 is the block schematic illustration of Selenium Grid, and a Grid frame includes that a hub node and several node are saved Point.Hub node is to manage the information such as registration and the state of all node nodes, is a center control nodes.That is hub The test case that node one receives user executes request, this request will be given to this kind of working node of node, node section Point will execute the test case issued by hub in corresponding environment and browser.It can be seen that if node is more, it should Testing environment automated execution efficiency will be higher.Fig. 4 is the virtualization skill for the Docker container that one embodiment of the invention provides Art configuration diagram.Since Docker can provide lightweight, the distributed test environment of low investment, so Selenium Grid is used in combination with Docker's, could really make the operation of test case in distributed environment more freely.Docker wound The container built can regard node working node one by one as in Selenium Grid, rather than traditional virtual machine is brought When node working node, allows node administration control to be got up in this way and be easy to regard to what is become.And it is automatic with Docker to make browser Changing test, there are one advantages, are exactly the browser that it may be performed simultaneously multiple and different versions.Hypothesis will use different versions This chrome browser, but the browser of a version can be only driven in the same environment, but can with Docker To avoid such problems.The hub node in Selenium Grid frame and node node are distributed across different environment simultaneously In browser, a large amount of container cluster just needs corresponding management tool to remove maintenance and management.Docker supports distributed collection Group's application powerful can solve these problems.The virtualization technology configuration diagram of Docker container is as shown in Figure 4. Since warehouse receipt management system is all based on greatly the implementation of B/S mode development, this just needs to carry out product a large amount of compatibility and surveys Examination, different applicable scenes is simulated for different user groups, this can bring very big workload.Selenium is that support is more One automated test tool of the kind multiple programming languages of browser.And Selenium Grid is that one kind can allow user not The frame of web test case is run on same environment and different browsers parallel.It in other words, can using SeleniumGrid To execute test, such as Windows under distributed test environment, Linux, Mac OS, Andoid/iOS etc. in this way can be with Greatly reduce duplicate workload, improve the working efficiency of test, reduces repetitive operation, focus more foucs is existed In testing engineering.
Fig. 5 is the realization principle schematic diagram of the distributed test method provided in this embodiment for the warehouse receipt page.This reality Apply example selection open source software UI Recorder and record software product develop based on web, perform script rely on based on docker with The server of selenium gird building completes implementation procedure, finally reports in local output.Itself the specific implementation process is as follows institute Show:
S1:docker-compose constructs browser testing environmental chamber automatically, in docker-compose.yml file Hold as follows:
S2: only need to execute one line command of docker-compose up-d can be completed deployment, as shown in fig. 6, checking service Whether docker ps-a is started.
S3: it checks whether Selenium Grid Console test environment has constructed and finishes.As shown in Figure 7, it can be seen that There are 3 job to be in ready state.
S4: completed UI Recorder script configures config.json file, as shown in Figure 8.
S5: executing UI Recorder script and play back, the machine order npm test, and implementation effect is as shown in Figure 9.
S6: checking implementing result, local to generate, and can see implementing result at any time, as shown in Figure 10.Rely on mochawesome- Uirecorder plug-in unit can configure the wrong script of execution and be locally generated screenshot, and effect is extremely powerful.
By being described above it is found that the present embodiment divides warehouse receipt business characteristic and UI Recorder, Selenium Grid Cloth test frame, docker and perform script deployment way combine, and compared with prior art, have the advantage that and do not account for It with local resource, is carried out in such a way that environment is tested in distributed deployment, processing speed is very fast, and efficiency is higher, based on existing Warehouse receipt transaction program does not need transaction reconstruct, and transformation is simple, deployment maintenance one order.And the scheme of the prior art: it needs Will at least 3 separate servers, and install configuration step it is very more, the tester on no O&M basis is difficult to build success, day It often safeguards cumbersome and unstable, occupies a large amount of local resources, it is slow to influence processing speed, inefficiency.
For the operational efficiency for verifying this distributed test method for the warehouse receipt page of the present embodiment, carried out locally Automatic test script 100 of certain scale are tested, and identical script is taken, and are just locally executed respectively and docker Seleniumgird deployment cloud executes two ways and is tested.Through data sampling, comparing result is as shown in table 1 below:
Table 1
Locally execute mode Distributed execution pattern
Total run time 5327.641S 1127.356S
10 automatized scripts 230.646S 101.535S
50 automatized scripts 2789.258S 430.675S
100 automatized scripts 5327.641S 1127.356S
From operate above interpretation of result data can be seen that run with the machine when, time loss is in browser start-up loading During perform script, failure script occurs no response because frequently restarting browser, and test result is caused not conform to the actual conditions.It is right In locally executing mode, it is unsuitable for a large amount of script executions.And distributed testing implementation effect is obvious, perform script entirely beyond the clouds, And selected at random according to the busy program of each job, 3 job are currently only opened, if loading can also save on more job times. Data result comparison is obviously higher using docker deployment selenium gird mode execution efficiency and accuracy rate.In conclusion The sharpest edges of distributed deployment mode are to simplify calling process, test script consumption local resource are avoided, to be promoted Efficiency.
By prior art scheme it is found that the distributed test method and dress provided in an embodiment of the present invention for the warehouse receipt page It sets, is recorded using UI Recorder in the automatic test script for locally carrying out the warehouse receipt page, to not only can solve warehouse receipt The difficult problem of page elements crawl, can also cut entire warehouse receipt process, it is made to focus more on the automation of some function point Verifying.Further, the embodiment of the present invention installs docker in server and constructs selenium grid tool based on docker To dispose distributed test environment, so that warehouse receipt page test process can be in such a way that environment be tested in distributed deployment It carries out, so that processing speed is very fast, efficiency is higher, is not take up local resource, and be based on existing warehouse receipt transaction program, no Need to trade reconstruct, and transformation is simple, only needs deployment maintenance one order.
Figure 11 shows the structural schematic diagram of the distribution testing device provided in an embodiment of the present invention for the warehouse receipt page. As shown in figure 11, the distribution testing device provided in an embodiment of the present invention for the warehouse receipt page includes: to record module 21, deployment Module 22, execution module 23 and receiving module 24, in which:
Module 21 is recorded, for recording using UI Recorder in the automatic test script for locally carrying out the warehouse receipt page;
Deployment module 22, for server install docker, and based on docker building selenium grid tool with Dispose distributed test environment;
Execution module 23, for the test script to be sent to the selenium grid tool, so that described Hub node and node node in selenium grid tool execute the test script;
Receiving module 24, the script execution result sent for the selenium grid tool described in local reception.
Further, content based on the above embodiment, in the present embodiment, the recording module 21 are specifically used for:
In locally-installed UI Recorder;
Entire warehouse receipt process to be tested is cut into multiple warehouse receipt pages;
The uniform resource position mark URL of each warehouse receipt page is inputted respectively in browser, utilizes UI Recorder recording pair Answer the test script of the warehouse receipt page.
Further, content based on the above embodiment, in the present embodiment, the deployment module 22 are specifically used for:
Docker, and the test environmental chamber mirror based on docker configuration selenium grid tool are installed in server Picture;
It executes docker-compose up-d line command and completes deployment, and start in the selenium grid tool Hub node and node node.
Further, content based on the above embodiment, in the present embodiment, the execution module 23 are specifically used for:
The test script is sent to the hub node of the selenium grid tool, so that the hub node will The test script is transmitted to the node node under different browsers environment and executes the test script.
Due to the distribution testing device provided in an embodiment of the present invention for the warehouse receipt page, it can be used for executing above-mentioned reality The distributed test method that the warehouse receipt page is used for described in example is applied, working principle is similar with beneficial effect, therefore herein no longer in detail It states, particular content can be found in the introduction of above-described embodiment.
Based on identical inventive concept, further embodiment of this invention provides a kind of electronic equipment, referring to Figure 12, the electricity Sub- equipment specifically includes following content: processor 301, memory 302, communication interface 303 and communication bus 304;
Wherein, the processor 301, memory 302, communication interface 303 are completed each other by the communication bus 304 Communication;
The processor 301 is used to call the computer program in the memory 302, and the processor executes the meter The Overall Steps of the above-mentioned distributed test method for the warehouse receipt page are realized when calculation machine program, for example, the processor executes Following processes are realized when the computer program: using UI Recorder in the automatic test foot for locally carrying out the warehouse receipt page This recording;Docker is installed in server, and based on docker building selenium grid tool to dispose distributed testing ring Border;The test script is sent to the selenium grid tool, so that the hub in the selenium grid tool Node and node node execute the test script;The script execution that the selenium grid tool described in local reception is sent As a result.
Based on identical inventive concept, further embodiment of this invention provides a kind of non-transient computer readable storage medium Matter is stored with computer program on the computer readable storage medium, which realizes above-mentioned when being executed by processor The Overall Steps of distributed test method for the warehouse receipt page, for example, reality when the processor executes the computer program It now states process: being recorded using UI Recorder in the automatic test script for locally carrying out the warehouse receipt page;It is installed in server Docker, and based on docker building selenium grid tool to dispose distributed test environment;The test script is sent out The selenium grid tool is given, so that the hub node and node node in the selenium grid tool execute The test script;The script execution result that the selenium grid tool described in local reception is sent.
In addition, the logical order in above-mentioned memory can be realized and as independence by way of SFU software functional unit Product when selling or using, can store in a computer readable storage medium.Based on this understanding, of the invention Technical solution substantially the part of the part that contributes to existing technology or the technical solution can be with software in other words The form of product embodies, which is stored in a storage medium, including some instructions use so that One computer equipment (can be personal computer, server or the network equipment etc.) executes each embodiment institute of the present invention State all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read- Only Memory), random access memory (RAM, RandomAccess Memory), magnetic or disk etc. is various to deposit Store up the medium of program code.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member It is physically separated with being or may not be, component shown as a unit may or may not be physics list Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs In some or all of the modules realize the purpose of the embodiment of the present invention.Those of ordinary skill in the art are not paying wound In the case where the labour for the property made, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation The distributed test method of the warehouse receipt page is used for described in certain parts of example or embodiment.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features; And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (10)

1. a kind of distributed test method for the warehouse receipt page characterized by comprising
It is recorded using UI Recorder in the automatic test script for locally carrying out the warehouse receipt page;
Docker is installed in server, and based on docker building selenium grid tool to dispose distributed test environment;
The test script is sent to the selenium grid tool, so that in the selenium grid tool Hub node and node node execute the test script;
The script execution result that the selenium grid tool described in local reception is sent.
2. the distributed test method according to claim 1 for the warehouse receipt page, which is characterized in that described to utilize UI Recorder is recorded in the automatic test script for locally carrying out the warehouse receipt page, is specifically included:
In locally-installed UI Recorder;
Entire warehouse receipt process to be tested is cut into multiple warehouse receipt pages;
The uniform resource position mark URL of each warehouse receipt page is inputted respectively in browser, records corresponding storehouse using UI Recorder The test script of single-page.
3. the distributed test method according to claim 1 for the warehouse receipt page, which is characterized in that described in server Docker is installed, and is specifically included based on docker building selenium grid tool with disposing distributed test environment:
Docker, and the test environmental chamber mirror image based on docker configuration selenium grid tool are installed in server;
It executes docker-compose up-d line command and completes deployment, and start the hub in the selenium grid tool Node and node node.
4. the distributed test method according to claim 1 for the warehouse receipt page, which is characterized in that described by the survey Training is originally sent to the selenium grid tool, so that hub node and node in the selenium grid tool Node executes the test script, specifically includes:
The test script is sent to the hub node of the selenium grid tool, so that the hub node will be described Test script is transmitted to the node node under different browsers environment and executes the test script.
5. a kind of distribution testing device for the warehouse receipt page characterized by comprising
Module is recorded, for recording using UI Recorder in the automatic test script for locally carrying out the warehouse receipt page;
Deployment module, for installing docker in server, and based on docker building selenium grid tool to dispose point Cloth tests environment;
Execution module, for the test script to be sent to the selenium grid tool, so that the selenium Hub node and node node in grid tool execute the test script;
Receiving module, the script execution result sent for the selenium grid tool described in local reception.
6. the distribution testing device according to claim 5 for the warehouse receipt page, which is characterized in that the recording mould Block is specifically used for:
In locally-installed UI Recorder;
Entire warehouse receipt process to be tested is cut into multiple warehouse receipt pages;
The uniform resource position mark URL of each warehouse receipt page is inputted respectively in browser, records corresponding storehouse using UI Recorder The test script of single-page.
7. the distribution testing device according to claim 5 for the warehouse receipt page, which is characterized in that the deployment mould Block is specifically used for:
Docker, and the test environmental chamber mirror image based on docker configuration selenium grid tool are installed in server;
It executes docker-compose up-d line command and completes deployment, and start the hub in the selenium grid tool Node and node node.
8. the distribution testing device according to claim 5 for the warehouse receipt page, which is characterized in that the execution mould Block is specifically used for:
The test script is sent to the hub node of the selenium grid tool, so that the hub node will be described Test script is transmitted to the node node under different browsers environment and executes the test script.
9. a kind of electronic equipment including memory, processor and stores the calculating that can be run on a memory and on a processor Machine program, which is characterized in that the processor is realized when executing described program is used for storehouse as described in any one of Claims 1-4 The step of distributed test method of single-page.
10. a kind of non-transient computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer It is realized when program is executed by processor as described in any one of Claims 1-4 for the distributed test method of the warehouse receipt page Step.
CN201910530896.7A 2019-06-19 2019-06-19 Distributed test method and device for the warehouse receipt page Pending CN110297771A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910530896.7A CN110297771A (en) 2019-06-19 2019-06-19 Distributed test method and device for the warehouse receipt page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910530896.7A CN110297771A (en) 2019-06-19 2019-06-19 Distributed test method and device for the warehouse receipt page

Publications (1)

Publication Number Publication Date
CN110297771A true CN110297771A (en) 2019-10-01

Family

ID=68028228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910530896.7A Pending CN110297771A (en) 2019-06-19 2019-06-19 Distributed test method and device for the warehouse receipt page

Country Status (1)

Country Link
CN (1) CN110297771A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111104336A (en) * 2019-12-30 2020-05-05 武汉烽火信息集成技术有限公司 Online service interface testing method and device based on container and VNC
CN112506772A (en) * 2020-12-03 2021-03-16 软通动力信息技术(集团)股份有限公司 Web automatic testing method and device, electronic equipment and storage medium
CN113190435A (en) * 2021-04-14 2021-07-30 百果园技术(新加坡)有限公司 Information acquisition method and device, electronic equipment and storage medium
CN113434426A (en) * 2021-07-06 2021-09-24 中国银行股份有限公司 Multi-browser testing method and device
CN114676034A (en) * 2020-12-24 2022-06-28 腾讯科技(深圳)有限公司 Test method, test device and computer equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090217100A1 (en) * 2008-02-27 2009-08-27 Accenture Global Services Gmbh Test script transformation analyzer with economic cost engine
CN102141962A (en) * 2011-04-07 2011-08-03 北京航空航天大学 Safety distributed test framework system and test method thereof
CN103581247A (en) * 2012-07-30 2014-02-12 杭州洱海科技有限公司 Method for testing distributed type Web based on cloud computing environment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090217100A1 (en) * 2008-02-27 2009-08-27 Accenture Global Services Gmbh Test script transformation analyzer with economic cost engine
CN102141962A (en) * 2011-04-07 2011-08-03 北京航空航天大学 Safety distributed test framework system and test method thereof
CN103581247A (en) * 2012-07-30 2014-02-12 杭州洱海科技有限公司 Method for testing distributed type Web based on cloud computing environment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111104336A (en) * 2019-12-30 2020-05-05 武汉烽火信息集成技术有限公司 Online service interface testing method and device based on container and VNC
CN112506772A (en) * 2020-12-03 2021-03-16 软通动力信息技术(集团)股份有限公司 Web automatic testing method and device, electronic equipment and storage medium
CN112506772B (en) * 2020-12-03 2023-09-26 软通动力信息技术(集团)股份有限公司 Web automatic test method, device, electronic equipment and storage medium
CN114676034A (en) * 2020-12-24 2022-06-28 腾讯科技(深圳)有限公司 Test method, test device and computer equipment
CN113190435A (en) * 2021-04-14 2021-07-30 百果园技术(新加坡)有限公司 Information acquisition method and device, electronic equipment and storage medium
CN113434426A (en) * 2021-07-06 2021-09-24 中国银行股份有限公司 Multi-browser testing method and device

Similar Documents

Publication Publication Date Title
US11474925B2 (en) Overlapping-in-time execution of load tests on applications in a centralized system
CN110297771A (en) Distributed test method and device for the warehouse receipt page
US10642599B1 (en) Preemptive deployment in software deployment pipelines
US10496527B2 (en) System and method for rapid and repeatable provisioning and regression testing plans
US9032373B1 (en) End to end testing automation and parallel test execution
US20170161059A1 (en) Management of multiple application programming interface versions for development environments
US20190065351A1 (en) System and method for providing a test manager for use with a mainframe rehosting platform
US10387295B1 (en) Application testing using multiple context-aware threads
US10331418B2 (en) State machine representation of a development environment deployment process
US11467826B1 (en) Automated extraction of isolated nodes during source code refactoring
US10216617B2 (en) Automatically complete a specific software task using hidden tags
CN109901985B (en) Distributed test apparatus and method, storage medium, and electronic device
US11500628B1 (en) Isolated code detection from application code analysis
US20220269582A1 (en) Method and system for synchronous development and testing of live, multi-tenant microservices based saas systems
US10120707B2 (en) Deployment of development environments
US10318343B2 (en) Migration methods and apparatuses for migrating virtual machine including locally stored and shared data
US8904346B1 (en) Method and system for automated load testing of web applications
CN105468488B (en) A kind of method, apparatus and system without looping test CPU based on IB network
US20220405163A1 (en) Minimizing impact of first failure data capture on computing system using recovery process boost
US20220030079A1 (en) Methods and systems for recording user operations on a cloud management platform
US10200271B2 (en) Building and testing composite virtual services using debug automation
US9934019B1 (en) Application function conversion to a service
CN110990209A (en) Storage stability test method, test device, test equipment and storage medium
US11720348B2 (en) Computing node allocation based on build process specifications in continuous integration environments
US10248554B2 (en) Embedding profile tests into profile driven feedback generated binaries

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191001

RJ01 Rejection of invention patent application after publication