CN107153614A - A kind of automatic test page navigation method for organizing - Google Patents

A kind of automatic test page navigation method for organizing Download PDF

Info

Publication number
CN107153614A
CN107153614A CN201710334641.4A CN201710334641A CN107153614A CN 107153614 A CN107153614 A CN 107153614A CN 201710334641 A CN201710334641 A CN 201710334641A CN 107153614 A CN107153614 A CN 107153614A
Authority
CN
China
Prior art keywords
page
navigation method
automatic test
page navigation
organizing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710334641.4A
Other languages
Chinese (zh)
Inventor
李男
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710334641.4A priority Critical patent/CN107153614A/en
Publication of CN107153614A publication Critical patent/CN107153614A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management

Abstract

The invention discloses a kind of automatic test page navigation method for organizing, specific method is as follows:S1, tested object divided according to module;S2, described one object instance of each module creation;S3, for described object instance page navigation method is realized again, navigate to the page for needing to test;S4, last, the page navigation method of the object instance directly described in reference, write automatic test cases script, so as to realize page navigation.Compared to the prior art, the higher script of tissue repetitive rate is managed collectively a kind of automatic test page navigation method for organizing of the present invention for the mode of object, reduces the development time of script, saves the maintenance cost in later stage.

Description

A kind of automatic test page navigation method for organizing
Technical field
It is specifically a kind of automatic the present invention relates to the development technique field of software automated testing and test script Change test page navigation method for organizing.
Background technology
Software engineer writes automatic test script, is typically necessary positioning measurand page elements, then right Element carries out corresponding operating, if measurand is a kind of simple small instruments and tools of function, can be direct when writing test case Page elements are operated, test is realized, but if it is tested be a kind of function relatively it is comprehensive comprehensively and be according to Module Division System tool, this method will safeguard also cumbersome than relatively time-consuming.
The content of the invention
The technical assignment of the present invention is to provide a kind of automatic test page navigation method for organizing.
The technical assignment of the present invention realizes that a kind of automatic test page navigation method for organizing has in the following manner Body method is as follows:
S1, tested object divided according to module;
S2, described one object instance of each module creation;
S3, for described object instance page navigation method is realized again, navigate to the page for needing to test;
S4, last, the page navigation method of the object instance directly described in reference, write automatic test cases script, so that Realize page navigation.
Further, method preferably is that described measurand is a kind of test object according to Module Division function.
Further, method preferably is that described each module includes multiple pages.
Further, method preferably is that citing operating procedure is as follows:
Assuming that the access modules A a pages, first create a classA class, then the funa () method for navigating to a pages is write, should The realization of method is that since the start page shown after login, element operation, eventually arrives at the tested page successively.
Further, method preferably is, the specific steps of described element operation:
S1, setting wait total time, it is assumed herein that waiting 60 seconds, judge that element whether there is, in the absence of more than the stand-by period then Exit, exist then to S2;
S2, judge whether element is state of activation, it is no, clicking operation is performed to the element, led if current page is exactly needs The page navigated, then need not operate, to S3;
S3, judge whether the page is original state, if not original state, refresh the page for original state;If Original state, into next element operation.
Compared to the prior art a kind of automatic test page navigation method for organizing of the present invention, has the beneficial effect that:
1st, the higher script of present invention tissue repetitive rate is managed collectively for the mode of object, reduces the development time of script;
2nd, the unified page navigation interface of offer can share to other Test Engineers and call using raising development efficiency;
3rd, under the change conditions of interface, only modification navigation interface, reduces the maintenance cost in later stage;
4th, efficient navigation is carried out by this method, time saving and energy saving, later maintenance also can be fairly simple.
Brief description of the drawings
Accompanying drawing 1 is a kind of flow chart of automatic test page navigation method for organizing;
Accompanying drawing 2 is a kind of another flow chart of automatic test page navigation method for organizing.
Embodiment
Embodiment 1:
According to Module Division first, it is assumed that have a modules A and module B, each module have comprising a, b, c ... the page;Followed by Object encapsulation is carried out to modules A and module B, then the method different to the object implementatio8 navigates to the different pages;It is exactly finally book When writing automatic test cases script, the page navigation method of direct reference object realizes page navigation.
In specific implementation, as shown in Figure 1, it is assumed that the access modules A a pages, a classA class is first created, then is write Navigate to funa () method of a pages, the realization of this method is usually the point successively since the start page shown after login Some elements are hit, the tested page is eventually arrived at;
As shown in Figure 2, wherein to a series of following judgements will be carried out before each element operation:
Element whether there is(Setting waits total time, it is assumed herein that waiting 60 seconds), then exited in the absence of more than the stand-by period;
Whether element is that state of activation (if current page is exactly the page for needing to navigate to, need not be operated, otherwise to this Element performs the operation such as click);
Whether the page is original state (if not original state, refreshing the page for original state).
Test case is write, realizes before certain page function, first calls the such methods of classA.funa (), complete page The quick navigation in face.
By embodiment above, the those skilled in the art can readily realize the present invention.But should Work as understanding, the present invention is not limited to above-mentioned several embodiments.On the basis of disclosed embodiment, the technology The technical staff in field can be combined different technical characteristics, so as to realize different technical schemes.

Claims (5)

