CN104820640B - A kind of webpage test method and device - Google Patents

A kind of webpage test method and device Download PDF

Info

Publication number
CN104820640B
CN104820640B CN201510260276.8A CN201510260276A CN104820640B CN 104820640 B CN104820640 B CN 104820640B CN 201510260276 A CN201510260276 A CN 201510260276A CN 104820640 B CN104820640 B CN 104820640B
Authority
CN
China
Prior art keywords
test case
test
operation function
webpage
library
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.)
Active
Application number
CN201510260276.8A
Other languages
Chinese (zh)
Other versions
CN104820640A (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 kind of webpage test methods, including:Basic operation function library is generated according to the atomic operation function library of webpage testing tool;Wherein, the basic operation function library includes at least one basic operation function;Test case library is generated according to the basic operation function library;Wherein, include at least one test case in the test case library;Select M test use cases symphysis at test case group from the test case library according to the testing requirement of webpage to be tested;Wherein, M is the integer more than 0, and each test case set includes at least one test case;The webpage to be tested is tested according to the test case group.The embodiment of the invention also discloses a kind of webpage test devices.Using the present invention, the reusability of code can be improved, reduce development difficulty.

Description

A kind of webpage test method and device
Technical field
The present invention relates to software test field more particularly to a kind of webpage test method and devices.
Background technology
It during webpage development, needs to verify the various functions of webpage, the webpage testing tool of mainstream is at present Selenium (the Web automated test tools of ThoughtWorks companies exploitation).Selenium can run directly in browsing In device, various operations of the analog subscriber on webpage.Selenium support browser include IE, Mozilla Firefox, Mozilla Suite etc..The major function of Selenium includes:Compatibility between test and browser:Can webpage be tested It is operated on different types of browser and operating system;Test system function:Create regression test examine software function and User demand;Automatic recording acts and automatically generates the test script of the different languages such as .Net, Java, Perl.
The current testing scheme to webpage, the atomic operation function that tester is provided by webpage testing tool are (former Sub-operation refers to the operation that will not be interrupted by thread scheduling mechanism, and atomic operation is once end is just run to always, and centre is not Any execution Context Switch are had, i.e., will not be switched to another thread) or developed by API and meet different tests The test case of demand, different testing requirements need to develop different test cases, association are lacked between test case and is had The organizational form of effect, development time and difficulty greatly increase when testing complex.
Invention content
Technical problem to be solved of the embodiment of the present invention is, provides a kind of webpage test method and device.It can solve The test case reusability difference of webpage and the big problem of development difficulty in the prior art.
In order to solve the above-mentioned technical problem, an embodiment of the present invention provides a kind of webpage test methods, including:
Basic operation function library is generated according to the atomic operation function library of webpage testing tool;Wherein, the basic operation Function library includes at least one basic operation function;
Test case library is generated according to the basic operation function library;Wherein, include at least one in the test case library A test case;
Select M test use cases symphysis at test from the test case library according to the testing requirement of webpage to be tested Use-case group;Wherein, M is the integer more than 0, and each test case set includes at least one test case;
The webpage to be tested is tested according to the test case group.
Correspondingly, the embodiment of the present invention additionally provides a kind of webpage test device, including:
First configuration module, for generating basic operation function library according to the atomic operation function library of webpage testing tool; Wherein, the basic operation function library includes at least one basic operation function;
Second configuration module, for generating test case library according to the basic operation function library;Wherein, the test is used Include at least one test case in example library;
Third configuration module, for selecting M survey from the test case library according to the testing requirement of webpage to be tested Example set on probation generates test case group;Wherein, M is the integer more than 0, and each test case set includes at least one test Use-case;
Webpage test module, for being tested the webpage to be tested according to the test case group.
Implement the embodiment of the present invention, has the advantages that:
According to the testing requirement of webpage to be tested, atomic operation function is packaged into basic operation function, then will grasp substantially It is packaged into test case as function, and then test case is packaged into test case set, multiple test case set are packaged into The final test use-case of test case group, webpage to be tested is made of four levels, and high-level function can be multiplexed low level Function, reduce exploitation test case workload.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
Fig. 1 is the structural schematic diagram that a kind of webpage provided in an embodiment of the present invention tests system;
Fig. 2 is a kind of flow diagram of the test method of webpage provided in an embodiment of the present invention;
Fig. 3 is a kind of another flow diagram of the test method of webpage provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of the test device of webpage provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of the first configuration module in Fig. 4;
Fig. 6 is the structural schematic diagram of the second configuration module in Fig. 4.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment shall fall within the protection scope of the present invention.
Implement in the present invention for a kind of structural schematic diagram of webpage test system provided in an embodiment of the present invention referring to Fig. 1 In example, webpage test system includes browser, webpage testing tool (such as Webdriver), automated test frame and database, Operation needs to be tested webpage in browser, and the corresponding test profile of webpage to be tested, test configurations are stored in database File includes configuration file 1, configuration file 2 and configuration file 3, and configuration file 1 includes in atomic operation function library for indicating Atomic operation function, configuration file 2 for indicating the basic operation function that basic operation function library includes, use by configuration file 3 In the test case for indicating to include in test case library.Auto-testing-framework is used to execute the behaviour of digital independent and behavior driving Make.Auto-testing-framework is responsible for reading the test data and expected results of each test case from configuration file;It is automatic simultaneously to survey It tries frame and completes data-driven, the webpage to be tested in browser is operated by webpage testing tool (such as Webdriver), is caught The test result (result for including Javascript events) and page elements for obtaining browser return, to test result and expected knot Fruit is verified, to achieve the purpose that automatic test is verified.
The operating procedure of automated test frame operation is as follows:
Step1,3 class configuration files of load, have been associated with test case group with testing requirement by 4 grades of institutional frameworks, will survey Example group on probation is buffered in memory.Wherein, 4 grades of organizational structures refer to atomize from low to high handling function, basic operation function, 4 levels of test case and test case group, basic operation function are encapsulated by multiple atomic operation functions, test case by Multiple basic operation functions encapsulate, and test case group is encapsulated by multiple test cases.
Step2, successively each test case in implementation of test cases group, and verified one by one according to expected results; Wherein, exception is might have during implementation of test cases, parameter can be stopped by the mistake of setting and decide whether to continue It executes.
Step3, the test result for summarizing all test cases in test case group generate test report according to test result It accuses, and test report is sent out by mail.
It is a kind of flow diagram of the test method of webpage provided in an embodiment of the present invention referring to Fig. 2, of the invention real It applies in example, the method includes:
S101, basic operation function library is generated according to the atomic operation function library of webpage testing tool;Wherein, described basic Handling function library includes at least one basic operation function.
Specifically, webpage tester meets the test case of testing requirement by the exploitation of webpage testing tool, pass through webpage The driving of testing tool testing results use-case on webpage to be tested, webpage testing tool are operated for analog subscriber to webpage Various functions and display effect are tested, to verify whether to meet expected results, webpage testing tool such as Selenium, Webdriver, Watir, Sahi or Canoo WebTest etc. (can be again for two examples).Webpage testing tool provides this hair Atomic operation function library described in bright embodiment, atomic operation function refer to the operation that will not be interrupted by thread scheduling mechanism, atom Handling function does not have any execution Context Switch, i.e., will not switch once end, centre is just run to always To another thread.Such as atomic operation function includes the function for realizing page elements positioning, page elements interaction.Atom Handling function library includes several atomic operation functions that webpage test job provides.Basic operation function is by several atoms Handling function encapsulates, and basic operation function is for realizing the increasingly complex operation of browser, such as register, upload behaviour Work or down operation.Multiple atoms behaviour in testing tool (hereinafter referred to as testing tool) the selection atomic operation function library of webpage It is packaged as function, is used as the frequent basic operation function of call number often specifically, can be recorded by statistical history Basic parameter function, the atomic operation function selected in atomic operation function library depend on the base in basic operation function library This handling function, basic operation function pair answers at least one atomic operation function, according to basic operation function and atomic operation letter Several correspondences determines the atomic operation function in atomic operation function library, is generated after multiple atomic operation function encapsulation special Fixed basic operation function, test device generate multiple basic operation functions and form basic operation function library, basic operation function The basic operation function for including in library can be added or change as needed.Wherein, encapsulation, which refers to, is encapsulated as multiple functions The modularity function of one realization specific function, other functions call the modularity function by unified calling interface.
S102, test case library is generated according to the basic operation function library;Wherein, comprising extremely in the test case library A few test case.
Specifically, test case is used to verify the simple function of webpage to be tested, test case is by multiple basic operation letters Number is packaged according to preset execution sequence, and specific test case is generated after encapsulation, and test device generates multiple tests and uses Example composition test case library, wherein test case library includes multiple test cases, and test case library can be by the formation of database Tissue is carried out, edit operation (such as increasing operation, modification operation or delete operation) editor's test case library of database is passed through In test case.
S103, M test use cases symphysis is selected from the test case library according to the testing requirement of webpage to be tested At test case group;Wherein, M is the integer more than 0, and each test case set includes at least one test case.
Specifically, test device selects multiple test cases according to preset order according to testing requirement from test case library Test case set is generated after arrangement, multiple test use cases are combined into test case group, and test device can be according to test need Seek the test case set being turned on and off in test case group.Disappear immediately for example, the testing requirement of webpage to be tested is test Message communication function, test device select the test case 1 (realizing login function) of the testing requirement, test from test case library Use-case 2 (realizing contact person's selection function), test case 3 (realizing message input function), test case 4 (realize message input Function), above-mentioned 4 test cases form 1 test case set, thus it is possible to vary one or more of test case set is surveyed The parameter of example on probation generates new test case set, for example, the content for changing contact person or input message generates new test Use-case set, multiple test use cases are combined into test case group.
S104, the webpage to be tested is tested according to the test case group.
Wherein, test device is treated test webpage according to the test case set of the unlatching in test case group and is surveyed Examination generates test result.
Implement the embodiment of the present invention to be packaged into atomic operation function substantially according to the testing requirement of webpage to be tested Handling function, then basic operation function is packaged into test case, and then test case is packaged into test case set, it is multiple Test case set is packaged into test case group, and the final test use-case of webpage to be tested is made of four levels, high-level Function can be multiplexed the function of low level, reduce the workload of exploitation test case.
It is a kind of another flow diagram of the test method of webpage provided in an embodiment of the present invention, in this hair referring to Fig. 2 In bright embodiment, the method includes:
S201, at least one of atomic operation function library atomic operation function is obtained, and is at least one original Sub-operation function generates basic operation function after configuring operation object type, localization method and output Value Types.
Specifically, webpage tester meets the test case of testing requirement by the exploitation of webpage testing tool, pass through webpage The driving of testing tool testing results use-case on webpage to be tested, webpage testing tool are operated for analog subscriber to be tested The true operation of webpage, the various functions and display effect for treating test webpage are tested, to verify whether to meet expected knot Fruit, webpage testing tool such as Selenium, Webdriver, Watir, Sahi or Canoo WebTest etc..Webpage testing tool The function library embodiment of the present invention of offer becomes atomic operation function library, such as atomic operation function includes for realizing page member The function of element positioning, page elements interaction.Atomic operation function library includes several atoms behaviour that webpage test job provides Make function.Basic operation function by several atomic operation functions encapsulation from, basic operation function for realizing register, The increasingly complex operation such as upload operation or down operation.Webpage test device (hereinafter referred to as test device, as in 1 from Dynamicization test frame) select multiple atomic operation functions in atomic operation function library to be packaged, it is generated after encapsulation specific Basic operation function, test device generate multiple basic operation functions and form basic operation function libraries, in basic operation function library Including basic operation function can be added or change as needed.
For example, webpage testing tool is illustrated by taking Webdriver as an example, Webdriver provides some common atoms Handling function, for example, the atomic operation function that webpage testing tool provides is as follows:
Interdepartmental, for realizing the interaction 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 inquiring ID;
ClickElement:For simulating the element in webpage clicking;
EditElement:For editing the element in webpage;
Webpage testing tool calls the atomic operation function in atomic operation function library to generate basic operation function, Mei Geji This handling function can be generated by one or more atomic operation functions, such as:The basic operation function of generation is as follows:<action >// basic operation function header part
<step>1 labeling head of // subfunction
<operation>ClickElement</operation>// atomic operation function name
<type>button</type>// operation object type
<method>xpath</method>// localization method
<value>MyButton1</value>Export Value Types
</step>1 tail tag of subfunction is remembered
<step>
<operation>EditElement</operation>// atomic operation function name
<type>text</type>
<method>tagname</method>
<value>This is Test</value>
</step>
<step>
<operation>ClickElement</operation>// atomic operation function name
<type>radiobox</type>
<method>id</method>
<value>MyID1</value>
</step>
</action>
</actions>// basic operation function tail tag is remembered
Can be by finding out from the basic operation function of above-mentioned generation, basic operation function is made of three sub- functions, is denoted as son Function 1, subfunction 2 and subfunction 3, each subfunction is by different atomic operation functions<operation>And it is grasped for atom Make the operation object type of function configuration<type>, localization method<method>With output Value Types<value>It generates, it is basic to grasp Atomic operation function can be called by original function name by making function.It can be grasped by configuring different atomic operation functions and atom Make the execution sequence of function to generate different basic operation functions.Basic operation function in basic operation function library can root According to being configured, common basic operation function is usually configured, such as realizes and uploads, the basic behaviour of download and login function Make function.Simultaneously the basic operation function in basic operation function library can by change operation object type, localization method and Three parameters of Value Types are exported to realize different functions, the basic operation function each generated is named according to function, Upload indicates that the basic operation function of upload function, login indicate the basic operation function of login function, other names form Details are not described herein again.
S202, at least one of basic operation function library basic operation function is obtained, and is described at least one A basic operation function generates test case after configuring at least one checkpoint;Wherein, the checkpoint is for verifying the life Whether the test result of the test case after is correct.
Specifically, test case is used to verify the simple function of webpage to be tested, test case is by multiple basic operation letters Number is packaged according to preset execution sequence, and specific test case is generated after encapsulation, and test device generates multiple tests and uses Example forms test case library, and the test case in test case library can be added and change as needed.Wherein, each to survey Example on probation, which has, is configured at least one checkpoint, expected results is provided in checkpoint, for the mistake in implementation of test cases Test result and expected results are compared in journey.
For example, the test case that testing tool calls the basic operation function in basic operation function library to generate is as follows:
<cases>Test case head
<case>
<index>1</index>// test case is numbered
<actions>The operating procedure of // definition test case
<action>login</action>// basic operation function login
<action>upload</action>Basic operation function upload
<action>download</action>Basic operation function download
</actions>
<results>// checkpoint labeling head
<result>// the 1 article of checkpoint
<type>button</type>
<status>true</status>
<value>mybutton1</value>
</result>
<result>// the 2 article of checkpoint
<type>span</type>
<status>this is my test</status>
<value>myspan1</value>
</result>
</results>Checkpoint tail tag note
</case>
</cases>
Number can be arranged in each test case of generation it can be seen from above-mentioned test case, for distinguishing different surveys Example on probation, each test case are sequentially generated by the preset execution of at least one basic operation function installation, while configured with extremely A few checkpoint.As grasped including basic operation function login, basic operation function upload and substantially in test case 1 Make function download, test case 1 is provided with checkpoint 1 and checkpoint 2, and webpage testing tool is in testing results use-case 1 The expected results of test result and checkpointing can be compared, and export comparison result.Specifically, checkpoint 1 is pre- Phase result is " mybutton1 ", and the expected results of checkpoint 2 are after implementation of test cases 1, to judge to generate for " myspan1 " Test result whether there are the expected results of checkpoint 1 and checkpoint 2, if YES, it is determined that the test of test case 1 is logical It crosses, the otherwise test of test case 1 does not pass through.
S203, M test use cases symphysis is selected from the test case library according to the testing requirement of webpage to be tested At test case group;Wherein, M is the integer more than 0, and each test case set includes at least one test case.
Specifically, treat test webpage tested when, need the testing requirement for generating webpage to be tested, testing requirement Including restrictive conditions such as test zone, test elements, test methods, test device is selected according to testing requirement from test case library It selects generation test case set, multiple test use cases after multiple test cases are arranged according to preset order and is combined into test case Group, test device can be turned on and off the test case set in test case group, each test case according to testing requirement Group includes at least one test case set, and each test case set is marked configured with abnormality processing and enabled label, enables For whether starting corresponding test case set, abnormality processing mark indicates to test the mistake of corresponding test case set label It is abnormal in journey and whether stops testing.
For example, the test case group generated is as follows:
<groups>// test case group labeling head
<cases>
<sequence>1,2,3,4</sequence>// test case set 1
<enable>True</enable>// enable label
<stoponerror>False</stoponerror>// abnormality processing identifies
</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
Test case group is by test case set 1 and test use cases it can be seen from the test case group of above-mentioned generation Close 2 composition, wherein test case set 1 include test case 1,2,3,4, test case set 2 include test case 1,2,7, 8, the enabled of test case set 1 is identified as True, indicates to start test case set 1, abnormality processing is identified as False, table Show and does not stop testing when testing results use-case set 1 is abnormal;The enabled label of test case 2 is to indicate to open to survey Example set 2 on probation, abnormality processing is identified as True, indicates to stop test during testing results use-case set 2.
S204, the webpage to be tested is tested according to the test case group, according in the test case group The test result of each test case set generates test report, and the test report is sent to specified address.
Specifically, test device testing results use-case group, treats test webpage by the driving of webpage testing tool and carries out Test, runs the test case in each test case set, by the test result and expected results of each test case successively It is compared generation test report, test report is sent automatically by modes such as Email, instant communication message or multimedia messages To specified recipient.
It should be noted that basic operation function, test case and test case group in the embodiment of the present invention can be with But it is not limited to describe using XML.
Implement the embodiment of the present invention to be packaged into atomic operation function substantially according to the testing requirement of webpage to be tested Handling function, then basic operation function is packaged into test case, and then test case is packaged into test case set, it is multiple Test case set is packaged into test case group, and the final test use-case of webpage to be tested is made of four levels, high-level Function can be multiplexed the function of low level, reduce the workload of exploitation test case.
It is a kind of structural schematic diagram of the test device of webpage provided in an embodiment of the present invention referring to Fig. 4, of the invention real It applies in example, the webpage test device includes the first configuration module 10, the second configuration module 20, third configuration module 30 and webpage Test module 40, wherein
First configuration module 10, for generating basic operation function according to the atomic operation function library of webpage testing tool Library;Wherein, the basic operation function library includes at least one basic operation function.
Second configuration module 20, for generating test case library according to the basic operation function library;Wherein, the test It include at least one test case in use-case library.
Third configuration module 30, for selecting M from the test case library according to the testing requirement of webpage to be tested Test use cases symphysis is at test case group;Wherein, M is the integer more than 0, and each test case set includes at least one survey Example on probation.
Webpage test module 40, for being tested the webpage to be tested according to the test case group.
The embodiment of the present invention and embodiment of the method one are based on same design, and the technique effect brought is also identical, specific mistake Journey please refers to the description of embodiment of the method one, and details are not described herein again.
Further, referring to Fig. 5 and Fig. 6, match in a kind of test device of webpage provided in an embodiment of the present invention first The structural schematic diagram of module and the second configuration module is set, in embodiments of the present invention, the first configuration module 10 includes the first acquisition Unit 101 and the first dispensing unit 102, the second configuration module 20 include second acquisition unit 201 and the second dispensing unit 202, Wherein,
First acquisition unit 101, for obtaining at least one of atomic operation function library atomic operation function.
First dispensing unit 102, for configuring operation object type, positioning side at least one atomic operation function Corresponding basic operation function is generated after method and output Value Types.
Second acquisition unit 201, for obtaining at least one of basic operation function library basic operation function.
Second dispensing unit 202, for being raw behind at least one checkpoint of at least one basic operation function configuration At test case;Wherein, whether test result of the checkpoint for verifying the test case after the generation be correct.
Optionally, every group of test case in the test case group carries enabled mark and abnormality processing mark;It is described Enabled mark opens corresponding test case set for indicating whether, the abnormality processing is indicated for indicating that test is corresponding It notes abnormalities during test case set and whether stops testing.
Optionally, the webpage test module 40 is additionally operable to according to each test case set in the test case group Test result generates test report, and the test report is sent to specified address.
The embodiment of the present invention and embodiment of the method two are based on same design, and the technique effect brought is also identical, specific mistake Journey please refers to the description of embodiment of the method two, and details are not described herein again.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
It is above disclosed to be only a preferred embodiment of the present invention, the power of the present invention cannot be limited with this certainly Sharp range, those skilled in the art can understand all or part of the processes for realizing the above embodiment, and is weighed according to the present invention Equivalent variations made by profit requirement, still belong to the scope covered by the invention.

Claims (6)

1. a kind of webpage test method, which is characterized in that including:
Basic operation function library is generated according to the atomic operation function library of webpage testing tool;Wherein, the basic operation function Library includes at least one basic operation function;
Test case library is generated according to the basic operation function library;Wherein, include at least one survey in the test case library Example on probation;The test case is used to verify the simple function of webpage to be tested, and the test case is by multiple basic operation letters Number is packaged according to preset execution sequence;
Select M test use cases symphysis at test case from the test case library according to the testing requirement of webpage to be tested Group;Wherein, M is the integer more than 0, and each test case set includes at least one test case;
The webpage to be tested is tested according to the test case group;Wherein,
It is described to include according to the atomic operation function library of webpage testing tool generation basic operation function library:
At least one of atomic operation function library atomic operation function is obtained, the atomic operation function includes for real The function of existing page elements positioning, page elements interaction;
Correspondence is generated after configuring operation object type, localization method and output Value Types at least one atomic operation function Basic operation function;
Every group of test case in the test case group carries enabled mark and abnormality processing mark;The enabled mark is used for It indicates whether to open corresponding test case set, the abnormality processing mark tests corresponding test case set for indicating During note abnormalities and whether stop testing.
2. the method as described in claim 1, which is characterized in that described to generate test case according to the basic operation function library Library further includes:
Obtain at least one of basic operation function library basic operation function;
Test case is generated after configuring at least one checkpoint at least one basic operation function;Wherein, the inspection Whether test result of the point for the test case after verifying the generation be correct.
3. method as claimed in claim 1 or 2, which is characterized in that it is described according to the test case group to described to be tested Webpage is tested, and further includes:
Test report is generated according to the test result of each test case set in the test case group, and by the test Report is sent to specified address.
4. a kind of webpage test device, which is characterized in that including:
First configuration module, for generating basic operation function library according to the atomic operation function library of webpage testing tool;Wherein, The basic operation function library includes at least one basic operation function;
Second configuration module, for generating test case library according to the basic operation function library;Wherein, the test case library In include at least one test case;The test case is used to verify the simple function of webpage to be tested, the test case It is packaged according to preset execution sequence by multiple basic operation functions;
Third configuration module, for selecting M test to use from the test case library according to the testing requirement of webpage to be tested Example set generates test case group;Wherein, M is the integer more than 0, and each test case set is used comprising at least one test Example;
Webpage test module, for being tested the webpage to be tested according to the test case group;Wherein, described first Configuration module includes:
First acquisition unit, for obtaining at least one of atomic operation function library atomic operation function, the atom Handling function includes the function for realizing page elements positioning, page elements interaction;
First dispensing unit, for configuring operation object type, localization method and defeated at least one atomic operation function Corresponding basic operation function is generated after going out Value Types;
Every group of test case in the test case group carries enabled mark and abnormality processing mark;The enabled mark is used for It indicates whether to open corresponding test case set, the abnormality processing mark tests corresponding test case set for indicating During note abnormalities and whether stop testing.
5. device as claimed in claim 4, which is characterized in that second configuration module includes:
Second acquisition unit, for obtaining at least one of basic operation function library basic operation function;
Second dispensing unit is used for generation test after configuring at least one checkpoint at least one basic operation function Example;Wherein, whether test result of the checkpoint for verifying the test case after the generation be correct.
6. device as described in claim 4 or 5, which is characterized in that the webpage test module is additionally operable to according to the test The test result of each test case set generates test report in use-case group, and the test report is sent to specified ground Location.
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 CN104820640A (en) 2015-08-05
CN104820640B true 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)

Families Citing this family (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
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
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
CN111737152B (en) * 2020-07-29 2020-11-20 中国人民解放军国防科技大学 Method and device for realizing WEB automatic test by inputting data through webpage
CN112765040B (en) * 2021-02-04 2024-01-26 深圳市捷视飞通科技股份有限公司 Page test method, system, computer equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101526919B (en) * 2009-04-29 2011-12-28 福建星网锐捷网络有限公司 Method for generating script files to test Web application software and device thereof
US8949792B2 (en) * 2009-08-18 2015-02-03 Adobe Systems Incorporated Methods and systems for data service development
CN103164334B (en) * 2011-12-19 2016-03-30 国际商业机器公司 Detect the system and method for the breakaway poing in web application automatic test case
US8949795B2 (en) * 2012-08-23 2015-02-03 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

Also Published As

Publication number Publication date
CN104820640A (en) 2015-08-05

Similar Documents

Publication Publication Date Title
CN104820640B (en) A kind of webpage test method and device
US8381184B2 (en) Dynamic test coverage
CN105468529B (en) A kind of accurate traversal method of Android application UI controls and device
CN107193733A (en) Simulate the methods, devices and systems of Monkey tests
US20120042302A1 (en) Selective regression testing
CN105426310B (en) A kind of method and apparatus for the performance for detecting target process
CN105095059B (en) A kind of method and apparatus of automatic test
CN105760296B (en) Automatic test control method, device and terminal
US20120116561A1 (en) Program testing apparatus, method of testing a program, and program testing program
CN103209180B (en) A kind of method and system of testing protocol consistency
CN110716870A (en) Automatic service testing method and device
CN104794049A (en) Application program test method and device
CN109902005A (en) A kind of method and system of automatic test
CN110162457A (en) Test method, device, equipment and the storage medium of user interface
CN103324568A (en) Method and apparatus for testing programs
CN112052130A (en) CAN network automatic test system and test method thereof
CN108874649A (en) Generation method, device and its computer equipment of automatic test script
CN105279092A (en) Software testing method and apparatus
US9507616B1 (en) Methods, systems, and computer readable media for emulating computer processing usage patterns on a virtual machine
Khanna et al. Performance comparison of multi-objective algorithms for test case prioritization during web application testing
CN107741909A (en) A kind of automated testing method and system for distributed block storage
CN105550103B (en) A kind of automated testing method based on self-defined test script
CN106502887A (en) A kind of stability test method, test controller and system
CN107632909A (en) Method and system for ATE function
CN110287121A (en) A kind of test method and device automating use-case

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