CN101847124A - Method for realizing browser testing and browser testing system - Google Patents

Method for realizing browser testing and browser testing system Download PDF

Info

Publication number
CN101847124A
CN101847124A CN201010191824A CN201010191824A CN101847124A CN 101847124 A CN101847124 A CN 101847124A CN 201010191824 A CN201010191824 A CN 201010191824A CN 201010191824 A CN201010191824 A CN 201010191824A CN 101847124 A CN101847124 A CN 101847124A
Authority
CN
China
Prior art keywords
case
browser testing
browser
testing use
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201010191824A
Other languages
Chinese (zh)
Inventor
罗笑南
陈锦维
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
GUANGZHOU ZHONGHENG ELECTRONIC TECHNOLOGY Co Ltd
Sun Yat Sen University
National Sun Yat Sen University
Original Assignee
GUANGZHOU ZHONGHENG ELECTRONIC TECHNOLOGY Co Ltd
National Sun Yat Sen University
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 GUANGZHOU ZHONGHENG ELECTRONIC TECHNOLOGY Co Ltd, National Sun Yat Sen University filed Critical GUANGZHOU ZHONGHENG ELECTRONIC TECHNOLOGY Co Ltd
Priority to CN201010191824A priority Critical patent/CN101847124A/en
Publication of CN101847124A publication Critical patent/CN101847124A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a method for realizing browser testing. The method comprises the following steps of: registering a browser test case in a test case library; calling a corresponding browser testing site according to the browser test case to run the registered browser test case and generate a test case report; and returning the test case report to a user interface. The invention also discloses a browser testing system. By implementing the method, the efficiency of testing the browser is greatly increased and the test result has high reliability.

Description

