CN201548954U - Device for automatically testing Web page - Google Patents

Device for automatically testing Web page Download PDF

Info

Publication number
CN201548954U
CN201548954U CN2009201762007U CN200920176200U CN201548954U CN 201548954 U CN201548954 U CN 201548954U CN 2009201762007 U CN2009201762007 U CN 2009201762007U CN 200920176200 U CN200920176200 U CN 200920176200U CN 201548954 U CN201548954 U CN 201548954U
Authority
CN
China
Prior art keywords
test
web page
data
tested
tested object
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.)
Expired - Lifetime
Application number
CN2009201762007U
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN2009201762007U priority Critical patent/CN201548954U/en
Application granted granted Critical
Publication of CN201548954U publication Critical patent/CN201548954U/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The utility model discloses a device for automatically testing a Web page, which comprises a test processing device, a data storage device and a test tool, wherein the test processing device is used for testing and processing the Web page; the data storage device is used for storing object information, a test case and test result data of the Web page to be tested; the test tool is used for browsing the Web page, analyzing contents, controlling the execution process and acquiring mistaken information; both the data storage device and the test tool are connected with the test processing device; and the test tool is connected to a Web system to be tested. By using the device, an input domain object input by the Web page is analyzed; and by adopting a test method based on a Web page object, the test efficiency of the Web page can be greatly improved, the software quality can be effectively improved and the stability and the safety for production of enterprises can be ensured.

Description

