CN105893235A - Simulation testing method and apparatus, and server - Google Patents

Simulation testing method and apparatus, and server Download PDF

Info

Publication number
CN105893235A
CN105893235A CN201510037941.7A CN201510037941A CN105893235A CN 105893235 A CN105893235 A CN 105893235A CN 201510037941 A CN201510037941 A CN 201510037941A CN 105893235 A CN105893235 A CN 105893235A
Authority
CN
China
Prior art keywords
page
emulation
client
emulation testing
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510037941.7A
Other languages
Chinese (zh)
Other versions
CN105893235B (en
Inventor
王志君
戴和忠
陈学
蒋力
孙刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Group Zhejiang Co Ltd
Original Assignee
China Mobile Group Zhejiang 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 China Mobile Group Zhejiang Co Ltd filed Critical China Mobile Group Zhejiang Co Ltd
Priority to CN201510037941.7A priority Critical patent/CN105893235B/en
Publication of CN105893235A publication Critical patent/CN105893235A/en
Application granted granted Critical
Publication of CN105893235B publication Critical patent/CN105893235B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The present invention provides a simulation testing method and apparatus, and a server. The simulation testing method comprises: acquiring an interaction instruction generated by a client; according to the interaction instruction, acquiring a simulation testing page corresponding to the interaction instruction, wherein the simulation testing page comprises a button region used by the client to perform an instruction operation and a console region for displaying a process of the instruction operation; and sending the simulation testing page to the client, so as to make the client display the simulation testing page corresponding to the interaction instruction. According to the method, by deploying the simulation testing page and calling the corresponding simulation testing page according to the function when performing client page development, the problem that a delay of developing the browser page is caused by operating page configuration and the like during actual development, which affects client page development, is avoided, and in this manner, the project cycle is shortened.

Description

A kind of emulation test method, device and server
Technical field
The present invention relates to data network, data service technical field, particularly to a kind of emulation test method, Device and server.
Background technology
In Android (Android) client item development process, the key function demand of client is from interior Hold and download on server and be presented to user by mobile terminals such as mobile phones.
The primary interface of client is that (HTTP-HyperText Transfer Protocol surpasses by HTTP Text Transfer Protocol) protocol access content server, and from http response (http response), resolve number According to.Owing to framework uses Brower+Client (browser+client) mode to develop, use Browser (hereinafter referred to as B) mode is developed and is added the module plug-in unit mode that Client (hereinafter referred to as C) mode develops and realize, So as flexible management, independent assortment.Relate to the B page and the exploitation of the C page, but actual development process In, both development progresses tend not to harmonious, it is impossible to carry out joint debugging simultaneously.C exploitation Bug (leak) Convergence rate slow, need to enter earlier the joint debugging stage, but in reality, the B page be often due to the operation page is joined The reason such as put to cause delaying, so the project cycle can be caused long due to exploitation and the delaying of test of C.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of emulation test method, device and server, in order to When solving existing client with browser interactive testing, browser page exploitation is due to operation page configuration etc. Reason causes delaying, and causes the exploitation of customer terminal webpage and delaying of test, thus causes project cycle length Problem.
In order to solve above-mentioned technical problem, the embodiment of the present invention provides a kind of emulation test method, including:
Obtain the interactive instruction that client generates;
According to described interactive instruction, obtain the emulation testing page corresponding with described interactive instruction, wherein, The described emulation testing page includes: is available for client and carries out the button area of command operating and show described instruction The control station district of operating process;
Send the described emulation testing page to described client so that described client shows and described mutual finger The described emulation testing page that order is corresponding.
Further, described according to described interactive instruction, obtain the emulation corresponding with described interactive instruction and survey The step of the examination page includes:
According to described interactive instruction, search and described mutual finger in the emulation testing page preset generated The emulation testing page that order is corresponding.
Further, the button area in the described emulation testing page comprises at least one and client and browser The button of intercorrelation.
Further, the generation step of the described default emulation testing page includes:
Obtain client and the mutual standardized interface document of browser;
Resolve described interface document, generate visual configuration interface;
Obtain the interface and the configuration information of parameter generated for described configuration interface;
Resolve the configuration information of described interface and parameter, generate the emulation testing page preset.
Further, described acquisition generates for described configuration interface interface and the step of the configuration information of parameter After Zhou, also include:
The configuration information of described interface and parameter is stored.
Further, after the generation step of the described default emulation testing page, described emulation test method, Also include:
Load the described default emulation testing page.
The embodiment of the present invention provides a kind of simulation testing device, including:
First acquisition module, for obtaining the interactive instruction that client generates;
Second acquisition module, for according to described interactive instruction, obtaining imitate corresponding with described interactive instruction True test page, wherein, the described emulation testing page includes: be available for client carry out command operating by Button district and the control station district of the described command operating process of display;
Transport module, is used for sending the described emulation testing page to described client so that described client shows Show the described emulation testing page corresponding with described interactive instruction.
Further, described second acquisition module particularly as follows:
According to described interactive instruction, search and described mutual finger in the emulation testing page preset generated The emulation testing page that order is corresponding.
Further, described simulation testing device, also include:
Load-on module, for loading the described default emulation testing page.
The embodiment of the present invention also provides for a kind of emulation testing server, including above-mentioned simulation testing device.
The invention has the beneficial effects as follows:
Such scheme, by disposing the emulation testing page, when carrying out customer terminal webpage exploitation, according to function Call the corresponding emulation testing page, it is to avoid cause due to reasons such as operation page configuration in actual development Delaying of browser page, and then affect the problem of customer terminal webpage exploitation, by this kind of mode, shorten The project development cycle.
Accompanying drawing explanation
Fig. 1 represents the overview flow chart of the described emulation test method of the embodiment of the present invention;
Fig. 2 represents the product process schematic diagram of the emulation testing page preset of the embodiment of the present invention;
Fig. 3 represents the interaction flow schematic diagram of client and emulation server;
Fig. 4 represents the module diagram of the described simulation testing device of the embodiment of the present invention.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing and specifically real Execute example to describe the present invention.
When the present invention is directed to existing client with browser interactive testing, browser page exploitation is due to operation The reasons such as page configuration cause delaying, and cause the exploitation of customer terminal webpage and delaying of test, thus cause item The problem of mesh cycle length, as it is shown in figure 1, the embodiment of the present invention provides a kind of emulation test method, including:
Step 10, obtains the interactive instruction that client generates;
Step 20, according to described interactive instruction, obtains the emulation testing page corresponding with described interactive instruction, Wherein, the described emulation testing page includes: is available for client and carries out button area and the display institute of command operating State the control station district of command operating process;
Step 30, sends the described emulation testing page to described client so that described client shows and institute State the described emulation testing page that interactive instruction is corresponding.
The above embodiment of the present invention, when carrying out client exploitation test, calls the corresponding emulation testing page, This emulation testing page is used for replacing actual pages leaved for development, this kind of mode, solves in actual development, When relating to mutual both sides, cause the development delay of the opposing party because there being a side to postpone so that project development Cycle is long, this mode, can develop for an independent side, after needing a mutual side to develop, Just the construction cycle of project can with application deployment, be substantially reduced.
It should be noted that, the present invention illustrates as a example by the exploitation of Android client, in development process In relate generally to the mutual of customer terminal webpage (the C page) and browser page (the B page), in the present invention with The B page is the emulation testing page, it is achieved illustrate as a example by the exploitation of the C page.
After the interactive instruction acquiring the presetting B page that client generates, in the present invention, described step Rapid 20 specific implementations are: according to described interactive instruction, in the emulation testing page preset generated Search the emulation testing page corresponding with described interactive instruction.
It should be noted that, in order to realize this step 20, need to prestore with C page intercorrelation at least One B page (the emulation testing page i.e. preset), the generation step tool of the described default emulation testing page Body is:
Obtain client and the mutual standardized interface document of browser;
Resolve described interface document, generate visual configuration interface;
Obtain the interface and the configuration information of parameter generated for described configuration interface;
Resolve the configuration information of described interface and parameter, generate the emulation testing page preset.
It should be noted that, in multiple emulation testing pages, it is understood that there may be some identical functions, therefore, In another embodiment of the present invention, the generation step of the described default emulation testing page also includes: connect described The configuration information of mouth and parameter stores, after the interface of storage identical function and the configuration information of parameter, When generating the identical function in other emulation testing page, just can directly invoke the configuration information of storage, joint Save the generation time of the emulation testing page.
Here it should be noted that, the described default emulation testing page, can be at the dress mutual with client Put or generate on server, it is also possible to generate independent of described device or server, when described default imitating When true test page is independent of described device or server, in another embodiment of the present invention, described emulation testing Method, also includes: load the described default emulation testing page, and this step master will be it will be realized that will preset The emulation testing page be deployed on corresponding device or server, be equivalent to described default emulation testing page There has been the carrier existed in face.
It should be noted that, the described default emulation testing page mainly realizes:
The interface of B2C (Brower to Client, browser is to client): after clicking on B page the corresponding button The method calling C;Such as start download, start log in, start nullify, redirect channel, start read page, Start payment, start digest page, addition bookshelf etc..As a example by downloading, the B page exists a B's Button " is downloaded ", and after user clicks on " download " button, (JavaScript is B page invocation JavaScript A kind of literal translation formula script, is a kind of regime type, weak type, language based on prototype, built-in support Type) function starts the backstage download function using C to realize, thus completes the interaction flow of B to C;
The interface of C2B (Client to Brower, client is to browser): definition server back page is taken The JavaScript interface method of band, for client call;Such as use C realize navigation bar, the page its His content uses B to realize, and navigation bar has a Refresh button, in order to realize the refreshing of the B page, User is after clicking on button, and C can call the JavaScript function of C2B, completes B page furbishing.
As in figure 2 it is shown, generate the emulation testing page preset for above-mentioned functions, described default emulation is surveyed The examination page can utilize existing coding tools to realize, by resolving standardized B2C and C2B interface document (prototype of interface function defined in these documents and parameter) generates visual configuration interface, configures the page In only wrap the button of B/C intercorrelation, ratio download button as mentioned above and refresh button, it is allowed to test Personnel depaly needs interface and the parameter of test, and then generates the emulation testing page.Additionally, pilot process choosing The function selected and parameter configuration allow to export as " test case " (such as downloading books test case), permissible It is introduced directly into when next time needs after modifying after " test case " generates the emulation testing page, or importing Regeneration.
It should be noted that, the emulation testing page preset comprises two parts: button area and control station district, institute Stating button area and comprise the button of at least one and B/C intercorrelation, described button is each case generated Order button, clicks on each button and i.e. performs the test case of correspondence;Control station district then performs for display case Process and result, described case perform process and result mainly with the form record of interface daily record, B2C The daily record of the daily record of interface and C2B interface shows in different colors and shows in control station district, and argument section is with shallow The non-principal tones such as Lycoperdon polymorphum Vitt show (allowing configuration not show), owing to being only interface interchange, not embodying the time Deng performance factor, therefore logging time is only accurate to the second.
After the described default emulation testing page generates successfully, specific device or server need to be deployed to On, thus realize the test of client and the emulation B page.
As it is shown on figure 3, when testing, as a example by emulation server and client, the two is being handed over When testing mutually, first disposing the default emulation B page on emulation server, client passes through WebView (network view) loads this emulation B page and realizes the B/C of the correspondence emulation B page and client alternately, with Reach the test purpose to client C function;Wherein, the emulation B page is to take out the actual demand B page As, only realize relating to the mutual content of B2C and C2B, it is not necessary to build other elements (B unrelated with C Content, such as static page, the pure B page), the emulation B page uses the village function of JS (JavaScript) Realize, meet the mutual of B/C, complete joint test.
As shown in Figure 4, the embodiment of the present invention provides a kind of simulation testing device, including:
First acquisition module 100, for obtaining the interactive instruction that client generates;
Second acquisition module 200, for according to described interactive instruction, obtains corresponding with described interactive instruction The emulation testing page, wherein, the described emulation testing page includes: is available for client and carries out command operating Button area and the control station district of the described command operating process of display;
Transport module 300, is used for sending the described emulation testing page to described client so that described client Show the described emulation testing page corresponding with described interactive instruction.
Specifically, described second acquisition module 200 particularly as follows:
According to described interactive instruction, search and described mutual finger in the emulation testing page preset generated The emulation testing page that order is corresponding.
Alternatively, the generation step of the described default emulation testing page includes:
Obtain client and the mutual standardized interface document of browser;
Resolve described interface document, generate visual configuration interface;
Obtain the interface and the configuration information of parameter generated for described configuration interface;
Resolve the configuration information of described interface and parameter, generate the emulation testing page preset.
Alternatively, described simulation testing device, also include:
Load-on module, for loading the described default emulation testing page.
It should be noted that this device embodiment is the device corresponding with said method, the institute of said method There is implementation method all be applicable to this device embodiment, also can reach technique effect same as mentioned above.
The embodiment of the present invention also provides for a kind of emulation testing server, including above-mentioned simulation testing device.
Such scheme of the present invention, by disposing the emulation testing B page on emulation testing server, then leads to Cross client mutual with the B/C of emulation testing server, the emulation testing B page is called, thus real The now test to client, this kind of mode, compensate for existing in Android client project development process In, the development rate of the B page and the C page can not be harmonious, it is impossible to carries out joint debugging simultaneously, causes project The deficiency of cycle length, shortens the joint debugging time of the B page and the C page, helps client exploitation ahead of time simultaneously Enter the joint debugging stage, shorten the construction cycle of project, improve project development efficiency.
Above-described is the preferred embodiment of the present invention, it should be pointed out that for the ordinary people of the art For Yuan, some improvements and modifications can also be made under without departing from principle premise of the present invention, these Improvements and modifications are the most within the scope of the present invention.

Claims (10)

1. an emulation test method, it is characterised in that including:
Obtain the interactive instruction that client generates;
According to described interactive instruction, obtain the emulation testing page corresponding with described interactive instruction, wherein, The described emulation testing page includes: is available for client and carries out the button area of command operating and show described instruction The control station district of operating process;
Send the described emulation testing page to described client so that described client shows and described mutual finger The described emulation testing page that order is corresponding.
Emulation test method the most according to claim 1, it is characterised in that described according to described alternately Instruction, the step obtaining the emulation testing page corresponding with described interactive instruction includes:
According to described interactive instruction, search and described mutual finger in the emulation testing page preset generated The emulation testing page that order is corresponding.
Emulation test method the most according to claim 1 and 2, it is characterised in that described emulation testing Button area in the page comprises at least one and client and the button of browser intercorrelation.
Emulation test method the most according to claim 2, it is characterised in that described default emulation is surveyed The generation step of the examination page includes:
Obtain client and the mutual standardized interface document of browser;
Resolve described interface document, generate visual configuration interface;
Obtain the interface and the configuration information of parameter generated for described configuration interface;
Resolve the configuration information of described interface and parameter, generate the emulation testing page preset.
Emulation test method the most according to claim 4, it is characterised in that described acquisition is for described After the step of the interface of configuration interface generation and the configuration information of parameter, also include:
The configuration information of described interface and parameter is stored.
6. according to the emulation test method described in claim 4 or 5, it is characterised in that described default After the generation step of the emulation testing page, described emulation test method, also include:
Load the described default emulation testing page.
7. a simulation testing device, it is characterised in that including:
First acquisition module, for obtaining the interactive instruction that client generates;
Second acquisition module, for according to described interactive instruction, obtaining imitate corresponding with described interactive instruction True test page, wherein, the described emulation testing page includes: be available for client carry out command operating by Button district and the control station district of the described command operating process of display;
Transport module, is used for sending the described emulation testing page to described client so that described client shows Show the described emulation testing page corresponding with described interactive instruction.
Simulation testing device the most according to claim 7, it is characterised in that described second acquisition module Particularly as follows:
According to described interactive instruction, search and described mutual finger in the emulation testing page preset generated The emulation testing page that order is corresponding.
Simulation testing device the most according to claim 8, it is characterised in that also include:
Load-on module, for loading the described default emulation testing page.
10. an emulation testing server, it is characterised in that include such as any one of claim 7 to 9 institute The simulation testing device stated.
CN201510037941.7A 2015-01-26 2015-01-26 A kind of emulation test method, device and server Active CN105893235B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510037941.7A CN105893235B (en) 2015-01-26 2015-01-26 A kind of emulation test method, device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510037941.7A CN105893235B (en) 2015-01-26 2015-01-26 A kind of emulation test method, device and server

Publications (2)

Publication Number Publication Date
CN105893235A true CN105893235A (en) 2016-08-24
CN105893235B CN105893235B (en) 2019-03-01

Family

ID=56999752

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510037941.7A Active CN105893235B (en) 2015-01-26 2015-01-26 A kind of emulation test method, device and server

Country Status (1)

Country Link
CN (1) CN105893235B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106933741A (en) * 2017-03-16 2017-07-07 东软集团股份有限公司 The method and device of joint debugging test
CN107145440A (en) * 2017-04-06 2017-09-08 百富计算机技术(深圳)有限公司 Applied program testing method, device and computer equipment
CN110083537A (en) * 2019-04-26 2019-08-02 田金月 The method and system of cell phone application port test
CN110744542A (en) * 2019-10-25 2020-02-04 中冶赛迪工程技术股份有限公司 Robot digital simulation method and device, storage medium and electronic terminal
CN112632798A (en) * 2021-01-05 2021-04-09 上海品顺信息科技有限公司 Simulation test method, device, equipment and storage medium of warehouse management system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060235941A1 (en) * 2005-03-29 2006-10-19 Microsoft Corporation System and method for transferring web page data
CN101571860A (en) * 2008-04-29 2009-11-04 国际商业机器公司 Method and device for generating dynamic website as well as method and device for extracting structural data
CN101876897A (en) * 2009-04-30 2010-11-03 国际商业机器公司 System and method used for processing Widget on Web browser

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060235941A1 (en) * 2005-03-29 2006-10-19 Microsoft Corporation System and method for transferring web page data
CN101571860A (en) * 2008-04-29 2009-11-04 国际商业机器公司 Method and device for generating dynamic website as well as method and device for extracting structural data
CN101876897A (en) * 2009-04-30 2010-11-03 国际商业机器公司 System and method used for processing Widget on Web browser

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106933741A (en) * 2017-03-16 2017-07-07 东软集团股份有限公司 The method and device of joint debugging test
CN107145440A (en) * 2017-04-06 2017-09-08 百富计算机技术(深圳)有限公司 Applied program testing method, device and computer equipment
WO2018184361A1 (en) * 2017-04-06 2018-10-11 百富计算机技术(深圳)有限公司 Application test method, server, terminal, and storage media
CN110083537A (en) * 2019-04-26 2019-08-02 田金月 The method and system of cell phone application port test
CN110744542A (en) * 2019-10-25 2020-02-04 中冶赛迪工程技术股份有限公司 Robot digital simulation method and device, storage medium and electronic terminal
CN110744542B (en) * 2019-10-25 2022-06-14 中冶赛迪工程技术股份有限公司 Robot digital simulation method and device, storage medium and electronic terminal
CN112632798A (en) * 2021-01-05 2021-04-09 上海品顺信息科技有限公司 Simulation test method, device, equipment and storage medium of warehouse management system
CN112632798B (en) * 2021-01-05 2023-03-24 上海品顺信息科技有限公司 Simulation test method, device, equipment and storage medium of warehouse management system

Also Published As

Publication number Publication date
CN105893235B (en) 2019-03-01

Similar Documents

Publication Publication Date Title
CN106383786B (en) Interface pressure performance testing method and device and electronic equipment
CN108345531B (en) Test method, device and system
CN105138448B (en) A kind of method and apparatus in the head end test page
CN105893235A (en) Simulation testing method and apparatus, and server
CN102567198B (en) System and method for testing application program in physical system environment
CN101697139B (en) Method, device and registry for remote procedure call
CN106990966A (en) Mobile terminal cross-platform Development Framework and development approach based on front end frame
CN101299862B (en) Telecommunication service generation environmental system
CN106293743A (en) A kind of mobile modeling and build Mobile solution the method realizing cross-platform issue
CN109726094A (en) The method and apparatus of pressure test
CN110362490B (en) Automatic testing method and system for integrating iOS and Android mobile applications
CN104915297B (en) A kind of automated testing method of the APP power consumption of android equipment
CN111324390A (en) Device and method for realizing APP content configuration and real-time update
CN112256321A (en) Static library packaging method and device, computer equipment and storage medium
CN106528184A (en) App development method based on cordova platform
CN111176629A (en) Application development method and device
CN106339237A (en) Plug-in loading frame for WEB application in field of JavaEE and method
CN108132809A (en) Method, apparatus, terminal and the storage medium of loading
CN108038241A (en) Integrated WEB visual workflows method, apparatus, readable storage medium storing program for executing and system
CN105224457B (en) A kind of test frame implementation method and device
CN105989068A (en) Hypertext markup language (HTML) based mobile application generating method and device
CN109471693A (en) Proprietary component is mapped to method, medium and the equipment of Cross-border congestion management system
CN104166551B (en) A kind of application interface development approach and development device
CN107622006A (en) System and method for testing mobile device
CN104050218A (en) Method and system for providing information to be displayed in user interface

Legal Events

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