CN109634857A - The method, apparatus and storage medium of test page object - Google Patents

The method, apparatus and storage medium of test page object Download PDF

Info

Publication number
CN109634857A
CN109634857A CN201811479925.3A CN201811479925A CN109634857A CN 109634857 A CN109634857 A CN 109634857A CN 201811479925 A CN201811479925 A CN 201811479925A CN 109634857 A CN109634857 A CN 109634857A
Authority
CN
China
Prior art keywords
page
target pages
circulate operation
current
page object
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811479925.3A
Other languages
Chinese (zh)
Other versions
CN109634857B (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.)
Neusoft Corp
Original Assignee
Neusoft Corp
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 Neusoft Corp filed Critical Neusoft Corp
Priority to CN201811479925.3A priority Critical patent/CN109634857B/en
Publication of CN109634857A publication Critical patent/CN109634857A/en
Application granted granted Critical
Publication of CN109634857B publication Critical patent/CN109634857B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the present application provides the method, apparatus and storage medium of a kind of test page object, this method comprises: determining there is the target pages object with circulate operation mark in current page, the circulate operation mark of the target pages object is obtained according to the script of the target pages object;The page executes the target pages object in this prior, obtains next page;If there are the target pages objects in next page, the target pages object is executed in next page, if the target pages object is not present in next page, stops executing the target pages object.The embodiment of the present application is when carrying out automatic test to page object, page object is tested according to the circulate operation of page object mark and service logic, the fixed cycles number of operations in test process is not limited, therefore in service logic change, without resetting target pages object, the efficiency that automatic test is carried out to page object is improved.

Description

