CN107392571A - A kind of movie scheduling validity test method and device - Google Patents
A kind of movie scheduling validity test method and device Download PDFInfo
- Publication number
- CN107392571A CN107392571A CN201710618905.9A CN201710618905A CN107392571A CN 107392571 A CN107392571 A CN 107392571A CN 201710618905 A CN201710618905 A CN 201710618905A CN 107392571 A CN107392571 A CN 107392571A
- Authority
- CN
- China
- Prior art keywords
- target
- waiting
- data
- booking
- waiting data
- 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
Links
- 238000010998 test method Methods 0.000 title claims abstract description 16
- 238000012360 testing method Methods 0.000 claims abstract description 34
- 238000000034 method Methods 0.000 claims abstract description 27
- 230000032683 aging Effects 0.000 abstract description 8
- 238000010586 diagram Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 7
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/10—Services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
- G06Q10/109—Time management, e.g. calendars, reminders, meetings or time accounting
Landscapes
- Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Engineering & Computer Science (AREA)
- Tourism & Hospitality (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Entrepreneurship & Innovation (AREA)
- Marketing (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Economics (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Data Mining & Analysis (AREA)
- Primary Health Care (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention provides a kind of movie scheduling validity test method and device, the validity of this method combination user's booking data auxiliary judgment waiting.Specifically, for some waiting, before the validity of the waiting is tested, inquire about first in real user's booking data with the presence or absence of the target booking data to match in the waiting, if there is qualified target booking data, it is determined that the waiting is effective waiting.This way it is not necessary to carry out lock for the waiting come analog subscriber.The time of inquiry user's booking data is far smaller than time needed for UI analog subscriber locks, therefore, substantially reduces the testing time of movie scheduling validity, improves the speed of test and ageing.
Description
Technical field
The invention belongs to field of computer technology, more particularly to a kind of movie scheduling validity test method and device.
Background technology
Film waiting validity is whether digital examination portion film can use in all waitings of the related movie theatre in the whole nation.
In order to test the validity of waiting, it is also desirable to judge whether each waiting can draw a bill, entirely drew a bill
Journey can be described as:Selection movie theatre → selection film → selection movie playback time → lock → draws a bill.If each waiting
Carry out judging whether waiting is effective as procedure described above, then each waiting will walk an above-mentioned process, so, each waiting
It will really draw a bill, cause booking cost very high.Since too high for the cost that each waiting is drawn a bill, can by some waiting whether
Can normally lock as the standard for judging waiting validity, if some waiting can normal lock, show that the waiting has
Effect.Be currently based on can normal lock method of testing generally use user interface (User Interface, UI) automation side
Formula carrys out analog subscriber and completes lock operation.Using UI automated testing methods, complete a lock and averagely take as 6s;Due to row
Phase amount is very big, for example, 50000 waitings, then the time tested needed for these waitings also can be very big, even if using multiple nodes
Parallel to perform, the required time is still bigger, for example, performed using 50 nodal parallels, then the final required time be
Exec_time=50000*6/50=6000s.It can be seen that the time needed for UI automated testing methods is still long, test speed
Degree is slow, poor in timeliness.
The content of the invention
In view of above mentioned problem, it is an object of the invention to provide a kind of movie scheduling validity test method and device,
Traditional waiting validity test method test speed is slow, technical problem of poor in timeliness to solve, and its concrete technical scheme is such as
Under:
In a first aspect, this application provides a kind of movie scheduling validity test method, applied in online ticketing system,
Including:
Target waiting data are obtained, the target waiting data include movie theatre, film, waiting ID, broadcasting movie theater and broadcasting
Time;
Inquire about in user's booking data with the presence or absence of the target booking data with the target waiting data match;
When the target booking data with the target waiting data match be present, determine that the target waiting data are
Effective waiting data.
Alternatively, it whether there is in inquiry user's booking data and purchased with the target of the target waiting data match
Ticket data, including:
The corresponding interface of log system is called, whether is inquired about in the log system comprising the mesh in preset time period
Mark waiting data include user's booking data corresponding to waiting ID, and the log system is used to store the online ticketing system
In all users Ticketing information, a waiting ID is used for one waiting data of unique mark;
The interface interchange returned data that the log system returns is received, hits are included in the calling returned data,
The hits represent the data record bar number for including the waiting ID in the log system;
When the hits in the interface interchange returned data are more than 0, it is determined that the target booking data be present;
When the hits in the interface interchange returned data are equal to 0, it is determined that the target booking data are not present.
Alternatively, methods described also includes:
When the target booking data that waiting and the target waiting data match are not present in user's booking data
When, can judgement lock seat corresponding to the target waiting data;
If seat corresponding to the target waiting data can be locked, it is determined that the target waiting data are effectively to arrange
Issue evidence;
If seat corresponding to the target waiting data can not be locked, it is determined that the target waiting data are invalid rows
Issue evidence.
Alternatively, can judgement lock seat corresponding to the target waiting data, including:
Target movie theatre title is obtained from the target waiting data;
According to the target movie theatre title, movie theatre information page is obtained;
The target film that the target waiting data are included is determined in the movie theatre information page;
The target film is clicked on, obtains the waiting information corresponding to the target film;
Target movie theater and target reproduction time are determined from waiting information corresponding to the target film;
Obtain the seat information corresponding to the target waiting that the target movie theater and target reproduction time determine;
If vacant place be present in seat information corresponding to the target waiting, it is determined that the target waiting can be locked
Seat corresponding to data;
If vacant place is not present in seat information corresponding to the target waiting, it is determined that the target row can not be locked
Issue seat corresponding to.
Alternatively, the acquisition target waiting data, including:
Obtain all waiting data to be tested;
Any one waiting data, which are chosen, from the waiting data to be tested is defined as the target waiting data.
Second aspect, present invention also provides a kind of movie scheduling validity test device, applied to online ticketing system
In, including:
Acquiring unit, for obtaining target waiting data, the target waiting data include movie theatre, film, waiting ID, broadcast
The film playback Room and reproduction time;
Query unit, for inquiring about in user's booking data with the presence or absence of the target with the target waiting data match
Booking data;
First determining unit, for when exist and the target waiting data match target booking data when, it is determined that
The target waiting data are effective waiting data.
Alternatively, the query unit includes:
Subelement is called, for calling the corresponding interface of log system, whether is inquired about in the log system comprising default
The target waiting data in period include user's booking data corresponding to waiting ID, and the log system is used to store
The Ticketing information of all users in the online ticketing system, a waiting ID are used for one waiting number of unique mark
According to;
Receiving subelement, the interface interchange returned data returned for receiving the log system, described call return to number
Hits are included in, the hits represent the data record bar number for including the waiting ID in the log system;
First determination subelement, for when the hits in the interface interchange returned data be more than 0 when, it is determined that institute be present
State target booking data;
Second determination subelement, for when the hits in the interface interchange returned data be equal to 0 when, it is determined that being not present
The target booking data.
Alternatively, described device also includes:
Judging unit, for when waiting and the target waiting data match are not present in user's booking data
During target booking data, can judgement lock seat corresponding to the target waiting data;
Second determining unit, for when seat corresponding to the target waiting data can be locked, determining the target
Waiting data are effective waiting data;
3rd determining unit, for when seat corresponding to the target waiting data can not be locked, determining the target
Waiting data are invalid waiting data.
Alternatively, the judging unit includes:
First obtains subelement, for obtaining target movie theatre title from the target waiting data;
Second obtains subelement, for according to the target movie theatre title, obtaining movie theatre information page;
3rd determination subelement, the mesh included for determining the target waiting data in the movie theatre information page
Mark film;
3rd obtains subelement, for clicking on the target film, obtains the waiting information corresponding to the target film;
4th determination subelement, for determining target movie theater and target from waiting information corresponding to the target film
Reproduction time;
4th obtains subelement, for obtaining corresponding to the target waiting of the target movie theater and the determination of target reproduction time
Seat information;
5th determination subelement, for when vacant place be present in seat information corresponding to the target waiting, it is determined that energy
Enough lock seat corresponding to the target waiting data;
6th determination subelement, for when vacant place is not present in seat information corresponding to the target waiting, then really
Surely seat corresponding to the target waiting data can not be locked.
Alternatively, the acquiring unit, including:
5th obtains subelement, for obtaining all waiting data to be tested;
7th determination subelement, it is defined as choosing any one waiting data from the waiting data to be tested
The target waiting data.
The movie scheduling validity test method that the embodiment of the present application provides, with reference to user's booking data auxiliary judgment waiting
Validity.Specifically, for some waiting, before the validity of the waiting is tested, real user's booking is inquired about first
With the presence or absence of the target booking data that match in the waiting in data, if there is qualified target booking data, then
It is effective waiting to determine the waiting.This way it is not necessary to carry out lock for the waiting come analog subscriber.Inquire about user's booking data
Time be far smaller than time needed for UI analog subscriber locks, therefore, when substantially reducing the test of movie scheduling validity
Between, improve the speed of test and ageing.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are the present invention
Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis
These accompanying drawings obtain other accompanying drawings.
Fig. 1 is a kind of flow chart of movie scheduling validity test method of the embodiment of the present application;
Fig. 2 is a kind of flow chart inquired about with the presence or absence of target booking data procedures of the embodiment of the present application;
Fig. 3 is the flow chart of the embodiment of the present application another kind movie scheduling validity test method;
Fig. 4 be a kind of judgement of the embodiment of the present application can the process at seat corresponding to lock onto target waiting data flow
Figure;
Fig. 5 is a kind of block diagram of movie scheduling validity test device of the embodiment of the present application;
Fig. 6 is a kind of block diagram of acquiring unit of the embodiment of the present application;
Fig. 7 is a kind of block diagram of query unit of the embodiment of the present application;
Fig. 8 is the block diagram of the embodiment of the present application another kind movie scheduling validity test device;
Fig. 9 is a kind of block diagram of judging unit of the embodiment of the present application.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Fig. 1 is referred to, shows a kind of flow chart of movie scheduling validity test method of the embodiment of the present application, this method
In server applied to online ticketing system, as shown in figure 1, this method may comprise steps of:
S110, obtain target waiting data.
In one embodiment of the application, target waiting data are any one waitings in all waitings to be tested.
In one embodiment of the application, target waiting data include movie theatre title, film title, waiting ID
(identity, mark), play movie theater and reproduction time;Waiting ID is the unique mark of waiting data, i.e. every waiting data
All there is a waiting ID for being different from any one other waiting data.
S120, inquire about in user's booking data with the presence or absence of the target booking data with target waiting data match.
After obtaining target waiting data, inquired about in user's booking data and whether there is in target waiting data according to waiting ID
Target booking data.
In one embodiment of the application, as shown in Fig. 2 S120 may comprise steps of:
S121, the corresponding interface of server calls log system, whether ID pairs of target waiting is included in inquiry log system
User's booking data in the preset time period answered.
The log system is used to store in the online ticketing system apart from current time preset duration (for example, recently
One month) in caused all users Ticketing information.The interface of log system is called, and inputs the information of waiting data, example
Such as, waiting ID, after log system receives waiting ID, in inquiry log system with the presence or absence of waiting ID in preset time period
Related data, for example, with the presence or absence of the purchase of (or nearest one day, or nearest two weeks) in nearest one week in inquiry log system
Buy waiting ID user's booking data.
Target waiting ID is the waiting ID corresponding to target waiting data.
S122, receive the interface interchange returned data that log system returns.
Log system can return to json data according to lookup result to server, and the json data call returned data,
Hits are included in the json numbers, the hits represent the data record bar number for including the waiting ID in the log system.
S123, when the hits in the interface interchange returned data are more than 0, it is determined that the target booking number be present
According to.
If the hits in this calling returned data received more than 0, show to exist in log system and mesh
The true booking record of user corresponding to waiting data is marked, i.e., is recorded in the presence of lock corresponding to waiting ID.
S124, when the hiting data in the interface interchange returned data is equal to 0, it is determined that target booking number is not present
According to.
If the hiting data in this calling returned data received is equal to 0, show to be not present in log system
The lock record of the true booking of user corresponding with target waiting data.
S130, when the target booking data with the target waiting data match be present, determine the target waiting
Data are effective waiting data.
Recorded if booking corresponding to target waiting data in user's booking data be present, illustrate that user's purchase be present is somebody's turn to do
The lock record of the film ticket of target waiting, further demonstrates that the target waiting is effective.
Due to taking in 0.1s or so for log system of inquiry, come relative to the 6s needed for a UI automatic test
Say, substantially reduce the time of test, it is ageing to improve waiting validity test.
The movie scheduling validity test method that the embodiment of the present application provides, with reference to user's booking data auxiliary judgment waiting
Validity.Specifically, for some waiting, before the validity of the waiting is tested, real user's booking is inquired about first
With the presence or absence of the target booking data that match in the waiting in data, if there is qualified target booking data, then
It is effective waiting to determine the waiting.This way it is not necessary to carry out lock for the waiting come analog subscriber.Inquire about user's booking data
Time be far smaller than time needed for UI analog subscriber locks, therefore, when substantially reducing the test of movie scheduling validity
Between, improve the speed of test and ageing.
Fig. 3 is referred to, shows the flow chart of the embodiment of the present application another kind movie scheduling validity test method, the party
Method can comprise the following steps on the basis of embodiment illustrated in fig. 1:
S210, when the target booking data that waiting and the target waiting data match are not present in user's booking data
When, can judgement lock seat corresponding to the target waiting data, if it is, performing S220;If it is not, then perform
S230。
Fig. 4 is referred to, shows that can a kind of judgement of the embodiment of the present application seat corresponding to lock onto target waiting data
The flow chart of process;The process can be realized using UI automatic test modes, as shown in figure 4, comprising the following steps:
S211, target movie theatre title is obtained from target waiting data.
Obtain the movie theatre title in target waiting data, i.e. target movie theatre title.
S212, according to the target movie theatre title, obtain movie theatre information page.
Using CSS or XPath position input frames, and the target movie theatre title that previous step obtains is inputted in input frame,
Enter movie theatre information page after click.Movie theatre information page includes the essential information of movie theatre, the film information and these last few days that may be viewed by
Waiting information.
Each html page can be expressed as a dom tree, can position one using information related in dom tree
HTML element.CSS and XPath is using inquiring about dom tree come location element, and the grammer that simply both use is different, work(
There can be a little difference.
S213, the target film that target waiting data are included is determined in movie theatre information page.
The target film that target waiting data are included is oriented using CSS or XPath.
S214, target film is clicked on, obtains the waiting information corresponding to the target film.
Then, the waiting information list page of target film is entered after click target film.
S215, target movie theater and target reproduction time are determined from waiting information corresponding to target film.
Target waiting is oriented from the waiting information list page of target film using CSS or XPath, wherein, target row
Phase includes target movie theater and target reproduction time.
The seat information corresponding to target waiting that S216, acquisition target movie theater and target reproduction time determine.
After determining target waiting, the laggard selected seat page of the target waiting is clicked on.
S217, judge to whether there is vacant place in the seat corresponding to target waiting;If it is present perform S218;Such as
Fruit is not present, then performs S219.
S218, lock vacant place corresponding to the target waiting data.
The vacant place selected corresponding to target waiting in the seat page is oriented using CSS or XPath, enters after click and pays page
Face, it is then log out.
S219, it is determined that seat corresponding to the target waiting data can not be locked.
S220, it is effective waiting data to determine target waiting data.
If target waiting can normally lock vacant place, it is determined that target waiting data are effective waiting data.
S230, it is invalid waiting data to determine target waiting data.
If target waiting can not normally lock vacant place, it is determined that target waiting data are invalid waiting data.
The movie scheduling validity test method that the embodiment of the present application provides, with reference to user's booking data auxiliary judgment waiting
Validity.Specifically, for some waiting, before the validity of the waiting is tested, real user's booking is inquired about first
With the presence or absence of the target booking data that match in the waiting in data, if there is qualified target booking data, then
It is effective waiting to determine the waiting.If there is no qualified target booking data, then judge that can the target waiting just
Normal lock, if it is possible to normal lock, it is determined that the target waiting is effective waiting;If can not lock, it is determined that the target
Waiting is invalid waiting.After user's booking data auxiliary judgment waiting validity, the survey of waiting validity can be greatly reduced
Time needed for examination, improve the speed of test and ageing.
For foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as to a series of combination of actions, but
It is that those skilled in the art should know, the present invention is not limited by described sequence of movement, because according to the present invention, certain
A little steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know, be retouched in specification
The embodiment stated belongs to preferred embodiment, necessary to involved action and the module not necessarily present invention.
Corresponding to above-mentioned movie scheduling validity test embodiment of the method, present invention also provides movie scheduling validity
Test device embodiment.
Fig. 5 is referred to, shows a kind of block diagram of movie scheduling validity test device of the embodiment of the present application, the device should
In server for online ticketing system, as shown in figure 5, the device includes:Acquiring unit 110, query unit 120 and first
Determining unit 130.
Acquiring unit 110, for obtaining target waiting data.
Target waiting data include movie theatre, film, waiting ID, broadcasting movie theater and reproduction time.
In one embodiment of the application, as shown in fig. 6, acquiring unit 110 includes:5th obtains the He of subelement 111
7th determination subelement 112;
5th obtains subelement 111, for obtaining all waiting data to be tested.
7th determination subelement 112, it is true for choosing any one waiting data from the waiting data to be tested
It is set to the target waiting data.
Query unit 120, for inquiring about in user's booking data with the presence or absence of the target with target waiting data match
Booking data.
After obtaining target waiting data, inquired about in user's booking data and whether there is in target waiting data according to waiting ID
Target booking data.
In one embodiment of the application, as shown in fig. 7, the query unit 120 can include:Call subelement
121st, receiving subelement 122, the first determination subelement 123 and the second determination subelement 124.
Subelement 121 is called, for calling the corresponding interface of log system, whether is inquired about in the log system comprising pre-
If the target waiting data in the period include user's booking data corresponding to waiting ID.
In the present embodiment, the log system is used to store in the online ticketing system apart from when presetting at current time
The Ticketing information of caused all users in long (for example, nearest one month).
Call subelement to be used for the interface for calling log system, and input the information of waiting data, for example, waiting ID, day
After aspiration system receives waiting ID, it whether there is related datas of the waiting ID in preset time period in inquiry log system,
For example, with the presence or absence of user's booking data of the purchase waiting ID in nearest one week in inquiry log system.
Receiving subelement 122, for receiving the interface interchange returned data of log system return.
Log system can return to json data according to lookup result to server, and the json data call returned data,
Hits are included in the json numbers, the hits represent the data record bar number for including the waiting ID in the log system.
First determination subelement 123, for when the hits in the interface interchange returned data be more than 0 when, it is determined that depositing
In the target booking data.
If the hits in this calling returned data received more than 0, show to exist in log system and mesh
The true booking record of user corresponding to waiting data is marked, i.e., is recorded in the presence of lock corresponding to waiting ID.
Second determination subelement 124, for when the hits in the interface interchange returned data be equal to 0 when, it is determined that not
The target booking data be present.
If the hiting data in this calling returned data received is equal to 0, show to be not present in log system
The lock record of the true booking of user corresponding with target waiting data.
First determining unit 130, for when the target booking data with target waiting data match be present, determining institute
It is effective waiting data to state target waiting data.
Recorded if booking corresponding to target waiting data in user's booking data be present, illustrate that user's purchase be present is somebody's turn to do
The lock record of the film ticket of target waiting, further demonstrates that the target waiting is effective.
Due to taking in 0.1s or so for log system of inquiry, come relative to the 6s needed for a UI automatic test
Say, substantially reduce the time of test, it is ageing to improve waiting validity test.
The movie scheduling validity test device that the embodiment of the present application provides, with reference to user's booking data auxiliary judgment waiting
Validity.Specifically, for some waiting, before the validity of the waiting is tested, real user's booking is inquired about first
With the presence or absence of the target booking data that match in the waiting in data, if there is qualified target booking data, then
It is effective waiting to determine the waiting.This way it is not necessary to carry out lock for the waiting come analog subscriber.Inquire about user's booking data
Time be far smaller than time needed for UI analog subscriber locks, therefore, when substantially reducing the test of movie scheduling validity
Between, improve the speed of test and ageing.
Fig. 8 is referred to, shows the block diagram of the embodiment of the present application another kind movie scheduling validity test device, the device
Also include on the basis of embodiment illustrated in fig. 5:Judging unit 210, the second determining unit 220 and the 3rd determining unit 230.
Judging unit 210, for when waiting and the target waiting data phase are not present in user's booking data
During the target booking data matched somebody with somebody, can judgement lock seat corresponding to the target waiting data.
The judging unit can utilize UI automated testing methods to realize, as shown in figure 9, the judging unit can include:
First, which obtains subelement 211, second, obtains subelement 212, the 3rd determination subelement the 213, the 3rd acquisition subelement the 214, the 4th
Determination subelement the 215, the 4th obtains subelement 216, the 5th determination subelement 217 and the 6th determination subelement 218;
First obtains subelement 211, for obtaining target movie theatre title from the target waiting data.
Second obtains subelement 212, for according to the target movie theatre title, obtaining movie theatre information page.
Using CSS or XPath position input frames, and the target movie theatre title that previous step obtains is inputted in input frame,
Enter movie theatre information page after click.Movie theatre information page includes the essential information of movie theatre, the film information and these last few days that may be viewed by
Waiting information.
3rd determination subelement 213, for determining that the target waiting data are included in the movie theatre information page
Target film.
The target film that target waiting data are included is oriented using CSS or XPath.
3rd obtains subelement 214, for clicking on the target film, obtains the waiting letter corresponding to the target film
Breath.
Then, the waiting information list page of target film is entered after click target film.
4th determination subelement 215, for determined from waiting information corresponding to the target film target movie theater and
Target reproduction time.
Target waiting is oriented from the waiting information list page of target film using CSS or XPath, wherein, target row
Phase includes target movie theater and target reproduction time.
4th obtains subelement 216, for obtaining the target waiting institute of the target movie theater and the determination of target reproduction time
Corresponding seat information.
After determining target waiting, the laggard selected seat page of the target waiting is clicked on.
5th determination subelement 217, for when vacant place be present in seat information corresponding to the target waiting, it is determined that
Seat corresponding to the target waiting data can be locked.
The vacant place selected corresponding to target waiting in the seat page is oriented using CSS or XPath, enters after click and pays page
Face, it is then log out.
6th determination subelement 218, for when vacant place is not present in seat information corresponding to the target waiting, then
It is determined that seat corresponding to the target waiting data can not be locked.
If the vacant place selected corresponding to target waiting in the seat page can not be oriented using CSS or XPath, it is determined that nothing
Vinculum iuris sets the goal seat corresponding to waiting data, and then determines that the waiting is invalid waiting data.
Second determining unit 220, for when seat corresponding to the target waiting data can be locked, determining the mesh
It is effective waiting data to mark waiting data.
3rd determining unit 230, for when seat corresponding to the target waiting data can not be locked, determining the mesh
It is invalid waiting data to mark waiting data.
The movie scheduling validity test device that the present embodiment provides, with reference to having for user's booking data auxiliary judgment waiting
Effect property.Specifically, for some waiting, before the validity of the waiting is tested, real user's booking data are inquired about first
In with the presence or absence of the target booking data that match in the waiting, if there is qualified target booking data, it is determined that
The waiting is effective waiting.If there is no qualified target booking data, then judge that can the target waiting normally lock
Seat, if it is possible to normal lock, it is determined that the target waiting is effective waiting;If can not lock, it is determined that the target waiting
It is invalid waiting.After user's booking data auxiliary judgment waiting validity, waiting validity test institute can be greatly reduced
The time needed, improve the speed of test and ageing.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight
Point explanation is all difference with other embodiment, between each embodiment identical similar part mutually referring to.
For device class embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is joined
See the part explanation of embodiment of the method.
Finally, it is to be noted that, herein, such as first and second or the like relational terms be used merely to by
One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation
Between any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant meaning
Covering including for nonexcludability, so that process, method, article or equipment including a series of elements not only include that
A little key elements, but also the other element including being not expressly set out, or also include for this process, method, article or
The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged
Except other identical element in the process including the key element, method, article or equipment being also present.
The foregoing description of the disclosed embodiments, those skilled in the art are enable to realize or using the present invention.To this
A variety of modifications of a little embodiments will be apparent for a person skilled in the art, and generic principles defined herein can
Without departing from the spirit or scope of the present invention, to realize in other embodiments.Therefore, the present invention will not be limited
The embodiments shown herein is formed on, and is to fit to consistent with principles disclosed herein and features of novelty most wide
Scope.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should
It is considered as protection scope of the present invention.
Claims (10)
- A kind of 1. movie scheduling validity test method, applied in online ticketing system, it is characterised in that including:Target waiting data are obtained, the target waiting data include movie theatre, film, waiting ID, broadcasting movie theater and reproduction time;Inquire about in user's booking data with the presence or absence of the target booking data with the target waiting data match;When the target booking data with the target waiting data match be present, determine that the target waiting data are effective Waiting data.
- 2. according to the method for claim 1, it is characterised in that it is described inquiry user's booking data in whether there is with it is described The target booking data of target waiting data match, including:The corresponding interface of log system is called, whether is inquired about in the log system comprising the target row in preset time period According to user's booking data corresponding to included waiting ID, the log system is used to store in the online ticketing system issue The Ticketing information of all users, a waiting ID are used for one waiting data of unique mark;The interface interchange returned data that the log system returns is received, hits are included in the calling returned data, it is described Hits represent the data record bar number for including the waiting ID in the log system;When the hits in the interface interchange returned data are more than 0, it is determined that the target booking data be present;When the hits in the interface interchange returned data are equal to 0, it is determined that the target booking data are not present.
- 3. method according to claim 1 or 2, it is characterised in that methods described also includes:When waiting and the target booking data of the target waiting data match are not present in user's booking data, sentence It is disconnected to lock seat corresponding to the target waiting data;If seat corresponding to the target waiting data can be locked, it is determined that the target waiting data are effective waiting numbers According to;If seat corresponding to the target waiting data can not be locked, it is determined that the target waiting data are invalid waiting numbers According to.
- 4. according to the method for claim 3, it is characterised in that can judgement lock seat corresponding to the target waiting data Position, including:Target movie theatre title is obtained from the target waiting data;According to the target movie theatre title, movie theatre information page is obtained;The target film that the target waiting data are included is determined in the movie theatre information page;The target film is clicked on, obtains the waiting information corresponding to the target film;Target movie theater and target reproduction time are determined from waiting information corresponding to the target film;Obtain the seat information corresponding to the target waiting that the target movie theater and target reproduction time determine;If vacant place be present in seat information corresponding to the target waiting, it is determined that the target waiting data can be locked Corresponding seat;If vacant place is not present in seat information corresponding to the target waiting, it is determined that the target waiting number can not be locked According to corresponding seat.
- 5. according to the method for claim 1, it is characterised in that the acquisition target waiting data, including:Obtain all waiting data to be tested;Any one waiting data, which are chosen, from the waiting data to be tested is defined as the target waiting data.
- A kind of 6. movie scheduling validity test device, applied in online ticketing system, it is characterised in that including:Acquiring unit, for obtaining target waiting data, the target waiting data include movie theatre, film, waiting ID, broadcasting shadow The Room and reproduction time;Query unit, for inquiring about in user's booking data with the presence or absence of the target booking with the target waiting data match Data;First determining unit, for when exist and the target waiting data match target booking data when, it is determined that described Target waiting data are effective waiting data.
- 7. device according to claim 6, it is characterised in that the query unit includes:Subelement is called, for calling the corresponding interface of log system, inquires about in the log system whether include preset time The target waiting data in section include user's booking data corresponding to waiting ID, and the log system is described for storing The Ticketing information of all users in online ticketing system, a waiting ID are used for one waiting data of unique mark;Receiving subelement, the interface interchange returned data returned for receiving the log system are described to call in returned data Comprising hits, the hits represent the data record bar number for including the waiting ID in the log system;First determination subelement, for when the hits in the interface interchange returned data be more than 0 when, it is determined that the mesh be present Buying tender ticket data;Second determination subelement, for when the hits in the interface interchange returned data are equal to 0, it is determined that in the absence of described Target booking data.
- 8. the device according to claim 6 or 7, it is characterised in that described device also includes:Judging unit, for when the target that waiting and the target waiting data match are not present in user's booking data During booking data, can judgement lock seat corresponding to the target waiting data;Second determining unit, for when seat corresponding to the target waiting data can be locked, determining the target waiting Data are effective waiting data;3rd determining unit, for when seat corresponding to the target waiting data can not be locked, determining the target waiting Data are invalid waiting data.
- 9. device according to claim 8, it is characterised in that the judging unit includes:First obtains subelement, for obtaining target movie theatre title from the target waiting data;Second obtains subelement, for according to the target movie theatre title, obtaining movie theatre information page;3rd determination subelement, the target shadow included for determining the target waiting data in the movie theatre information page Piece;3rd obtains subelement, for clicking on the target film, obtains the waiting information corresponding to the target film;4th determination subelement, for determining that target movie theater and target play from waiting information corresponding to the target film Time;4th obtains subelement, for obtaining the seat corresponding to the target waiting of the target movie theater and the determination of target reproduction time Position information;5th determination subelement, for when vacant place be present in seat information corresponding to the target waiting, being determined to lock Seat corresponding to the fixed target waiting data;6th determination subelement, for when vacant place is not present in seat information corresponding to the target waiting, it is determined that nothing Method locks seat corresponding to the target waiting data.
- 10. device according to claim 6, it is characterised in that the acquiring unit, including:5th obtains subelement, for obtaining all waiting data to be tested;7th determination subelement, for chosen from the waiting data to be tested any one waiting data be defined as it is described Target waiting data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710618905.9A CN107392571A (en) | 2017-07-26 | 2017-07-26 | A kind of movie scheduling validity test method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710618905.9A CN107392571A (en) | 2017-07-26 | 2017-07-26 | A kind of movie scheduling validity test method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107392571A true CN107392571A (en) | 2017-11-24 |
Family
ID=60341591
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710618905.9A Pending CN107392571A (en) | 2017-07-26 | 2017-07-26 | A kind of movie scheduling validity test method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107392571A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11455312B1 (en) | 2019-11-20 | 2022-09-27 | Sabre Glbl Inc. | Data query system with improved response time |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20090013837A (en) * | 2009-01-05 | 2009-02-05 | 주식회사 비즈모델라인 | System for showing digital movie |
US20090125407A1 (en) * | 2004-12-22 | 2009-05-14 | Lee Kang Hean | Method of publishing a ticket on demand and apparatus thereof |
CN105023049A (en) * | 2014-04-30 | 2015-11-04 | 中国电信股份有限公司 | On-line seat-picking method and system, and overload protection device |
CN106157052A (en) * | 2015-04-16 | 2016-11-23 | 刘希成 | Box office receipts monitoring system and method |
CN106326356A (en) * | 2016-08-09 | 2017-01-11 | 北京猫眼文化传媒有限公司 | Method and device for determining real-time box office data of films |
CN106779117A (en) * | 2016-12-01 | 2017-05-31 | 北京微影时代科技有限公司 | One kind is in line selection seat method and system |
-
2017
- 2017-07-26 CN CN201710618905.9A patent/CN107392571A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090125407A1 (en) * | 2004-12-22 | 2009-05-14 | Lee Kang Hean | Method of publishing a ticket on demand and apparatus thereof |
KR20090013837A (en) * | 2009-01-05 | 2009-02-05 | 주식회사 비즈모델라인 | System for showing digital movie |
CN105023049A (en) * | 2014-04-30 | 2015-11-04 | 中国电信股份有限公司 | On-line seat-picking method and system, and overload protection device |
CN106157052A (en) * | 2015-04-16 | 2016-11-23 | 刘希成 | Box office receipts monitoring system and method |
CN106326356A (en) * | 2016-08-09 | 2017-01-11 | 北京猫眼文化传媒有限公司 | Method and device for determining real-time box office data of films |
CN106779117A (en) * | 2016-12-01 | 2017-05-31 | 北京微影时代科技有限公司 | One kind is in line selection seat method and system |
Non-Patent Citations (2)
Title |
---|
武依文: ""O2O模式下电影在线选座系统设计与实现"", 《中国优秀硕士学位论文全文数据库(信息科技辑)》 * |
邵新: ""基于SSH的电影院网上订票系统的设计与实现"", 《万方数据》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11455312B1 (en) | 2019-11-20 | 2022-09-27 | Sabre Glbl Inc. | Data query system with improved response time |
US11755600B2 (en) | 2019-11-20 | 2023-09-12 | Sabre Glbl Inc. | Data query system with improved response time |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9659317B2 (en) | Individual online price adjustments in real time | |
CN103368986B (en) | Information recommendation method and information recommendation device | |
US11651144B2 (en) | Systems, methods, and media for correlating information corresponding to multiple related frames on a web page | |
US20050071219A1 (en) | Dynamically assigning a survey to a respondent | |
US20070204025A1 (en) | Community Oriented Electronic Directory And Business Development System And Method | |
US20090327234A1 (en) | Updating answers with references in forums | |
CN103647800A (en) | Method and system of recommending application resources | |
JP2005531854A (en) | Acquisition and display of site visit path data | |
KR20150079739A (en) | Obtaining event reviews | |
US5953528A (en) | Knowledge object registration | |
US20180069766A1 (en) | Link clouds and user/community-driven dynamic interlinking of resources | |
CN106209455A (en) | The associated services Fault Locating Method of a kind of cross-system weak coupling and system | |
US20090327235A1 (en) | Presenting references with answers in forums | |
CN110875922B (en) | One-stop office management system | |
CN107465593B (en) | Electronic resource transfer method and device | |
CN117235101A (en) | System and method for querying a resource cache | |
CN107316176A (en) | The control method and device of declaration form processing | |
CN102270237A (en) | Method and system for detecting user source | |
CN107392571A (en) | A kind of movie scheduling validity test method and device | |
CN107528843A (en) | The processing method and processing unit of a kind of network request | |
CN110851485B (en) | Social relation mining method and device, computer equipment and readable medium | |
US20100121830A1 (en) | Identifying screen flows to support multiple entities and their diverse rules with a single application instance | |
US20090177660A1 (en) | Document managing system, information processing device, document managing method, and program | |
CN107944841A (en) | Emolument computing system and method | |
CN105913071A (en) | Information processing device, information processing system and information processing method |
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 | ||
AD01 | Patent right deemed abandoned | ||
AD01 | Patent right deemed abandoned |
Effective date of abandoning: 20211001 |