CN101014061A - Method and apparatus for generating testing script and testing method and apparatus and system - Google Patents

Method and apparatus for generating testing script and testing method and apparatus and system Download PDF

Info

Publication number
CN101014061A
CN101014061A CNA200710002918XA CN200710002918A CN101014061A CN 101014061 A CN101014061 A CN 101014061A CN A200710002918X A CNA200710002918X A CN A200710002918XA CN 200710002918 A CN200710002918 A CN 200710002918A CN 101014061 A CN101014061 A CN 101014061A
Authority
CN
China
Prior art keywords
test script
ticket
data
configuration
search
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
CNA200710002918XA
Other languages
Chinese (zh)
Other versions
CN100583920C (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN200710002918A priority Critical patent/CN100583920C/en
Publication of CN101014061A publication Critical patent/CN101014061A/en
Priority to PCT/CN2007/070692 priority patent/WO2008092345A1/en
Application granted granted Critical
Publication of CN100583920C publication Critical patent/CN100583920C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/41Billing record details, i.e. parameters, identifiers, structure of call data record [CDR]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/44Augmented, consolidated or itemized billing statement or bill presentation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/48Secure or trusted billing, e.g. trusted elements or encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/58Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP based on statistics of usage or network monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/70Administration or customization aspects; Counter-checking correct charges
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/70Administration or customization aspects; Counter-checking correct charges
    • H04M15/73Validating charges
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2215/00Metering arrangements; Time controlling arrangements; Time indicating arrangements
    • H04M2215/01Details of billing arrangements
    • H04M2215/0104Augmented, consolidated or itemised billing statement, e.g. additional billing information, bill presentation, layout, format, e-mail, fax, printout, itemised bill per service or per account, cumulative billing, consolidated billing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2215/00Metering arrangements; Time controlling arrangements; Time indicating arrangements
    • H04M2215/01Details of billing arrangements
    • H04M2215/0156Secure and trusted billing, e.g. trusted elements, encryption, digital signature, codes or double check mechanisms to secure billing calculation and information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2215/00Metering arrangements; Time controlling arrangements; Time indicating arrangements
    • H04M2215/01Details of billing arrangements
    • H04M2215/0164Billing record, e.g. Call Data Record [CDR], Toll Ticket[TT], Automatic Message Accounting [AMA], Call Line Identifier [CLI], details, i.e. parameters, identifiers, structure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2215/00Metering arrangements; Time controlling arrangements; Time indicating arrangements
    • H04M2215/01Details of billing arrangements
    • H04M2215/0188Network monitoring; statistics on usage on called/calling number
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2215/00Metering arrangements; Time controlling arrangements; Time indicating arrangements
    • H04M2215/70Administration aspects, modify settings or limits or counter-check correct charges
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2215/00Metering arrangements; Time controlling arrangements; Time indicating arrangements
    • H04M2215/70Administration aspects, modify settings or limits or counter-check correct charges
    • H04M2215/7072Validate charges

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses one test leg generation method and device and its system, which comprises the following steps: through identification list type, finding the said list type relative test leg mode; finding out the got list relative set data; filling the set data into test leg module to generate list test copy to realize test leg automatic generation; running the leg to fulfill settlement system data set.

Description

The generation method of test script and device and method of testing and Apparatus and system
Technical field
The present invention relates to the system testing technical field, be specifically related to generation method and device and the method for testing and the Apparatus and system of test script.
Background technology
System testing is last, the most complete test in the software test, and it investigates the function and the performance requirement of software systems from the overall situation, and system testing is one of software production a series of activities, and it is the key activities that guarantees that software production and software requirement are consistent.The important leverage that system testing is successfully reached the standard grade as system, its effect is self-evident.
The system of present telecommunications settlement system, when testing: because settlement system is in (Clean) state that empties, inside does not have configuration data, can't discern and handle the ticket content, so at first need the tester will be in advance according to the configuration data of pending ticket configuration procedure needs, after importing described ticket, settlement system is utilized the data identification ticket of described configuration and ticket is handled; The process of handling comprises: ticket is carried out format conversion, and key element is found the solution, wholesale price; Generate detailed charge bill after the wholesale price, detailed charge bill is stored in detailed single table; The tester can add up the detailed charge bill in the detailed single table: the process of statistics is: operation such as carry out tired account, settle accounts, enter an item of expenditure in the accounts; Can draw test result by form and the giving-eggect statement of relatively entering an item of expenditure in the accounts at last.
In the above-mentioned test process, owing to treat that examining system does not have configuration data, the tester need handle required configuration data in this ticket process at the ticket manual configuration.A large amount of manual configuration operating process is very time-consuming, and the efficient of influence test makes the system testing progress slow, and manual configuration also makes mistakes easily, influences the accuracy of system testing.
If the process automation of configuration data is finished, will improve the testing efficiency of system testing greatly, present a kind of method is to write the customization operation that test script is finished configuration data in advance by the tester.Treat examining system as long as the operation test script promptly can be finished the process of configuration data.
But because the particularity of telecommunications settlement system, need be configured data at ticket, the data and the test process of different ticket configurations there are differences, need be at the different different test scripts of ticket configuration, though therefore this kind method can realize the automation of configuration data process, but the tester still will be in advance according to different ticket typings or work out different test scripts, but no matter be to generate test script or generate test script by manual form of presentation by the typing mode, the quantity of test script all is huge, even the data in the ticket have small difference, also will make amendment to script.The tester need be at every ticket typing or the corresponding test script of establishment, and workload is very huge, and feasibility is poor.
Summary of the invention
In view of this, the technical problem that the embodiment of the invention solves is to be specifically related to generation method and device and the method for testing and the Apparatus and system of test script, can realize the automatic configuration of settlement system data.
The generation method of a kind of test script that the embodiment of the invention provides comprises step: identification ticket type; Search and obtain the test script template corresponding with described ticket type; Search and obtain and the corresponding configuration data of described ticket content; Described configuration data is filled the test script that described test script template generates described ticket.
A kind of data configuration method that the embodiment of the invention provides comprises step: identification ticket type; Search and obtain the test script template corresponding with described ticket type; Search and obtain and the corresponding configuration data of described ticket content; Described configuration data is filled the test script that described test script template generates described ticket; Move described test script settlement system is carried out data configuration.
A kind of system detection method that the embodiment of the invention provides comprises: identification ticket type; Search the test script template that obtains described ticket type correspondence; Search the configuration data that obtains described ticket content correspondence; Described configuration data is filled the test script that described test script template generates described ticket; Move described test script settlement system is carried out data configuration; Settlement system utilizes the data of described configuration that described ticket is handled; Described result and expected results compared draw test result.
A kind of test script generating apparatus that the embodiment of the invention provides comprises: ticket type identification unit is used to discern the ticket type; Template is searched the unit, is used to search the test script template that obtains described ticket type correspondence; Configuration data is searched the unit, is used to search the configuration data that obtains described ticket content correspondence; The test script generation unit is used for that described configuration data is searched configuration data that the unit finds and fills described template and search the test script that test script template that the unit finds generates described ticket.
A kind of data collocation system that the embodiment of the invention provides comprises test script generating apparatus and data configuration device; Described test script generating apparatus is used to discern the ticket type; Search the test script template of the described ticket type correspondence of acquisition and the configuration data of described ticket content correspondence; And described configuration data filled the test script that described test script template generates described ticket; Described data configuration device is used to move the test script that described test script generating apparatus generates settlement system is carried out data configuration.
A kind of test macro that the embodiment of the invention provides comprises: test script generating apparatus, data configuration device, treat examining system and test result generating apparatus; Described test script generating apparatus is used to discern the ticket type; Search the test script template of the described ticket type correspondence of acquisition and the configuration data of described ticket content correspondence; And described configuration data filled the test script that described test script template generates described ticket; Described data configuration device is used to move test script that described test script generating apparatus generates and treats examining system and carry out data configuration; The described examining system for the treatment of, data configuration is carried out in the indication that is used to receive described data configuration device; And utilize the data of described configuration that described ticket is handled; Described test result generation unit is used for the described result for the treatment of examining system and expected results compared and draws test result.
A kind of testing apparatus that the embodiment of the invention provides comprises: test script generation unit, data configuration unit, treat examining system and test result generation unit; Described test script generation unit is used to discern the ticket type; Search the test script template of the described ticket type correspondence of acquisition and the configuration data of described ticket content correspondence; And described configuration data filled the test script that described test script template generates described ticket; Described data configuration unit is used to move test script that described test script generation unit generates and treats examining system and carry out data configuration; The described examining system for the treatment of, data configuration is carried out in the indication that is used to receive described data configuration unit; And utilize the data of described configuration that described ticket is handled; Described test result generation unit is used for the described result for the treatment of examining system and expected results compared and draws test result.
The embodiment of the invention is by identification ticket type; Search the test script template that obtains described ticket type correspondence; Search the configuration data that obtains described ticket content correspondence; Described configuration data is filled the test script that described test script template generates described ticket, the automation that has realized test script generates, move this script and then can finish the data configuration work of settlement system automatically, with respect to prior art, tester's hand-coding script, reduce tester's workload greatly, improved the efficient of the system testing of test, accelerated the overall progress of system testing process.
Description of drawings
Fig. 1 is the flow chart of the generation method of the embodiment of the invention one test script;
Fig. 2 is the flow chart of the generation method of the embodiment of the invention two test scripts;
Fig. 3 is the flow chart of the data configuration method of the embodiment of the invention three settlement systems;
Fig. 4 is the flow chart of the data configuration method of the embodiment of the invention four settlement systems;
Fig. 5 is the flow chart of the embodiment of the invention five settlement system method of testings;
Fig. 6 is the apparatus structure schematic diagram of the embodiment of the invention six test script generating apparatus;
Fig. 7 is the system configuration schematic diagram of the embodiment of the invention seven data collocation systems;
Fig. 8 is the embodiment of the invention eight test system structure schematic diagrames;
Fig. 9 is the embodiment of the invention nine testing apparatus structural representations.
Embodiment
The purpose of the embodiment of the invention is to provide generation method and device and the method for testing and the Apparatus and system of test script.
Embodiment one, a kind of generation method of test script, and flow chart comprises as shown in Figure 1:
101, identification ticket type.
In the present embodiment, the process of identification ticket type comprises:
At first mate format of billing; Determine described ticket type according to described format of billing again.
In the present embodiment, the coupling format of billing can be taked: the length of obtaining ticket; Search the format of billing that obtains described ticket length correspondence.Existing format of billing has the multiple standards form, as: format of billing, roaming format of billing, dream net format of billing, international direct dialing (IDD) form etc. between net.
Be understandable that the coupling format of billing can also take existing other conventional implementation to mate, the mode of specifically mating format of billing is not construed as limiting the invention.
By the identification format of billing, the ticket type can be divided into: ticket, roaming ticket, dream net ticket and international long-distance ticket between net.
In the present embodiment, the ticket type is classified according to format of billing, the test script template that different format of billing is different with correspondence.
Be understandable that described ticket type can also be determined jointly according to described format of billing and described ticket content.Promptly can be according to the format of billing of coupling, to the further more detailed classification of ticket.
As: at first discern format of billing, call list be the international long-distance ticket, according to the ticket content, draw this ticket type and be: international long-distance short message ticket.
102, search and obtain the test script template corresponding with described ticket type.
In the present embodiment, by the test script template of working out ticket type correspondence in advance.The number of ticket classification of type and number of categories and test script template can be determined as the case may be voluntarily, provides the structure of a test script template to give an example below:
<html>
<head>
<title>Test?Case?title</title>
</head>
<body>
<table>
<tbody>
<tr>
<td>First?command</td>
<td>Target</td>
<td>Value</td>
</tr>
<tr>
<td>Second?command</td>
<td>Target</td>
<td>Value</td>
</tr>
</tbody>
</table>
</body>
</html>
Wherein, the order that First command and Second command representative is carried out, Target represents the target of appointment, promptly configuration data insert the position, as a combobox in the page, radio box etc.Value representative needs the value of input, as the value of a certain row that the value that will fill in the text box, combobox are chosen etc., and promptly in the subsequent step, the configuration data that finds.For example: First command is: the representative numerical value of filling in the short message ticket, Target indicates the target location of filling in, the value of Value is the value of short message ticket correspondence, here the Value value is " 01 ", represents the Value value of short message ticket to be " 01 ", behind the data configuration, when test macro is handled ticket, then can obtain the numerical value that this ticket is represented the field of type of service, the numerical value that obtains is " 01 ", and then can mate the type of service that draws this ticket is the short message ticket.
103, search acquisition and the corresponding configuration data of described ticket content.
The embodiment of the invention also can be searched the configuration data that obtains all field contents correspondences of ticket.Also can search the configuration data of part field contents correspondence, the selection of concrete field contents can set in advance the field that needs processing.
Be appreciated that present embodiment step 103 and step 101 to step 102 there is no absolute order, if the content of each field of identification ticket, then can execution in step 103.
In the present embodiment, the configuration data of ticket content correspondence is in the maintenance data base that is stored in the maintenance server, and is actual when obtaining configuration data, can carry out alternately with maintenance server, searches the configuration data that acquisition needs by specific data-interface.Be understandable that, also can supply to search by a large amount of configuration data of local storage.
Described configuration data is the data relevant with clearing, as: operator's informaiton, positional information, rate etc.
104, described configuration data is filled the test script that described test script template generates described ticket.
In the present embodiment, when working out described test script template, a plurality of variablees that remain assignment or filling are set, to be found to configuration data fill after, then form complete test script.
The embodiment of the invention one is by identification ticket type; Search the test script template that obtains described ticket type correspondence; Search the configuration data that obtains described ticket content correspondence; Described configuration data is filled the test script that described test script template generates described ticket, realized that the automation of test script generates.With respect to prior art, tester's hand-coding script has reduced tester's workload greatly, has improved the efficient of the system testing of test, has accelerated the overall progress of system testing process.
Embodiment two, a kind of generation method of test script, and method flow comprises as shown in Figure 2:
201, the coupling format of billing.
202, determine described ticket type according to described format of billing and ticket content.
The ticket type can be determined jointly according to described format of billing and described ticket content.Promptly behind the format of billing that can mate, singly carry out more detailed classification according to the ticket content session again.
203, search the test script template that obtains described ticket type correspondence.
204, obtain the ticket critical field corresponding with described ticket type.
205, search acquisition and the corresponding configuration data of described ticket critical field content.
In the present embodiment, because consider the particularity of settlement system, for the processing of ticket mainly is the processing of carrying out at the ticket special data relevant with clearing, and therefore handling the data configuration that described ticket need carry out also is the configuration of carrying out at these special datas of processing.And the field of storing these special datas is critical field, and the configuration of critical field is according to the ticket type and fixed.
Be understandable that step 204 is to be prerequisite and triggering with step 202, step 204 there is no absolute order with step 203 on carrying out.
206, described configuration data is filled the test script that described test script template generates described ticket.
The embodiment of the invention two is that with the difference of embodiment one embodiment two further classifies ticket according to format of billing and ticket content, and according to the type ticket critical field content search configuration data of ticket type correspondence; It is careful more to classify, and need preset more eurypalynous test script template, but because the refinement of classification, in the ticket of same category, different field contents is also just few more, then can the test script template in, preset fixing more configuration data.When searching configuration data, the content of critical field and correspondence thereof is also just few more; Mutual with maintenance data base, the speed of having accelerated to search configuration data and filling template have so also just been reduced.Therefore the tester is in the configuration of carrying out ticket classification of type and test script template, and the tester can select the classification of suitable quantity that ticket is classified and disposes the test script template of classification type correspondence according to the situation of reality.
The embodiment of the invention three is provided below, and based on the data configuration method of the foregoing description one test script generation method, flow chart comprises as shown in Figure 3:
301, identification ticket type.
In the present embodiment, the process of identification ticket type comprises:
At first mate format of billing; Determine described ticket type according to described format of billing again.
302, search and obtain the test script template corresponding with described ticket type.
303, search acquisition and the corresponding configuration data of described ticket content.
The embodiment of the invention also can be searched and be obtained and the corresponding configuration data of all field contents of ticket.Also can search the configuration data of part field contents correspondence, the selection tester of concrete field contents can set in advance the field that needs processing.
Be appreciated that present embodiment step 303 and step 301 there is no absolute order to 302, if the content of each field of identification ticket, then can execution in step 303.
In the present embodiment, the configuration data of ticket content correspondence is in the maintenance data base that is stored in the maintenance server, and is actual when obtaining configuration data, can carry out alternately with maintenance server, searches the configuration data that acquisition needs by specific data-interface.Be understandable that, also can supply to search by a large amount of configuration data of local storage.
Described configuration data is the data relevant with clearing, as: operator's informaiton, positional information, rate etc.
304, described configuration data is filled the test script that described test script template generates described ticket.
In the present embodiment, described test script template is provided with a plurality of variablees that remain assignment or filling when preprogrammed, to be found to configuration data fill after, then form complete test script.
305, move described test script settlement system is carried out data configuration.
In the present embodiment, move described test script and can be settlement system directly operation carry out data configuration and be understandable that, also can be that other testing server operation test script drives described settlement system and finishes data configuration.
The embodiment of the invention three is by identification ticket type; Search the test script template that obtains described ticket type correspondence; Search the configuration data that obtains described ticket content correspondence; Described configuration data is filled the test script that described test script template generates described ticket, move described test script settlement system is carried out data configuration.Realized that the automation of test script has generated and realized to settle accounts the automation configuration of system datas.Avoid tester's hand-coding script or carried out data configuration by hand, reduced tester's workload greatly, improved the efficient of the system testing of test, accelerated the overall progress of system testing process.
The embodiment of the invention four, based on the data configuration method of the foregoing description two test script generation methods, method flow diagram comprises as shown in Figure 4:
401, the coupling format of billing.
402, determine described ticket type according to described format of billing and ticket content.
The ticket type can also be determined jointly according to described format of billing and described ticket content.Promptly behind the format of billing that can mate, singly carry out more detailed classification according to the ticket content session again.
403, search and obtain the test script template corresponding with described ticket type.
404, obtain the ticket critical field corresponding with described ticket type.
405, search and obtain the configuration data corresponding with the content of described ticket critical field.
In the present embodiment, because consider the particularity of settlement system, for the processing of ticket mainly is the processing of carrying out at the ticket special data relevant with clearing, and therefore handling the data configuration that described ticket need carry out also is the configuration of carrying out at these special datas of processing.And the field of storing these special datas is critical field, and the configuration of critical field is according to the ticket type and fixed.
Be understandable that step 404 is to be prerequisite and triggering with step 402, step 404 there is no absolute order with step 403 on carrying out.
406, described configuration data is filled the test script that described test script template generates described ticket.
407, move described test script settlement system is carried out data configuration.
Inventive embodiments four is that with the difference of embodiment three embodiment two further classifies ticket according to format of billing and ticket content, and according to the type ticket critical field content search configuration data of ticket type correspondence; It is careful more to classify, and need preset more eurypalynous test script template, but because the refinement of classification, in the ticket of same category, different field contents is also just few more, then can the test script template in, preset fixing more configuration data.When searching configuration data, the content of critical field and correspondence thereof is also just few more; Mutual with maintenance data base, the speed of having accelerated to search configuration data and filling template have so also just been reduced.Therefore the tester is in the configuration of carrying out ticket classification of type and test script template, and the tester can select the classification of suitable quantity that ticket is classified and disposes the test script template of classification type correspondence according to the situation of reality.
Embodiment five is these system detection methods based on the foregoing description three or embodiment four data configuration methods, and flow chart comprises as shown in Figure 5:
501, identification ticket type;
502, search the test script template that obtains described ticket type correspondence;
503, search the configuration data that obtains described ticket content correspondence;
504, described configuration data is filled the test script that described test script template generates described ticket;
505, move described test script settlement system is carried out data configuration;
506, settlement system utilizes the data of described configuration that described ticket is handled.
In the present embodiment, settlement system comprises the processing that described ticket carries out:
Ticket to input carries out format conversion;
Ticket after changeing is carried out key element finds the solution and wholesale price generation detailed charge bill;
Described detailed charge bill is tired out account and clearing draw form.
507, described result and expected results compared draw test result.
In the present embodiment, form that described processing is drawn and giving-eggect statement compare and promptly draw test result, judge that then the test macro processing procedure is for normal if form is identical, if apparent error appears in form form different or that processing draws, judge the process exception that test macro is handled, need debug and revise.
Embodiment six is based on the generating apparatus of the test script of the embodiment of the invention one test script generation method, comprising: ticket type identification unit 610, masterplate template are searched unit 620, configuration data is searched unit 630 and test script generation unit 640.
Ticket type identification unit 610 is used to discern the ticket type;
Template is searched unit 620, is used to search the test script template of the ticket type correspondence that obtains 610 identifications of described ticket type identification unit;
Configuration data is searched unit 630, is used to search the configuration data that obtains described ticket content correspondence;
Test script generation unit 640 is used for that described configuration data is searched configuration data that unit 630 finds and fills described template and search the test script that test script template that unit 620 finds generates described ticket.
Embodiment seven, are based on the data collocation system of the embodiment of the invention three or embodiment four data configuration methods, comprise test script generating apparatus 710 and data configuration device 720;
Described test script generating apparatus 710 is used to discern the ticket type; Search the test script template of the described ticket type correspondence of acquisition and the configuration data of described ticket content correspondence; And described configuration data filled the test script that described test script template generates described ticket.
Described data configuration device 720 is used to move the test script that described test script generating apparatus 710 generates settlement system is carried out data configuration.
Embodiment eight, are based on the test macro of the embodiment of the invention five system detection methods, comprise test script generating apparatus 810, data configuration device 820, treat examining system 830 and test result generating apparatus 840;
Described test script generating apparatus 810 is used to discern the ticket type; Search the test script template of the described ticket type correspondence of acquisition and the configuration data of described ticket content correspondence; And described configuration data filled the test script that described test script template generates described ticket.
Described data configuration device 820 is used to move the test script that described test script generating apparatus 810 generates settlement system is carried out data configuration.
The described examining system 830 for the treatment of, data configuration is carried out in the indication that is used to receive described data configuration device 820; And utilize the data of described configuration that described ticket is handled;
Described test result generating apparatus 840 is used for the described result for the treatment of examining system 830 and expected results compared and draws test result.
Embodiment nine, are based on the testing apparatus of the embodiment of the invention five system detection methods, comprise test script generation unit 910, data configuration unit 920, treat examining system 930 and test result generation unit 940;
Described test script generation unit 910 is used to discern the ticket type; Search the test script template of the described ticket type correspondence of acquisition and the configuration data of described ticket content correspondence; And described configuration data filled the test script that described test script template generates described ticket.
Described data configuration unit 920 is used to move the test script that described test script generation unit 910 generates settlement system is carried out data configuration.
The described examining system 930 for the treatment of, data configuration is carried out in the indication that is used to receive described data configuration unit 920; And utilize the data of described configuration that described ticket is handled;
Described test result generation unit 940 is used for the described result for the treatment of examining system 930 and expected results compared and draws test result.
The embodiment of the invention is by identification ticket type; Search the test script template that obtains described ticket type correspondence; Search the configuration data that obtains described ticket content correspondence; Described configuration data is filled the test script that described test script template generates described ticket, realized that the automation of test script generates.With respect to prior art, tester's hand-coding script has reduced tester's workload greatly, has improved the efficient of the system testing of test, has accelerated the overall progress of system testing process.
Further, the embodiment of the invention is further classified ticket according to format of billing and ticket content, and according to the type ticket critical field content search configuration data of ticket type correspondence; It is careful more to classify, and need preset more eurypalynous test script template, but because the refinement of classification, in the ticket of same category, different field contents is also just few more, then can the test script template in, preset fixing more configuration data.When searching configuration data, the content of critical field and correspondence thereof is also just few more; Mutual with maintenance data base, the speed of having accelerated to search configuration data and filling template have so also just been reduced.Therefore the tester is in the configuration of carrying out ticket classification of type and test script template, in the practice, can select the classification of suitable quantity that ticket is classified and disposes the test script template of classification type correspondence according to the situation of reality.
More than the generation method of test script provided by the present invention and device and method of testing and Apparatus and system are described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and main thought thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (16)

1. the generation method of a test script is characterized in that, comprises step:
Identification ticket type;
Search and obtain the test script template corresponding with described ticket type;
Search and obtain and the corresponding configuration data of described ticket content;
Described configuration data is filled the test script that described test script template generates described ticket.
2. the generation method of test script as claimed in claim 1 is characterized in that, described identification ticket type comprises step:
The coupling format of billing;
Determine described ticket type according to described format of billing.
3. the generation method of test script as claimed in claim 2 is characterized in that, described ticket type is also determined according to described ticket content.
4. the generation method of test script as claimed in claim 2 is characterized in that, the process of described coupling format of billing comprises:
Obtain the length of described ticket;
Search and obtain and the corresponding format of billing of described ticket length.
5. as the generation method of any described test script of claim 1 to 4, it is characterized in that the described acquisition configuration data corresponding with described ticket content of searching comprises step:
Obtain the ticket critical field corresponding with described ticket type;
Search the configuration data of the content correspondence that obtains described ticket critical field.
6. a data configuration method is characterized in that, comprises step:
Identification ticket type;
Search and obtain the test script template corresponding with described ticket type;
Search and obtain and the corresponding configuration data of described ticket content;
Described configuration data is filled the test script that described test script template generates described ticket;
Move described test script settlement system is carried out data configuration.
7. test script generation method as claimed in claim 6 is characterized in that, described identification ticket type comprises step:
The coupling format of billing;
Determine described ticket type according to described format of billing.
8. the method that test script as claimed in claim 7 generates is characterized in that, described ticket type is also determined according to described ticket content.
9. the generation method of test script as claimed in claim 7 is characterized in that, the process of described coupling format of billing comprises step:
Obtain the length of described ticket;
Search and obtain and the corresponding format of billing of described ticket length.
10. as the generation method of any described test script of claim 6 to 9, it is characterized in that the described configuration data that obtains described ticket content correspondence of searching comprises step:
Obtain described ticket type right answer the ticket critical field;
Search the configuration data of the content correspondence that obtains described ticket critical field.
11. a system detection method is characterized in that, comprising:
Identification ticket type;
Search and obtain the test script template corresponding with described ticket type;
Search and obtain and the corresponding configuration data of described ticket content;
Described configuration data is filled the test script that described test script template generates described ticket;
Move described test script settlement system is carried out data configuration;
Settlement system utilizes the data of described configuration that described ticket is handled;
Described result and expected results compared draw test result.
12. system detection method as claimed in claim 11 is characterized in that, described described ticket is handled comprises step:
Ticket to input carries out format conversion;
Ticket after changeing is carried out key element finds the solution and wholesale price generation detailed charge bill;
Described detailed charge bill is tired out account and clearing draw form;
Described described result and expected results are compared draws test result and comprises step:
Form that described clearing are drawn and giving-eggect statement compare and draw test result.
13. a test script generating apparatus is characterized in that, comprising:
Ticket type identification unit is used to discern the ticket type;
Template is searched the unit, is used to search the test script template that obtains described ticket type correspondence;
Configuration data is searched the unit, is used to search the configuration data that obtains described ticket content correspondence;
The test script generation unit is used for that described configuration data is searched configuration data that the unit finds and fills described template and search the test script that test script template that the unit finds generates described ticket.
14. a data collocation system is characterized in that, comprises test script generating apparatus and data configuration device;
Described test script generating apparatus is used to discern the ticket type; Search the test script template of the described ticket type correspondence of acquisition and the configuration data of described ticket content correspondence; And described configuration data filled the test script that described test script template generates described ticket;
Described data configuration device is used to move the test script that described test script generating apparatus generates settlement system is carried out data configuration.
15. a test macro is characterized in that, comprising: test script generating apparatus, data configuration device, treat examining system and test result generating apparatus;
Described test script generating apparatus is used to discern the ticket type; Search the test script template of the described ticket type correspondence of acquisition and the configuration data of described ticket content correspondence; And described configuration data filled the test script that described test script template generates described ticket;
Described data configuration device is used to move test script that described test script generating apparatus generates and treats examining system and carry out data configuration;
The described examining system for the treatment of, data configuration is carried out in the indication that is used to receive described data configuration device; And utilize the data of described configuration that described ticket is handled;
Described test result generating apparatus is used for the described result for the treatment of examining system and expected results compared and draws test result.
16. a testing apparatus is characterized in that, comprising: test script generation unit, data configuration unit, treat examining system and test result generation unit;
Described test script generation unit is used to discern the ticket type; Search the test script template of the described ticket type correspondence of acquisition and the configuration data of described ticket content correspondence; And described configuration data filled the test script that described test script template generates described ticket;
Described data configuration unit is used to move test script that described test script generation unit generates and treats examining system and carry out data configuration;
The described examining system for the treatment of, data configuration is carried out in the indication that is used to receive described data configuration unit; And utilize the data of described configuration that described ticket is handled;
Described test result generation unit is used for the described result for the treatment of examining system and expected results compared and draws test result.
CN200710002918A 2007-01-26 2007-01-26 Method and apparatus for generating testing script, testing method, apparatus and system Expired - Fee Related CN100583920C (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN200710002918A CN100583920C (en) 2007-01-26 2007-01-26 Method and apparatus for generating testing script, testing method, apparatus and system
PCT/CN2007/070692 WO2008092345A1 (en) 2007-01-26 2007-09-14 A method and apparatus for generating test script, a method, apparatus and system for checking test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710002918A CN100583920C (en) 2007-01-26 2007-01-26 Method and apparatus for generating testing script, testing method, apparatus and system

Publications (2)

Publication Number Publication Date
CN101014061A true CN101014061A (en) 2007-08-08
CN100583920C CN100583920C (en) 2010-01-20

Family

ID=38701340

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710002918A Expired - Fee Related CN100583920C (en) 2007-01-26 2007-01-26 Method and apparatus for generating testing script, testing method, apparatus and system

Country Status (2)

Country Link
CN (1) CN100583920C (en)
WO (1) WO2008092345A1 (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2369822A1 (en) * 2008-10-27 2011-09-28 Huawei Technologies Co., Ltd. Testing method and testing device of monthly payment charge
CN103186376A (en) * 2011-12-30 2013-07-03 百度在线网络技术(北京)有限公司 Method, device and equipment for establishing or updating software development environment
CN103365767A (en) * 2012-03-29 2013-10-23 天津书生软件技术有限公司 File testing system and file testing device
CN103577168A (en) * 2012-07-27 2014-02-12 鸿富锦精密工业(深圳)有限公司 Test case creation system and method
CN103678372A (en) * 2012-09-14 2014-03-26 北京百度网讯科技有限公司 Method and equipment for obtaining application performance of page
CN104731521A (en) * 2013-12-23 2015-06-24 伊姆西公司 Method and equipment for configuring data center
CN103268226B (en) * 2013-05-17 2016-07-06 瑞斯康达科技发展股份有限公司 A kind of test script file generates method and device
CN107045539A (en) * 2017-02-10 2017-08-15 北京浩瀚深度信息技术股份有限公司 A kind of ticket analysis method and device based on BS structures
CN107800889A (en) * 2017-02-17 2018-03-13 平安科技(深圳)有限公司 Call logic method of testing and device
CN108874649A (en) * 2017-05-08 2018-11-23 中兴通讯股份有限公司 Generation method, device and its computer equipment of automatic test script
CN109871309A (en) * 2017-12-04 2019-06-11 中国移动通信集团公司 A kind of charge system test cases generation method and system
CN111181790A (en) * 2019-12-31 2020-05-19 京信通信系统(中国)有限公司 Method, device, equipment and storage medium for quickly generating automatic test script
CN111193833A (en) * 2020-01-02 2020-05-22 中国银行股份有限公司 Telephone traffic report system testing method, device, server and storage medium
CN111240983A (en) * 2020-01-14 2020-06-05 北京思特奇信息技术股份有限公司 Method and device for realizing automatic test of telecommunication charging service
CN112433699A (en) * 2020-11-05 2021-03-02 北京中电华大电子设计有限责任公司 Script engine for SE personalization
CN113434588A (en) * 2021-01-30 2021-09-24 河南信安通信技术股份有限公司 Data mining analysis method and device based on mobile communication ticket
CN113572833A (en) * 2021-07-21 2021-10-29 北京百度网讯科技有限公司 Cloud mobile phone maintenance method and device, electronic equipment and storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102446090B (en) * 2010-10-09 2014-01-29 金蝶软件(中国)有限公司 Method and device for automatically generating test script
US8799720B2 (en) 2012-02-28 2014-08-05 International Business Machines Corporation Semi-automatic conversion and execution of functional manual tests
CN110569199B (en) * 2019-09-20 2023-09-22 中国银行股份有限公司 Automatic bill testing method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8176318B2 (en) * 2003-04-16 2012-05-08 Zios Corporation Method and system for providing a customized network
CN100382075C (en) * 2003-12-30 2008-04-16 英业达股份有限公司 Hardware-level based test script automatic generating system and method
CN1761277B (en) * 2004-10-11 2010-07-14 中兴通讯股份有限公司 Device for dynamic analyzing call ticket and dynamic analyzing method

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2369822A4 (en) * 2008-10-27 2012-03-28 Huawei Tech Co Ltd Testing method and testing device of monthly payment charge
EP2369822A1 (en) * 2008-10-27 2011-09-28 Huawei Technologies Co., Ltd. Testing method and testing device of monthly payment charge
CN103186376B (en) * 2011-12-30 2018-06-05 百度在线网络技术(北京)有限公司 A kind of method, apparatus and equipment for being used to establish or update software development environment
CN103186376A (en) * 2011-12-30 2013-07-03 百度在线网络技术(北京)有限公司 Method, device and equipment for establishing or updating software development environment
CN103365767A (en) * 2012-03-29 2013-10-23 天津书生软件技术有限公司 File testing system and file testing device
CN103577168A (en) * 2012-07-27 2014-02-12 鸿富锦精密工业(深圳)有限公司 Test case creation system and method
CN103678372A (en) * 2012-09-14 2014-03-26 北京百度网讯科技有限公司 Method and equipment for obtaining application performance of page
CN103678372B (en) * 2012-09-14 2019-05-07 北京百度网讯科技有限公司 A kind of method and apparatus for obtaining the application performance of the page
CN103268226B (en) * 2013-05-17 2016-07-06 瑞斯康达科技发展股份有限公司 A kind of test script file generates method and device
CN104731521A (en) * 2013-12-23 2015-06-24 伊姆西公司 Method and equipment for configuring data center
CN104731521B (en) * 2013-12-23 2018-02-16 伊姆西公司 Method and apparatus for configuration data center
CN107045539A (en) * 2017-02-10 2017-08-15 北京浩瀚深度信息技术股份有限公司 A kind of ticket analysis method and device based on BS structures
CN107800889A (en) * 2017-02-17 2018-03-13 平安科技(深圳)有限公司 Call logic method of testing and device
CN107800889B (en) * 2017-02-17 2019-11-05 平安科技(深圳)有限公司 Call logic test method and device
CN108874649A (en) * 2017-05-08 2018-11-23 中兴通讯股份有限公司 Generation method, device and its computer equipment of automatic test script
CN109871309A (en) * 2017-12-04 2019-06-11 中国移动通信集团公司 A kind of charge system test cases generation method and system
CN111181790A (en) * 2019-12-31 2020-05-19 京信通信系统(中国)有限公司 Method, device, equipment and storage medium for quickly generating automatic test script
CN111181790B (en) * 2019-12-31 2022-11-01 京信网络系统股份有限公司 Method, device, equipment and storage medium for quickly generating automatic test script
CN111193833A (en) * 2020-01-02 2020-05-22 中国银行股份有限公司 Telephone traffic report system testing method, device, server and storage medium
CN111193833B (en) * 2020-01-02 2021-06-08 中国银行股份有限公司 Telephone traffic report system testing method, device, server and storage medium
CN111240983A (en) * 2020-01-14 2020-06-05 北京思特奇信息技术股份有限公司 Method and device for realizing automatic test of telecommunication charging service
CN112433699A (en) * 2020-11-05 2021-03-02 北京中电华大电子设计有限责任公司 Script engine for SE personalization
CN113434588A (en) * 2021-01-30 2021-09-24 河南信安通信技术股份有限公司 Data mining analysis method and device based on mobile communication ticket
CN113434588B (en) * 2021-01-30 2024-04-02 河南信安通信技术股份有限公司 Data mining analysis method and device based on mobile communication ticket
CN113572833A (en) * 2021-07-21 2021-10-29 北京百度网讯科技有限公司 Cloud mobile phone maintenance method and device, electronic equipment and storage medium
CN113572833B (en) * 2021-07-21 2024-05-14 北京百度网讯科技有限公司 Cloud mobile phone maintenance method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2008092345A1 (en) 2008-08-07
CN100583920C (en) 2010-01-20

Similar Documents

Publication Publication Date Title
CN100583920C (en) Method and apparatus for generating testing script, testing method, apparatus and system
CN102135938B (en) Software product testing method and system
CN102662846B (en) Testing method combining automatic tool and testing case
CN110096434A (en) Interface testing method and device
CN110389898A (en) Acquisition methods, device, terminal and the computer readable storage medium of Test Strategy
CN105260299A (en) Method, device, and system for software test
CN102567565B (en) Cable parameter processing method and system utilizing same
CN103164323A (en) Data automatic generation method and data automatic generation system
CN104317839A (en) Method and device for generating report form template
CN103500139A (en) Communication software integration testing system and method
CN103974281A (en) Testing apparatus and test display method
CN104536874A (en) Client collapse locating method and device
CN110413645A (en) Data search method, device, terminal and computer readable storage medium
CN114020630A (en) Automatic generation method and system for interface use case
CN102486748A (en) Method and device for performance test
CN117194501B (en) DCS trend measurement point jump logic configuration method, system, equipment and medium
CN110209565A (en) A kind of metadata schema adjustment method and its device
CN110866712B (en) Component intelligent logistics positioning method and system based on BIM model plug-in
CN103164526B (en) The generation method of test report and device
CN116257451A (en) Interface testing method, device, equipment, storage medium and product
CN105653549A (en) Method and device for extracting document information
CN112309313A (en) Module controller configuration method, device and system and computer readable storage medium
CN102663205B (en) Software realization method and system for vehicle assembly shop tooling site management
CN112765041B (en) Game automation testing method and device and electronic equipment
CN112597040B (en) Interface automatic testing method and device and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100120

Termination date: 20130126