1. a kind of automatic test page navigation method for organizing, it is characterised in that specific method is as follows:
S1, tested object divided according to module;
S2, described one object instance of each module creation;
S3, for described object instance page navigation method is realized again, navigate to the page for needing to test;
S4, last, the page navigation method of the object instance directly described in reference, write automatic test cases script, so that Realize page navigation.
2. a kind of automatic test page navigation method for organizing according to claim 1, it is characterised in that described is tested Object is a kind of test object according to Module Division function.
3. a kind of automatic test page navigation method for organizing according to claim 1, it is characterised in that described is each Module includes multiple pages.
4. a kind of automatic test page navigation method for organizing according to claim 1, it is characterised in that citing operation step It is rapid as follows:
Assuming that the access modules A a pages, first create a classA class, then the funa () method for navigating to a pages is write, should The realization of method is that since the start page shown after login, element operation, eventually arrives at the tested page successively.
5. a kind of automatic test page navigation method for organizing according to claim 4, it is characterised in that described element The specific steps of operation:
S1, setting wait total time, it is assumed herein that waiting 60 seconds, judge that element whether there is, in the absence of more than the stand-by period then Exit, exist then to S2;
S2, judge whether element is state of activation, it is no, clicking operation is performed to the element, led if current page is exactly needs The page navigated, then need not operate, to S3;
S3, judge whether the page is original state, if not original state, refresh the page for original state;If Original state, into next element operation.
CN201710334641.4A 2017-05-12 2017-05-12 A kind of automatic test page navigation method for organizing Pending CN107153614A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710334641.4A CN107153614A (en) 2017-05-12 2017-05-12 A kind of automatic test page navigation method for organizing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710334641.4A CN107153614A (en) 2017-05-12 2017-05-12 A kind of automatic test page navigation method for organizing

Publications (1)

Publication Number Publication Date
CN107153614A true CN107153614A (en) 2017-09-12

Family

ID=59794045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710334641.4A Pending CN107153614A (en) 2017-05-12 2017-05-12 A kind of automatic test page navigation method for organizing

Country Status (1)

Country Link
CN (1) CN107153614A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113238958A (en) * 2021-06-01 2021-08-10 广东好太太智能家居有限公司 Automatic testing method and device for big data visualization platform and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103777949A (en) * 2014-01-17 2014-05-07 浪潮电子信息产业股份有限公司 Design method of automated testing script
CN105608007A (en) * 2015-12-28 2016-05-25 北京致远协创软件有限公司 Page model as well as user interface automated test method and device
US9507700B1 (en) * 2015-12-22 2016-11-29 Sap Se Generic method for automated software testing
CN106354649A (en) * 2016-09-18 2017-01-25 郑州云海信息技术有限公司 Layered script design method for automated testing of webpages
CN106484609A (en) * 2015-09-01 2017-03-08 博雅网络游戏开发(深圳)有限公司 Page method of testing and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103777949A (en) * 2014-01-17 2014-05-07 浪潮电子信息产业股份有限公司 Design method of automated testing script
CN106484609A (en) * 2015-09-01 2017-03-08 博雅网络游戏开发(深圳)有限公司 Page method of testing and device
US9507700B1 (en) * 2015-12-22 2016-11-29 Sap Se Generic method for automated software testing
CN105608007A (en) * 2015-12-28 2016-05-25 北京致远协创软件有限公司 Page model as well as user interface automated test method and device
CN106354649A (en) * 2016-09-18 2017-01-25 郑州云海信息技术有限公司 Layered script design method for automated testing of webpages

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
曹磊 等: "一种基于Selenium的Web应用软件自动化测试平台设计与实现", 《科研信息化技术与应用》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113238958A (en) * 2021-06-01 2021-08-10 广东好太太智能家居有限公司 Automatic testing method and device for big data visualization platform and electronic equipment

Similar Documents

Publication Publication Date Title
CN103744761B (en) Method and system for controlling multiple mobile terminals to automatically execute tasks
US7930565B2 (en) Power-optimizing memory analyzer, method of operating the analyzer and system employing the same
CN102541521B (en) Automatic operating instruction generating device based on structured query language and method
EP1975769A3 (en) Method and apparatus for unified storage system
CN101266570A (en) Software system test method and apparatus
CN100416496C (en) Scratch memory for updating instruction error state
CN104991874B (en) A kind of multi-controller storage device ALUA collocation methods based on SCST
CN104980552A (en) Method and system for realizing automatic test of Android mobile terminal
CN104538058A (en) Semi-automatic burning device and method
CN104572279A (en) Node binding-supporting virtual machine dynamic scheduling method
CN107153614A (en) A kind of automatic test page navigation method for organizing
CN101021812A (en) Interpreter language debugging method and device
JP5508078B2 (en) Program creation support apparatus and method, and program
CN103746873A (en) System and method for testing communication module
CN102566481B (en) C language-based PLC (Programmable Logic Controller) control system and realization method thereof
EP1935576A1 (en) An industrial robot system
CN109048928A (en) A kind of generation method and device of robot control program
CN100472472C (en) GUI test and drive method under Windows platform based on MSAA
CN104598453B (en) Data migration method based on data buffering
CN102222599B (en) Method and device for optimizing technological process
CN104808961A (en) Scripted regulating method for display interface module parameters
CN104317720B (en) A kind of mobile terminal automation testing system and method based on Robotium automatized script
CN101971562B (en) Method, device and system for controlling automatic running process performance
CN1848093A (en) Method for debugging high configuration and power supply interface module in basic inputting and outputting system
CN115206825B (en) Chip bonding contact determination method, system, die bonder and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170912