The method, apparatus and storage medium of test page object
Technical field
The invention relates to field of computer technology more particularly to a kind of method, apparatus of test page object and Storage medium.
Background technique
For the page object in the page, often it is related to circulate operation (the circulate operation ratio to some page object For example user's adopting consecutive click chemical reaction page object, page object are performed continuously repeatedly);Wherein, page object such as can be " upper one Buttons or the icon such as step " or " next step ".
Currently in order to realizing the recyclable operation of page object, the circulate operation number of the page object can be set.Certainly In dynamicization test process, the page object of the number can be executed according to the circulate operation number of script setting.
Above-mentioned way, once so that subsequent service logic changes, such as the page service logic by needing to be implemented 4 pages When in face of as becoming to need to be implemented 3 page objects, the circulate operation number of the page object is needed to reset, so as to page In face of being reduced as the efficiency for carrying out automatic test.
Summary of the invention
The embodiment of the present application provides the method, apparatus and storage medium of a kind of test page object, improves page object Carry out the efficiency of automatic test.
In a first aspect, the embodiment of the present application provides a kind of method of test page object, it is applied to terminal, comprising:
Determine there is the target pages object with circulate operation mark in current page, the target pages object follows Ring operation mark is obtained according to the script of the target pages object;
The target pages object is executed in the current page, obtains next page;
If there are the target pages objects in next page, the target is executed in next page Page object stops executing the target pages object if the target pages object is not present in next page.
In a kind of possible design, there are the target pages pair with circulate operation mark in the determining current page As before, the method also includes:
Receive the page object selection instruction of user's input, the page chosen in the page object selection instruction comprising user In face of as;
The page that the user selects is arranged to the target pages object to picture, the target pages object band is State circulate operation mark.
In a kind of possible design, the page for selecting the user to as be arranged to the target pages object it Afterwards, the method also includes:
Receive the cycle-index of the target pages object of user setting.
In a kind of possible design, there are the target pages pair with circulate operation mark in the determining current page As including:
The page object in current page is obtained, judges whether the page object has circulate operation mark;
If having, there will be circulate operation identified page object to be determined as target pages object;
If not having, judge whether next page object has circulate operation mark in the current page.
It is described to execute the target pages object in the current page in a kind of possible design, it obtains next After the page, the method also includes:
If the current page is the page for first appearing the target pages object, and institute is not present in next page Target pages object is stated, then output abnormality prompt information;Alternatively,
If the current page is not the page for first appearing the target pages object, and is not present in next page Page object, then output abnormality prompt information.
Second aspect, the embodiment of the present application provide a kind of device of test page object, comprising:
There is the target pages object with circulate operation mark, the mesh in current page for determining in determining module The circulate operation mark of mark page object is obtained according to the script of the target pages object;
Execution module obtains next page for executing the target pages object in the current page;
The execution module, if being also used in next page, there are the target pages objects, under described One page executes the target pages object, if the target pages object is not present in next page, stops Execute the target pages object.
In a kind of possible design, further includes: receiving module and setup module;
The receiving module, for there are the target pages pair with circulate operation mark in the determining current page As before, receiving the page object selection instruction of user's input, the page chosen in the page object selection instruction comprising user In face of as;
The setup module, the page for selecting the user is arranged to the target pages object to picture, described Target pages object is identified with the circulate operation.
In a kind of possible design, the receiving module is also used to receive the target pages object of user setting Cycle-index.
In a kind of possible design, the determining module is specifically used for:
The page object in current page is obtained, judges whether the page object has circulate operation mark;
If having, there will be circulate operation identified page object to be determined as target pages object;
If not having, judge whether next page object has circulate operation mark in the current page.
Further include output module in a kind of possible design, the output module is used for:
If the current page is the page for first appearing the target pages object, and institute is not present in next page Target pages object is stated, then output abnormality prompt information;Alternatively,
If the current page is not the page for first appearing the target pages object, and is not present in next page Page object, then output abnormality prompt information.
The third aspect, the embodiment of the present application provide a kind of readable storage medium storing program for executing, including program or instruction, when described program or When instruction is run on computers, the method in first aspect and any possible design of first aspect is performed.
Fourth aspect, a kind of device of test page object of the embodiment of the present application, comprising: processor, the processor with Memory coupling;
The memory is used for, and stores computer program;
The processor is used for, and calls the computer program stored in the memory, to realize first aspect and On the one hand the method in any possible design is performed.
In the application when to needing the page object of circulate operation to carry out automatic test, due to needing circulate operation Page object is identified with circulate operation, does not have circulate operation number, then needing the continuous of the page object of circulate operation Execute whether number can (include the page in the page shown after executing in page object according to the service logic of the current page Object) it determines, it is no longer limited by fixed circulate operation number.Therefore the if desired page where the page object of circulate operation Corresponding service logic is changed, and when again to needing the page object of circulate operation to carry out automatic test, is not necessarily to Again new circulate operation number the page object of the needs circulate operation is arranged, due to the page pair of the needs circulate operation The circulate operation mark of elephant is obtained from the script of the page object of the needs circulate operation, that is, is not required to regenerate the needs The script of the page object of circulate operation, therefore improve the efficiency that automatic test is carried out to page object.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this Shen Some embodiments please for those of ordinary skill in the art without any creative labor, can be with It obtains other drawings based on these drawings.
Fig. 1 is system architecture schematic diagram provided by the embodiments of the present application;
Fig. 2 is the flow chart one of the method for test page object provided by the embodiments of the present application;
Fig. 3 is the flowchart 2 of the method for test page object provided by the embodiments of the present application;
Fig. 4 is the structural schematic diagram one of the device of test page object provided by the embodiments of the present application;
Fig. 5 is the structural schematic diagram two of the device of test page object provided by the embodiments of the present application;
Fig. 6 is the structural schematic diagram three of the device of test page object provided by the embodiments of the present application.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall in the protection scope of this application.
In the application, "at least one" refers to one or more, and " multiple " refer to two or more."and/or", The incidence relation of affiliated partner is described, indicates may exist three kinds of relationships, for example, A and/or B, can indicate: individualism A, Exist simultaneously A and B, the case where individualism B, wherein A, B can be odd number or plural number.Character "/" typicallys represent front and back and closes Connection object is a kind of relationship of "or".At least one of " following (a) " or its similar expression, refer to these in any group It closes, any combination including individual event (a) or complex item (a).For example, at least one (a) in a, b or c, can indicate: A, b, c, a-b, a-c, b-c or a-b-c, wherein a, b, c can be individually, be also possible to multiple.Term " in the application One ", " second " etc. is to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
Fig. 1 is system architecture schematic diagram provided by the embodiments of the present application;Referring to Fig. 1, the system architecture of the present embodiment includes Server 11 and terminal 12.It wherein, include the device of test page object in terminal 12, the device of the test page object can be with Execute the method in Fig. 2.
In the following, technical solution shown in the application is described in detail by specific embodiment.Under it should be noted that The several specific embodiments in face can be combined with each other, and for the same or similar content, no longer carry out weight in various embodiments Multiple explanation.
Fig. 2 is the method for test page object provided by the embodiments of the present application;Referring to fig. 2, the method for the present embodiment includes:
Step S201, determine there are the target pages object with circulate operation mark, target pages pair in current page The circulate operation mark of elephant is obtained according to the script of target pages object.
Specifically, the page object in the present embodiment can be icon, such as " previous step ", " next step ", " agreement " Deng.For from the number that one service logic of completion needs to continuously perform, needing to continuously perform multiple page object can claim For the page object for needing circulate operation, needing to be implemented primary page object can be described as the page object of single operation.Such as " previous step ", " next step " etc. are to need the page object of circulate operation, and " submission " is the page object of single operation.This implementation The method of test page object in example is the method for the page object that test needs circulate operation.
Page object-target pages object process of circulate operation is needed to illustrate this implementation to test one below The method of test page object in example.
In test page object, it is necessary first to open the page for first appearing the target pages object.In the present embodiment Current page can be for there are the target pages objects in the page involved in the test process of the target pages object Any page.
If current page is the page for first appearing the target pages object, it is determined that existing in current page has circulation The target pages object of operation mark includes:
The page object in current page is obtained, judges whether page object has circulate operation mark;It, will if having It is determined as target pages object with circulate operation identified page object;If not having, next page in current page is judged It is no with circulate operation mark in face of liking.
Specifically, judge whether page object there is circulate operation mark can sentence by the script of the page object It is disconnected, then before judging whether page object has circulate operation mark, can also be wrapped obtaining the page object in current page It includes: obtaining the script of page object.
Wherein, in order to save the memory space of terminal, the script that page object is obtained in a kind of mode can be by as follows A1~a2 realize:
A1, script acquisition request is sent to server device, script acquisition request includes the mark of page object.
Specifically, since, including the mark of page object, terminal is obtaining page object in the script of page object Script when, the mark of page object is carried in script acquisition request.
A2, the script that page object is received from server, the script of page object includes the mark of page object.
Specifically, after server receives script acquisition request, according to the script acquisition request, obtaining includes the page pair The script of the mark of elephant obtains the script of page object, and the script of the page object is sent to terminal, terminal is from service The script of device reception page object.
In a further mode of operation, the script of page object can also be stored in advance in terminal inner, and such terminal obtains the page The script of object is obtained from the memory of itself, and the speed ratio for obtaining script is very fast.At this point, pre-stored page in terminal In face of elephant script can be server generate page object script after, be sent to the terminal.
Terminal is after getting the script of page object, if including that circulate operation identifies in the script of page object, really Determine page object to identify with circulate operation, and determine that page object is target pages object, if in the script of page object not It is identified including circulate operation, it is determined that page object is identified without circulate operation, and is worked as according to above-mentioned identical method judgement Whether next page object has circulate operation mark in the preceding page.
If current page is not the page for first appearing the target pages object, and is the page involved in test process In other pages for the target pages object occur other than first appearing target pages object, it is determined that deposited in current page It comprises determining that whether to store in current page in the target pages object identified with circulate operation and is identified as the target pages pair The page object of the mark of elephant, and if it exists, then determine there are the target pages pair with circulate operation mark in current page As.Even current page is not the page for first appearing the target pages object, and is in the page involved in test process Other pages for the target pages object occur other than first appearing target pages object, then deposit in determining current page In the target pages object identified with circulate operation, without removing the script of acquisition page object again.
Step S202, in current page performance objective page object, next page is obtained;
Specifically, it is determined that then terminal is being worked as after there is the target pages object with circulate operation mark in current page The preceding page executes the primary target pages object, obtains next page.
If there are the target pages objects in step S203, next page, in next page performance objective page Object stops performance objective page object if target pages object is not present in next page.
Specifically, judge the specific judgment method in next page there are the target pages object are as follows: determine under this One page whether there is the page object for being identified as the mark of the target pages object, and if it exists, then determine next page There are the target pages objects in face, then execute the primary target pages object in next page.Wherein, in the case where determining this There are the target pages objects in one page, and after next page executes the primary target pages object, can obtain Another page obtains the subsequent processing method of another page with step S203, and details are not described herein again.
If the page object for being identified as the mark of the target pages object is not present in next page, it is determined that this is next The target pages object is not present in a page, and stops executing the target pages object.Wherein, stop executing the target pages Object illustrates that the test to the target pages object terminates.
It wherein, can for the judgment method that whether target pages object runs succeeded in test process are as follows: if having executed one The secondary target pages object includes the target pages object or other page objects in the page of display, illustrates the secondary target Page object runs succeeded, if therefore during the test, each execution of target pages object is all successful, then explanation should Target pages object is successfully tested.And the page object is stopped executing and not necessarily illustrates that the page object is successfully tested, wherein There is no after the target pages object in determining next page, there are following situations:
(1) it if the current page is the page for first appearing the target pages object, and is not present in next page The target pages object, then output abnormality prompt information.
Since the target pages object is the page object for needing circulate operation, i.e., in primary complete service logic, The target pages object at least needs to be performed twice, is the page for first appearing the target pages object in current page therefore When face, there should be the target pages object in next page, if the target pages pair are not present in next page As then illustrating test process exception, therefore, exportable abnormal prompt information.
(2) it if the current page is not the page for first appearing the target pages object, and is not deposited in next page In page object, then output abnormality prompt information.
It is understood that since the target pages object is the page object for needing circulate operation, primary complete In service logic, the page object that last time executes is not the target pages object, therefore, if the current page is not for the first time When there is the page of the target pages object, and the target pages object being not present in next page, it should which there are other Page object.Even the current page is not the page for first appearing the target pages object, and in next page not There are page object (being both not present the target pages object, also there is no other page objects), then illustrate that test process is different Often, therefore, exportable abnormal prompt information.
(3) if the current page is not the object for first appearing the target pages, and the mesh is not present in next page Page object is marked, there are other page objects, then continue to test other page objects.
Based on the analysis in (2), this kind of situation explanation is completed the target pages object, and is successfully tested.
Above by step S201~step S203, the method for the test page object of the present embodiment is illustrated. Below using the method for the test page object of specific for example bright the present embodiment.
Illustratively, the page that page object A is first appeared, referred to herein as first page are opened;Obtain page object A Script, include the mark of circulate operation in the script of page object A, i.e. page object A is the page pair for needing circulate operation As.
At least there are following several situations in test process:
(1) execute page object A in first page, obtain second page, second page there are page object A, Page object A then is executed in second page, obtains the third page, there are page object A for the third page, then in third The page executes page object A, obtains the 4th page, and page object A is not present in the 4th page, and there are page object B, then stop Page object A is only executed, page object A is completed and is successfully tested.
(2) execute page object A in first page, obtain second page, second page there are page object A, Page object A then is executed in second page, obtains the third page, there are page object A for the third page, then in third The page executes page object A, obtains the 4th page, and page object is not present in the 4th page, then output abnormality information.
(3) execute page object A in first page, obtain second page, second page there are page object A, Page object A then is executed in second page, obtains the third page, page object A is not present in the third page, and there are the pages Object B then stops executing page object A, and page object A is completed and is successfully tested.
(4) execute page object A in first page, obtain second page, second page there are page object A, Page object A then is executed in second page, obtains the third page, the third page is not present page object, then exports different Normal information.
(5) page object A is executed in first page, obtains second page, page object is not present in second page A, then output abnormality information.
Test method for not needing the page object of circulate operation can refer to current test method, alternatively, according to Script obtains the page object for not needing circulate operation and identifies with single operation, then existing in determining current page has After the page object of single operation mark, the primary page object is executed.
In the present embodiment when to needing the page object of circulate operation to carry out automatic test, due to needing circulate operation Page object with circulate operation identify, do not have circulate operation number, then needing the company of the page object of circulate operation It is continuous to execute whether number (include the page in the page shown after executing in page object according to the service logic of the current page In face of as) determine, be no longer limited by fixed circulate operation number.Therefore the if desired page where the page object of circulate operation The corresponding service logic in face is changed, when again to needing the page object of circulate operation to carry out automatic test, nothing Need to the page object again to the needs circulate operation new circulate operation number is set, due to the page of the needs circulate operation The circulate operation mark of object is obtained from the script of the page object of the needs circulate operation, that is, is not required to regenerate the need The script of the page object of circulate operation is wanted, therefore improves the efficiency for carrying out automatic test to page object.
It should be understood that magnitude of the sequence numbers of the above procedures are not meant that the order of the execution order, the execution of each process is suitable Sequence should be determined by its function and internal logic, and the implementation process without coping with the embodiment of the present application constitutes any restriction.
The setting of the target pages object in a upper embodiment is illustrated below with reference to specific embodiment.
Fig. 3 is the flowchart 2 of the method for test page object provided by the embodiments of the present application, referring to Fig. 3, the present embodiment Method and step " determine there are the target pages pair with circulate operation mark in current page the upper embodiment the step of As " before, the method for the present embodiment includes:
Step S301, the page object selection instruction of user's input is received, includes user in the page object selection instruction The page object of selection.
Specifically, by choosing the page object input page Object Selection in current page to instruct, terminal connects user Receive the page object selection instruction.For example user can be by double-clicking the page object in current page, the choosing of input page object Select instruction.
It is understood that the page object that selects of user can be to need any page of circulate operation to face in current page As.
Step S302, by the page of user's selection to as being arranged to target pages object, target pages object is with circulation Operation mark.
Specifically, after terminal receives the page selection instruction, according to the page selection instruction, the page of user's selection is determined In face of as and the page object being arranged to target pages object, target pages object is identified with circulate operation.
Wherein, the page object that user selects is arranged to target pages object, target pages object has circulate operation Mark, can realize by the following method:
B1, the setting for obtaining user's input instruct, and include that circulate operation identifies in setting instruction.
Specifically, terminal can be in the information of the page object of current page acquisition user's selection, the page pair of user's selection The information of elephant may include in following at least one of: mark (ID), to angular coordinate, whether include text, wrap if including text What etc. the text included be.
Wherein, terminal cocoa passes through the anti-information for discovering and seizing the page object for taking above-mentioned user to select of WebDriver.
Terminal can show the page object that user selects after getting the information of page object of user's selection to user Information, user can be by adding attribute field in the information for the page object that user selects, and inputs the attribute field Content-circulate operation mark, to input setting instruction.
B2, it is instructed according to the setting, the page object that user selects is arranged to target pages object, target pages object It is identified with circulate operation,
Specifically, after terminal receives setting instruction, the page object that user selects is arranged to circulate operation The target pages object of mark.Wherein, it is the page for needing circulate operation that circulate operation mark, which is used to indicate the target pages object, In face of as.
Further, after step S302, may also include that the mark of the target pages object and the target pages pair The circulate operation mark of elephant is sent to server, so that server generates the script of the target pages object, the target pages pair The script of elephant includes the mark of the target pages object and the circulate operation mark of the target pages object.
In this way when carrying out the test of the target pages object, can by obtaining the script of the target pages object, according to The circulate operation for including in script, which identifies, determines that the target pages object is the page object for needing circulate operation, and according to Fig. 2 Shown in step S201~step S203 in embodiment carry out the test of the target pages object.
By the above process, the page object for needing circulate operation the page pair identified with circulate operation has been arranged to As there is no the circulate operation numbers that setting needs circulate operation page object, need the page object quilt of circulate operation in this way The number continuously performed is no longer limited by fixed circulate operation number, then when the page object of circulate operation as needed When script is used for the automatic test of page object, if desired the corresponding business of the page where the page object of circulate operation is patrolled It collects and is changed, the page object for needing circulate operation is configured without resetting, therefore improves to the page pair Efficiency as carrying out automatic test.
It should be understood that magnitude of the sequence numbers of the above procedures are not meant that the order of the execution order, the execution of each process is suitable Sequence should be determined by its function and internal logic, and the implementation process without coping with the embodiment of the present application constitutes any restriction.
Fig. 4 is the structural schematic diagram one of the device of processing page object provided by the embodiments of the present application, as shown in figure 4, this The device of embodiment may include: determining module 41 and execution module 42;
Determining module 41, it is described for determining there is the target pages object with circulate operation mark in current page The circulate operation mark of target pages object is obtained according to the script of the target pages object;
Execution module 42 obtains next page for executing the target pages object in the current page;
The execution module 42, if being also used in next page, there are the target pages objects, described Next page executes the target pages object, if the target pages object is not present in next page, stops Only execute the target pages object
Optionally, the determining module 41, is specifically used for:
The page object in current page is obtained, judges whether the page object has circulate operation mark;
If having, there will be circulate operation identified page object to be determined as target pages object;
If not having, judge whether next page object has circulate operation mark in the current page.
The device of the present embodiment can be used for executing the technical solution of above method embodiment, realization principle and technology Effect is similar, and details are not described herein again.
Fig. 5 is the structural schematic diagram two of the device of processing page object provided by the embodiments of the present application, as shown in figure 5, this On the basis of the device of embodiment embodiment shown in Fig. 4 further include: receiving module 43, setup module 44 and output module 45。
The receiving module 43, for there are the target pages with circulate operation mark in the determining current page Before object, the page object selection instruction of user's input is received, is chosen in the page object selection instruction comprising user Page object;
The setup module 44, the page for selecting the user is to as being arranged to the target pages object, institute Target pages object is stated to identify with the circulate operation.
Optionally, the receiving module 43 is also used to receive the cycle-index of the target pages object of user setting.
Optionally, further include output module 45, the output module 45 is used for:
If the current page is the page for first appearing the target pages object, and institute is not present in next page Target pages object is stated, then output abnormality prompt information;Alternatively,
If the current page is not the page for first appearing the target pages object, and is not present in next page Page object, then output abnormality prompt information.
The device of the present embodiment can be used for executing the technical solution of above method embodiment, realization principle and technology Effect is similar, and details are not described herein again.
Fig. 6 is the structural schematic diagram three of the device of test page object provided by the embodiments of the present application, as shown in fig. 6, this The device of embodiment includes: processor 61 and memory 62, and the processor 61 is coupled with memory 62;
The memory 62 is used for, and stores computer program;
The processor 61 is used for, and executes the computer program stored in the memory 62, so that the test sheets Method corresponding in above-mentioned any means embodiment is executed in face of the device of elephant.
The embodiment of the present application provides a kind of readable storage medium storing program for executing, including program or instruction, when described program or instruction are being counted When running on calculation machine, corresponding method is performed in above-mentioned any means embodiment.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or The various media that can store program code such as person's CD.
Finally, it should be noted that the above various embodiments is only to illustrate the technical solution of the embodiment of the present application, rather than to it Limitation;Although the embodiment of the present application is described in detail referring to foregoing embodiments, those skilled in the art It is understood that it is still possible to modify the technical solutions described in the foregoing embodiments, either to part of or All technical features are equivalently replaced;And these are modified or replaceed, it does not separate the essence of the corresponding technical solution this Shen Please example scheme range.

Claims (10)

1. a kind of method of test page object is applied to terminal characterized by comprising
Determine there is the target pages object with circulate operation mark in current page, the circulation behaviour of the target pages object Make a check mark is obtained according to the script of the target pages object;
The target pages object is executed in the current page, obtains next page;
If there are the target pages objects in next page, the target pages are executed in next page Object stops executing the target pages object if the target pages object is not present in next page.
2. the method according to claim 1, wherein existing in the determining current page has circulate operation mark Before the target pages object of knowledge, the method also includes:
Receive the page object selection instruction of user's input, the page pair chosen in the page object selection instruction comprising user As;
The page that the user selects is arranged to the target pages object to picture, the target pages object is followed with described Ring operation mark.
3. according to the method described in claim 2, it is characterized in that, in the page for selecting the user to described as being arranged to After target pages object, the method also includes:
Receive the cycle-index of the target pages object of user setting.
4. the method according to claim 1, wherein existing in the determining current page has circulate operation mark The target pages object of knowledge includes:
The page object in current page is obtained, judges whether the page object has circulate operation mark;
If having, there will be circulate operation identified page object to be determined as target pages object;
If not having, judge whether next page object has circulate operation mark in the current page.
5. the method according to claim 1, wherein described execute the target pages pair in the current page As, after obtaining next page, the method also includes:
If the current page is the page for first appearing the target pages object, and the mesh is not present in next page Page object is marked, then output abnormality prompt information;Alternatively,
If the current page is not the page for first appearing the target pages object, and the page is not present in next page Object, then output abnormality prompt information.
6. a kind of device of test page object characterized by comprising
There is the target pages object with circulate operation mark, the page object in current page for determining in determining module Circulate operation mark in face of elephant is obtained according to the script of the target pages object;
Execution module obtains next page for executing the target pages object in the current page;
The execution module, if being also used in next page, there are the target pages objects, described next The page executes the target pages object, if the target pages object is not present in next page, stops executing The target pages object.
7. device according to claim 6, which is characterized in that further include: receiving module and setup module;
The receiving module, in the determining current page exist with circulate operation mark target pages object it Before, receive the page object selection instruction of user's input, the page pair chosen in the page object selection instruction comprising user As;
The setup module, the page for selecting the user is to as being arranged to the target pages object, the target Page object is identified with the circulate operation.
8. device according to claim 6, which is characterized in that the determining module is specifically used for:
The page object in current page is obtained, judges whether the page object has circulate operation mark;
If having, there will be circulate operation identified page object to be determined as target pages object;
If not having, judge whether next page object has circulate operation mark in the current page.
9. a kind of readable storage medium storing program for executing, which is characterized in that including program or instruction, when described program or instruction are transported on computers When row, any method of Claims 1 to 5 is performed.
10. a kind of device of test page object characterized by comprising processor, the processor are coupled with memory;
The memory is used for, and stores computer program;
The processor is used for, and calls the computer program stored in the memory, to realize any institute of Claims 1 to 5 The method stated.
CN201811479925.3A 2018-12-05 2018-12-05 Method, device and storage medium for testing page object Active CN109634857B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811479925.3A CN109634857B (en) 2018-12-05 2018-12-05 Method, device and storage medium for testing page object

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811479925.3A CN109634857B (en) 2018-12-05 2018-12-05 Method, device and storage medium for testing page object

Publications (2)

Publication Number Publication Date
CN109634857A true CN109634857A (en) 2019-04-16
CN109634857B CN109634857B (en) 2022-02-15

Family

ID=66071361

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811479925.3A Active CN109634857B (en) 2018-12-05 2018-12-05 Method, device and storage medium for testing page object

Country Status (1)

Country Link
CN (1) CN109634857B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101135989A (en) * 2006-08-31 2008-03-05 中国银联股份有限公司 Automatization test method and device for Web applied system
US20120102461A1 (en) * 2010-10-22 2012-04-26 Schwartz Dror Relation-based identification of automation objects
US8522212B1 (en) * 2010-07-21 2013-08-27 Google Inc. Auto generation of test utility bots using compile time heuristics of user interface source code
US20130247204A1 (en) * 2011-06-30 2013-09-19 Sven Schrecker System and method for application security assessment
CN103729285A (en) * 2012-10-11 2014-04-16 腾讯科技(深圳)有限公司 Method, device and system for testing web page
CN104391786A (en) * 2014-10-31 2015-03-04 任子行网络技术股份有限公司 Webpage automatic test system and method thereof
CN104820634A (en) * 2014-12-25 2015-08-05 平安科技(深圳)有限公司 Method and device for detecting page test track
CN106484609A (en) * 2015-09-01 2017-03-08 博雅网络游戏开发(深圳)有限公司 Page method of testing and device
CN107577607A (en) * 2017-09-07 2018-01-12 携程旅游信息技术(上海)有限公司 User interface automated testing method, device, electronic equipment, storage medium
CN107908639A (en) * 2017-09-26 2018-04-13 东软集团股份有限公司 Page object lookup method and device, storage medium, electronic equipment
CN108536603A (en) * 2018-04-16 2018-09-14 哈尔滨工业大学 A kind of Web browser behavior automated testing method for new top level domain
CN108733555A (en) * 2017-04-25 2018-11-02 中移信息技术有限公司 A kind of application testing method and device
CN108897684A (en) * 2018-06-28 2018-11-27 郑州云海信息技术有限公司 A kind of feed-back type webpage automatic test script design method based on TestNG

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101135989A (en) * 2006-08-31 2008-03-05 中国银联股份有限公司 Automatization test method and device for Web applied system
US8522212B1 (en) * 2010-07-21 2013-08-27 Google Inc. Auto generation of test utility bots using compile time heuristics of user interface source code
US20120102461A1 (en) * 2010-10-22 2012-04-26 Schwartz Dror Relation-based identification of automation objects
US20130247204A1 (en) * 2011-06-30 2013-09-19 Sven Schrecker System and method for application security assessment
CN103729285A (en) * 2012-10-11 2014-04-16 腾讯科技(深圳)有限公司 Method, device and system for testing web page
CN104391786A (en) * 2014-10-31 2015-03-04 任子行网络技术股份有限公司 Webpage automatic test system and method thereof
CN104820634A (en) * 2014-12-25 2015-08-05 平安科技(深圳)有限公司 Method and device for detecting page test track
CN106484609A (en) * 2015-09-01 2017-03-08 博雅网络游戏开发(深圳)有限公司 Page method of testing and device
CN108733555A (en) * 2017-04-25 2018-11-02 中移信息技术有限公司 A kind of application testing method and device
CN107577607A (en) * 2017-09-07 2018-01-12 携程旅游信息技术(上海)有限公司 User interface automated testing method, device, electronic equipment, storage medium
CN107908639A (en) * 2017-09-26 2018-04-13 东软集团股份有限公司 Page object lookup method and device, storage medium, electronic equipment
CN108536603A (en) * 2018-04-16 2018-09-14 哈尔滨工业大学 A kind of Web browser behavior automated testing method for new top level domain
CN108897684A (en) * 2018-06-28 2018-11-27 郑州云海信息技术有限公司 A kind of feed-back type webpage automatic test script design method based on TestNG

Also Published As

Publication number Publication date
CN109634857B (en) 2022-02-15

Similar Documents

Publication Publication Date Title
EP3252591B1 (en) Group chat method and device
CN107786730A (en) A kind of task management method and terminal
US7475275B2 (en) Method for fault handling in a co-operative workflow environment
CN105677462A (en) Distributed task system based on internet of things and business processing method
CN109766166A (en) Business flow processing method, apparatus, storage medium and equipment
CN108268296A (en) Loading method, the client and server of page layout
CN105930208A (en) Thread scheduling method and thread scheduling apparatus
US11349785B1 (en) Open conversation user interface
CN113672369A (en) Method and device for verifying ring of directed acyclic graph, electronic equipment and storage medium
US20060048147A1 (en) Distributed counter and centralized sensor in barrier wait synchronization
CN107864187A (en) The online task executing method of terminal device and server
US8621370B2 (en) Batch processing information processing including simultaneously moving a plurality of objects and independently moving an object from the rest of the plurality of objects
CN106709335B (en) Vulnerability detection method and device
CN106919489A (en) Monitoring method and device that the application interface of application program is exited extremely
CN106823372A (en) Game on line starts method, device and terminal
CN104572133B (en) Method and equipment for executing multi-user operation in computing task
CN109634857A (en) The method, apparatus and storage medium of test page object
CN113190427A (en) Caton monitoring method and device, electronic equipment and storage medium
CN106776265A (en) Test case update method and device
CN112860502A (en) Fault simulation method, equipment, server and storage medium
CN109783242A (en) Abroad holding valuation flow control method, device, computer equipment and storage medium
CN106682498A (en) Sample executing method and device
CN116911393B (en) Quantum chip design system, quantum chip design method, electronic equipment and storage medium
CN110232099A (en) It is associated with map generation method, device, computer equipment and storage medium
US11915063B2 (en) Managing a presentation mode for application programming interface functions

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
GR01 Patent grant
GR01 Patent grant