A kind of device that the Web page is carried out automatic test
Technical field
The utility model relates to the computer automated testing technical field, particularly relates to a kind of device that the Web page is carried out automatic test.
Background technology
Software test is subjected to paying attention to widely as the gordian technique that guarantees software quality and enterprise's production safety just day by day.The simple manual test that relies on has been difficult to satisfy the requirement that the client improves constantly software quality, and industry adopts the automatic test means to improve testing efficiency, shortens the test duration and saves human cost in continuous research.
But, test for the Web page at present but is difficult to adopt test automation to handle, mainly be because traditional change or add and delete control in Web page elements layout based on recording with the automatization testing technique of compile script, the automatic test script that will cause testing this Web page can't trouble-free operation.
Along with constantly frequent upgrading and the change of Web page versions, the tester just need ceaselessly go to record and revise script again, makes the automatic test course inefficiency, and directly causes the increase of test duration.And, this traditional based on the automatic test mode of recording with compile script, need possess higher technology and experience for the technician who is responsible for recording, frequently carry out recording and write and just needing to drop into of test script, will cause human cost to improve greatly with compile script.
Therefore, traditional can not realize efficient test to the Web page based on recording with the automatization testing technique of compile script, people are constantly studying the new automatization testing technique that can be applicable to the Web page at present.
The utility model content
(1) technical matters that will solve
The utility model needs at present frequent record again and revise test script and cause the low problem of testing efficiency when the Web page is carried out automatic test in order to overcome, a kind of device that the Web page is carried out automatic test is provided, analyze by input domain object the Web page, employing is based on the method for testing of Web page object, improved testing efficiency greatly to the Web page, to effectively improve software quality, ensure the production stability and security of enterprise.
(2) technical scheme
For achieving the above object, the utility model provides a kind of the Web page has been carried out the device of automatic test, and this device comprises:
Be used for the Web page is carried out the test processes device 1 of test processes;
Be used to store the data storage device 2 of object information, test cases and the test result data of the tested Web page; And
Be used for testing tool 3 to the Web page is browsed, the control of Context resolution, implementation and error message are obtained;
Wherein, data storage device 2 and testing tool 3 all are connected in test processes device 1, and testing tool 3 is connected in tested Web system 4.
In the such scheme, described test processes device 1 comes object information, the test cases data message of the Web page in the reading of data memory storage 2 by visit data memory storage 2, and the test result data that test processes obtains is stored in the data storage device 2;
Described test processes device 1 is by the Api interface of visit testing tool 3, call testing tool 3 and realize the processing of bottom work in the test process, the processing of this bottom work comprises that at least the browse operation, Web content of pages of the Web page resolve, and control of Web page operational process and error message are obtained.
In the such scheme, described test processes device 1 comprises Main Processor Unit 20, tested object input block 21, test cases processing unit 22, test controlled processing unit 23, dissection process unit 24 and comparison process unit 25, wherein:
Main Processor Unit 20, be used for calling tested object input block 21, test cases processing unit 22, test controlled processing unit 23, dissection process unit 24 or the comparison process unit 25 of test processes device 1, finish each test processes function of test processes device 1;
Tested object input block 21, the tested object data storage cell 11 that is used for visit data memory storage 2, read all tested object data messages of the tested Web page, comprise sequence number, Web page name, tested object name and tested object recognition property, and the tested object data message that reads is fed back to Main Processor Unit 20;
Test cases processing unit 22, the test cases data storage cell 11 that is used for visit data memory storage 2, read all test cases data of the tested Web page, obtain the tested object data message of importing by tested object input block 21 from Main Processor Unit 20 then, find " the tested object recognition property " of each tested object in the test cases data from the tested object data message respectively, the test cases data that will mate " tested object recognition property " at last feed back to Main Processor Unit 20;
Test controlled processing unit 23 is used to call 3 pairs of test cases data of testing tool and tests;
Dissection process unit 24, be used for resolving the information that reports an error that obtains from the data message of the warning dialog box object, and the information feedback that will report an error gives Main Processor Unit 20, this warning dialog box to as if test controlled processing unit 23 producing of calling that testing tool 3 catches by the Web page;
Comparison process unit 25, be used for obtaining the information that reports an error that parses by dissection process unit 24 from Main Processor Unit 20, and " expected results " in described report an error information and the test cases data compared, if the comparative result unanimity would illustrate the test pass through, the explanation test is not passed through if comparative result is inconsistent, and the result that comparison process unit 25 will compare feeds back to Main Processor Unit 20.
In the such scheme, described Main Processor Unit 20 calls tested object input block 21, test cases processing unit 22, test controlled processing unit 23, dissection process unit 24 or the comparison process unit 25 in the test processes device 1, finish each test processes function of test processes device 1, specifically comprise:
The automatic test processing procedure that Main Processor Unit 20 starts the Web page, call the tested object data message in the tested Web page of tested object input block 21 inputs, call test cases processing unit 22 and carry out the test cases data processing, data in 20 pairs of test cases of Main Processor Unit are carried out test processes one by one then, each bar test cases record data is carried out following processing finishes dealing with up to the test cases data test of the described tested Web page: Main Processor Unit 20 calls 23 pairs of test cases data of test controlled processing unit and carries out test processes, calling the data message of the 24 pairs of the warning dialog box objects in dissection process unit resolves, call the 25 pairs of information of reporting an error in comparison process unit and compare processing, the object information with test stores in the test result storage unit 13 then.
In the such scheme, described test cases data are divided into three kinds: the combination control relation verification of the steering logic verification of the data legitimacy verification of single input domain, single input domain and a plurality of input domains, be stored in respectively among case library A, case library B and the case library C, wherein:
The orderly information that case data among the case library A comprises number, Web page name, tested object name, checking description of contents, input data and expected results;
The orderly information that case data among the case library B comprises number, Web page name, tested object name, checking description of contents, input data and expected results;
The orderly information that case data among the case library C comprises number, Web page name, input domain 1 title, input domain 2 titles, input domain 3 titles, checking description of contents, input domain 1 data, input domain 2 data, input domain 3 data and expected results.
In the such scheme, described test controlled processing unit 23 calls 3 pairs of test cases data of testing tool and tests, and specifically comprises:
Test controlled processing unit 23 calls testing tool 3 and search tested object in the tested Web page, test controlled processing unit 23 is carried out the processing of calling testing tool 3 by the mode of visit testing tool Api interface, and " the tested object recognition property " of each tested object in the test cases data being passed to testing tool 3 by the Api interface, testing tool 3 finds each tested object by " tested object recognition property " in the tested Web page; Behind the tested object in finding the tested Web page, test controlled processing unit 23 calls testing tool 3 test data is input to each tested object, test controlled processing unit 23 is carried out the processing of calling testing tool 3 by the mode of visit testing tool Api interface, and " the input data " of each tested object in the test cases data being passed to testing tool 3 by the Api interface, testing tool 3 is input to " input data " in the described tested object of the tested Web page; After " input data " are input to described tested object, test controlled processing unit 23 calls the warning dialog box object that testing tool 3 is caught Web page output, and test controlled processing unit 23 is carried out the processing of calling testing tool 3 by the mode of visit testing tool Api interface; Testing tool 3 feeds back to test controlled processing unit 23 with the data message of the warning dialog box object, and test controlled processing unit 23 sends to Main Processor Unit 20 with the data message of the warning dialog box object again.
In the such scheme, described data storage device 2 comprises:
Tested object data storage cell 11, the object information that is used to store each tested Web page, this information comprise sequence number, Web page name, tested object name and tested object recognition property at least;
Test cases data storage cell 12, be used to store the test cases data message, this test cases data message comprises following three case libraries at least: the combination control relation verification case library of the steering logic verification case library of the data legitimacy verification case library of single input domain, single input domain and a plurality of input domains;
Test result storage unit 13 is used to store the result data of test processes, comprises Web page name, case library, sequence number, checking description of contents and test result data at least.
In the such scheme, described testing tool 3 is program test instruments of specialty, or the program debugging tool of specialty.
(3) beneficial effect
From technique scheme as can be seen, the utlity model has following beneficial effect:
1, this device that the Web page is carried out automatic test that provides of the utility model, analyze by input domain object the Web page, employing is based on the method for testing of Web page object, having overcome needs when the Web page is carried out automatic test frequent record again and revise test script and cause the low problem of testing efficiency at present, can improve automatic test efficient greatly to the Web page, to effectively improve software quality, ensure the production stability and security of enterprise.
2, this device that the Web page is carried out automatic test that provides of the utility model, solved the problem of the script compatibility, versatility and the reusability difference that exist in the automatic test of the present WEB page, overcome traditional record with the compile script mode under to tester's technical requirement height, the tester carries out the problem that automatic test has certain use difficulty.
3, this device that the Web page is carried out automatic test that provides of the utility model, provide a kind of tester not need to record and write automatic test script, only need simply Web page object attribute to be configured and to write the test cases data, can realize the Web page is carried out the high-efficiency automatic test, improve versatility, reusability, ease for use and the maintainability of automatic test, reduced the cost of human resources of test job.
Description of drawings
Fig. 1 be the utility model provide the Web page is carried out the structural representation of the device of automatic test;
Fig. 2 be the utility model provide the Web page is carried out the structural representation of test processes device in the device of automatic test;
Fig. 3 be the utility model provide the Web page is carried out the structural representation of data storage device in the device of automatic test;
Fig. 4 be the utility model provide the Web page is carried out the method flow diagram of automatic test.
Embodiment
For making the purpose of this utility model, technical scheme and advantage clearer,, and, the utility model is further described with reference to accompanying drawing below in conjunction with specific embodiment.
The utility model provides thisly carries out the device of automatic test to the Web page, analyzes by the input domain object to the Web page, adopts the method for testing based on the Web page object.
For the test of the Web page, carry out equivalence class by the situation that various needs are tested and divide, can mainly be divided into following three kinds:
One, the data legitimacy verification of single input domain.Normally after input domain input test data, cursor focus is left this input domain to this kind, triggers the JavaScript event routine of the page and controls.The data of non-date format have been imported such as the input domain of date type.
Two, the steering logic verification of single input domain.This kind also is that cursor focus is left this input domain after input domain input test data, triggers the JavaScript event routine of the page and controls, and control content is relevant with concrete service logic.Must be such as checking date input domain greater than system's current date.
Three, the control relation of a plurality of input domain combinations.This kind is that the relation between relevant a plurality of input domains is controlled.Such as the condition that need satisfy A+B>=C to three input domains of ABC.
The utility model is by searching and analyze the input domain object in the Web page, be divided into above-mentioned three kinds, set up test cases data respectively based on above-mentioned three kinds, by the test cases data being input in the input domain of the Web page, and catch the warning dialog box object of the Web page, analyze the information that reports an error in the warning dialog box object, the expected results in the information that will report an error again and the test cases data compares, thereby judges whether test is passed through.The utility model has overcome the problem that need frequently record and revise test script when carrying out automatic test originally by adopting the method for testing based on the Web page object, carries testing efficiency greatly.
Specifically describe below with reference to accompanying drawing:
Fig. 1 be the utility model provide the Web page is carried out the structural representation of the device of automatic test, this device comprises:
Be used for the Web page is carried out the test processes device 1 of test processes;
Be used to store the data storage device 2 of object information, test cases and the test result data of the tested Web page; And
Be used for testing tool 3 to the Web page is browsed, the control of Context resolution, implementation and error message are obtained;
Wherein, data storage device 2 and testing tool 3 all are connected in test processes device 1, and testing tool 3 is connected in tested Web system 4.
Test processes device 1 comes object information, the test cases data message of the Web page in the reading of data memory storage 2 by visit data memory storage 2, and the test result data that test processes obtains is stored in the data storage device 2.Test processes device 1 is by the Api interface of visit testing tool 3, call testing tool 3 and realize the processing of bottom work in the test process, the processing of this bottom work comprises that at least the browse operation, Web content of pages of the Web page resolve, and control of Web page operational process and error message are obtained.Testing tool can be the program test instrument of specialty, the debugging acid of specialty etc.
Fig. 2 be the utility model provide the Web page is carried out the structural representation of test processes device in the device of automatic test.Test processes device 1 comprises Main Processor Unit 20, tested object input block 21, test cases processing unit 22, test controlled processing unit 23, dissection process unit 24 and comparison process unit 25, wherein:
Main Processor Unit 20, be used for calling tested object input block 21, test cases processing unit 22, test controlled processing unit 23, dissection process unit 24 or the comparison process unit 25 of test processes device 1, finish each test processes function of test processes device 1.The automatic test processing procedure that Main Processor Unit 20 starts the Web page, call the tested object data message in the tested Web page of tested object input block 21 inputs, call test cases processing unit 22 and carry out the test cases data processing, data in 20 pairs of test cases of Main Processor Unit are carried out test processes one by one then, each bar test cases record data is carried out following processing finishes dealing with up to the test cases data test of the described tested Web page: Main Processor Unit 20 calls 23 pairs of test cases data of test controlled processing unit and carries out test processes, calling the data message of the 24 pairs of the warning dialog box objects in dissection process unit resolves, call the 25 pairs of information of reporting an error in comparison process unit and compare processing, the object information with test stores in the test result storage unit 13 then.
Tested object input block 21, the tested object data storage cell 11 that is used for visit data memory storage 2, read all tested object data messages of the tested Web page, comprise sequence number, Web page name, tested object name and tested object recognition property, and the tested object data message that reads is fed back to Main Processor Unit 20;
Test cases processing unit 22, the test cases data storage cell 11 that is used for visit data memory storage 2, read all test cases data of the tested Web page, obtain the tested object data message of importing by tested object input block 21 from Main Processor Unit 20 then, find " the tested object recognition property " of each tested object in the test cases data from the tested object data message respectively, the test cases data that will mate " tested object recognition property " at last feed back to Main Processor Unit 20.
The test cases data are divided into three kinds: the combination control relation verification of the steering logic verification of the data legitimacy verification of single input domain, single input domain and a plurality of input domains is stored in respectively among case library A, case library B and the case library C.Wherein: the orderly information that the case data among the case library A comprises number, Web page name, tested object name, checking description of contents, input data and expected results; The orderly information that case data among the case library B comprises number, Web page name, tested object name, checking description of contents, input data and expected results; The orderly information that case data among the case library C comprises number, Web page name, input domain 1 title, input domain 2 titles, input domain 3 titles, checking description of contents, input domain 1 data, input domain 2 data, input domain 3 data and expected results.
Test controlled processing unit 23 is used to call 3 pairs of test cases data of testing tool and tests.Test controlled processing unit 23 calls testing tool 3 and search tested object in the tested Web page, test controlled processing unit 23 is carried out the processing of calling testing tool 3 by the mode of visit testing tool Api interface, and " the tested object recognition property " of each tested object in the test cases data being passed to testing tool 3 by the Api interface, testing tool 3 finds each tested object by " tested object recognition property " in the tested Web page; Behind the tested object in finding the tested Web page, test controlled processing unit 23 calls testing tool 3 test data is input to each tested object, test controlled processing unit 23 is carried out the processing of calling testing tool 3 by the mode of visit testing tool Api interface, and by the Api interface with " the input data " of each tested object in the test cases data (for case library C, be input domain 1 data, input domain 2 data and input domain 3 data) pass to testing tool 3, testing tool 3 is input to " input data " in the described tested object of the tested Web page; After " input data " are input to described tested object, test controlled processing unit 23 calls the warning dialog box object that testing tool 3 is caught Web page output, and test controlled processing unit 23 is carried out the processing of calling testing tool 3 by the mode of visit testing tool Api interface; Testing tool 3 feeds back to test controlled processing unit 23 with the data message of the warning dialog box object, and test controlled processing unit 23 sends to Main Processor Unit 20 with the data message of the warning dialog box object again.
Dissection process unit 24, be used for resolving the information that reports an error that obtains from the data message of the warning dialog box object, and the information feedback that will report an error gives Main Processor Unit 20, this warning dialog box to as if test controlled processing unit 23 producing of calling that testing tool 3 catches by the Web page;
Comparison process unit 25, be used for obtaining the information that reports an error that parses by dissection process unit 24 from Main Processor Unit 20, and " expected results " in described report an error information and the test cases data compared, if the comparative result unanimity would illustrate the test pass through, the explanation test is not passed through if comparative result is inconsistent, and the result that comparison process unit 25 will compare feeds back to Main Processor Unit 20.
Fig. 3 be the utility model provide the Web page is carried out the structural representation of data storage device in the device of automatic test, data storage device 2 comprises tested object data storage cell 11, test cases data storage cell 12 and test result storage unit 13, wherein:
Tested object data storage cell 11, the object information that is used to store each tested Web page, this information comprise sequence number, Web page name, tested object name and tested object recognition property at least, and the form of its data storage is shown in following Example:
Sequence number Web page name The tested object name Tested object recognition property (as: name)
1 Ta5 Ta5001 Date
2 Ta5 Ta5002 Total charge
3 Ta5 Ta5003 Avail
4 Ta5 Ta5004 Reserved amount
Wherein: Web page name refers to the title of the tested Web page;
The tested object name refers to the title of input domain control tested in the Web page, as the territory on input date, and the territory of the input amount of money etc., these input domains will be the objects that need test;
But the tested object recognition property refers to the recognition property of tested object, can be used on by this recognition property and finds this tested object in the Web page, as the name attribute of tested object.
Test cases data storage cell 12, be used to store the test cases data message, this test cases data message comprises following three case libraries at least: the combination control relation verification case library of the steering logic verification case library of the data legitimacy verification case library of single input domain, single input domain and a plurality of input domains.
In test, mainly be divided into three kinds of category of tests: the steering logic verification of the data legitimacy verification of single input domain, single input domain and the combination control relation of a plurality of input domains based on the Web page.Therefore, the test cases data can be divided into three case libraries:
Case library A: the data legitimacy verification case library of single input domain
The orderly information that such test cases data comprise number, Web page name, tested object name, checking description of contents, input data and expected results, the form of its data storage is shown in following Example:
Sequence number Web page name The tested object name The checking description of contents The input data Expected results
1 Ta5 Ta5001 Meet date format 00001231 Prompting " date format not to "
2 Ta5 Ta5002 Meet amount of money form !@#$%^&*() Prompting " amount of money form is incorrect "
Wherein: Web page name refers to the title of the tested Web page;
The tested object name refers to the title of input domain control tested in the Web page, as the territory on input date, and the territory of the input amount of money etc., these input domains will be the objects that need test;
The data data refer to be input to data in the tested object as test data;
Expection produced the result when expected results referred to carry out test action, passed through if can produce described expected results explanation test, otherwise did not pass through for testing.
Case library B: the steering logic verification case library of single input domain
The orderly information that such test cases data comprise number, Web page name, tested object name, checking description of contents, input data and expected results, the form of its data storage is shown in following Example:
Sequence number Web page name The tested object name The checking description of contents The input data Expected results
1 Ta5 Ta5001 Date is smaller or equal to current system data 20101010 Prompting " date is greater than current system data "
Wherein: Web page name refers to the title of the tested Web page;
The tested object name refers to the title of input domain control tested in the Web page, as the territory on input date, and the territory of the input amount of money etc., these input domains will be the objects that need test;
The data data refer to be input to data in the tested object as test data;
Expection produced the result when expected results referred to carry out test action, passed through if can produce described expected results explanation test, otherwise did not pass through for testing.
Case library C: the combination control relation case library of a plurality of input domains
The orderly information that such test cases data comprise number, Web page name, input domain 1 title, input domain 2 titles, input domain 3 titles, checking description of contents, input domain 1 data, input domain 2 data, input domain 3 data and expected results, the form of its data storage is shown in following Example:
Sequence number Web page name Input domain 1 title Input domain 2 titles Input domain 3 titles The checking description of contents Input domain 1 data Input domain 2 data Input domain 3 data Expected results
1 Ta5 Ta500 2 Ta500 3 Ta500 4 Input domain 1=input domain 2+ input domain 3 2000 1000 900 Prompting " total charge is not equal to avail+reserved amount "
Wherein: Web page name refers to the title of the tested Web page;
Input domain 1 title, input domain 2 titles and input domain 3 titles refer to carry out the title of three input domains of control relation test respectively;
Input domain 1 data, input domain 2 data and input domain 3 data refer to be input to data in input domain 1, input domain 2 and the input domain 3 respectively as test data;
Expection produced the result when expected results referred to carry out test action, passed through if can produce described expected results explanation test, otherwise did not pass through for testing.
Test result storage unit 13 is used to store the result data of test processes, comprises Web page name, case library, sequence number, checking description of contents and test result data at least.Wherein: Web page name refers to the title of the tested Web page; Case library refers to which case library among above-mentioned case library A, case library B and the case library C; Test result refer to test be " by " still " do not pass through ".
Based on the described device that the Web page is carried out automatic test of above-mentioned Fig. 1 to Fig. 3, the utility model also provides a kind of method of the Web page being carried out automatic test, this method is by searching and analyze the input domain object in the Web page, be divided into the data legitimacy verification of single input domain, combination control relation verification three kinds of the steering logic verification of single input domain and a plurality of input domains, set up the test cases data of this three kind respectively, by the test cases data being input in the input domain of the Web page, catch the warning dialog box object of the Web page, analyze the information that reports an error in the warning dialog box object, expected results in the information that will report an error again and the test cases data compares, if comparative result unanimity then illustrate that test passes through, explanation test is not passed through if comparative result is inconsistent.
Fig. 4 be the utility model provide the Web page is carried out the method flow diagram of automatic test, this method specifically may further comprise the steps:
Step 101: the automatic test processing procedure that the Main Processor Unit 20 in the test processes device 1 starts the Web page, call the tested object data message in the tested Web page of tested object input block 21 inputs.Tested object data storage cell 11 in the tested object input block 21 visit data memory storages 2, read all tested object data messages of the tested Web page, comprise sequence number, Web page name, tested object name and tested object recognition property, and the tested object data message that reads is fed back to Main Processor Unit 20.
Step 102: Main Processor Unit 20 calls test cases processing unit 22 and carries out the processing of test cases Data Matching, and the test cases data that will mate " tested object recognition property " then feed back to Main Processor Unit 20.Test cases data storage cell 11 in the test cases processing unit 22 visit data memory storages 2, read all test cases data of the tested Web page, from the tested object data message of Main Processor Unit 20 acquisitions, from this tested object data message, find " the tested object recognition property " of each tested object in the test cases data respectively then by 21 inputs of tested object input block.
Step 103: the data in 20 pairs of test cases of Main Processor Unit are carried out test processes one by one, each bar test cases record data is carried out following processing, test cases data test up to the described tested Web page is finished dealing with: Main Processor Unit 20 calls 23 pairs of test cases data of test controlled processing unit and carries out test processes, call testing tool 3 and in the tested Web page, search tested object, test controlled processing unit 23 is carried out the processing of calling testing tool 3 by the mode of visit testing tool Api interface, and " the tested object recognition property " of each tested object in the test cases data being passed to testing tool 3 by the Api interface, testing tool 3 finds each tested object by " tested object recognition property " in the tested Web page;
Step 104: after testing tool 3 found tested object in the tested Web page, test controlled processing unit 23 called testing tool 3 test data is input to each tested object.Test controlled processing unit 23 is carried out the processing of calling testing tool 3 by the mode of visit testing tool Api interface, and " the input data " of each tested object in the test cases data being passed to testing tool 3 by the Api interface, testing tool 3 is input to " input data " in the described tested object of the tested Web page.
Step 105: after " input data " are input to described tested object, test controlled processing unit 23 calls the warning dialog box object that testing tool 3 is caught Web page output, testing tool 3 feeds back to test controlled processing unit 23 with the data message of the warning dialog box object, and test controlled processing unit 23 sends to Main Processor Unit 20 with the data message of the warning dialog box object again;
Step 106: Main Processor Unit 20 calls the data message of the 24 pairs of the warning dialog box objects in dissection process unit and resolves, dissection process unit 24 is resolved from the data message of the warning dialog box object and is obtained the information that reports an error, and the information feedback that will report an error is given Main Processor Unit 20;
Step 107: Main Processor Unit 20 calls the 25 pairs of information of reporting an error in comparison process unit and compares processing, comparison process unit 25 obtains the information that reports an error that parsed by dissection process unit 24 from Main Processor Unit, and " expected results " in described report an error information and the test cases data compared, if the comparative result unanimity would illustrate the test pass through, explanation test is not passed through if comparative result is inconsistent, and comparison process unit 25 result that will compare feeds back to Main Processor Unit 20 then.
Step 108: the test result storage unit 13 in the Main Processor Unit 20 visit data treating apparatus 2, the object information of test is stored in the test result storage unit 13, canned data comprises Web page name, case library, sequence number, checking description of contents and test result at least, test result refer to test be " by " still " do not pass through ".
Above-described specific embodiment; the purpose of this utility model, technical scheme and beneficial effect are further described; institute is understood that; the above only is a specific embodiment of the utility model; be not limited to the utility model; all within spirit of the present utility model and principle, any modification of being made, be equal to replacement, improvement etc., all should be included within the protection domain of the present utility model.

Claims (5)

1. one kind is carried out the device of automatic test to the Web page, it is characterized in that this device comprises:
Be used for the Web page is carried out the test processes device (1) of test processes;
Be used to store the data storage device (2) of object information, test cases and the test result data of the tested Web page; And
Be used for testing tool (3) to the Web page is browsed, the control of Context resolution, implementation and error message are obtained;
Wherein, data storage device (2) and testing tool (3) all are connected in test processes device (1), and testing tool (3) is connected in tested Web system (4).
2. the device that the Web page is carried out automatic test according to claim 1, it is characterized in that, described test processes device (1) comes object information, the test cases data message of the Web page in the reading of data memory storage (2) by visit data memory storage (2), and the test result data that test processes obtains is stored in the data storage device (2);
Described test processes device (1) calls the processing that testing tool (3) is realized bottom work in the test process by the Api interface of visit testing tool (3).
3. according to claim 1 the Web page is carried out the device of automatic test, it is characterized in that described test processes device (1) comprises:
The tested object data storage cell (11) that is used for visit data memory storage (2), read all tested object data messages of the tested Web page, comprise sequence number, Web page name, tested object name and tested object recognition property, and the tested object data message that reads is fed back to the tested object input block (21) of Main Processor Unit (20);
The test cases data storage cell (11) that is used for visit data memory storage (2), read all test cases data of the tested Web page, obtain the tested object data message of importing by tested object input block (21) from Main Processor Unit (20) then, find " the tested object recognition property " of each tested object in the test cases data from the tested object data message respectively, the test cases data that will mate " tested object recognition property " at last feed back to the test cases processing unit (22) of Main Processor Unit (20);
Be used to call the test controlled processing unit (23) that testing tool (3) is tested the test cases data;
Be used for resolving the information that reports an error that obtains from the data message of the warning dialog box object, and the information feedback that will report an error gives the dissection process unit (24) of Main Processor Unit (20), this warning dialog box to as if test controlled processing unit (23) producing of calling that testing tool (3) catches by the Web page;
Be used for obtaining the information that reports an error that parses by dissection process unit (24) from Main Processor Unit (20), and the comparison process unit (25) that " expected results " in described report an error information and the test cases data compared, if the comparative result unanimity would illustrate the test pass through, the explanation test is not passed through if comparative result is inconsistent, and the result that comparison process unit (25) will compare feeds back to Main Processor Unit (20);
Wherein, tested object input block (21), test cases processing unit (22), test controlled processing unit (23), dissection process unit (24) and comparison process unit (25) all are connected in Main Processor Unit (20), are called each test processes function of finishing test processes device (1) by Main Processor Unit (20).
4. according to claim 1 the Web page is carried out the device of automatic test, it is characterized in that described data storage device (2) comprising:
Be used to store the tested object data storage cell (11) of the object information of each tested Web page, this information comprises sequence number, Web page name, tested object name and tested object recognition property at least;
Be used to store the test cases data storage cell (12) of test cases data message, this test cases data message comprises following three case libraries at least: the combination control relation verification case library of the steering logic verification case library of the data legitimacy verification case library of single input domain, single input domain and a plurality of input domains;
Be used to store the test result storage unit (13) of the result data of test processes, this result data comprises Web page name, case library, sequence number, checking description of contents and test result data at least.
5. according to claim 1 the Web page is carried out the device of automatic test, it is characterized in that described testing tool (3) is the program test instrument, or program debugging tool.
CN2009201762007U 2009-09-08 2009-09-08 Device for automatically testing Web page Expired - Lifetime CN201548954U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009201762007U CN201548954U (en) 2009-09-08 2009-09-08 Device for automatically testing Web page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009201762007U CN201548954U (en) 2009-09-08 2009-09-08 Device for automatically testing Web page