A kind of method and browser testing system that realizes browser testing
Technical field
The present invention relates to the computer software testing field, more specifically, the method that relates to a kind of browser testing system and browser is tested.
Background technology
In most of browser testings, when developer's test case that has been webpage development, comprise will test contents so that check whether this content is normally provided by browser, the browser testing of the test case of final exploitation is artificial in such a way the execution, be that test case is provided for the tester, and the tester obtains visit to corresponding test case individually by browser, and will rely on the outcome record that obtains by browser testing in the test tabulation.
Need one by one each website of accessing and check shown information by the test of the artificial browser of carrying out of tester.Therefore, because the moving of each webpage, so just pretty troublesome and will be with a lot of selection of time mouses and enter key or wait loaded web page.In addition, if change has taken place for operation flow adjustment or some interface elements used, just must record use-case again, workload is big, lacks dirigibility.
In addition, because the test tabulation should be prepared according to corresponding test case, just be difficult to use effectively and preserve the browser testing record.And, owing to the hand-written information that will rely on, just be difficult to guarantee result's reliability to test.In at present known test macro, processing mode about the data information of browser testing, the test result that can only on the client devices of test, show this time, other people can't see this test result report in other equipment, and if when being manufactured with test report summarized results about a certain product, then need be in artificial mode, manually be input to test result each time in the database, carry out the processing of data information again, therefore can't be handled in a kind of mode of real-time processing test result data data.
Summary of the invention
The present invention proposes a kind of browser testing system and method thereof, to solve big, the problems such as efficient is low, the wasting of resources of test job amount among the browser manual testing.
In order to realize goal of the invention, the embodiment of the invention provides a kind of method that realizes browser testing, and described method comprises:
Registration browser testing use-case in test case library;
Call the browser testing use-case that pairing browser testing website operation is registered according to the browser testing use-case, and generate the test case report;
Described test case report is returned to user interface.
The described browser testing use-case of registering in test case library comprises:
Receive login request of users;
After logging request is passed through, receive the browser testing use-case that the user sends;
Judge whether described browser testing use-case meets the format specification of browser testing use-case;
If described browser testing use-case does not meet the format specification of browser testing use-case, do not accept the user and in test case library, register described browser testing use-case; If described browser testing use-case meets the format specification of described browser testing use-case, then accept described user and in test case library, register described browser testing use-case, and in test case library, store described browser testing use-case.
Described method also comprises:
In test case library, be provided with the linking point of at least one browser testing website in advance; Wherein: call the browser testing use-case that pairing browser testing website operation is registered according to the browser testing use-case, and the report of generation test case is specially:
After accepting the test request that the user moves described browser testing use-case, comprise the browser testing website that the user selects in the described test request, automatically the browser page that obtains on the described browser testing website moves the browser testing use-case of described registration, and generates the test case report.
Described method also comprises:
According to the property sort of browser testing use-case and browser testing website, store one or more session according to classification, comprise the result and the expected results that obtain from browser testing.
Correspondingly, the embodiment of the invention also provides a kind of browser testing system, and described browser testing system comprises:
Registering modules is used for receiving the user at test case library registration browser testing use-case;
Memory module is used to store test case library and relevant browser testing site information;
Processing module is used for calling the browser testing use-case that pairing browser testing website operation is registered according to the browser testing use-case, and generates the test case report;
Return module, be used for described test case report is returned to user interface.
Described Registering modules comprises:
The login unit is used to receive login request of users;
Receiving element is used for after logging request is passed through, and receives the browser testing use-case that the user sends;
Judging unit is used to judge whether described browser testing use-case meets the format specification of browser testing use-case;
Processing unit is used for not meeting at described browser testing use-case the format specification of browser testing use-case, does not accept the user and register described browser testing use-case in test case library; The format specification that perhaps meets described browser testing use-case at described browser testing use-case is accepted described user and register described browser testing use-case in test case library, and stores described browser testing use-case in test case library.
Described memory module also is used for receiving the tie point of at least one browser testing website that the user is provided with at test case library in advance, described processing module is after accepting the test request that the user moves described browser testing use-case, comprise the browser testing website that the user selects in the described test request, automatically the browser page that obtains on the described browser testing website moves the browser testing use-case of described registration, and generates the test case report.
Described memory module also is used for storing one or more session according to the property sort according to browser testing use-case and browser testing website according to classification, comprises the result and the expected results that obtain from browser testing.
The embodiment of the invention has following beneficial effect, because the inspection of browser testing use-case in the embodiment of the invention, equal robotization is carried out to call, move, handle in real time that test result data data/report generates etc., need not manual intervention, problems such as the test job amount is big among the browser manual testing, efficient is low, poor reliability, shortage dirigibility, data processing shortage real-time, the wasting of resources have been solved, improved the efficient of browser testing greatly, its test result has high reliability.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the method flow diagram of the realization browser testing in the embodiment of the invention;
Fig. 2 is the browser testing system architecture synoptic diagram in the embodiment of the invention;
Fig. 3 is 201 structural representations of the Registering modules among Fig. 2 in the embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, it only is the present invention's part embodiment that described embodiment is interpreted as, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making all other embodiment that obtained under the creative work prerequisite.
The invention provides a kind of browser testing system and method thereof, can improve the efficient of browser testing and result's reliability greatly.Below be elaborated respectively.
Fig. 1 shows the method flow diagram of the realization browser testing in the embodiment of the invention, comprises the steps:
S101: registration browser testing use-case in test case library;
Concrete, the step here also comprises as follows:
Receive login request of users;
After logging request is passed through, receive the browser testing use-case that the user sends;
Judge whether described browser testing use-case meets the format specification of browser testing use-case;
If described browser testing use-case does not meet the format specification of browser testing use-case, do not accept the user and in test case library, register described browser testing use-case; If described browser testing use-case meets the format specification of described browser testing use-case, then accept described user and in test case library, register described browser testing use-case, and in test case library, store described browser testing use-case.
S102: call the browser testing use-case that pairing browser testing website operation is registered according to the browser testing use-case, and generate the test case report;
Need to prove, before this method, also comprise:
The user is provided with the linking point of at least one browser testing website in advance in test case library;
After accepting the test request that the user moves described browser testing use-case, comprise the browser testing website that the user selects in the described test request, automatically the browser page that obtains on the described browser testing website moves the browser testing use-case of described registration, and generates the test case report
S103: described test case report is returned to user interface.
Need to prove that the embodiment of the invention also needs the property sort according to browser testing use-case and browser testing website, stores one or more session according to classification, comprise the result and the expected results that obtain from browser testing.
Accordingly, Fig. 2 shows the browser testing system architecture synoptic diagram in the embodiment of the invention, comprising:
Registering modules 201 is used for receiving the user at test case library registration browser testing use-case;
Memory module 202 is used to store test case library and relevant browser testing site information;
Processing module 203 is used for calling the browser testing use-case that pairing browser testing website operation is registered according to the browser testing use-case, and generates the test case report;
Return module 204, be used for described test case report is returned to user interface.
Need to prove that the Registering modules 201 here also comprises following plurality of units, specifically as shown in Figure 3:
Login unit 301 is used to receive login request of users;
Receiving element 302 is used for after logging request is passed through, and receives the browser testing use-case that the user sends;
Judging unit 303 is used to judge whether described browser testing use-case meets the format specification of browser testing use-case;
Processing unit 304 is used for not meeting at described browser testing use-case the format specification of browser testing use-case, does not accept the user and register described browser testing use-case in test case library; The format specification that perhaps meets described browser testing use-case at described browser testing use-case is accepted described user and register described browser testing use-case in test case library, and stores described browser testing use-case in test case library.
Need to prove, this memory module 202 also is used for receiving the tie point of at least one browser testing website that the user is provided with at test case library in advance, this processing module 203 is after accepting the test request that the user moves described browser testing use-case, comprise the browser testing website that the user selects in the described test request, automatically the browser page that obtains on the described browser testing website moves the browser testing use-case of described registration, and generates the test case report.
Need to prove that the memory module 202 here also is used for storing one or more session according to the property sort according to browser testing use-case and browser testing website according to classification, comprise the result and the expected results that obtain from browser testing.
In the present embodiment, browser testing system of browser testing system can provide a window that carries out the test case exploitation for the user, the user can use existing editing machine by this window, as text editor, web page editing device or the like, thereby finishes the exploitation of browser testing use-case.After having developed test case, can be at the classification of institute's test browser and formulate corresponding test case standard criterion, whether meet corresponding standard in order to the verification test use-case, if test case compliant, then it is registered in test case library, otherwise, the refusal registration.The test case library here is in fact corresponding to a database, wherein stored and met test specification and test case that pass through registration, also should store information relevant and data, as testing time, input data, output data, test result, expected results etc. with test case.
In the test process that carries out the browser testing use-case, read test use-case from described test case library at first, and call the respective page window that browser is opened tested use-case according to test case, and call browser interface the data in the described test case and the operation import in the subsequent page of described page window and described page window, collect at last by value that obtains in the browser testing and the result that will be worth and export, simultaneously information is write down and writes in the test case library as the test dialogue.
At last, according to user's demand, can be from test case library the read test data, form form, present to the user as test report.
In the present embodiment, at first in test case library, register the test case of compliant, next read test use-case from test case library, judge whether test case accords with the use-case format specification, under incongruent situation, finish test procedure, if conform to the standard, test case is then called the interface that browser provides, parameter in the test case and operation are imported in the page, and the element of the corresponding page obtains parameter in the browser page, can operate element and obtain corresponding operation, after receiving the information of being submitted to and processing, results page is returned browser, and test case obtains results page from browser, opens the page of next procedure, and submission relevant information, up to the test result page that gets to the end, and the content in the judged result page, if obtain correct test result, then this test record in database and be denoted as and test successfully and with the test result record, otherwise be denoted as test crash.
At last, described test result and the expected result that sets in advance are compared and generate test report.
The benefit of this embodiment is, the inspection of browser testing use-case among the embodiment, all robotizations are carried out to call, move, handle in real time that test result data data/report generates etc., need not manual intervention, problems such as the test job amount is big among the browser manual testing, efficient is low, poor reliability, shortage dirigibility, data processing shortage real-time, the wasting of resources have been solved, improved the efficient of browser testing greatly, its test result has high reliability.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of the foregoing description is to instruct relevant hardware to finish by program, this program can be stored in the computer-readable recording medium, storage medium can comprise: ROM (read-only memory) (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc.
More than to the embodiment of the invention provided a kind of browser based on the label conversion, be described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (8)

1. a method that realizes browser testing is characterized in that, described method comprises:
Registration browser testing use-case in test case library;
Call the browser testing use-case that pairing browser testing website operation is registered according to the browser testing use-case, and generate the test case report;
Described test case report is returned to user interface.
2. the method for claim 1 is characterized in that, the described browser testing use-case of registering in test case library comprises:
Receive login request of users;
After logging request is passed through, receive the browser testing use-case that the user sends;
Judge whether described browser testing use-case meets the format specification of browser testing use-case;
If described browser testing use-case does not meet the format specification of browser testing use-case, do not accept the user and in test case library, register described browser testing use-case; If described browser testing use-case meets the format specification of described browser testing use-case, then accept described user and in test case library, register described browser testing use-case, and in test case library, store described browser testing use-case.
3. the method for claim 1 is characterized in that, described method also comprises:
In test case library, be provided with the linking point of at least one browser testing website in advance; Wherein: call the browser testing use-case that pairing browser testing website operation is registered according to the browser testing use-case, and the report of generation test case is specially:
After accepting the test request that the user moves described browser testing use-case, comprise the browser testing website that the user selects in the described test request, automatically the browser page that obtains on the described browser testing website moves the browser testing use-case of described registration, and generates the test case report.
4. as each described method of claim 1 to 3, it is characterized in that described method also comprises:
According to the property sort of browser testing use-case and browser testing website, store one or more session according to classification, comprise the result and the expected results that obtain from browser testing.
5. a browser testing system is characterized in that, described browser testing system comprises:
Registering modules is used for receiving the user at test case library registration browser testing use-case;
Memory module is used to store test case library and relevant browser testing site information;
Processing module is used for calling the browser testing use-case that pairing browser testing website operation is registered according to the browser testing use-case, and generates the test case report;
Return module, be used for described test case report is returned to user interface.
6. browser testing as claimed in claim 5 system is characterized in that described Registering modules comprises:
The login unit is used to receive login request of users;
Receiving element is used for after logging request is passed through, and receives the browser testing use-case that the user sends;
Judging unit is used to judge whether described browser testing use-case meets the format specification of browser testing use-case;
Processing unit is used for not meeting at described browser testing use-case the format specification of browser testing use-case, does not accept the user and register described browser testing use-case in test case library; The format specification that perhaps meets described browser testing use-case at described browser testing use-case is accepted described user and register described browser testing use-case in test case library, and stores described browser testing use-case in test case library.
7. browser testing as claimed in claim 5 system, it is characterized in that, described memory module also is used for receiving the tie point of at least one browser testing website that the user is provided with at test case library in advance, described processing module is after accepting the test request that the user moves described browser testing use-case, comprise the browser testing website that the user selects in the described test request, automatically the browser page that obtains on the described browser testing website moves the browser testing use-case of described registration, and generates the test case report.
8. as each described browser testing system of claim 5 to 7, it is characterized in that, described memory module also is used for according to the property sort according to browser testing use-case and browser testing website, store one or more session according to classification, comprise the result and the expected results that obtain from browser testing.
CN201010191824A 2010-05-31 2010-05-31 Method for realizing browser testing and browser testing system Pending CN101847124A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010191824A CN101847124A (en) 2010-05-31 2010-05-31 Method for realizing browser testing and browser testing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010191824A CN101847124A (en) 2010-05-31 2010-05-31 Method for realizing browser testing and browser testing system

Publications (1)

Publication Number Publication Date
CN101847124A true CN101847124A (en) 2010-09-29

Family

ID=42771749

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010191824A Pending CN101847124A (en) 2010-05-31 2010-05-31 Method for realizing browser testing and browser testing system

Country Status (1)

Country Link
CN (1) CN101847124A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103823754A (en) * 2014-02-11 2014-05-28 深圳市同洲电子股份有限公司 Method and device for realizing automatic testing
CN107957712A (en) * 2016-10-17 2018-04-24 横河电机株式会社 The improved test manager for industrial automatic controller
CN108959066A (en) * 2018-05-21 2018-12-07 千寻位置网络有限公司 A kind of method and system tested automatically, test terminal
CN111104340A (en) * 2019-12-31 2020-05-05 深圳Tcl新技术有限公司 Browser testing method and device and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1521996A (en) * 2003-02-13 2004-08-18 ���ǵ�����ʽ���� Browser testing system and method thereof
US7330887B1 (en) * 2003-01-06 2008-02-12 Cisco Technology, Inc. Method and system for testing web-based applications
CN101135989A (en) * 2006-08-31 2008-03-05 中国银联股份有限公司 Automatization test method and device for Web applied system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7330887B1 (en) * 2003-01-06 2008-02-12 Cisco Technology, Inc. Method and system for testing web-based applications
CN1521996A (en) * 2003-02-13 2004-08-18 ���ǵ�����ʽ���� Browser testing system and method thereof
CN101135989A (en) * 2006-08-31 2008-03-05 中国银联股份有限公司 Automatization test method and device for Web applied system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103823754A (en) * 2014-02-11 2014-05-28 深圳市同洲电子股份有限公司 Method and device for realizing automatic testing
CN107957712A (en) * 2016-10-17 2018-04-24 横河电机株式会社 The improved test manager for industrial automatic controller
CN107957712B (en) * 2016-10-17 2022-05-31 横河电机株式会社 Engineering tool and method for testing process control system
CN108959066A (en) * 2018-05-21 2018-12-07 千寻位置网络有限公司 A kind of method and system tested automatically, test terminal
CN111104340A (en) * 2019-12-31 2020-05-05 深圳Tcl新技术有限公司 Browser testing method and device and readable storage medium

Similar Documents

Publication Publication Date Title
JP7371141B2 (en) Tools and methods for real-time dataflow programming languages
CN106202453B (en) Multimedia resource recommendation method and device
CN110716870B (en) Automatic service testing method and device
CN103092751B (en) Web application performance test system based on customer behavior model in cloud environment
CN102819766A (en) Method, device and enterprise system for checking forms
CN107133174A (en) Test case code automatically generating device and method
CN107526676B (en) Cross-system test method and device
CN110401634A (en) A kind of web application hole detection regulation engine implementation method and terminal
CN102541723A (en) Automated testing device for software testing
CN112035363A (en) Automatic interface testing method and device
CN103326930B (en) Open platform interface automatic detecting method and system
CN101847124A (en) Method for realizing browser testing and browser testing system
CN105009089A (en) Mechanism for facilitating dynamic and efficient management of instruction atomicity volations in software programs at computing systems
CN103995778A (en) Script file generation method and device based on event and action
CN110532182A (en) A kind of automated testing method and device of virtual platform
CN102567186A (en) Automated software testing method
CN101866314A (en) Software testing method and software testing system
CN112860587B (en) UI automatic test method and device
CN105824647A (en) Form page generating method and device
CN103955425A (en) Webpage (WEB) exploring testing device and method
CN109460365A (en) A kind of system performance testing method, apparatus, equipment and storage medium
CN107766230A (en) A kind of method and apparatus tested based on configuration file
CN105426183A (en) Form verification method
CN113495498B (en) Simulation method, simulator, device and medium for hardware device
CN101969576A (en) Digital television page testing system and method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20100929