CN104820640A - Webpage testing method and device - Google Patents

Webpage testing method and device Download PDF

Info

Publication number
CN104820640A
CN104820640A CN201510260276.8A CN201510260276A CN104820640A CN 104820640 A CN104820640 A CN 104820640A CN 201510260276 A CN201510260276 A CN 201510260276A CN 104820640 A CN104820640 A CN 104820640A
Authority
CN
China
Prior art keywords
test
operation function
test case
webpage
basic operation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510260276.8A
Other languages
Chinese (zh)
Other versions
CN104820640B (en
Inventor
母天石
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Huaduo Network Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN201510260276.8A priority Critical patent/CN104820640B/en
Publication of CN104820640A publication Critical patent/CN104820640A/en
Application granted granted Critical
Publication of CN104820640B publication Critical patent/CN104820640B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a webpage testing method. The webpage testing method comprises the following steps: generating a base operation function library according to an atomic operation function library of a webpage testing tool, wherein the base operation function library comprises at least one base operation function; generating a testing case library according to the base operation function library, wherein the testing case library comprises at least one testing case; selecting M testing case sets from the testing case library according to a testing requirement of a to-be-tested webpage to generate a testing case group, wherein M is an integer greater than 0, each testing case set comprises at least one testing case; and testing the to-be-tested webpage according to the testing case group. The embodiment of the invention further discloses a webpage testing device. Through the adoption of the method and the device disclosed by the invention, the reusability of the code can be improved, and the development difficulty is reduced.

Description

A kind of webpage method of testing and device
Technical field
The present invention relates to software test field, particularly relate to a kind of webpage method of testing and device.
Background technology
In webpage development process, need to verify the various functions of webpage, the webpage testing tool of current main flow is Selenium (the Web automated test tool of ThoughtWorks company exploitation).Selenium can run directly in browser, the various operations of analog subscriber on webpage.The browser that Selenium supports comprises IE, Mozilla Firefox, Mozilla Suite etc.Can the major function of Selenium comprises: the compatibility between test and browser: test webpage and be operated on dissimilar browser and operating system; Test macro function: create regression test inspection software function and user's request; Automatic recording action and automatically generate the test script of the different languages such as .Net, Java, Perl.
The current testing scheme to webpage, (atomic operation refers to the operation that can not be interrupted by thread scheduling mechanism to the atomic operation function that tester is provided by webpage testing tool, atomic operation is once just running to end always, centre does not have any execution Context Switch, namely another thread can not be switched to) or the test case of satisfied different testing requirement is developed by API, different testing requirements needs to develop different test cases, association and effective organizational form is lacked between test case, when test is comparatively complicated, development time and difficulty increase greatly.
Summary of the invention
Embodiment of the present invention technical matters to be solved is, provides a kind of webpage method of testing and device.The problem that test case reusability is poor and development difficulty is large of webpage in prior art can be solved.
In order to solve the problems of the technologies described above, embodiments provide a kind of webpage method of testing, comprising:
Atomic operation function library according to webpage testing tool generates basic operation function library; Wherein, described basic operation function library comprises at least one basic operation function;
According to described basic operation function library generating test use case storehouse; Wherein, at least one test case is comprised in described test case library;
From described test case library, M test use cases is selected to close generating test use case group according to the testing requirement of webpage to be tested; Wherein, M be greater than 0 integer, each test case set comprises at least one test case;
According to described test case group, described webpage to be tested is tested.
Correspondingly, the embodiment of the present invention additionally provides a kind of webpage proving installation, comprising:
First configuration module, generates basic operation function library for the atomic operation function library according to webpage testing tool; Wherein, described basic operation function library comprises at least one basic operation function;
Second configuration module, for according to described basic operation function library generating test use case storehouse; Wherein, at least one test case is comprised in described test case library;
3rd configuration module, closes generating test use case group for selecting M test use cases from described test case library according to the testing requirement of webpage to be tested; Wherein, M be greater than 0 integer, each test case set comprises at least one test case;
Webpage test module, for testing described webpage to be tested according to described test case group.
Implement the embodiment of the present invention, there is following beneficial effect:
According to the testing requirement of webpage to be tested, atomic operation function is packaged into basic operation function, again basic operation function is packaged into test case, and then test case is packaged into test case set, multiple test case set is packaged into test case group, the final test use-case of webpage to be tested is made up of four levels, and high-level function can the function of multiplexing low level, reduces the workload of development and testing use-case.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The structural representation of a kind of webpage test macro that Fig. 1 provides for the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the method for testing of a kind of webpage that the embodiment of the present invention provides;
Fig. 3 is another schematic flow sheet of the method for testing of a kind of webpage that the embodiment of the present invention provides;
Fig. 4 is the structural representation of the proving installation of a kind of webpage that the embodiment of the present invention provides;
Fig. 5 is the structural representation of the first configuration module in Fig. 4;
Fig. 6 is the structural representation of the second configuration module in Fig. 4.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
See Fig. 1, for the structural representation of a kind of webpage test macro that the embodiment of the present invention provides, in embodiments of the present invention, webpage test macro comprises browser, webpage testing tool (as Webdriver), automated test frame and database, run in browser and need to test webpage, the test profile that webpage to be tested is corresponding is stored in database, test profile comprises configuration file 1, configuration file 2 and configuration file 3, configuration file 1 is for representing the atomic operation function comprised in atomic operation function library, the basic operation function that configuration file 2 comprises for representing basic operation function library, configuration file 3 is for representing the test case comprised in test case library.Auto-testing-framework is for performing the operation of digital independent and behavior driving.Auto-testing-framework is responsible for the test data and the expected results that read each test case from configuration file; Auto-testing-framework completes data-driven simultaneously, by the webpage to be tested in webpage testing tool (such as Webdriver) operating browser, catch test result (comprising the result of Javascript event) and page elements that browser returns, test result and expected results are verified, thus reaches the object of automatic test checking.
The operation steps that automated test frame runs is as follows:
Step1, load 3 class configuration files, associated test case group by 4 grades of institutional frameworks with testing requirement, test case group is buffered in internal memory.Wherein, 4 grades of organizational structures refer to the handling function that atomizes from low to high, basic operation function, test case and test case group 4 levels, basic operation function is encapsulated by multiple atomic operation function and forms, test case is encapsulated by multiple basic operation function and forms, and test case group is encapsulated by multiple test case and forms.
Each test case in Step2, implementation of test cases group successively, and verify one by one according to expected results; Wherein, may have exception in the process of implementation of test cases, the mistake by arranging stops parameter determining whether continue to perform.
Step3, gather the test result of all test cases in test case group, generate test report according to test result, and send test report by mail.
See Fig. 2, the schematic flow sheet of the method for testing of a kind of webpage provided for the embodiment of the present invention, in embodiments of the present invention, described method comprises:
S101, generate basic operation function library according to the atomic operation function library of webpage testing tool; Wherein, described basic operation function library comprises at least one basic operation function.
Concrete, webpage tester meets the test case of testing requirement by the exploitation of webpage testing tool, by driving testing results use-case on webpage to be tested of webpage testing tool, webpage testing tool is used for analog subscriber operation to be tested the various functions of webpage and display effect, whether meet expected results with checking, can webpage testing tool as Selenium, Webdriver, Watir, Sahi or Canoo WebTest etc. (again for two examples).Webpage testing tool provides the function library of the atomic operation described in the embodiment of the present invention, atomic operation function refers to the operation that can not be interrupted by thread scheduling mechanism, atomic operation function is once just running to end always, centre does not have any execution Context Switch, namely can not be switched to another thread.Such as atomic operation function comprises for realizing the function that page elements is located, page elements is mutual.Atomic operation function library comprises several atomic operation functions that webpage test job provides.Basic operation function by several atomic operation functions encapsulate, basic operation function for realizing the more complicated operation of browser, such as register, upload operation or down operation.The testing tool (hereinafter referred to as testing tool) of webpage selects the multiple atomic operation functions in atomic operation function library to encapsulate, concrete, can by statistical history record using call number frequently basic operation function as conventional basic parameter function, the atomic operation function selected in atomic operation function library depends on the basic operation function in basic operation function library, basic operation function at least one atomic operation function corresponding, according to the corresponding relation of basic operation function and atomic operation function, determine the atomic operation function in atomic operation function library, specific basic operation function is generated after multiple atomic operation function encapsulation, proving installation generates multiple basic operation function composition basic operation function library, the basic operation function comprised in basic operation function library can carry out adding or revising as required.Wherein, encapsulation refers to multiple function to be encapsulated as the modularity function that realizes specific function, and other functions call this modularity function by unified calling interface.
S102, according to described basic operation function library generating test use case storehouse; Wherein, at least one test case is comprised in described test case library.
Concrete, test case is for verifying the simple function of webpage to be tested, test case is encapsulated according to the execution sequence preset by multiple basic operation function, specific test case is generated after encapsulation, proving installation generates multiple test case composition test case library, wherein, test case library comprises multiple test case, test case library can be organized by being formed of database, is edited the test case in test case library by the editing operation (such as increasing operation, retouching operation or deletion action) of database.
S103, from described test case library, M test use cases is selected to close generating test use case group according to the testing requirement of webpage to be tested; Wherein, M be greater than 0 integer, each test case set comprises at least one test case.
Concrete, proving installation selects multiple test case according to generating test use case set after preset order arrangement according to testing requirement from test case library, multiple test use cases is combined into test case group, and proving installation can open according to testing requirement or cut out the test case set in test case group.Such as, the testing requirement of webpage to be tested is test instant messaging function, the test case 1 (realizing login feature) of this testing requirement selected by proving installation from test case library, test case 2 (realizing contact person's selection function), test case 3 (realizing message input function), test case 4 (realizing message input function), above-mentioned 4 test cases form 1 test case set, the parameter that can change the one or more test cases in test case set generates new test case set, such as, the content changing contact person or input message generates new test case set, multiple test use cases is combined into test case group.
S104, according to described test case group, described webpage to be tested to be tested.
Wherein, proving installation is treated test webpage according to the test case set of the unlatching in test case group and is tested, and generates test result.
Implement embodiments of the invention, according to the testing requirement of webpage to be tested, atomic operation function is packaged into basic operation function, again basic operation function is packaged into test case, and then test case is packaged into test case set, multiple test case set is packaged into test case group, and the final test use-case of webpage to be tested is made up of four levels, high-level function can the function of multiplexing low level, reduces the workload of development and testing use-case.
See Fig. 2, another schematic flow sheet of the method for testing of a kind of webpage provided for the embodiment of the present invention, in an embodiment of the present invention, described method comprises:
S201, at least one the atomic operation function obtained in atomic operation function library, and for generating basic operation function after described at least one atomic operation function configuration operation object type, localization method and output valve type.
Concrete, webpage tester meets the test case of testing requirement by the exploitation of webpage testing tool, by driving testing results use-case on webpage to be tested of webpage testing tool, webpage testing tool is used for the true operation that test webpage is treated in analog subscriber operation, various functions and the display effect for the treatment of test webpage are tested, whether meet expected results with checking, webpage testing tool is as Selenium, Webdriver, Watir, Sahi or Canoo WebTest etc.The function library embodiment of the present invention that webpage testing tool provides becomes atomic operation function library, and such as atomic operation function comprises for realizing the function that page elements is located, page elements is mutual.Atomic operation function library comprises several atomic operation functions that webpage test job provides.Basic operation function is encapsulated by several atomic operation functions, and basic operation function is for realizing the more complicated operation such as register, upload operation or down operation.The proving installation of webpage is (hereinafter referred to as proving installation, automated test frame as in 1) select the multiple atomic operation functions in atomic operation function library to encapsulate, specific basic operation function is generated after encapsulation, proving installation generates multiple basic operation function composition basic operation function library, and the basic operation function comprised in basic operation function library can carry out adding or revising as required.
Such as, webpage testing tool is described for Webdriver, and Webdriver provides some conventional atomic operation functions, and such as, the atomic operation function that webpage testing tool provides is as follows:
Interdepartmental, for realizing the mutual of server;
FindElementByXpath, for passing through the element in Xpath method locating web-pages;
FindElementByID: for the element in the method locating web-pages by inquiry ID;
ClickElement: for simulating the element in webpage clicking;
EditElement: for editing the element in webpage;
The atomic operation function that webpage testing tool calls in atomic operation function library generates basic operation function, each basic operation function can be generated by one or more atomic operation function, such as: the basic operation function of generation is as follows: <action>//basic operation function header part
<step>//subfunction 1 labeling head
<operation>ClickElementLEssT. LTssT.LT/operation>//atomic operation function name
<type>button</ty pe>//operand type
<method>xpath</m ethod>//localization method
<value>MyButton1LEssT.LTssT.L T/value> output valve type
</step> subfunction 1 tail tag is remembered
<step>
<operation>EditElementLEssT.L TssT.LT/operation>//atomic operation function name
<type>text</type>
<method>tagname</method>
<value>This is Test</value>
</step>
<step>
<operation>ClickElementLEssT. LTssT.LT/operation>//atomic operation function name
<type>radiobox</type>
<method>id</method>
<value>MyID1</value>
</step>
</action>
</actions>//basic operation function tail tag note
Can by finding out from the basic operation function of above-mentioned generation, basic operation function is made up of three sub-functions, be designated as subfunction 1, subfunction 2 and subfunction 3, each subfunction is by different atomic operation function <operation> and the operand type <type> for the configuration of atomic operation function, localization method <method> and output valve type <value> generates, basic operation function calls atomic operation function by original function name.Different basic operation functions can be generated by the execution sequence configuring different atomic operation functions and atomic operation function.Basic operation function in basic operation function library can be configured as required, the basic operation function that usually configuration is conventional, such as, realize uploading, download and the basic operation function of login feature.Basic operation function in the function library of basic operation simultaneously can realize different functions by retouching operation object type, localization method and output valve type three parameters, the basic operation function of each generation is named according to function, upload represents the basic operation function of upload function, login represents the basic operation function of login feature, and other name forms repeat no more herein.
S202, at least one the basic operation function obtained in described basic operation function library, and configure generating test use case behind at least one checkpoint at least one basic operation function described; Wherein, whether described checkpoint is correct for verifying the test result of the test case after described generation.
Concrete, test case is for verifying the simple function of webpage to be tested, test case is encapsulated according to the execution sequence preset by multiple basic operation function, specific test case is generated after encapsulation, proving installation generates multiple test case composition test case library, and the test case in test case library can carry out adding and revising as required.Wherein, each test case has and is configured with at least one checkpoint, is provided with expected results, for test result and expected results being compared in the process of implementation of test cases in checkpoint.
Such as, to call the test case that basic operation function in basic operation function library generates as follows for testing tool:
<cases> test case head
<case>
<index>1</indexG reatT.GreaT.GT//test case numbering
The operation steps of <actions>//definition test case
<action>login</a ction>//basic operation function login
<action>upload</ action> basic operation function upload
<action>downloadLEssT.LTssT.L T/action> basic operation function download
</actions>
<results>//checkpoint labeling head
Article checkpoint, <result>//1st
<type>button</type>
<status>true</status>
<value>mybutton1</value>
</result>
Article checkpoint, <result>//2nd
<type>span</type>
<status>this is my test</status>
<value>myspan1</value>
</result>
</results> checkpoint tail tag note
</case>
</cases>
As can be seen from above-mentioned test case, each test case of generation can arrange numbering, and for distinguishing different test cases, each test case is installed by least one basic operation function the execution sequence preset and generated, and is configured with at least one checkpoint simultaneously.As comprised basic operation function login, basic operation function upload and basic operation function download in test case 1, test case 1 is provided with checkpoint 1 and checkpoint 2, the expected results of test result and checkpointing can compare when testing results use-case 1 by webpage testing tool, and exports comparative result.Concrete, the expected results of checkpoint 1 is " mybutton1 ", the expected results of checkpoint 2 is for being " myspan1 ", after implementation of test cases 1, judge whether the test result generated occurs the expected results of checkpoint 1 and checkpoint 2, if YES, then determine that the test of test case 1 is passed through, otherwise the test of test case 1 is not passed through.
S203, from described test case library, M test use cases is selected to close generating test use case group according to the testing requirement of webpage to be tested; Wherein, M be greater than 0 integer, each test case set comprises at least one test case.
Concrete, when treating test webpage and testing, need the testing requirement generating webpage to be tested, testing requirement comprises test zone, test elements, the restrictive conditions such as method of testing, proving installation selects multiple test case according to generating test use case set after preset order arrangement according to testing requirement from test case library, multiple test use cases is combined into test case group, proving installation can open according to testing requirement or cut out the test case set in test case group, each test case group comprises at least one test case set, each test case set is configured with abnormality processing mark and enable flag, enable flag is used for whether starting corresponding test case set, there is abnormal whether stopping in the process of the test case set that abnormality processing mark expression test is corresponding to test.
Such as, the test case group of generation is as follows:
<groups>//test case group labeling head
<cases>
<sequence>1,2,3,4</sequence>//test case set 1
<enable>True</en able>//enable flag
<stoponerror>FalseLEssT.LTssT .LT/stoponerror>//abnormality processing mark
</cases>
<cases>
<sequence>1,2,7,8</sequence> test case set 2
<enable>True</enable>
<stoponerror>True</stoponerror>
</cases>
</groups> test case group tail tag
As can be seen from the test case group of above-mentioned generation, test case group is made up of test case set 1 and test case set 2, wherein test case set 1 comprises test case 1,2,3,4, test case set 2 comprises test case 1,2,7,8, the enable of test case set 1 is designated True, represent and start test case set 1, abnormality processing is designated False, represents that testing results use-case set 1 does not stop test when there is exception; The enable flag of test case 2 is True, and represent and open test case set 2, abnormality processing is designated True, represents in the process of testing results use-case set 2 and stops test.
S204, test described webpage to be tested according to described test case group, the test result according to each test case set in described test case group generates test report, and described test report is mail to the address of specifying.
Concrete, proving installation testing results use-case group, treat test webpage by the driving of webpage testing tool to test, run the test case in each test case set successively, the test result of each test case and expected results are compared generation test report, test report is sent to by modes such as Email, instant communication message or multimedia messages the recipient specified automatically.
It should be noted that, the employing XML that can be, but not limited to of the basic operation function in the embodiment of the present invention, test case and test case group describes.
Implement embodiments of the invention, according to the testing requirement of webpage to be tested, atomic operation function is packaged into basic operation function, again basic operation function is packaged into test case, and then test case is packaged into test case set, multiple test case set is packaged into test case group, and the final test use-case of webpage to be tested is made up of four levels, high-level function can the function of multiplexing low level, reduces the workload of development and testing use-case.
See Fig. 4, the structural representation of the proving installation of a kind of webpage provided for the embodiment of the present invention, in embodiments of the present invention, described webpage proving installation comprises the first configuration module 10, second configuration module 20, the 3rd configuration module 30 and webpage test module 40, wherein
First configuration module 10, generates basic operation function library for the atomic operation function library according to webpage testing tool; Wherein, described basic operation function library comprises at least one basic operation function.
Second configuration module 20, for according to described basic operation function library generating test use case storehouse; Wherein, at least one test case is comprised in described test case library.
3rd configuration module 30, closes generating test use case group for selecting M test use cases from described test case library according to the testing requirement of webpage to be tested; Wherein, M be greater than 0 integer, each test case set comprises at least one test case.
Webpage test module 40, for testing described webpage to be tested according to described test case group.
The embodiment of the present invention and embodiment of the method one are based on same design, and its technique effect brought is also identical, and detailed process please refer to the description of embodiment of the method one, repeats no more herein.
Further, see Fig. 5 and Fig. 6, the structural representation of the first configuration module and the second configuration module in the proving installation of a kind of webpage provided for the embodiment of the present invention, in embodiments of the present invention, first configuration module 10 comprises the first acquiring unit 101 and the first dispensing unit 102, second configuration module 20 comprises second acquisition unit 201 and the second dispensing unit 202, wherein
First acquiring unit 101, for obtaining at least one the atomic operation function in described atomic operation function library.
First dispensing unit 102, for the basic operation function for generating correspondence after described at least one atomic operation function configuration operation object type, localization method and output valve type.
Second acquisition unit 201, for obtaining at least one the basic operation function in described basic operation function library.
Second dispensing unit 202, for configuring generating test use case behind at least one checkpoint at least one basic operation function described; Wherein, whether described checkpoint is correct for verifying the test result of the test case after described generation.
Optionally, the often group test case in described test case group carries enable mark and abnormality processing mark; Whether described enable mark opens corresponding test case set for representing, described abnormality processing represents in the process for representing the test case set that test is corresponding to note abnormalities whether stop test.
Optionally, described webpage test module 40 also generates test report for the test result according to each test case set in described test case group, and described test report is mail to the address of specifying.
The embodiment of the present invention and embodiment of the method two are based on same design, and its technique effect brought is also identical, and detailed process please refer to the description of embodiment of the method two, repeats no more herein.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only a kind of preferred embodiment of the present invention, certainly the interest field of the present invention can not be limited with this, one of ordinary skill in the art will appreciate that all or part of flow process realizing above-described embodiment, and according to the equivalent variations that the claims in the present invention are done, still belong to the scope that invention is contained.

Claims (10)

1. a webpage method of testing, is characterized in that, comprising:
Atomic operation function library according to webpage testing tool generates basic operation function library; Wherein, described basic operation function library comprises at least one basic operation function;
According to described basic operation function library generating test use case storehouse; Wherein, at least one test case is comprised in described test case library;
From described test case library, M test use cases is selected to close generating test use case group according to the testing requirement of webpage to be tested; Wherein, M be greater than 0 integer, each test case set comprises at least one test case;
According to described test case group, described webpage to be tested is tested.
2. the method for claim 1, is characterized in that, the described atomic operation function library according to webpage testing tool generates basic operation function library and comprises:
Obtain at least one the atomic operation function in described atomic operation function library;
For generating corresponding basic operation function after described at least one atomic operation function configuration operation object type, localization method and output valve type.
3. method as claimed in claim 1 or 2, is characterized in that, described according to described basic operation function library generating test use case storehouse, also comprises:
Obtain at least one the basic operation function in described basic operation function library;
For at least one basic operation function described configures generating test use case behind at least one checkpoint; Wherein, whether described checkpoint is correct for verifying the test result of the test case after described generation.
4. method as claimed in claim 3, is characterized in that, the often group test case in described test case group carries enable mark and abnormality processing mark; Whether described enable mark opens corresponding test case set for representing, described abnormality processing represents in the process for representing the test case set that test is corresponding to note abnormalities whether stop test.
5. the method as described in claim 1-4 any one, is characterized in that, describedly tests described webpage to be tested according to described test case group, also comprises:
Test result according to each test case set in described test case group generates test report, and described test report is mail to the address of specifying.
6. a webpage proving installation, is characterized in that, comprising:
First configuration module, generates basic operation function library for the atomic operation function library according to webpage testing tool; Wherein, described basic operation function library comprises at least one basic operation function;
Second configuration module, for according to described basic operation function library generating test use case storehouse; Wherein, at least one test case is comprised in described test case library;
3rd configuration module, closes generating test use case group for selecting M test use cases from described test case library according to the testing requirement of webpage to be tested; Wherein, M be greater than 0 integer, each test case set comprises at least one test case;
Webpage test module, for testing described webpage to be tested according to described test case group.
7. device as claimed in claim 6, it is characterized in that, described first configuration module comprises:
First acquiring unit, for obtaining at least one the atomic operation function in described atomic operation function library;
First dispensing unit, for the basic operation function for generating correspondence after described at least one atomic operation function configuration operation object type, localization method and output valve type.
8. device as claimed in claims 6 or 7, it is characterized in that, described second configuration module comprises:
Second acquisition unit, for obtaining at least one the basic operation function in described basic operation function library;
Second dispensing unit, for configuring generating test use case behind at least one checkpoint at least one basic operation function described; Wherein, whether described checkpoint is correct for verifying the test result of the test case after described generation.
9. device as claimed in claim 8, is characterized in that, the often group test case in described test case group carries enable mark and abnormality processing mark; Whether described enable mark opens corresponding test case set for representing, described abnormality processing represents in the process for representing the test case set that test is corresponding to note abnormalities whether stop test.
10. the device as described in claim 6-9 any one, it is characterized in that, described webpage test module also generates test report for the test result according to each test case set in described test case group, and described test report is mail to the address of specifying.
CN201510260276.8A 2015-05-19 2015-05-19 A kind of webpage test method and device Active CN104820640B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510260276.8A CN104820640B (en) 2015-05-19 2015-05-19 A kind of webpage test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510260276.8A CN104820640B (en) 2015-05-19 2015-05-19 A kind of webpage test method and device

Publications (2)

Publication Number Publication Date
CN104820640A true CN104820640A (en) 2015-08-05
CN104820640B CN104820640B (en) 2018-07-24

Family

ID=53730941

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510260276.8A Active CN104820640B (en) 2015-05-19 2015-05-19 A kind of webpage test method and device

Country Status (1)

Country Link
CN (1) CN104820640B (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105260310A (en) * 2015-10-23 2016-01-20 天津橙子科技有限公司 User behavior simulation method for WEB application program
CN105260318A (en) * 2015-11-25 2016-01-20 飞天诚信科技股份有限公司 Automatic testing method and device based on web pages
CN105528297A (en) * 2016-01-29 2016-04-27 广州酷狗计算机科技有限公司 Method and device for testing web page
CN106354638A (en) * 2016-08-29 2017-01-25 广州唯品会信息科技有限公司 Automatic testing method and device based on lexical analysis
CN106776343A (en) * 2017-01-13 2017-05-31 中国科学院软件研究所 A kind of web application automated test tool and method
CN106933731A (en) * 2015-12-29 2017-07-07 北京谊安医疗系统股份有限公司 It is a kind of to realize the method that Anesthesia machine is tested automatically
CN107797911A (en) * 2016-09-02 2018-03-13 北京京东尚科信息技术有限公司 Method and apparatus for testing HTTP interface
CN108763071A (en) * 2018-05-17 2018-11-06 平安科技(深圳)有限公司 A kind of webpage test method and terminal device
CN109032941A (en) * 2018-07-20 2018-12-18 郑州云海信息技术有限公司 The sustainable integrated interface automated testing method and system of test case driving
CN109359039A (en) * 2018-09-30 2019-02-19 福建星瑞格软件有限公司 A method of promoting Sahi automatic test efficiency
CN109376090A (en) * 2018-10-25 2019-02-22 京信通信系统(中国)有限公司 Software Automatic Testing Method and device
CN109815128A (en) * 2018-12-21 2019-05-28 北京奇艺世纪科技有限公司 Execution method, apparatus, terminal and the computer readable storage medium of test case
CN110008111A (en) * 2019-01-31 2019-07-12 阿里巴巴集团控股有限公司 A kind of service test method and device
CN111737152A (en) * 2020-07-29 2020-10-02 中国人民解放军国防科技大学 Method and device for realizing WEB automatic test by inputting data through webpage
CN112765040A (en) * 2021-02-04 2021-05-07 深圳市捷视飞通科技股份有限公司 Page testing method, system, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101526919A (en) * 2009-04-29 2009-09-09 福建星网锐捷网络有限公司 Method for generating script files to test Web application software and device thereof
CN103164334A (en) * 2011-12-19 2013-06-19 国际商业机器公司 System and method for detecting breaking point in web application automatic test case
US20140059522A1 (en) * 2012-08-23 2014-02-27 International Business Machines Corporation Generating Test Cases for Covering Enterprise Rules and Predicates
US20140289699A1 (en) * 2009-08-18 2014-09-25 Adobe Systems Incorporated Methods and Systems for Data Service Development
CN104461901A (en) * 2014-12-23 2015-03-25 浪潮(北京)电子信息产业有限公司 Method and system for automatically generating test case

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101526919A (en) * 2009-04-29 2009-09-09 福建星网锐捷网络有限公司 Method for generating script files to test Web application software and device thereof
US20140289699A1 (en) * 2009-08-18 2014-09-25 Adobe Systems Incorporated Methods and Systems for Data Service Development
CN103164334A (en) * 2011-12-19 2013-06-19 国际商业机器公司 System and method for detecting breaking point in web application automatic test case
US20140059522A1 (en) * 2012-08-23 2014-02-27 International Business Machines Corporation Generating Test Cases for Covering Enterprise Rules and Predicates
CN104461901A (en) * 2014-12-23 2015-03-25 浪潮(北京)电子信息产业有限公司 Method and system for automatically generating test case

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张添: "基于Selenium的Web自动化测试", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
罗雅文: "IBM Web产品自动化测试系统的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105260310A (en) * 2015-10-23 2016-01-20 天津橙子科技有限公司 User behavior simulation method for WEB application program
CN105260318A (en) * 2015-11-25 2016-01-20 飞天诚信科技股份有限公司 Automatic testing method and device based on web pages
CN105260318B (en) * 2015-11-25 2018-04-03 飞天诚信科技股份有限公司 A kind of automated testing method and device based on webpage
CN106933731A (en) * 2015-12-29 2017-07-07 北京谊安医疗系统股份有限公司 It is a kind of to realize the method that Anesthesia machine is tested automatically
CN105528297A (en) * 2016-01-29 2016-04-27 广州酷狗计算机科技有限公司 Method and device for testing web page
CN106354638A (en) * 2016-08-29 2017-01-25 广州唯品会信息科技有限公司 Automatic testing method and device based on lexical analysis
CN107797911A (en) * 2016-09-02 2018-03-13 北京京东尚科信息技术有限公司 Method and apparatus for testing HTTP interface
CN106776343A (en) * 2017-01-13 2017-05-31 中国科学院软件研究所 A kind of web application automated test tool and method
CN108763071A (en) * 2018-05-17 2018-11-06 平安科技(深圳)有限公司 A kind of webpage test method and terminal device
CN109032941A (en) * 2018-07-20 2018-12-18 郑州云海信息技术有限公司 The sustainable integrated interface automated testing method and system of test case driving
CN109359039A (en) * 2018-09-30 2019-02-19 福建星瑞格软件有限公司 A method of promoting Sahi automatic test efficiency
CN109359039B (en) * 2018-09-30 2023-01-31 福建星瑞格软件有限公司 Method for improving Sahi automatic testing efficiency
CN109376090A (en) * 2018-10-25 2019-02-22 京信通信系统(中国)有限公司 Software Automatic Testing Method and device
CN109815128A (en) * 2018-12-21 2019-05-28 北京奇艺世纪科技有限公司 Execution method, apparatus, terminal and the computer readable storage medium of test case
CN110008111A (en) * 2019-01-31 2019-07-12 阿里巴巴集团控股有限公司 A kind of service test method and device
CN111737152A (en) * 2020-07-29 2020-10-02 中国人民解放军国防科技大学 Method and device for realizing WEB automatic test by inputting data through webpage
CN112765040A (en) * 2021-02-04 2021-05-07 深圳市捷视飞通科技股份有限公司 Page testing method, system, computer equipment and storage medium
CN112765040B (en) * 2021-02-04 2024-01-26 深圳市捷视飞通科技股份有限公司 Page test method, system, computer equipment and storage medium

Also Published As

Publication number Publication date
CN104820640B (en) 2018-07-24

Similar Documents

Publication Publication Date Title
CN104820640A (en) Webpage testing method and device
CN107273286B (en) Scene automatic test platform and method for task application
CN103150249B (en) A kind of method and system of automatic test
CN106095677B (en) The RESTful Webservice automatic interface testing methods realized based on Robot Framework
CN103186460B (en) A kind of method, Apparatus and system of generating test use case script
CN103164328B (en) The regression testing method of a kind of business function, Apparatus and system
CN106777101B (en) Data processing engine
CN107193733A (en) Simulate the methods, devices and systems of Monkey tests
CN108628748B (en) Automatic test management method and automatic test management system
US20100115496A1 (en) Filter generation for load testing managed environments
CN105512036A (en) Test template for automatically generating test case according to preset rules and test method
CN109710508A (en) Test method, test device, test equipment and computer readable storage medium
Marijan et al. A learning algorithm for optimizing continuous integration development and testing practice
US10459830B2 (en) Executable code abnormality detection
CN110716870A (en) Automatic service testing method and device
CN102306122A (en) Automated testing method and equipment
Robinson et al. On the testing of user‐configurable software systems using firewalls
CN110888818A (en) Test case configuration system and method, automatic test system and method
CN109766280A (en) Method for testing software and software test platform
CN104731566A (en) Testing device, method and system for IDE (Integrated Development Environment)
CN105279092A (en) Software testing method and apparatus
US11615018B2 (en) Automation testing tool framework
CN105591779A (en) Method and device for inspecting network element
CN111026638A (en) Webpage automatic testing method and device, electronic equipment and storage medium
CN105550103B (en) A kind of automated testing method based on self-defined test script

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 510000, Guangdong Province, Guangzhou, Panyu District Town, Huambo business district, Wanda Plaza, block B1, 28 floor

Applicant after: Guangzhou Huaduo Network Technology Co., Ltd.

Address before: 510655, Guangzhou, Whampoa Avenue, No. 2, creative industrial park, building 3-08,

Applicant before: Guangzhou Huaduo Network Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant