CN107526678A - The method of testing and device of web application - Google Patents
The method of testing and device of web application Download PDFInfo
- Publication number
- CN107526678A CN107526678A CN201610460501.7A CN201610460501A CN107526678A CN 107526678 A CN107526678 A CN 107526678A CN 201610460501 A CN201610460501 A CN 201610460501A CN 107526678 A CN107526678 A CN 107526678A
- Authority
- CN
- China
- Prior art keywords
- web application
- page
- server
- static resource
- timestamp
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Abstract
The present invention relates to a kind of method of testing of web application and device, methods described includes:Receive page open request, the domain name pre-set according to the page open acquisition request;The request that timestamp is added to the static resource in domain name is sent to server;The static resource after addition timestamp is pulled from server according to page open request;The static resource after the addition timestamp is loaded, obtains test page corresponding to web application.Conveniently web application can be tested using this method and testing efficiency can be effectively improved.
Description
Technical field
The present invention relates to Internet technical field, more particularly to the method for testing and device of a kind of web application.
Background technology
With the development of Internet technology, a variety of Web (webpage) application program is emerged, such as forum, microblogging and virtual
Space etc..User can access the page of web application by browser.Browser is done to the static resource introduced in the page
Local cache, when being again turned on the page, browser can be directly using the static resource in caching, it is not necessary to again by
Network goes to download new static resource.
Web application generally has frequently iteration renewal, and when needing to be updated web application, Web should
It can be updated accordingly with the static resource in program.When testing web application, if in browser rs cache
Static resource be renewal before, then the page loaded out is not just the page required for tester, is caused to tester
Inconvenience, while reduce testing efficiency.
The content of the invention
Based on this, it is necessary to for above-mentioned technical problem, there is provided one kind can be carried out conveniently to web application
Test and the method for testing and device of the web application of testing efficiency can be effectively improved.
A kind of method of testing of web application, methods described include:
Receive page open request, the domain name pre-set according to the page open acquisition request;
The request that timestamp is added to the static resource in domain name is sent to server;
The static resource after addition timestamp is pulled from server according to page open request;
The static resource after the addition timestamp is loaded, obtains test page corresponding to web application.
In one of the embodiments, it is described obtain test page corresponding to web application after, in addition to:
The form data inputted in test page is obtained, the form data is preserved to local;
When loading the test page again, instruction is inserted in reception;
According to it is described insert instruction will be stored in local form data insert corresponding in list.
In one of the embodiments, it is described obtain test page corresponding to web application after, in addition to:
Receive and import instruction;
Instruction importing shell script is imported according to described;
Form data is inserted in multiple test pages using the shell script, and is performed in multiple test pages
Corresponding operating, web application is tested automatically.
In one of the embodiments, addition timestamp is pulled from server according to page open request described
After static resource afterwards, in addition to:
Static resource after the addition timestamp is cached to local;
Respond right mouse button operation or preset quick key operation, show shortcut menu, the shortcut menu is included clearly
Except the quick option of caching;
Respond to the clicking operation for removing the quick option of caching, the static state after the addition timestamp of local cache is provided
Source is purged.
In one of the embodiments, it is described obtain test page corresponding to web application after, in addition to:
Obtain the interface data transmitted between browser and server;
Judge the preset characters or preset characters string for whether including malicious code in the interface data;
If so, then prompt message corresponding to generation, and show the prompt message.
In one of the embodiments, the interface data includes personal information, in the acquisition browser and server
Between after the interface data that transmits, in addition to:
Judge whether include mask character in the personal information;
If it is not, then prompt message corresponding to generation, and show the prompt message.
In one of the embodiments, after the interface data transmitted between the acquisition browser and server, also
Including:
Count response time of the multiple interfaces of browser in preset time period;
Interface of the response time beyond preset value is defined as slow interface, generates slow interface record;
The slow interface record is sent to server.
A kind of test device of web application, described device include:
Receiving module, for receiving page open request;
Acquisition module, for the domain name pre-set according to the page open acquisition request;
Sending module, the request of timestamp is added to the static resource in domain name for being sent to server;
The acquisition module is additionally operable to be pulled from server according to page open request quiet after addition timestamp
State resource;
Load-on module, for loading the static resource after the addition timestamp, obtain testing corresponding to web application
The page.
In one of the embodiments, the acquisition module is additionally operable to obtain the form data inputted in test page;
Described device also includes:
Preserving module, for the form data to be preserved to local;
The receiving module is additionally operable to when loading the test page again, and instruction is inserted in reception;
Insert module, for inserted according to instruction will be stored in local form data insert corresponding in list.
In one of the embodiments, the receiving module, which is additionally operable to receive, imports instruction;
Described device also includes:
Import modul, for importing instruction importing shell script according to described;Using the shell script in multiple tests
Form data is inserted in the page, and performs the corresponding operating in multiple test pages, web application is surveyed automatically
Examination.
The method of testing and device of above-mentioned web application, after page open request is received, it can be beaten according to the page
The domain name that acquisition request is pre-set is opened, and is sent to server and asking for timestamp is added to the static resource in the domain name
Ask, with this so that server adds timestamp to the static resource in the domain name.After pulling addition timestamp in the server
Static resource, be loaded directly into add timestamp after static resource, thus obtain test page corresponding to web application.
In whole process, the static resource loaded is not to be obtained from browser rs cache, but directly from server pull
, and it with the addition of timestamp from the static resource of server pull, it can be ensured that every time can be from server pull to newest
Static resource.So as to when web application is tested, can conveniently obtain required test page, and can
Effectively improve testing efficiency.
Brief description of the drawings
Fig. 1 is the applied environment figure of the method for testing of web application in one embodiment;
Fig. 2 is the flow chart of the method for testing of web application in one embodiment;
Fig. 3 is the schematic diagram of test page in one embodiment;
Fig. 4 is the schematic diagram of shortcut menu in one embodiment;
Fig. 5 is the structural representation that terminal is tested in one embodiment.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, not
For limiting the present invention.
In one embodiment, as shown in Figure 1, there is provided in a kind of application environment of the method for testing of web application.
Test terminal 102 is connected by network with server 104.Browser and browser plug-in have been run in test terminal 102.Service
Web application has been run in device 104.It is clear when tester opens test page corresponding to web application by browser
Device of looking at obtains the domain name pre-set.Browser plug-in adds according to the domain name generation pre-set to the static resource in domain name
The request of timestamp.Browser sends the request to the static resource addition timestamp in domain name to server 104.Server
104 receive the request that timestamp is added to the static resource in domain name, and the static resource in the domain name is added according to the request
Add corresponding timestamp.Browser pulls the static resource after addition timestamp in server 104, and loads the addition time
Static resource after stamp, test page corresponding to web application is shown in test terminal 102.
In one embodiment, as shown in Figure 2, there is provided a kind of method of testing of web application, apply in this way
Illustrate, specifically include exemplified by terminal is tested:
202, receive page open request, the domain name pre-set according to page open acquisition request.
Browser and browser plug-in have been run in test terminal.Wherein, browser can support that Chrome is (a kind of clear
Look at device) a variety of browsers of kernel.Browser plug-in can be pre-installed to test terminal.Browser plug-in relies on browser
To realize its function.
When tester opens test page corresponding to web application by browser, browser is obtained and pre-set
Domain name.The domain name pre-set refers to domain name corresponding to web application that needs are tested.Tester can be by browsing
Device plug-in unit is configured.The domain name pre-set can be considered as white list corresponding to Web application tests.
204, the request that timestamp is added to the static resource in domain name is sent to server.
Static resource refers to CSS (Cascading Style Sheets, CSS, the Yi Zhongji quoted in the page
Calculation machine language) file, a kind of Javascript (literal translation formula script) files and CSS the files picture, the text such as video that need
Part.The page includes HTML (HyperText Markup Language, the HyperText Markup Language) page, Web page and .NET
(a kind of computer language) page etc., wherein, html page can be HTML5 (HTML the 5th edition) page.
Browser plug-in adds the request of timestamp according to the domain name generation pre-set to the static resource in domain name.It is clear
Device of looking at sends the request that timestamp is added to the static resource in domain name to server.Server receives to be provided to the static state in domain name
The request of timestamp is added in source, and according to the request to timestamp corresponding to the static resource addition in the domain name.Timestamp can
With time or the server of to be browser to server the send request that timestamp is added to the static resource in domain name
The time of request or the time of static resource renewal to the static resource addition timestamp in domain name are received, also
It can be version number of static resource etc..Static resource in domain name is corresponding static resource after web application renewal.It is logical
Cross and timestamp is added to static resource, it can be ensured that browser is pulled from server to newest static resource.
206, the static resource after addition timestamp is pulled from server according to page open request.
208, the static resource after timestamp is added in loading, obtains test page corresponding to web application.
Browser asks to pull the static resource after adding timestamp from server according to page open, and loads and add
Static resource after adding timestamp, thus obtain test page corresponding to web application.Because browser is from clothes every time
The static resource after addition timestamp is pulled on business device, therefore newest static resource can be pulled, loads out Web application journeys
Newest test page corresponding to sequence.
In the present embodiment, after page open request is received, it can be pre-set according to page open acquisition request
Domain name, and the request that timestamp is added to the static resource in the domain name is sent to server, with this so that server is to this
Static resource addition timestamp in domain name.The static resource after addition timestamp is pulled in the server, is loaded directly into adding
Static resource after adding timestamp, thus obtain test page corresponding to web application.In whole process, loaded
Static resource is not to be obtained from browser rs cache, but directly from server pull, and from server pull
Static resource with the addition of timestamp, it can be ensured that every time can be from server pull to newest static resource.So as to be answered in Web
During with program test, required test page can be conveniently obtained, and testing efficiency can be effectively improved.
In one embodiment, after test page corresponding to web application is obtained, in addition to:Acquisition is being tested
The form data inputted in the page, form data is preserved to local;When loading test page again, instruction is inserted in reception;
According to insert instruction will be stored in local form data insert corresponding in list.
In the present embodiment, list refers to be used for the text box, list box and other domains for inputting and selecting information on webpage.When
When user operates to list, for example, user's registration, login, information submission and inquiry etc., it is possible to achieve user and Web
Interaction between application program.
Browser plug-in installation after, multiple operational controls are shown in test page, including preserve, insert, deleting and
Import etc..As shown in figure 3, multiple operational controls are shown in the lower right corner of test page.Tester is in test page to table
Singly operated, input form data.Browser plug-in obtains form data, receives tester by testing terminal and clicks on guarantor
Control is deposited, sends preservation instruction, browser plug-in, which receives, preserves instruction, and preserves form data to this according to instruction is preserved
Ground.When loading the test page again, browser plug-in receives tester and inserts control by testing terminal click, sends
Insert instruction, browser plug-in is received and inserts instruction, and local form data is stored according to instruction acquisition is inserted, and by list
Data are inserted in corresponding list.
Traditional browser plug-in can also be automatically saved to browser rs cache to form data, when user in the page it is defeated
When entering form data, if the form data of this input of user is identical with the form data preserved before, browser plug-in
The form data that input preserves before can be prompted the user whether, and is that the list number preserved before is obtained from browser rs cache
According to.Because the path of browser rs cache is complicated, carrying out deletion action to the form data preserved before can bring inconvenience.
In the present embodiment, when test page is loaded again, tester is in test page without inputting table again
Forms data, browser plug-in receives insert instruction after, you can according to insert instruction obtain be stored in local form data, and
Form data is inserted in corresponding list.So that form data to insert operation simpler and more direct, so as to further improving
The testing efficiency of web application.
During the form data inputted in test page, browser plug-in is needed after receiving preservation instruction, just can be to table
Forms data is preserved, and is stored in local.Being stored in local path can pre-set, and thus facilitating can list number
According to the operation such as being inquired about or deleted.If in addition, need to input new form data in test page, tester can be with
Click on and delete control, send deletion instruction, browser plug-in, which receives, deletes instruction, and local table will be stored according to instruction is deleted
Forms data is quickly deleted.
Further, when test page is loaded again, if the form data that this needs inputs is with being stored in local
Form data part it is identical, tester can also modify to form data manually.
In one embodiment, after test page corresponding to web application is obtained, in addition to:Importing is received to refer to
Order;Shell script is imported according to importing to instruct;Form data is inserted in multiple test pages using shell script, and is performed
Corresponding operating in multiple test pages, web application is tested automatically.
, can be in multiple surveys after having tested test page corresponding to web application and normally having shown in the present embodiment
Form data is continuously automatically filled in the examination page.Specifically, tester clicks on importing control shown in Fig. 3 by testing terminal
Part, importing instruction is sent, browser plug-in, which receives, imports instruction, and the shell script finished writing in advance is imported.Utilize the pin
This program is automatically filled in form data in multiple test pages, and can perform the corresponding operating in multiple pages.For example,
In the test page that user logs in, shell script can insert user login information in list, and perform register.Log in
After success, in transfer page, shell script can insert transfer amounts and secret number in expression, and perform submission behaviour
Make.Submit successfully, then the page after display is transferred accounts.Thus, the automatic test of web application is completed.In multiple test pages
In, tester need not be manually entered form data, and form data is automatically filled in by shell script, and realizing should to Web
With the automatic test of program.Thus testing efficiency is further increased.
In one embodiment, the static resource after addition timestamp is pulled from server according to page open request
Afterwards, in addition to:Static resource after addition timestamp is cached to local;Shortcut is preset in the operation of response right mouse button
Operation, shortcut menu is shown, shortcut menu, which includes removing, caches quick option;Respond the click that quick option is cached to removing
Operation, the static resource after the addition timestamp of local cache is purged.
In the present embodiment, browser asks to pull the static resource after adding timestamp from server according to page open
Afterwards, the static resource after addition timestamp can be cached to local.Tester's a mouse click right button, or by lower keyboard
Default shortcut, browser plug-in response right mouse button operation or preset quick key operation, show shortcut menu, such as Fig. 4
It is shown.Multiple quick options are shown in shortcut menu, quick option is cached including removing.Tester, which clicks on to remove, to delay
Quick option is deposited, browser plug-in response caches the clicking operation of quick option to removing, by the addition timestamp of local cache
Static resource afterwards is quickly removed.If it is desired to static resource in traditional browser rs cache is deleted, it is necessary in taskbar
In find internet option, open the window of Internet attributes, deleted manually in the window quiet in browser rs cache
State resource.In the present embodiment, quick option is cached due to the addition of to remove in shortcut menu, therefore need to only click on removing caching
Quick option, you can quickly removed the static resource after the addition timestamp of local cache, operation is succinct, to tester
Member brings conveniently.
Traditional mode, if being automatically filled in form data in test page using test software, test software is very
It is huge, can the more resource of engaged test terminal.In the present embodiment, the size of browser plug-in will than traditional test software
Small, the form data that multiple test pages are performed using browser plug-in is automatically filled in, it is not necessary to which engaged test terminal is more
Resource.And browser plug-in is in multiple test pages when inserting form data, if it find that it is abnormal, frame can be played and carried
Show.The bullet frame can share with web application, can be considered as a part for web application.
In one embodiment, after test page corresponding to web application is obtained, in addition to:Obtain browser
The interface data transmitted between server;Judge the preset characters or preset characters for whether including malicious code in interface data
String;If so, then prompt message corresponding to generation, and show prompt message.
In the present embodiment, browser plug-in obtains multiple interfaces of browser, and obtains between browser and server
The interface data transmitted by multiple interfaces.Interface data can be the interface data that browser uploads onto the server, can also
It is the interface data that browser pulls from server.Browser plug-in judges whether include malicious code in interface data
Preset characters or preset characters string.Malicious code refers to the code to that can bring danger.For example, malicious code be XSS attack (again
Referred to as Cross Site Script, abbreviation CSS, cross-site scripting attack), then preset characters can be angle brackets or quotation marks etc..
If interface data includes malicious code, then it represents that certain risk be present, prompt message corresponding to browser plug-in generation, and
Information is will be prompted to be shown.The form that prompt message can play frame is shown.For example, in the lower right corner bullet frame of test page
Show prompt message.Whether include the preset characters or preset characters string of malicious code in interface data by detecting, so that
Security breaches are found in test process in time, effectively increase the security of web application.
Further, when interface data is the interface data that browser uploads onto the server, if browser plug-in exists
Judge that interface data includes the preset characters or preset characters string of malicious code, browser plug-in docking port data are carried out
Intercept, and prompt message corresponding to generation.
In one embodiment, interface data includes personal information, and what is transmitted between acquisition browser and server connects
After mouth data, in addition to:Judge whether include mask character in personal information;If it is not, prompt message corresponding to then generating, and
Show prompt message.
In the present embodiment, browser plug-in can also dock in addition to detecting and whether including malicious code in interface data
Personal information in mouth data is detected.Personal information includes name, passport NO., telephone number, Bank Account Number etc..Specifically
, browser plug-in obtains the personal information in interface data, judges whether include mask character in personal information.Utilize mask
Character can shield to the partial content in personal information, to prevent the personal information of user compromised, protect user's
Individual privacy.For example, mask character can be * etc..If not including mask character in personal information, corresponding prompt is generated
Information, and show the prompt message.The form that prompt message can play frame is shown.For example, in the lower right corner of test page
Play frame displaying prompt message.By detecting in personal information whether include mask character, therefore personal information can be found in time
Compromised risk, effectively increase the security of web application.
Further, when interface data is the interface data that browser uploads onto the server, browser plug-in is judging
Going out does not include mask character in personal information, browser plug-in intercepts to personal information, and generates corresponding prompting letter
Breath.
In one embodiment, after the interface data transmitted between browser and server is obtained, in addition to:Statistics
Response time of the multiple interfaces of browser in preset time period;Interface of the response time beyond preset value is defined as connecing slowly
Mouthful, generate slow interface record;Slow interface record is sent to server.
In the present embodiment, browser plug-in obtains multiple interfaces of browser, obtains and passes through between browser and server
The interface data of multiple interface transmission, and browser plug-in can count response time of multiple interfaces in preset time period.
Preset time period can be one week or one day etc..Browser plug-in is ranked up to the response time of multiple interfaces, will be responded
Time records beyond the interface of preset value as slow interface, and to slow interface, generates slow interface record.Browser will connect slowly
Mouth record is sent to server.Thus, it is possible to help developer to improve browser interface in time, thus improving Web should
With the performance of program.
In one embodiment, as shown in Figure 5, there is provided one kind test terminal, including the place connected by system bus
Manage device, built-in storage, non-volatile memory medium, network interface, display screen and input unit.The non-volatile of the terminal is deposited
A kind of test device of web application is stored with storage media, conveniently web application is surveyed for realizing
Examination.The processor of the test terminal is used to provide calculating and control ability, is configured as performing a kind of test of web application
Method.The display screen of the terminal can be LCDs or electric ink display screen etc., and the input unit of the terminal can be with
It is external keyboard, Trackpad or mouse etc..The terminal can be desktop computer, can also notebook personal computer.
In one embodiment, there is provided a kind of test device of web application, including:Receiving module, obtain mould
Block, sending module and load-on module, wherein:
Receiving module, for receiving page open request.
Acquisition module, for the domain name pre-set according to page open acquisition request.
Sending module, the request of timestamp is added to the static resource in domain name for being sent to server.
Acquisition module is additionally operable to pull the static resource after addition timestamp from server according to page open request.
Load-on module, for loading the static resource after adding timestamp, obtain test sheets corresponding to web application
Face.
In one embodiment, acquisition module is additionally operable to obtain the form data inputted in test page;The device is also
Including:Preserving module and module is inserted, wherein:
Preserving module, for form data to be preserved to local.
Receiving module is additionally operable to when loading test page again, and instruction is inserted in reception.
Insert module, for according to insert instruction will be stored in local form data insert corresponding in list.
In one embodiment, receiving module, which is additionally operable to receive, imports instruction;The device also includes:Import modul, it is used for
Shell script is imported according to importing to instruct;Form data is inserted in multiple test pages using shell script, and is performed more
Corresponding operating in individual test page, web application is tested automatically.
In one embodiment, the device also includes:Cache module, quick respond module and removing module, wherein:
Cache module, for the static resource after addition timestamp to be cached to local.
Quick respond module, for responding right mouse button operation or presetting quick key operation, shortcut menu is shown, fast
Menu, which includes removing, caches quick option.
Removing module, the clicking operation of quick option is cached to removing for responding, by the addition timestamp of local cache
Static resource afterwards is purged.
In one embodiment, acquisition module is additionally operable to obtain the interface data transmitted between browser and server;Should
Device also includes:Judge module and reminding module, wherein:
Judge module, for the preset characters or preset characters string for judging whether to include malicious code in interface data.
Reminding module, if including the preset characters or preset characters string of malicious code for interface data, generation pair
The prompt message answered, and show prompt message.
In one embodiment, interface data includes personal information, judge module be additionally operable to judge in personal information whether
Including mask character;If reminding module is additionally operable in personal information not include mask character, prompt message corresponding to generation, and
Show prompt message.
In one embodiment, the device also includes:Statistical module and logging modle, wherein:
Statistical module, for counting response time of the multiple interfaces of browser in preset time period.
Logging modle, for interface of the response time beyond preset value to be defined as into slow interface, generate slow interface record.
Sending module is additionally operable to send slow interface record to server.
Each technical characteristic of above example can be combined arbitrarily, to make description succinct, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, lance is not present in the combination of these technical characteristics
Shield, all it is considered to be the scope of this specification record.
Above example only expresses the several embodiments of the present invention, and its description is more specific and detailed, but can not
Therefore it is construed as limiting the scope of the patent.It should be pointed out that for the person of ordinary skill of the art,
On the premise of not departing from present inventive concept, various modifications and improvements can be made, these belong to protection scope of the present invention.
Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (10)
1. a kind of method of testing of web application, methods described include:
Receive page open request, the domain name pre-set according to the page open acquisition request;
The request that timestamp is added to the static resource in domain name is sent to server;
The static resource after addition timestamp is pulled from server according to page open request;
The static resource after the addition timestamp is loaded, obtains test page corresponding to web application.
2. according to the method for claim 1, it is characterised in that obtain test page corresponding to web application described
Afterwards, in addition to:
The form data inputted in test page is obtained, the form data is preserved to local;
When loading the test page again, instruction is inserted in reception;
According to it is described insert instruction will be stored in local form data insert corresponding in list.
3. according to the method for claim 1, it is characterised in that obtain test page corresponding to web application described
Afterwards, in addition to:
Receive and import instruction;
Instruction importing shell script is imported according to described;
Form data is inserted in multiple test pages using the shell script, and is performed corresponding in multiple test pages
Operation, is tested web application automatically.
4. according to the method for claim 1, it is characterised in that asked described according to the page open from server
After pulling the static resource after addition timestamp, in addition to:
Static resource after the addition timestamp is cached to local;
Respond right mouse button operation or preset quick key operation, show shortcut menu, it is slow that the shortcut menu includes removing
Deposit quick option;
Respond to the clicking operation for removing the quick option of caching, the static resource after the addition timestamp of local cache is entered
Row is removed.
5. according to the method for claim 1, it is characterised in that obtain test page corresponding to web application described
Afterwards, in addition to:
Obtain the interface data transmitted between browser and server;
Judge the preset characters or preset characters string for whether including malicious code in the interface data;
If so, then prompt message corresponding to generation, and show the prompt message.
6. according to the method for claim 5, it is characterised in that the interface data includes personal information, in the acquisition
After the interface data transmitted between browser and server, in addition to:
Judge whether include mask character in the personal information;
If it is not, then prompt message corresponding to generation, and show the prompt message.
7. according to the method for claim 5, it is characterised in that what is transmitted between the acquisition browser and server connects
After mouth data, in addition to:
Count response time of the multiple interfaces of browser in preset time period;
Interface of the response time beyond preset value is defined as slow interface, generates slow interface record;
The slow interface record is sent to server.
8. a kind of test device of web application, it is characterised in that described device includes:
Receiving module, for receiving page open request;
Acquisition module, for the domain name pre-set according to the page open acquisition request;
Sending module, the request of timestamp is added to the static resource in domain name for being sent to server;
The acquisition module is additionally operable to pull the static money after addition timestamp from server according to page open request
Source;
Load-on module, for load it is described addition timestamp after static resource, obtain test sheets corresponding to web application
Face.
9. device according to claim 8, it is characterised in that it is defeated in test page that the acquisition module is additionally operable to acquisition
The form data entered;
Described device also includes:
Preserving module, for the form data to be preserved to local;
The receiving module is additionally operable to when loading the test page again, and instruction is inserted in reception;
Insert module, for inserted according to instruction will be stored in local form data insert corresponding in list.
10. device according to claim 8, it is characterised in that the receiving module, which is additionally operable to receive, imports instruction;
Described device also includes:
Import modul, for importing instruction importing shell script according to described;Using the shell script in multiple test pages
In insert form data, and perform the corresponding operating in multiple test pages, web application tested automatically.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610460501.7A CN107526678B (en) | 2016-06-22 | 2016-06-22 | Web application program testing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610460501.7A CN107526678B (en) | 2016-06-22 | 2016-06-22 | Web application program testing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107526678A true CN107526678A (en) | 2017-12-29 |
CN107526678B CN107526678B (en) | 2020-08-25 |
Family
ID=60734167
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610460501.7A Active CN107526678B (en) | 2016-06-22 | 2016-06-22 | Web application program testing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107526678B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110808877A (en) * | 2019-10-30 | 2020-02-18 | 深圳前海环融联易信息科技服务有限公司 | Statistical analysis method and device based on interface response duration and computer equipment |
CN110888812A (en) * | 2019-11-26 | 2020-03-17 | 国核自仪系统工程有限公司 | System and method for testing response time of terminal page |
CN113448835A (en) * | 2020-09-25 | 2021-09-28 | 北京新氧科技有限公司 | Static resource testing method and device, electronic equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040267702A1 (en) * | 2003-06-30 | 2004-12-30 | Chaparral Network Storage, Inc. | Selective file caching method |
CN101118515A (en) * | 2007-09-11 | 2008-02-06 | 腾讯科技(深圳)有限公司 | Automatically testing method and apparatus for list |
CN101369271A (en) * | 2007-08-17 | 2009-02-18 | 徐萍 | Automatic filling mark module and its browser assembly |
CN102184204A (en) * | 2011-04-28 | 2011-09-14 | 常州大学 | Auto fill method and system of intelligent Web form |
CN103377064A (en) * | 2012-04-28 | 2013-10-30 | 阿里巴巴集团控股有限公司 | Page script loading method and page script loading device |
CN104636374A (en) * | 2013-11-11 | 2015-05-20 | 腾讯科技(深圳)有限公司 | Browser webpage displaying method and browser |
CN105068806A (en) * | 2015-08-07 | 2015-11-18 | 北京思特奇信息技术股份有限公司 | Browser cache control method and system |
-
2016
- 2016-06-22 CN CN201610460501.7A patent/CN107526678B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040267702A1 (en) * | 2003-06-30 | 2004-12-30 | Chaparral Network Storage, Inc. | Selective file caching method |
CN101369271A (en) * | 2007-08-17 | 2009-02-18 | 徐萍 | Automatic filling mark module and its browser assembly |
CN101118515A (en) * | 2007-09-11 | 2008-02-06 | 腾讯科技(深圳)有限公司 | Automatically testing method and apparatus for list |
CN102184204A (en) * | 2011-04-28 | 2011-09-14 | 常州大学 | Auto fill method and system of intelligent Web form |
CN103377064A (en) * | 2012-04-28 | 2013-10-30 | 阿里巴巴集团控股有限公司 | Page script loading method and page script loading device |
CN104636374A (en) * | 2013-11-11 | 2015-05-20 | 腾讯科技(深圳)有限公司 | Browser webpage displaying method and browser |
CN105068806A (en) * | 2015-08-07 | 2015-11-18 | 北京思特奇信息技术股份有限公司 | Browser cache control method and system |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110808877A (en) * | 2019-10-30 | 2020-02-18 | 深圳前海环融联易信息科技服务有限公司 | Statistical analysis method and device based on interface response duration and computer equipment |
CN110888812A (en) * | 2019-11-26 | 2020-03-17 | 国核自仪系统工程有限公司 | System and method for testing response time of terminal page |
CN110888812B (en) * | 2019-11-26 | 2023-11-07 | 国核自仪系统工程有限公司 | Test system and test method for response time of terminal page |
CN113448835A (en) * | 2020-09-25 | 2021-09-28 | 北京新氧科技有限公司 | Static resource testing method and device, electronic equipment and storage medium |
CN113448835B (en) * | 2020-09-25 | 2023-10-20 | 北京新氧科技有限公司 | Static resource testing method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107526678B (en) | 2020-08-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10701030B2 (en) | Real-time monitoring of web page code | |
US10243679B2 (en) | Vulnerability detection | |
Aggarwal et al. | An analysis of private browsing modes in modern browsers | |
Grossman | XSS attacks: cross site scripting exploits and defense | |
Ter Louw et al. | {AdJail}: Practical Enforcement of Confidentiality and Integrity Policies on Web Advertisements | |
US9712560B2 (en) | Web page and web browser protection against malicious injections | |
US8898796B2 (en) | Managing network data | |
US11797636B2 (en) | Intermediary server for providing secure access to web-based services | |
West et al. | Analysis of privacy and security in HTML5 web storage | |
US20090049120A1 (en) | Adding personalized value to web sites | |
US8621613B1 (en) | Detecting malware in content items | |
US8880993B2 (en) | Handling unexpected responses to script executing in client-side application | |
DE202014010889U1 (en) | Priority static hosted web applications | |
WO2008063336A2 (en) | Protection against phishing | |
US10129278B2 (en) | Detecting malware in content items | |
Bauer et al. | Analyzing the dangers posed by Chrome extensions | |
CN107526678A (en) | The method of testing and device of web application | |
Franken et al. | Exposing cookie policy flaws through an extensive evaluation of browsers and their extensions | |
Bui et al. | Xss vulnerabilities in cloud-application add-ons | |
CN115481413A (en) | File processing method and device, electronic equipment and storage medium | |
CN114237678A (en) | Component updating method and device, storage medium and computer equipment | |
CN111368231B (en) | Method and device for testing heterogeneous redundancy architecture website | |
CN113590564A (en) | Data storage method and device, electronic equipment and storage medium | |
Ceballos Delgado et al. | FADE: A forensic image generator for android device education | |
US11870806B1 (en) | Phishing attack training systems and methods |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |