CN109828899A - Acquisition method, device and the computer equipment of test data - Google Patents
Acquisition method, device and the computer equipment of test data Download PDFInfo
- Publication number
- CN109828899A CN109828899A CN201811527471.2A CN201811527471A CN109828899A CN 109828899 A CN109828899 A CN 109828899A CN 201811527471 A CN201811527471 A CN 201811527471A CN 109828899 A CN109828899 A CN 109828899A
- Authority
- CN
- China
- Prior art keywords
- test
- page
- data
- environment
- test data
- 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
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Present applicant proposes a kind of acquisition method of test data, device and computer equipments, wherein the acquisition method of above-mentioned test data includes: the automatic test cases obtained for the setting of front end multi-page;The automatic test cases are executed by automated test tool;After the automatic test cases are finished, test data of the front end multi-page in the test environment is obtained by the crawler integrated in the automated test tool.The application can save the acquisition time of test data under the multi-page test scene of front end, and realize simply, improve the testing efficiency of front end multi-page.
Description
[technical field]
This application involves technical field of internet application more particularly to a kind of acquisition methods of test data, device and meter
Calculate machine equipment.
[background technique]
In the related technology, for front end page, the mode of manual testing is mostly used, is encountering the more scenes surveys of multi-page in this way
When examination, the acquisition of test data, which can only rely on, manually goes to execute, complicated for operation error-prone, and time cost is too high.
Although also providing the scheme for carrying out automatic test to front end page in the related technology, automatic test can only
Limited data are collected, in addition front end page variation is fast, and the time cost that iteration debugging is spent is also very high.
[summary of the invention]
The embodiment of the present application provides the acquisition method, device and computer equipment of a kind of test data, is saved with realizing
The acquisition time of test data improves the testing efficiency of front end multi-page.
In a first aspect, the embodiment of the present application provides a kind of acquisition method of test data, comprising: obtain more for front end
The automatic test cases of page setup;The automatic test cases are executed by automated test tool;Described automatic
After change test case is finished, the front end multi-page is obtained by the crawler integrated in the automated test tool and is existed
Test data in the test environment.
In one of possible implementation, the acquisition method of above-mentioned test data further include: surveyed in the automation
After example on probation is finished, the front end multi-page is obtained in the data of production environment by the crawler;The production ring
Border is identical environment with the test environment;The test data and the front end multi-page are carried out in the data of production environment
Comparison, determines the accuracy of the test data.
In one of possible implementation, after the accuracy of the determination test data, further includes: work as institute
When stating the accuracy of test data higher than predetermined threshold, the test of the front end multi-page is directed to according to the Test data generation
Report.
In one of possible implementation, the crawler by integrating in the automated test tool obtains institute
Front end multi-page is stated before the test data in the test environment, further includes: be integrated into the code of crawler described automatic
Change in testing tool.
In one of possible implementation, the automatic test in test environment for the setting of front end multi-page is obtained
Before use-case, the method also includes: obtain the first parameter configuration of the production environment;It is set according to first parameter configuration
The second parameter configuration for setting the test environment, so that the test environment becomes identical environment with the production environment.
Second aspect, the embodiment of the present application provide a kind of acquisition device of test data, comprising: module are obtained, for obtaining
Take the automatic test cases for the setting of front end multi-page;Execution module, described in being executed by automated test tool
Automatic test cases;Data acquisition module, for after the automatic test cases are finished, by described automatic
Change the crawler integrated in testing tool and obtains test data of the front end multi-page in the test environment.
In one of possible implementation, the acquisition device of above-mentioned test data further include: contrast module;The number
It according to module is obtained, is also used to after the automatic test cases are finished, it is more to obtain the front end by the crawler
Data of the page in production environment;The production environment is identical environment with the test environment;The contrast module, being used for will
The test data is compared with the front end multi-page in the data of production environment, determines the accurate of the test data
Property.
In one of possible implementation, the acquisition device of above-mentioned test data further include: generation module is used for institute
After stating the accuracy that contrast module determines the test data, when the accuracy of the test data is higher than predetermined threshold,
The test report of the front end multi-page is directed to according to the Test data generation.
In one of possible implementation, the acquisition device of above-mentioned test data further include: integration module is used for
The data acquisition module obtains the front end multi-page in the survey by the crawler integrated in the automated test tool
Before test data in test ring border, the code of crawler is integrated into the automated test tool.
In one of possible implementation, the acquisition module is also used to obtain the first ginseng of the production environment
Number configuration;The acquisition device of above-mentioned test data further include: setup module, the first ginseng for being obtained according to the acquisition module
Second parameter configuration of the number configuration setting test environment, so that the test environment becomes identical ring with the production environment
Border.
The third aspect, the embodiment of the present application provide a kind of computer equipment, including memory, processor and are stored in described
It is real when the processor executes the computer program on memory and the computer program that can run on the processor
Now method as described above.
Fourth aspect, the embodiment of the present application provide a kind of non-transitorycomputer readable storage medium, are stored thereon with meter
Calculation machine program, the computer program realize method as described above when being executed by processor.
In above technical scheme, after obtaining the automatic test cases for the setting of front end multi-page, pass through automation
Testing tool executes above-mentioned automatic test cases, after above-mentioned automatic test cases are finished, by above-mentioned automatic
Change the crawler integrated in testing tool and obtain test data of the above-mentioned front end multi-page in the test environment, so as to save
The acquisition time of test data about under front end multi-page test scene, and realize simply, improve the test of front end multi-page
Efficiency.
[Detailed description of the invention]
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached
Figure is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for this field
For those of ordinary skill, without creative efforts, it can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is the flow chart of acquisition method one embodiment of the application test data;
Fig. 2 is the flow chart of another embodiment of the acquisition method of the application test data;
Fig. 3 is the flow chart of the acquisition method further embodiment of the application test data;
Fig. 4 is the structural schematic diagram of acquisition device one embodiment of the application test data;
Fig. 5 is the structural schematic diagram of another embodiment of the acquisition device of the application test data;
Fig. 6 is the structural schematic diagram of the application computer equipment one embodiment.
[specific embodiment]
In order to better understand the technical solution of the application, the embodiment of the present application is retouched in detail with reference to the accompanying drawing
It states.
It will be appreciated that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.Base
Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts it is all its
Its embodiment, shall fall in the protection scope of this application.
The term used in the embodiment of the present application is only to be not intended to be limiting merely for for the purpose of describing particular embodiments
The application.In the embodiment of the present application and the "an" of singular used in the attached claims, " described " and "the"
It is also intended to including most forms, unless the context clearly indicates other meaning.
Complicated, to spend time cost high pain spot is collected for the test data of front end multi-page, the embodiment of the present application mentions
For a kind of acquisition method of test data, comprising: obtain the automatic test cases for the setting of front end multi-page;By automatic
Change testing tool and executes above-mentioned automatic test cases;After above-mentioned automatic test cases are finished, by it is above-mentioned from
The crawler integrated in dynamicization testing tool obtains test data of the above-mentioned front end multi-page in the test environment.
The acquisition method of above-mentioned test data can carry out the receipts of test data under the test scene of front end multi-page
Collection.Front end page in the present embodiment may include: the 5th edition (Hypertext Markup Language of hypertext markup language
5;Hereinafter referred to as: H5) page, webpage (Web) page and/or application (Application;The page in hereinafter referred to as: App),
The present embodiment is not construed as limiting the concrete form of front end page.In the present embodiment, front end multi-page, which refers in a page, includes
The page that multistage jumps, for example, it is more to can also look at topic of hot spot and concern etc. after the login for the page of microblogging
A page, therefore the page of microblogging just belongs to the scene of a multi-page.
Application involved in the embodiment of the present application (App) can apply (Hybrid App) for mixing, but the application is not
As limit.To better illustrate the embodiment in the application, carry out following explanation to application: application may include native applications
(Hybrid App) is applied in (Native App), web application (Web App) and mixing.Wherein, native applications are for difference
Operation system of smart phone is individually developed locally applied, is needed first to download to terminal and be installed if you need to use, and Native is downloaded
The most common process of App is access application shop, such as the application shop (App Store) of apple, Android market, Google quotient
Shop (Google Play) etc..Web application is the website of a touch screen version, and Html, JavaScript and layer are used in Web application completely
Stacking style table (Cascading Style Sheets;The Web technological development such as hereinafter referred to as: CSS), passes through the browsing of electronic equipment
Device accesses, the disadvantage is that these applications based on browser can not calling system application programming interface (Application
Programming Interface;It hereinafter referred to as: API) realizes some Premium Features, is also not suitable for the field of high performance requirements
It closes.Mixing application is a kind of App between Native App and Web App, although mixing application appears to be one
Native App, but an only user interface web page view (User Interface WebView;Hereinafter referred to as: UI
WebView), that the inside access is a Web App.The essence of mixing application is that the apk/ipa of one browser of forgery is primary
Program, and run a Web App.Hybrid App has both the advantage and Web of the good user-interaction experience of Native App
The advantage of App Cross-border congestion management can allow the transition of web developer's almost zero cost at mobile application developer, and
And identical code need to only be compiled for different platform and can be achieved in multi-platform distribution, and compared to Web App, it opens
Originator can call most of common system API by packaged interface.
Fig. 1 is the flow chart of acquisition method one embodiment of the application test data, as shown in Figure 1, above-mentioned test number
According to acquisition method may include:
Step 101, the automatic test cases for the setting of front end multi-page are obtained.
Wherein, front end page may include: the page in the H5 page, Web page and/or App, and the present embodiment is to preceding end page
The concrete form in face is not construed as limiting.In the present embodiment, front end multi-page refers in a page to include the multistage page jumped, lifts
For example, the page of microblogging can also look at multiple pages such as topic of hot spot and concern after the login, therefore microblogging
The page just belongs to the scene of a multi-page.
The present embodiment is tested for front end multi-page, therefore is directed to the setting of front end multi-page firstly the need of obtaining
Automatic test cases.
Step 102, above-mentioned automatic test cases are executed by automated test tool.
In the present embodiment, above-mentioned automated test tool can be continuous integrating tool, such as: Jenkins, this certain reality
It applies example to be not limited to that, above-mentioned automated test tool can also be other automated test tools, and the present embodiment is to this
It is not construed as limiting.
Step 103, after above-mentioned automatic test cases are finished, by being integrated in above-mentioned automated test tool
Crawler obtain test data of the above-mentioned front end multi-page in above-mentioned test environment.
In the present embodiment, it is integrated with crawler in automated test tool, is finished it in above-mentioned automatic test cases
Afterwards, the program code that above-mentioned automated test tool executes above-mentioned crawler is triggered, is finished in the program code of above-mentioned crawler
Afterwards, the test data of above-mentioned front end multi-page that above-mentioned crawler crawls in the test environment is obtained, so as to save significantly
The acquisition time of test data about under front end multi-page test scene.
By taking microblog page as an example, test data of the above-mentioned front end multi-page in the test environment may include: microblogging
The user name of login, content (whether including picture) for the microblogging that login user is delivered etc..
In the acquisition method of above-mentioned test data, after obtaining the automatic test cases for the setting of front end multi-page,
Above-mentioned automatic test cases are executed by automated test tool, after above-mentioned automatic test cases are finished, are led to
It crosses the crawler integrated in above-mentioned automated test tool and obtains test data of the above-mentioned front end multi-page in the test environment,
It so as to save the acquisition time of test data under the multi-page test scene of front end, and realizes simply, it is more to improve front end
The testing efficiency of the page.
Further, in the application embodiment illustrated in fig. 1, before step 101, the of above-mentioned production environment can also be obtained
Then the second parameter configuration of above-mentioned test environment is arranged in one parameter configuration according to the first parameter configuration, so that above-mentioned test wrapper
Border becomes identical environment with above-mentioned production environment, thus can be by obtaining above-mentioned front end multi-page in above-mentioned test environment
Test data, the performance of front end multi-page in production environment is tested.
Fig. 2 is the flow chart of another embodiment of the acquisition method of the application test data, as shown in Fig. 2, the application Fig. 1
In illustrated embodiment, after step 102, can also include:
Step 201, after above-mentioned automatic test cases are finished, above-mentioned front end multipage is obtained by above-mentioned crawler
In the data of production environment, above-mentioned production environment is identical environment with above-mentioned test environment in face.
Step 202, above-mentioned test data is compared with above-mentioned front end multi-page in the data of production environment, in determination
State the accuracy of test data.
It, can also be by collecting in automated test tool after automatic test cases are finished in the present embodiment
At crawler obtain above-mentioned front end multi-page in the data of production environment, the data with above-mentioned front end multi-page in production environment are made
The test data crawled for crawler in object of reference, with above-mentioned test environment compares, the test data crawled with this to crawler
Accuracy is verified.
Further, after step 202, can also include:
Step 203, it when the accuracy of above-mentioned test data is higher than predetermined threshold, is directed to according to above-mentioned Test data generation
The test report of above-mentioned front end multi-page.
That is, when the accuracy for the test data that crawler crawls is higher than predetermined threshold, it can be according to above-mentioned test
Data generate the test report for being directed to above-mentioned front end multi-page, and if the accuracy for the test data that crawler crawls is less than or waits
In predetermined threshold, then the test data that crawler crawls can be abandoned.
Above-mentioned predetermined threshold can in specific implementation, according to the sets itselfs such as system performance and/or realization demand, this reality
Example is applied to be not construed as limiting the size of above-mentioned predetermined threshold.
Fig. 3 is the flow chart of the acquisition method further embodiment of the application test data, as shown in figure 3, the application Fig. 1
In illustrated embodiment, before step 103, can also include:
Step 301, the code of crawler is integrated into above-mentioned automated test tool.
In the present embodiment, the code of crawler is integrated into above-mentioned automated test tool, is held in automatic test cases
After row finishes, the crawler integrated in above-mentioned automated test tool can crawl above-mentioned front end multi-page in above-mentioned survey automatically
Test data in test ring border saves the acquisition time of test data.
Fig. 4 is the structural schematic diagram of acquisition device one embodiment of the application test data, the test in the present embodiment
The acquisition method of test data provided by the embodiments of the present application may be implemented in the acquisition device of data.As shown in figure 4, above-mentioned test
The acquisition device of data may include: to obtain module 41, execution module 42 and data acquisition module 43;
Wherein, module 41 is obtained, for obtaining the automatic test cases for being directed to the setting of front end multi-page;
Wherein, front end page may include: the page in the H5 page, Web page and/or App, and the present embodiment is to preceding end page
The concrete form in face is not construed as limiting.In the present embodiment, front end multi-page refers in a page to include the multistage page jumped, lifts
For example, the page of microblogging can also look at multiple pages such as topic of hot spot and concern after the login, therefore microblogging
The page just belongs to the scene of a multi-page.
The present embodiment is tested for front end multi-page, therefore is directed to front end firstly the need of being obtained by acquisition module 41
The automatic test cases of multi-page setting.
Execution module 42, for executing above-mentioned automatic test cases by automated test tool;
In the present embodiment, above-mentioned automated test tool can be continuous integrating tool, such as: Jenkins, this certain reality
It applies example to be not limited to that, above-mentioned automated test tool can also be other automated test tools, and the present embodiment is to this
It is not construed as limiting.
Data acquisition module 43, for being surveyed by above-mentioned automation after above-mentioned automatic test cases are finished
The crawler integrated in trial work tool obtains test data of the above-mentioned front end multi-page in above-mentioned test environment.
In the present embodiment, data acquisition module 43, specifically for touching after above-mentioned automatic test cases are finished
Sending out automated test tool above-mentioned executes the program code of above-mentioned crawler, after the program code of above-mentioned crawler is finished, obtains
Test data of the above-mentioned front end multi-page for taking above-mentioned crawler to crawl in the test environment, so as to save front end multipage
The acquisition time of test data under the test scene of face.
In the acquisition device of above-mentioned test data, obtains module 41 and obtain the automatic test being arranged for front end multi-page
After use-case, execution module 42 executes above-mentioned automatic test cases by automated test tool, in above-mentioned automatic test
After use-case is finished, data acquisition module 43 obtains above-mentioned front end by the crawler integrated in above-mentioned automated test tool
Test data of the multi-page in above-mentioned test environment, so as to save adopting for test data under the multi-page test scene of front end
Collect the time, and realize simply, improves the testing efficiency of front end multi-page.
Fig. 5 is the structural schematic diagram of another embodiment of the acquisition device of the application test data, with test shown in Fig. 4
The acquisition device of data is compared, the difference is that, the acquisition device of test data shown in fig. 5 can also include: comparison mould
Block 44;
Data acquisition module 43 is also used to after above-mentioned automatic test cases are finished, and is obtained by above-mentioned crawler
Take above-mentioned front end multi-page in the data of production environment;Above-mentioned production environment is identical environment with above-mentioned test environment;
Contrast module 44, for carrying out pair above-mentioned test data and above-mentioned front end multi-page in the data of production environment
Than determining the accuracy of above-mentioned test data.
In the present embodiment, after automatic test cases are finished, data acquisition module 43 can also be by automatic
Change the crawler integrated in testing tool and obtain above-mentioned front end multi-page in the data of production environment, contrast module 44 is with above-mentioned front end
Multi-page is compared in the test data that the data of production environment are crawled as crawler in object of reference, with the test environment, with
This verifies the accuracy for the test data that crawler crawls.
Further, the acquisition device of above-mentioned test data can also include:
Generation module 45, after the accuracy that above-mentioned test data is determined for contrast module 44, when above-mentioned test data
Accuracy be higher than predetermined threshold when, according to above-mentioned Test data generation be directed to above-mentioned front end multi-page test report.
That is, generation module 45 can root when the accuracy for the test data that crawler crawls is higher than predetermined threshold
According to above-mentioned Test data generation be directed to above-mentioned front end multi-page test report, and if the test data that crawler crawls it is accurate
Property be less than or equal to predetermined threshold, then can abandon the test data that crawler crawls.
Above-mentioned predetermined threshold can in specific implementation, according to the sets itselfs such as system performance and/or realization demand, this reality
Example is applied to be not construed as limiting the size of above-mentioned predetermined threshold.
Further, the acquisition device of above-mentioned test data can also include:
Integration module 46, for passing through crawler integrated in above-mentioned automated test tool in above-mentioned data acquisition module 43
Above-mentioned front end multi-page is obtained before the test data in the test environment, the code of crawler is integrated into above-mentioned automation
In testing tool.
In the present embodiment, the code of crawler is integrated into above-mentioned automated test tool by integration module 46, is being automated
After test case is finished, data acquisition module 43 can be using the crawler integrated in above-mentioned automated test tool certainly
The dynamic test data for crawling above-mentioned front end multi-page in the test environment, saves the acquisition time of test data.
Further, in the present embodiment, module 41 is obtained, is also used to obtain the first parameter configuration of above-mentioned production environment;On
The acquisition device for stating test data can also include: setup module 47, for being matched according to the first parameter for obtaining the acquisition of module 41
The second parameter configuration of above-mentioned test environment is installed, so that above-mentioned test environment becomes identical environment with above-mentioned production environment.
Front end multi-page can thus produced by obtaining test data of the above-mentioned front end multi-page in above-mentioned test environment
Performance in environment is tested.
Fig. 6 is the structural schematic diagram of the application computer equipment one embodiment, and above-mentioned computer equipment may include depositing
Reservoir, processor and it is stored in the computer program that can be run on above-mentioned memory and on above-mentioned processor, above-mentioned processor
When executing above-mentioned computer program, the acquisition method of test data provided by the embodiments of the present application may be implemented.
Wherein, above-mentioned computer equipment can be electronic equipment, such as: smart phone, tablet computer or wearable intelligence
The intelligent electronic devices such as equipment, in addition, above-mentioned computer equipment may be server, the present embodiment is to above-mentioned computer equipment
Specific form be not construed as limiting.
Fig. 6 shows the block diagram for being suitable for the exemplary computer device 12 for being used to realize the application embodiment.Fig. 6 is shown
Computer equipment 12 be only an example, should not function to the embodiment of the present application and use scope bring any restrictions.
As shown in fig. 6, computer equipment 12 is showed in the form of universal computing device.The component of computer equipment 12 can be with
Including but not limited to: one or more processor or processing unit 16, system storage 28 connect different system components
The bus 18 of (including system storage 28 and processing unit 16).
Bus 18 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller,
Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts
For example, these architectures include but is not limited to industry standard architecture (Industry Standard
Architecture;Hereinafter referred to as: ISA) bus, microchannel architecture (Micro Channel Architecture;Below
Referred to as: MAC) bus, enhanced isa bus, Video Electronics Standards Association (Video Electronics Standards
Association;Hereinafter referred to as: VESA) local bus and peripheral component interconnection (Peripheral Component
Interconnection;Hereinafter referred to as: PCI) bus.
Computer equipment 12 typically comprises a variety of computer system readable media.These media can be it is any can be by
The usable medium that computer equipment 12 accesses, including volatile and non-volatile media, moveable and immovable medium.
System storage 28 may include the computer system readable media of form of volatile memory, such as arbitrary access
Memory (Random Access Memory;Hereinafter referred to as: RAM) 30 and/or cache memory 32.Computer equipment 12
It may further include other removable/nonremovable, volatile/non-volatile computer system storage mediums.Only conduct
Citing, storage system 34 can be used for reading and writing immovable, non-volatile magnetic media, and (Fig. 6 do not show, commonly referred to as " hard disk
Driver ").Although being not shown in Fig. 6, the magnetic for reading and writing to removable non-volatile magnetic disk (such as " floppy disk ") can be provided
Disk drive, and to removable anonvolatile optical disk (such as: compact disc read-only memory (Compact Disc Read Only
Memory;Hereinafter referred to as: CD-ROM), digital multi CD-ROM (Digital Video Disc Read Only
Memory;Hereinafter referred to as: DVD-ROM) or other optical mediums) read-write CD drive.In these cases, each driving
Device can be connected by one or more data media interfaces with bus 18.Memory 28 may include that at least one program produces
Product, the program product have one group of (for example, at least one) program module, and it is each that these program modules are configured to perform the application
The function of embodiment.
Program/utility 40 with one group of (at least one) program module 42 can store in such as memory 28
In, such program module 42 includes --- but being not limited to --- operating system, one or more application program, other programs
It may include the realization of network environment in module and program data, each of these examples or certain combination.Program mould
Block 42 usually executes function and/or method in embodiments described herein.
Computer equipment 12 can also be with one or more external equipments 14 (such as keyboard, sensing equipment, display 24
Deng) communication, can also be enabled a user to one or more equipment interact with the computer equipment 12 communicate, and/or with make
The computer equipment 12 any equipment (such as network interface card, the modulatedemodulate that can be communicated with one or more of the other calculating equipment
Adjust device etc.) communication.This communication can be carried out by input/output (I/O) interface 22.Also, computer equipment 12 may be used also
To pass through network adapter 20 and one or more network (such as local area network (Local Area Network;Hereinafter referred to as:
LAN), wide area network (Wide Area Network;Hereinafter referred to as: WAN) and/or public network, for example, internet) communication.Such as figure
Shown in 6, network adapter 20 is communicated by bus 18 with other modules of computer equipment 12.Although should be understood that in Fig. 6 not
It shows, other hardware and/or software module can be used in conjunction with computer equipment 12, including but not limited to: microcode, equipment are driven
Dynamic device, redundant processing unit, external disk drive array, RAID system, tape drive and data backup storage system etc..
Processing unit 16 by the program that is stored in system storage 28 of operation, thereby executing various function application and
Data processing, such as realize the acquisition method of test data provided by the embodiments of the present application.
The embodiment of the present application also provides a kind of non-transitorycomputer readable storage medium, is stored thereon with computer journey
The acquisition method of test data provided by the embodiments of the present application may be implemented in sequence, above-mentioned computer program when being executed by processor.
Above-mentioned non-transitorycomputer readable storage medium can appointing using one or more computer-readable media
Meaning combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.Computer can
Reading storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device
Or device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes:
Electrical connection, portable computer diskette, hard disk, random access memory (RAM), read-only storage with one or more conducting wires
Device (Read Only Memory;Hereinafter referred to as: ROM), erasable programmable read only memory (Erasable
Programmable Read Only Memory;Hereinafter referred to as: EPROM) or flash memory, optical fiber, portable compact disc are read-only deposits
Reservoir (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer
Readable storage medium storing program for executing can be any tangible medium for including or store program, which can be commanded execution system, device
Either device use or in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including --- but
It is not limited to --- electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be
Any computer-readable medium other than computer readable storage medium, which can send, propagate or
Transmission is for by the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited
In --- wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
Can with one or more programming languages or combinations thereof come write for execute the application operation computer
Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++,
It further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with
It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion
Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.?
It is related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (Local
Area Network;Hereinafter referred to as: LAN) or wide area network (Wide Area Network;Hereinafter referred to as: WAN) it is connected to user
Computer, or, it may be connected to outer computer (such as being connected using ISP by internet).
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is contained at least one embodiment or example of the application.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples
It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance
Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Implicitly include at least one this feature.In the description of the present application, the meaning of " plurality " is at least two, such as two, three
It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing custom logic function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the application includes other realization, wherein can not press shown or discussed suitable
Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be by the application
Embodiment person of ordinary skill in the field understood.
Depending on context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determination " or " in response to detection ".Similarly, depend on context, phrase " if it is determined that " or " if detection
(condition or event of statement) " can be construed to " when determining " or " in response to determination " or " when the detection (condition of statement
Or event) when " or " in response to detection (condition or event of statement) ".
It should be noted that terminal involved in the embodiment of the present application can include but is not limited to personal computer
(Personal Computer;Hereinafter referred to as: PC), personal digital assistant (Personal Digital Assistant;Below
Referred to as: PDA), radio hand-held equipment, tablet computer (Tablet Computer), mobile phone, MP3 player, MP4 player etc..
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or group
Part can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown
Or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or unit it is indirect
Coupling or communication connection can be electrical property, mechanical or other forms.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer
It is each that device (can be personal computer, server or network equipment etc.) or processor (Processor) execute the application
The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-
Only Memory;Hereinafter referred to as: ROM), random access memory (Random Access Memory;Hereinafter referred to as: RAM),
The various media that can store program code such as magnetic or disk.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.
Claims (10)
1. a kind of acquisition method of test data characterized by comprising
Obtain the automatic test cases in test environment for the setting of front end multi-page;
The automatic test cases are executed by automated test tool;
After the automatic test cases are finished, institute is obtained by the crawler integrated in the automated test tool
State test data of the front end multi-page in the test environment.
2. the method according to claim 1, wherein further include:
After the automatic test cases are finished, the front end multi-page is obtained in production environment by the crawler
Data;The production environment is identical environment with the test environment;
The test data is compared with the front end multi-page in the data of production environment, determines the test data
Accuracy.
3. according to the method described in claim 2, it is characterized in that, being gone back after the accuracy of the determination test data
Include:
When the accuracy of the test data is higher than predetermined threshold, the front end multipage is directed to according to the Test data generation
The test report in face.
4. method according to claim 1 to 3, which is characterized in that described to pass through the automated test tool
In integrate crawler obtain the front end multi-page it is described test environment in test data before, further includes:
The code of crawler is integrated into the automated test tool.
5. according to the method described in claim 2, it is characterized in that, being arranged in acquisition test environment for front end multi-page
Automatic test cases before, the method also includes:
Obtain the first parameter configuration of the production environment;
According to first parameter configuration be arranged it is described test environment the second parameter configuration so that the test environment with it is described
Production environment becomes identical environment.
6. a kind of acquisition device of test data characterized by comprising
Module is obtained, for obtaining the automatic test cases for being directed to the setting of front end multi-page;
Execution module, for executing the automatic test cases by automated test tool;
Data acquisition module, for passing through the automated test tool after the automatic test cases are finished
In integrate crawler obtain the front end multi-page it is described test environment in test data.
7. device according to claim 6, which is characterized in that further include: contrast module;
The data acquisition module is also used to after the automatic test cases are finished, and is obtained by the crawler
Data of the front end multi-page in production environment;The production environment is identical environment with the test environment;
The contrast module, for the test data to be compared with the front end multi-page in the data of production environment,
Determine the accuracy of the test data.
8. device according to claim 7, which is characterized in that further include:
Generation module, after the accuracy that the test data is determined for the contrast module, when the standard of the test data
When true property is higher than predetermined threshold, the test report of the front end multi-page is directed to according to the Test data generation.
9. a kind of computer equipment, which is characterized in that including memory, processor and be stored on the memory and can be in institute
The computer program run on processor is stated, when the processor executes the computer program, is realized as in claim 1-5
Any method.
10. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, which is characterized in that the meter
Such as method as claimed in any one of claims 1 to 5 is realized when calculation machine program is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811527471.2A CN109828899A (en) | 2018-12-13 | 2018-12-13 | Acquisition method, device and the computer equipment of test data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811527471.2A CN109828899A (en) | 2018-12-13 | 2018-12-13 | Acquisition method, device and the computer equipment of test data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109828899A true CN109828899A (en) | 2019-05-31 |
Family
ID=66859593
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811527471.2A Pending CN109828899A (en) | 2018-12-13 | 2018-12-13 | Acquisition method, device and the computer equipment of test data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109828899A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110362498A (en) * | 2019-07-24 | 2019-10-22 | 杭州安恒信息技术股份有限公司 | Test method, device and the server of page hot spot |
CN110704318A (en) * | 2019-09-27 | 2020-01-17 | 武汉中海庭数据技术有限公司 | Map data automatic testing method, terminal device and storage medium |
-
2018
- 2018-12-13 CN CN201811527471.2A patent/CN109828899A/en active Pending
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110362498A (en) * | 2019-07-24 | 2019-10-22 | 杭州安恒信息技术股份有限公司 | Test method, device and the server of page hot spot |
CN110362498B (en) * | 2019-07-24 | 2023-08-15 | 杭州安恒信息技术股份有限公司 | Page hot spot testing method and device and server |
CN110704318A (en) * | 2019-09-27 | 2020-01-17 | 武汉中海庭数据技术有限公司 | Map data automatic testing method, terminal device and storage medium |
CN110704318B (en) * | 2019-09-27 | 2022-10-25 | 武汉中海庭数据技术有限公司 | Map data automatic testing method, terminal device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10387292B2 (en) | Determining application test results using screenshot metadata | |
CN109873735A (en) | Performance test methods, device and the computer equipment of the H5 page | |
CN104115143B (en) | Multiple tabss stack user interface | |
EP2843529A1 (en) | Method for providing information based on contents and electronic device thereof | |
CN112015314B (en) | Information display method and device, electronic equipment and medium | |
CN111966255B (en) | Information display method and device, electronic equipment and computer readable medium | |
CN104142856A (en) | Service program call method, service program call system and intelligent equipment thereof | |
CN111045653B (en) | System generation method and device, computer readable medium and electronic equipment | |
CN104885107A (en) | Capturing and sharing visual content via an application | |
WO2023226371A1 (en) | Target object interactive reproduction control method and apparatus, device and storage medium | |
CN107885661A (en) | The terminal transparency method of testing and system of Mobile solution, equipment, medium | |
US20230035104A1 (en) | Verification method, apparatus and device, and storage medium | |
CN109284427A (en) | A kind of document structure tree method, apparatus, server and storage medium | |
CN107426275A (en) | A kind of resource transmission method and device | |
CN109828899A (en) | Acquisition method, device and the computer equipment of test data | |
CN105955593A (en) | Method and device for presenting discussion information | |
CN111782758A (en) | Drawing review result viewing method based on CAD and related device | |
CN111597466A (en) | Display method and device and electronic equipment | |
CN109740079A (en) | Loading method, device and the computer equipment of the H5 page | |
CN107766106A (en) | The method and apparatus for generating configuration file | |
CN108829595B (en) | Test method, test device, storage medium and electronic equipment | |
CN110929037A (en) | Knowledge graph construction method and device, terminal and storage medium | |
CN112016077A (en) | Page information acquisition method and device based on sliding track simulation and electronic equipment | |
CN107273001A (en) | A kind of page data methods of exhibiting, medium, device and computing device | |
CN111443978A (en) | User interface adjusting method and device, storage medium and electronic equipment |
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 |