Publications (1)

Publication Number Publication Date
CN201548954U true CN201548954U (en) 2010-08-11

Family

ID=42604130

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009201762007U Expired - Lifetime CN201548954U (en) 2009-09-08 2009-09-08 Device for automatically testing Web page

Country Status (1)

Country Link
CN (1) CN201548954U (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102012857B (en) * 2009-09-08 2012-10-10 中国工商银行股份有限公司 Device and method for automatically testing web page
CN102929776A (en) * 2012-10-25 2013-02-13 北京奇虎科技有限公司 Method and equipment for testing network application
CN102929777A (en) * 2012-10-25 2013-02-13 北京奇虎科技有限公司 Network application testing method and system
CN104391786A (en) * 2014-10-31 2015-03-04 任子行网络技术股份有限公司 Webpage automatic test system and method thereof
CN104572427A (en) * 2013-10-15 2015-04-29 腾讯科技(深圳)有限公司 Page testing method, server and system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102012857B (en) * 2009-09-08 2012-10-10 中国工商银行股份有限公司 Device and method for automatically testing web page
CN102929776A (en) * 2012-10-25 2013-02-13 北京奇虎科技有限公司 Method and equipment for testing network application
CN102929777A (en) * 2012-10-25 2013-02-13 北京奇虎科技有限公司 Network application testing method and system
CN102929776B (en) * 2012-10-25 2015-11-25 北京奇虎科技有限公司 The method of testing that network application is tested and testing apparatus
CN102929777B (en) * 2012-10-25 2015-11-25 北京奇虎科技有限公司 Network application method of testing and test macro
CN104572427A (en) * 2013-10-15 2015-04-29 腾讯科技(深圳)有限公司 Page testing method, server and system
CN104572427B (en) * 2013-10-15 2018-07-06 腾讯科技(深圳)有限公司 A kind of method, server and the system of page test
CN104391786A (en) * 2014-10-31 2015-03-04 任子行网络技术股份有限公司 Webpage automatic test system and method thereof
CN104391786B (en) * 2014-10-31 2018-04-27 任子行网络技术股份有限公司 Webpage automatization test system and its method

Similar Documents

Publication Publication Date Title
CN102012857B (en) Device and method for automatically testing web page
CN108446190B (en) Interface test method and device
CN102831052B (en) Test exemple automation generating apparatus and method
CN102135938B (en) Software product testing method and system
CN108763091B (en) Method, device and system for regression testing
US20150242431A1 (en) Computer system log file analysis based on field type identification
CN103440201A (en) Dynamic taint analysis device and application thereof to document format reverse analysis
CN1664810A (en) Assisted form filling
CN201548954U (en) Device for automatically testing Web page
US20130055205A1 (en) Filtering source code analysis results
US9336116B2 (en) Automatic correlation accelerator
CN113326247B (en) Cloud data migration method and device and electronic equipment
CN109858021B (en) Service problem statistics method, device, computer equipment and storage medium thereof
CN112306855A (en) Interface automation test method, device, terminal and storage medium
CN106227654A (en) A kind of test platform
CN104657274A (en) Method and device for testing software interface
CN108897678B (en) Static code detection method, static code detection system and storage device
Pika et al. Configurable batch-processing discovery from event logs
CN116069628A (en) Intelligent-treatment software automatic regression testing method, system and equipment
CN102279798B (en) Software testing method and system based on point function driving
CN115757174A (en) Database difference detection method and device
CN101662394A (en) Automated testing system and automated testing method
CN113672509A (en) Automatic testing method, device, testing platform and storage medium
CN112650796A (en) Automatic application data collection and storage management system
CN109067726A (en) It builds a station system identification method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20100811