CN107707433A - A kind of method and computer equipment from network platform test operation flow - Google Patents
A kind of method and computer equipment from network platform test operation flow Download PDFInfo
- Publication number
- CN107707433A CN107707433A CN201711119864.5A CN201711119864A CN107707433A CN 107707433 A CN107707433 A CN 107707433A CN 201711119864 A CN201711119864 A CN 201711119864A CN 107707433 A CN107707433 A CN 107707433A
- Authority
- CN
- China
- Prior art keywords
- request
- benchmark
- business
- operation flow
- returned 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/14—Arrangements for monitoring or testing data switching networks using software, i.e. software packages
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention relates to a kind of method and computer equipment from network platform test operation flow, this method includes:Service call flow and benchmark returned data are obtained according to the business operation flow prerecorded;Operation service call flow, and current returned data is obtained, if current returned data is consistent with benchmark returned data, it is successfully tested.The present invention analyzes returned data parameter to complete the test to operation flow by running the service call flow prerecorded, and solves the problems, such as to lack operational trials during business system upgrading.
Description
Technical field
The present invention relates to communication technical field, more particularly to a kind of method from network platform test operation flow, simultaneously
Further relate to a kind of computer equipment.
Background technology
Operator Specific Service system most complicated now is BOSS systems, business operation support system (Business&
Operation Support System, BOSS) have billing and clearing system, business and billing and accounting system, customer service system and
DSS etc., in face of numerous operation systems, operate extremely cumbersome.
And Operator Specific Service platform is numerous, including short message service platform, MMS platform, WAP
(WirelessApplicationProtocol, WAP) business platform, interactive voice response
(InteractiveVoiceResponse, IVR) business platform etc. is value-added service using the business platform of different communication technology
Provider improves the complexity of service access.Meanwhile each business platform of operator all constantly improve in, once be
System upgrading, will cause the cutover of original business, causes great inconvenience, while add cost.
In summary, business system is not only cumbersome at present, and upgrades frequently, lacks the testing scheme to business
Therefore, how technical problem of the test as urgent need to resolve is carried out to business when business system upgrades.
The content of the invention
The technical problem of the desired solution of the present invention lacks to business when being the business system upgrading for prior art
Test defect, there is provided it is a kind of from the network platform test operation flow method, a kind of computer equipment is also provided.
The technical scheme that the present invention solves above-mentioned technical problem is as follows:
The business operation flow that step 1, basis are prerecorded obtains service call flow and benchmark returned data;
Step 2, the operation service call flow, and current returned data is obtained, if the current returned data and institute
It is consistent to state benchmark returned data, then is successfully tested.
It is using the beneficial effect of such scheme:The present invention is analyzed by running the service call flow prerecorded
Returned data parameter solves the problems, such as to lack operational trials during business system upgrading to complete the test to operation flow.
On the basis of above-mentioned technical proposal, the present invention can also do following improvement.
Further, in step 1, the benchmark returned data includes:Benchmark request returns to conditional code, benchmark request
URL addresses, benchmark required parameter, benchmark request message head, benchmark request method GET/POST and benchmark request are time-consuming.
Further, in step 2, including:
Step 21, run the service call flow for the first time by HyperText Markup Language resolver, return is asked
Return conditional code is sought, if the request returns to conditional code and asks return conditional code consistent with the benchmark, performs step 22;
Step 22, the calling service procedure run by the HyperText Markup Language resolver for the second time, returned
Current request URL address, required parameter, request message head, request method GET/POST and request takes, if the request
URL addresses are consistent with the benchmark request URL address, the required parameter is consistent with required parameter described in the benchmark, described
The cause first with the benchmark request message of request message head, the request method GET/POST and benchmark request method GET/
POST is consistent and the request is time-consuming time-consuming consistent with benchmark request, then is successfully tested.
It is using the above-mentioned further beneficial effect of scheme:Run calling clothes twice by HTML resolver
Business flow, and the complete test of a variety of returned datas is analyzed, improve the accuracy rate of test.
Further, after described be successfully tested, in addition to:
Step 3, using business operation flow business is configured;
Step 4, according to the business operation flow business to be tested of selection is tested.
Further, in step 3, it is specially:
Step 31, the business be divided into it is a variety of, by every kind of business configuration corresponding in a software module;
Step 32, the business operation flow configuration is carried out to each software module.
Further, in step 4, in addition to:
Test report is generated according to test result.
Further, in step 1, including:
The business operation flow is recorded by HttpWatch instruments.
It is using the above-mentioned further beneficial effect of scheme:According to the calling service procedure being successfully tested to selected by user
Operation flow is tested, and meets the demand of user.
The another technical solution that the present invention solves above-mentioned technical problem is as follows:
A kind of computer equipment, in addition to processor and storage device;
The memory is used to store computer program;
The processor is used to perform the computer program, to realize the method described in each step of such scheme.
The beneficial effects of the invention are as follows:It is to realize the method described in each step of such scheme by computer program, operation
The service call flow prerecorded, and returned data parameter is analyzed to complete the test to operation flow, solve operator
The problem of lacking operational trials during system upgrade.
The advantages of aspect that the present invention adds, will be set forth in part in the description, and will partly become from the following description
Obtain substantially, or recognized by present invention practice.
Brief description of the drawings
Fig. 1 is provided in an embodiment of the present invention a kind of from network platform test operation flow schematic diagram;
Fig. 2 is that one kind that another embodiment of the present invention provides tests operation flow schematic diagram from the network platform;
Fig. 3 is that one kind that another embodiment of the present invention provides tests operation flow schematic diagram from the network platform;
Fig. 4 is a kind of schematic diagram of business operation flow opened an account for testing UNICOM's card provided in an embodiment of the present invention.
Embodiment
The principle and feature of the present invention are described below in conjunction with accompanying drawing, the given examples are served only to explain the present invention, and
It is non-to be used to limit the scope of the present invention.
Embodiment one, Fig. 1 give a kind of method from network platform test operation flow provided in an embodiment of the present invention,
This method comprises the following steps:
101st, service call flow and benchmark returned data are obtained according to the business operation flow prerecorded;
102nd, run the service call flow, and obtain current returned data, if the current returned data with it is described
Benchmark returned data is consistent, then is successfully tested.
In the above-described embodiments, web robots by recording instrument prerecord business operation flow (flow can be
Business operation flow on boss machines, or business operation flow to open a bank account when handling etc.), then can by recording instrument
To capture the service call flow of server background business operation, and (returned data elects base value as to returned data
According to).
By running the business operation service call flow obtained from backstage, and (data are operational process to returned data
Data in returning immediately afterwards).Pass through comparative analysis returned data twice, if identical, the Background scheduling of business operation flow
Flow can normal work.
In addition, in 101, the benchmark returned data includes:Benchmark request return conditional code, benchmark request URL address,
Benchmark required parameter, benchmark request message head, benchmark request method GET/POST and benchmark request are time-consuming.
The beneficial effects of the invention are as follows:The present invention analyzes return number by running the service call flow prerecorded
According to parameter to complete the test to operation flow, solve the problems, such as to lack operational trials during business system upgrading.
Embodiment two, Fig. 2 give a kind of of another embodiment of the present invention offer and test operation flow from the network platform
Method, this method comprise the following steps:
In 102, among the process of the operation service call flow, including:
1021st, the calling service procedure, the request of return are run by HyperText Markup Language resolver for the first time
Conditional code is returned, if the request returns to conditional code and asks return conditional code consistent with the benchmark, performs step 1022;
1022nd, the calling service procedure is run by the HyperText Markup Language resolver for the second time, returns and work as
Preceding request URL address, required parameter, request message head, request method GET/POST and request takes, if the request URL
Address is consistent with the benchmark request URL address, the required parameter is consistent with required parameter described in the benchmark, the request
Heading cause first with the benchmark request message, the request method GET/POST and benchmark request method GET/POST
Unanimously and the request is time-consuming time-consuming consistent with benchmark request, then is successfully tested.
In the above-described embodiments, HTML (HyperText Markup Language, HTML) is for " net
A kind of markup language of page establishment and other information that can be seen in web browser " design.HTML is used to structuring letter
Breath, such as title, paragraph and list etc., it is also possible to describe the outward appearance of document and semanteme to a certain extent.Wrapped in the page
Include head and theme two parts containing picture, link, music, structure, head provides info web, and main body provides webpage particular content.
In the preferred scheme of this programme, the Jsoup resolvers based on java, a kind of HyperText Markup Language are employed
Resolver.
It should be noted that by other types HyperText Markup Language resolver, this programme identical skill is reached
Art effect, within the scope of the present invention.
During by Jsoup first time operation service call flows, all data can't be returned, that is, ask return state
Code, request URL address, required parameter, request message head, request method GET/POST and request are time-consuming.But it is returned only to request
Conditional code is returned, the request returns to conditional code and may indicate that Jsoup attempts the request of operation service call flow and whether succeeded,
The exact cause of request failure can also be shown, that is to say, that these solicited status codes represent interim response, when return
After solicited status code is shown successfully, and conditional code and benchmark return conditional code are returned to by analyzing the request, if identical,
Jsoup is by second of operation service call flow, to send other requests.
Accordingly, Jsoup receives the request URL address of return, required parameter, request message head, request method GET/
POST and request are time-consuming.Now again analysis request URL addresses, required parameter, request message head, request method GET/POST and
Request it is time-consuming with benchmark request URL address, benchmark required parameter, benchmark request message head, benchmark request method GET/POST
It is time-consuming identical with benchmark request, then it is completed, service call flow is normal.
In addition, after being completed, Jsoup can parse HTML dom nodes and value by analysis result, the HTML's
Dom nodes and value can be when user afterwards select corresponding operation flow, to call the service operations flow on backstage, Jin Ertong
Cross the operating process that web robots perform the business.
Embodiments of the invention have the beneficial effect that:Calling service flow is run by HTML resolver twice
Journey, and the complete test of a variety of returned datas is analyzed, improve the accuracy rate of test.
Embodiment three, Fig. 3 give another embodiment of the present invention provide it is a kind of from network platform test operation flow
Method, this method comprise the following steps:
After being successfully tested of embodiment one and embodiment two, in addition to:
103rd, the business operation flow is carried out to the business to configure;
104th, the business to be tested of selection is tested according to the business operation flow.
In 103, it is specially:
1031st, the business is divided into a variety of, by every kind of business configuration to a corresponding software module;
1032nd, the business operation flow is carried out to each software module to configure.
In 104, in addition to:Test report is generated according to test result.
In the above-described embodiments, after the calling service procedure on the backstage of web robot testing's business operation flows,
After Jsoup is by analyzing test result, HTML dom nodes and value are parsed, when user selects some operation flow,
Web robots call the service call flow on the operation flow backstage by the dom nodes and value of the HTML, to perform the business
The operation of flow.
In addition, for the ease of management business flow, in specific application scenarios, web robots carry out multiple business
Block management, and be a certain one software module of business configuration, include the business operation flow in each software module
The interface of the service call flow on backstage.For example, when user's business interested in some is interested, in order to test the business
Flow, by being communicated with the business interface, the dom nodes and value for making HTML can call software module for web robots
In service call flow, be finally completed the operating process of the business.
In addition, in test process, each can generate a test report, the test report after being successfully tested
Show the result of operational trials, and the status information of whole Background scheduling service procedure.After having operational trials failure, also can
A test report is generated, test crash process is shown to user, so that whether user is tested or returned again
Operation.
For example, Fig. 4 is the test schematic diagram to the business operation flow opened an account of UNICOM's card, web robot built-ins are in machine
In device people's platform, whole business operation flow of being opened an account by recording instrument to CBSS is recorded, and whole business operation flow is such as
Shown in Fig. 4, including CBSS opens an account to the whole process for writing card submission and opened an account whole business operation flow for CBSS, and this is numerous industry
One in operating process of being engaged in, such as CBSS cancellation business etc..
The CBSS is opened an account by network foreground the call instruction that business operation flow is sent, service background receives the tune
With after instruction and to perform the open an account processes of business operation flow of the CBSS be exactly service call flow, this is numerous service call streams
One in journey.For example CBSS cancellation business operation flows are in the service call flow on backstage etc..
Service call flow of the business operation flow on backstage can be obtained after business operation flow by recording CBSS and opening an account.
When user thinks the operating process of test " CBSS open an account business ", get CBSS in advance by robot platform and open
Family business operation flow directly carries out the business operation flow testing in the service call flow on backstage.
Example IV, another embodiment of the present invention provide a kind of method from network platform test operation flow, the party
Method comprises the following steps:
In 101, including:
The business operation flow is recorded by HttpWatch instruments.
In the above-described embodiments, this programme web robots are configured with HttpWacth instruments, are recorded by the instrument
Operation, HttpWatch is powerful web data analysis tool, is integrated in Internet Explorer toolbars.
It should be noted that the present invention is only a kind of preferred scheme using HttpWacth instruments, other recording works are used
Tool reaches the identical technique effect of the present invention, within protection scope of the present invention.
Embodiment five, another embodiment of the present invention provide a kind of computer equipment, in addition to processor and storage device;
The memory is used to store computer program;
The processor is used to perform the computer program, to realize the method described in embodiment one to four.
The beneficial effects of the invention are as follows:It is to realize the side described in each step of the scheme of embodiment one to four by computer program
Method, the service call flow prerecorded is run, and analyze returned data parameter to complete the test to operation flow, solved
The problem of business system lacks operational trials when upgrading.
In addition, the terms "and/or", only a kind of incidence relation for describing affiliated partner, represents there may be
Three kinds of relations, for example, A and/or B, can be represented:Individualism A, while A and B be present, these three situations of individualism B.Separately
Outside, character "/" herein, it is a kind of relation of "or" to typically represent forward-backward correlation object.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Member and algorithm steps, it can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware
With the interchangeability of software, the composition and step of each example are generally described according to function in the above description.This
A little functions are performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme.Specially
Industry technical staff can realize described function using distinct methods to each specific application, but this realization is not
It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience of description and succinctly, foregoing description is
The specific work process of system, device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, can be with
Realize by another way.For example, device embodiment described above is only schematical, for example, the division of unit,
Only a kind of division of logic function, can there is an other dividing mode when actually realizing, such as multiple units or component can be with
With reference to or be desirably integrated into another system, or some features can be ignored, or not perform.
The unit illustrated as separating component can be or may not be physically separate, be shown as unit
Part can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple networks
On unit.Some or all of unit therein can be selected to realize the mesh of scheme of the embodiment of the present invention according to the actual needs
's.
More than, it is only embodiment of the invention, but protection scope of the present invention is not limited thereto, and it is any to be familiar with
Those skilled in the art the invention discloses technical scope in, various equivalent modifications or substitutions can be readily occurred in,
These modifications or substitutions should be all included within the scope of the present invention.Therefore, protection scope of the present invention should be wanted with right
The protection domain asked is defined.
Claims (8)
- A kind of 1. method from network platform test operation flow, it is characterised in that this method comprises the following steps:The business operation flow that step 1, basis are prerecorded obtains service call flow and benchmark returned data;Step 2, the operation service call flow, and current returned data is obtained, if the current returned data and the base Quasi- returned data is consistent, then is successfully tested.
- 2. according to the method for claim 1, it is characterised in that in step 1, the benchmark returned data includes:Benchmark Request returns to conditional code, benchmark request URL address, benchmark required parameter, benchmark request message head, benchmark request method GET/ POST and benchmark request are time-consuming.
- 3. according to the method for claim 2, it is characterised in that the process of the step 2 includes:Step 21, by HyperText Markup Language resolver for the first time run the calling service procedure, the request of return is returned Conditional code is returned, if the request returns to conditional code and asks return conditional code consistent with the benchmark, performs step 22;Step 22, run the service call flow for the second time by the HyperText Markup Language resolver, return current Request URL address, required parameter, request message head, request method GET/POST and request it is time-consuming, if the request URL Location is consistent with the benchmark request URL address, the required parameter is consistent with required parameter described in the benchmark, the request report The cause first with the benchmark request message of literary head, the request method GET/POST and benchmark request method GET/POST mono- Cause and the request is time-consuming time-consuming consistent with benchmark request, be then successfully tested.
- 4. according to the method for claim 1, after described be successfully tested, in addition to:Step 3, using the business operation flow business is configured;Step 4, according to the business operation flow business to be tested of selection is tested.
- 5. according to the method for claim 4, it is characterised in that in step 3, be specially:Step 31, the business be divided into it is a variety of, by every kind of business configuration corresponding in a software module;Step 32, the business operation flow configuration is carried out to each software module.
- 6. according to the method for claim 4, it is characterised in that in step 4, in addition to:Test report is generated according to test result.
- 7. according to the method for claim 1, it is characterised in that in step 1, including:The business operation flow is recorded by HttpWatch instruments.
- 8. a kind of computer equipment, it is characterised in that also including processor and storage device;The memory is used to store computer program;The processor is used to perform the computer program, to realize the method any one of claim 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711119864.5A CN107707433B (en) | 2017-11-14 | 2017-11-14 | Method for testing business process from network platform and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711119864.5A CN107707433B (en) | 2017-11-14 | 2017-11-14 | Method for testing business process from network platform and computer equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107707433A true CN107707433A (en) | 2018-02-16 |
CN107707433B CN107707433B (en) | 2020-12-11 |
Family
ID=61179841
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711119864.5A Active CN107707433B (en) | 2017-11-14 | 2017-11-14 | Method for testing business process from network platform and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107707433B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109189665A (en) * | 2018-08-01 | 2019-01-11 | 阿里巴巴集团控股有限公司 | Data recording, data readback and the method and device tested automatically |
CN112069064A (en) * | 2020-08-31 | 2020-12-11 | 北京首汽智行科技有限公司 | Short message service provider API interface test method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020165956A1 (en) * | 2001-05-07 | 2002-11-07 | Peter Phaal | Traffic driven scheduling of active tests |
CN101526916A (en) * | 2008-03-03 | 2009-09-09 | 阿里巴巴集团控股有限公司 | Method and system for using page-based object flow verification in regression test |
CN101902366A (en) * | 2009-05-27 | 2010-12-01 | 北京启明星辰信息技术股份有限公司 | Method and system for detecting abnormal service behaviors |
CN102045191A (en) * | 2009-10-22 | 2011-05-04 | 华为技术有限公司 | Method and equipment for testing compatibility after upgrading of system |
CN106897204A (en) * | 2015-12-17 | 2017-06-27 | 中国电信股份有限公司 | The automatic monitoring method and system of operation flow |
-
2017
- 2017-11-14 CN CN201711119864.5A patent/CN107707433B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020165956A1 (en) * | 2001-05-07 | 2002-11-07 | Peter Phaal | Traffic driven scheduling of active tests |
CN101526916A (en) * | 2008-03-03 | 2009-09-09 | 阿里巴巴集团控股有限公司 | Method and system for using page-based object flow verification in regression test |
CN101902366A (en) * | 2009-05-27 | 2010-12-01 | 北京启明星辰信息技术股份有限公司 | Method and system for detecting abnormal service behaviors |
CN102045191A (en) * | 2009-10-22 | 2011-05-04 | 华为技术有限公司 | Method and equipment for testing compatibility after upgrading of system |
CN106897204A (en) * | 2015-12-17 | 2017-06-27 | 中国电信股份有限公司 | The automatic monitoring method and system of operation flow |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109189665A (en) * | 2018-08-01 | 2019-01-11 | 阿里巴巴集团控股有限公司 | Data recording, data readback and the method and device tested automatically |
CN109189665B (en) * | 2018-08-01 | 2022-03-01 | 创新先进技术有限公司 | Method and device for recording, replaying and automatically testing data |
CN112069064A (en) * | 2020-08-31 | 2020-12-11 | 北京首汽智行科技有限公司 | Short message service provider API interface test method |
CN112069064B (en) * | 2020-08-31 | 2024-02-02 | 北京首汽智行科技有限公司 | API (application program interface) testing method for short message service provider |
Also Published As
Publication number | Publication date |
---|---|
CN107707433B (en) | 2020-12-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6952800B1 (en) | Arrangement for controlling and logging voice enabled web applications using extensible markup language documents | |
US7881440B2 (en) | Method for automatic graphical profiling of a system | |
US20200090061A1 (en) | Machine assisted troubleshooting of a customer support issue | |
US20040139176A1 (en) | Systems and methods for improving service delivery | |
US7822850B1 (en) | Analyzing log files | |
EP1819094A1 (en) | Script language based network device configuration management system and method | |
US20050198646A1 (en) | Method, data processing device, computer program product and arrangement for processing electronic data | |
WO2001069412A2 (en) | Monitoring and modifying services provided over a network | |
CN103530338B (en) | Frame for carrying out page rendering on calculation equipment and page generation method | |
CN107526598A (en) | A kind of Webpage jump control method and system | |
US20060120353A1 (en) | Systems and methods for VolP service delivery | |
US7734740B2 (en) | Configuration management apparatus and related methods | |
CN107733710A (en) | Construction method, device, computer equipment and the storage medium of link call relation | |
CN109240700B (en) | Key code positioning method and system | |
JP5558792B2 (en) | Method, system, and computer program for dynamically improving the performance of an interactive voice response system using a complex event processor | |
CN101631262A (en) | VoiceXML business integrated development system and realizing method thereof | |
CN102821211A (en) | Automatic testing method and device for communication network elements | |
CN114398293A (en) | Interface test case generation method, electronic device and storage medium | |
CN107707433A (en) | A kind of method and computer equipment from network platform test operation flow | |
CN107846449B (en) | Method, apparatus, readable storage medium storing program for executing and the equipment of calling system tool | |
CN109587351B (en) | Call testing method, device, equipment and storage medium | |
CN110134380B (en) | Code generation method and device based on template engine and electronic equipment | |
JP5578424B2 (en) | History management system | |
CN112230938B (en) | Method and device for configuring rental products of industrial Internet | |
CN113704664A (en) | Method and device for generating routing address for accessing page |
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 |