CN1326044C - Automation software testing system based on script explanatory tool - Google Patents

Automation software testing system based on script explanatory tool Download PDF

Info

Publication number
CN1326044C
CN1326044C CNB2004100860413A CN200410086041A CN1326044C CN 1326044 C CN1326044 C CN 1326044C CN B2004100860413 A CNB2004100860413 A CN B2004100860413A CN 200410086041 A CN200410086041 A CN 200410086041A CN 1326044 C CN1326044 C CN 1326044C
Authority
CN
China
Prior art keywords
test
record
script
case
cases
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.)
Active
Application number
CNB2004100860413A
Other languages
Chinese (zh)
Other versions
CN1601483A (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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CNB2004100860413A priority Critical patent/CN1326044C/en
Publication of CN1601483A publication Critical patent/CN1601483A/en
Application granted granted Critical
Publication of CN1326044C publication Critical patent/CN1326044C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention relates to an automated software testing system based on a script explaining tool, which comprises a test case base, a test record base, a test case processing unit, a test record processing unit, a test case managing unit and a test controlling unit, wherein the test controlling unit accepts information of an operating command of a user through a human computer interface, controls the test case processing unit to read the initial data of a test case from the case base, stores a script of the test case after the editing operation of the user and stores a path in the test case base; a test record is generated from the test case through the test record processing unit and stored in the test record base, and a script of the test record is stored; the test record is run, and the script of the test record is transferred to an ROBOT in a special test machine for running through the test case managing unit; the test data is transferred to application programs for processing by running the ROBOT script, and a running result is stored in the test record base through the test case managing unit.

Description

A kind of automation software testing system based on script explanatory tool
Technical field
The present invention relates to network and computer software technology, the particularly test of computer application software is a kind of automation software testing system based on script explanatory tool concretely.
Background technology
Software test is a very important job, and is particularly all the more so for complexity such as financial circles, industry and huge application software testing, because the running quality of software will directly influence interests in many ways.Yet method for testing software of the prior art adopts unit operation, manual method to test using software mostly based on certain script explanatory tool.
Existing script explanatory tool is a lot, and the Robot instrument is one of them.Robot is the instrument that is used to carry out functional test and performance test of Rational company exploitation.Use Rational Robot can develop three types script: to be used for the GUI script of functional test, the VU that is used for performance test and VB script.
Robot provides following function:
1) finishes all functional tests.Record and the process finished of playback application, and detect the state of monitored object by the checkpoint.
2) finish all performance tests.Be used in combination Robot and TestManager writes down script, help to judge whether the performance of the system of a multi-client satisfies set standard.
3) use SQABasic, VB and VU script running environment to create and edit script.The Robot editing machine provides editing environment easily for writing of complexity in the script exploitation.
4) be applied to the exploitation of Visual Studio.NET, Visial Basic, Oracle form, Power Builder, HTML and Java.Even sightless object can be as tested object in application interface.
5) in the script replayed section, collect the diagnostic message of using.Robot integrates with RationalPutify, Quantify, PureCoverage.Under diagnostic tool, after the Run Script, can in daily record, check diagnostic result.
OO recording technique allows only just can produce test script fast by moving test record simply in the middle of the Robot.Robot uses OO recording method, comes identifying object by the object name of object inside, rather than discerns by the coordinate on the screen.If object has changed position or text, Robot still can find them in playback.Object measuring technology among the Robot allows any object in test event of test, comprises the attribute and the data of this object.Though in the interface whether as seen, can testing standard Windows object and IDE object.As seen the test record script write for the user of Robot provides a system of explaining and carrying out, and the identification of script and operation are all finished by Robot.
Though the Robot instrument can be finished the work of software test, the use to the Robot instrument in the prior art is but very original, causes low, the waste of manpower of testing efficiency, and it is embodied in:
1) can not effectively manage the problem that therefore can't solve the case storage and reuse to test cases;
2) test directly influences other operations of foreground user in unit or front platform computer operation;
3) testing process manually-operated takies manpower in a large number;
4) the unit compartment of operation Robot instrument can't realize the balanced management of test resource;
5) unit of operation Robot instrument is only worked at the test of a certain concrete software, therefore has no dirigibility can say, more can not satisfy various business demand.
In sum, though script explanatory tool of the prior art is a lot, and these script explanatory tools (as the Robot instrument) also can help the user to finish the work of software test, but are based on robotization, that dirigibility is strong, the compatible good software testing system also not appearance at present of Software Testing Tool.
Summary of the invention
The objective of the invention is to, a kind of automation software testing system based on script explanatory tool is provided.In order to test cases is effectively managed, solve the problem that case is reused.Test is carried out by the backstage, other operations of not influencing front stage user.The testing process robotization need not manually-operated.Realize the balanced management of test resource.And make total system have stronger dirigibility, can satisfy various business demand, can compatible various protocols.
Technical scheme of the present invention is: a kind of automation software testing system based on script explanatory tool, comprising,
Test cases storehouse: be used to store test cases information, test cases script;
Test record storehouse: be used to store test record information, test record script;
The test cases processing unit: be used for to test cases generation, delete, reuse and handle;
The test record processing unit: be used for to test record generation, delete, duplicate, the running status statistics handles;
Test cases administrative unit: constitute all operations of management testing record run duration under the scheduling of computing machine and test monitoring by script explanatory tool;
Test Master Control Unit: be used for system resource and hardware resource are controlled;
Described test Master Control Unit is accepted user's operation instruction information by man-machine interface, and control the primary data of described test cases processing unit read test case from described test cases storehouse, after user's editing operation, preserve the test cases script with textual form, and its path is kept in the test cases storehouse; Described test cases generates test record through described test record processing unit, is kept in the described test record storehouse, preserves the test record script with the form of text simultaneously; Move described test record, the test record script is sent to each application program by described test cases administrative unit with test data and handles, and operation result is saved in described test record storehouse through described test cases administrative unit.
In described test cases storehouse, test cases information is corresponding one by one with the test cases script, and described test cases information stores is in database, and described test cases script is deposited with the form of text; By test cases management of information in the database being realized management to described test cases script.
Described test cases processing unit comprises: deletion case module, case type block and case designer.
Described case designer is a visual case design module, and it adds transaction code by graphical interfaces, revises the input item and the corresponding action of transaction, generates the test cases script.Described case designer can be remembered the inputoutput data of each functional module that the user once tested.
The file that described case designer uses comprises: the test cases script in the test cases storehouse; The table that uses comprises:
Case table (TC): the information of the test cases that record has generated;
Transaction input item table (TRANSITEM): record test original data stream, preserve the once title and the information of all input items of test;
Case type list (TT): manage all case type informations;
Wherein,
Generate the tree of case type:
Read described case type list.Because the last layer station code of system default ground floor node all is 0, so all last layer type codes of scanning are that 0 type code is the node of ground floor, the type code that scans all last layer type codes and be the ground floor code is the node of the second layer, by that analogy.
Described case designer comprises automatic generation interface detection case unit, and this generates interface detection case unit automatically and comprises:
Transaction code administration module: be used to carry out transaction code search, transaction code is newly-increased, transaction code is revised, the transaction code deletion;
Input item administration module: be used to carry out that input item is newly-increased, input item is revised, the input item deletion;
Check an administration module: be used for the inspection item and increase, check a modification, inspection entry deletion newly;
Automatically generate the test data module: being used for concluding the business, the input field is checked, the test cases data generate;
Test specification imports and exports module: be used for test specification importing, test specification derivation.
Described transaction is meant: various tested application software.
Described test record processing unit is used to quote the test cases that has generated, and the variable in the test cases is carried out assignment, the test record that generation can move.
The file that described test record processing unit uses comprises: case case script in the test cases storehouse and the test record script in the test record storehouse;
The table that uses comprises:
Case table (TC): the information of the test cases that record has generated;
Test recording table (TD): the information of the test record that record has generated;
The project name table of comparisons (PNC): project in the record test library and corresponding bullets;
The round title table of comparisons (TN): round in the record test library and corresponding round numbering;
Wherein, the test cases of newly-built test record tree is formed by four layers; Three first layers is three levels of case type; The 4th layer is user name; Obtain the case type code with three levels, search for the case table, obtain submission person's title of all not repeated test cases; Use the realname field of submission person's title search subscriber admin table (UM) then, obtain submission person's real name, be shown as the 4th layer of case tree; Increase assignment statement in the case script on record and generate the test record script.
Described test record processing unit also comprises the test record reuse module, be used for generating new test record from the test record that has generated, and keep all variate-values of former test record, directly the operation test or revise certain several variate-value after carry out the test of difference in functionality point.
Described test record reuse module comprises that wall scroll duplicates: be used for a test record is copied under certain catalogue of appointment, do not change any variate-value in duplicating;
Batch duplicating: be used for many test records of same case numbering under the same User Catalog are copied under the designated directory, can specify in duplicating and will revise which variate-value, and unified the modification.
The employed file of described batch duplicating comprises: the test record script in the test cases storehouse;
The table that uses comprises,
Test recording table (TD): the information of the test record that record has generated;
The project name table of comparisons (PNC): project in the record test library and corresponding bullets;
The round title table of comparisons (TN): round in the record test library and corresponding round numbering;
User management table (UM);
Wherein, batch duplicating mainly is made up of two circulations, and a systemic circulation is to duplicate the test record of choosing one by one, and second is when duplicating each test record, and former record script is read in circulation, generates new record script;
Batch modification variable value in the batch duplicating is before duplicating, and lists all variable values, allows the user specify the name variable that will revise; In the reproduction process, when meeting the assignment of these variablees, just duplicate with the value of user's appointment;
Replicate run after the assigned area: the content after the assigned area is copied to file destination from source file, then file destination is uploaded to the case library server;
Database manipulation: after having duplicated a test record, just the bullets of this test record, round, the case numbering, records of composition such as record number are inserted in the test recording table (TD table).
Described test cases administrative unit comprises: test monitoring module, test cases transmit module, computer scheduling module.
Described test master control unit pack is drawn together: system is provided with module, user management module, modification crypto module, test machine administration module, daily record and checks module, round administration module, project management module.
System of the present invention also comprises:
At least one client computer: the function of carrying out described test Master Control Unit;
At least one test machine: be loaded with the test terminal, script explanatory tool, the automatic test service end, the case database that constitute by test cases processing unit, test record processing unit, test cases administrative unit;
Case library server: store test cases storehouse, test record storehouse;
Wherein, described client computer, test machine, case library server intercouple, and described test machine is connected with the application server of the tested application software of operation.
Adopt Transmission Control Protocol to connect between described client computer, test machine, the case library server; Adopt being connected of respective protocol between described test machine and the application server, described respective protocol comprises: Transmission Control Protocol, http protocol or TELNET agreement.
Play a service at described test machine and serve as Server; Described client computer serves as Client, and is connected to described test machine by TCP; Play a timer at described client computer end, to screenshotss of test machine request, screenshotss information is shown at client computer at set intervals, realize supervision described test machine screen.
At described Client and the more self-defined TCP communication command that is used for communication of Server end, this TCP communication command is as follows:
Execution command with the beginning of " PLAY " character string;
The instruction that the wall scroll test record is carried out that stops with " stop1 " beginning;
The execution command of all test records that " stopA11 " stops once to submit to;
" disconnect " is for disconnecting link order;
Automatic test platform submits to test macro all can generate a sign ID that total system is unique each time, and is key word record of insertion in queuecontrol shows with ID, and specified order insertion execute showed when submission all pressed in all current records of submitting to.
The automatic test queuing management server is ceaselessly sent out test and is instructed to the testing service end, detect the state of test machine, if find the test machine abnormal state, and the status=0 in computer run management (PCM) table, just call that the shutdown program is long-range restarts test machine, the state of putting current test machine in the PCM table simultaneously becomes 2 (restarting); If find idle test machine is arranged, just begin to detect the queuecontrol table after obtaining its IP, in case discovery has ID number of flag=0 (being untreated), just pressing the ID ascending order arranges, take out ID number inquiry execute table of article one record, all qualified test records are sent out " PLAY " by TCP instruct the test machine of free time, simultaneously the status field in the PCM table is changed to 1 (doing); It is 3 maintenance state that test machine also has a status, and when manually status=3 being set, queuing management server no longer detects the state of this test machine, makes things convenient for the technician to make attended operations such as refresh routine.
Test machine is received the script catalogue that " PLAY " instruction just begins the script text of test record correspondence is downloaded to by ftp robot, generate the expansion corresponding .script.rtxml file by name simultaneously, robot can be discerned and can call this script with the script name.And the test record of in Access database table casedb, insert to need carrying out, the corresponding ID that it produces when submitting to of id field wherein, status=0, name=script name.
Robot is activated when service end starts, and carries out the big script of a continuous cycle detection Access database table casedb, selects the record of status=0 among the casedb by the sequence ascending order, calls its corresponding test record script in order; The value of the status field of current executive logging is changed to 1 (moving) in during execution the execute in casedb table and the oracle database being shown, and after being finished status is changed to 2 (operation finishes).
In the implementation, the user can cancel handling of having submitted to or untreated test record, the user can see test record and each ID of all ID correspondences that oneself is submitted to by a queuing monitoring window of automatic test platform, the current state that is in of each test record can manual refreshing and refresh automatically.When the user chooses an ID, during if this ID is untreated or handles, the execution of the test record during the user can handle or handle by all that send by " stopping to carry out " button that one " stopA11 " instruction cancels an ID correspondence; When the user chooses a test record, during if this test record is untreated or is handled, the user is during by " stop carry out ", can send one with the instruction headed by " stop1 " to the testing service end, stop the execution of a test record in being untreated or handling.After service end receives " stop1 " halt instruction, can be changed to 4 (cancelling) to the status field of test record corresponding in the execute table in casedb and the oracle database. after receiving " stopA11 " instruction, the test record state that can be untreated in casedb and the oracle database execute table all or handle is changed to 4 (cancelling), simultaneously the flag field of the record of corresponding ID in the queuecontrol table also is changed to 4 (cancelling); When calling a test record script at every turn, the Deadloop script all can detect the status value of the test record of preparing execution earlier, if the discovery value is 4, and the execution of then skipping this test record script.
Monitoring: when script explanatory tool move, client played a timer and calls ClientMonDLL.d11 and be connected to the test terminal by tcp, obtained the picture of test terminal when transacting business, and realized that real-time screen monitors;
After the robotization queuing management server sends the PLAY instruction, after perhaps client sent " stop1 " and " stopa11 " instruction, service end all can send " disconnect " instruction notification robotization queuing management server and client and disconnect and being connected of server end.
Beneficial effect of the present invention is 1) set up the test cases storehouse test cases is effectively managed, solved the problem that case is reused.2) test is carried out by the backstage, does not influence user's foregrounding.3) testing process automation mechanized operation need not manually-operated.4) test machine once can only move a system application, and automatization test system has been set up the test machine admin table at lane database, and the busy-idle condition of each test machine is judged, decides test cases to carry out on which platform test machine.Realized the balanced management of test resource.5) case of automatization test system uses the script (a kind C++ programming language) of script explanatory tool (Rational testing tool etc.) to write and explain execution, therefore, have high dirigibility and adaptability, can satisfy various service logic needs.Have stronger dirigibility, can satisfy various business demand.6) can test the application program of under the WINDOWS system, moving by ROBOT: application software, C/S network application system, B/S browser application system and the various emulation terminal softwares etc. that comprise Single plate for load engaging.
Description of drawings
Fig. 1 is system network architecture figure of the present invention;
Fig. 2 is a logical organization block diagram of the present invention;
Fig. 3 is a data flowchart of the present invention;
Fig. 4 is a data structure diagram of the present invention;
Fig. 5 is test and management module realization flow figure of the present invention;
Fig. 6 is the routine processes process flow diagram of case designer;
Fig. 7 is for generating test record routine processes process flow diagram;
Fig. 8 is a test record reuse program processing flow chart;
Fig. 9 is for generating the processing flow chart of test cases;
Figure 10 reuses process flow diagram for test cases;
Figure 11 is the man-machine interface figure of embodiment;
Figure 12 is option and round surface chart;
The surface chart of Figure 13 for selected item and round are confirmed;
Figure 14 is operation test record process flow diagram;
Figure 15 is the test flow chart of the operation TELNET of system agreement of the present invention;
Figure 16 is the test cases product process figure of the operation TELNET of system agreement of the present invention;
Figure 17 reuses process flow diagram for the test cases of the operation TELNET of system agreement of the present invention;
Figure 18 is the test test record operational flow diagram of the operation TELNET of system agreement of the present invention.
Embodiment
Below in conjunction with description of drawings the specific embodiment of the present invention.The present invention is a kind of automation software testing system based on script explanatory tool, comprising, test cases storehouse: be used to store test cases information, test cases script; Test record storehouse: be used to store test record information, test record script; The test cases processing unit: be used for to test cases generation, delete, reuse and handle; The test record processing unit: be used for to test record generation, delete, duplicate, the running status statistics handles; Test cases administrative unit: constitute all operations of management testing record run duration under the scheduling of computing machine and test monitoring by script explanatory tool; Test Master Control Unit: be used for system resource and hardware resource are controlled; Described test Master Control Unit is accepted user's operation instruction information by man-machine interface, and control the primary data of described test cases processing unit read test case from described test cases storehouse, after user's editing operation, preserve the test cases script with textual form, and its path is kept in the test cases storehouse; Described test cases generates test record through described test record processing unit, is kept in the described test record storehouse, preserves the test record script with the form of text simultaneously; Move described test record, the test record script is sent to each application program by described test cases administrative unit with test data and handles, obtain operation result, operation result is saved in described test record storehouse through described test cases administrative unit.
Described test cases is meant: at certain test target, have the fixing service logic and the test script of environmental variance.
Described test record is meant: the script that writes down the data of certain actual test operation.Be that with the difference of test cases test cases is at some test targets, but owing to test environment uncertain has undetermined attribute.And test record at be in order to realize the once specifically test of some test targets, be specializing of test cases.Because test environment is clear and definite, so test record has been embodied in data to the attribute of test cases.
Described test machine is meant: the machine of automatic test service end, Rational Robot has been installed, be used to carry out test record script, implement concrete test.
As shown in Figure 1, be the embodiment of system of the present invention, it shows an automatization test system network structure.This automatization test system is based on the C/S framework, and its network structure mainly comprises foreground client, test cases storehouse, test machine.
Foreground client: effect is the various instructions of accepting the user, and the form of result with visualization interface represented to the user.
Test machine: effect is processing instruction and finishes each function.
The test cases storehouse: comprising test cases storehouse and test record storehouse, is the core of data storage.
As shown in Figure 2, automatization test system comprises administration module, test cases module, test record module, test and management module, case case script, test record script, case library, these several modules of test record storehouse.Wherein:
Administration module: system and hardware resource at automatization test system manage, and comprise that system design, user management, modification password, test machine management, daily record are checked, submodules such as round is managed, project management.According to user's different rights, have different submodule functions.
Test cases module: to the generation of test cases, delete and reuse and manage, comprise submodules such as deletion case, case type management, case designer.
Test record module: to the generation of test record, delete and duplicate and carry out the statistics of test record running status, comprise newly-built test record, deletion test record, carry out submodules such as test record, edit code according to the classification of project.
The test and management module: all operations of management testing record run duration comprises as submodules such as test monitoring, case transmission, computer schedulings.
Case library: deposit case.
The test record storehouse: deposit test record with and the dependence test object information.
As shown in Figure 3, user's operation instruction information is sent to the case processing module, at first reads the primary data of case from case library, after user's editor waits operation, with textual form preservation case case script, and its path is kept in the case library.Test cases generates test record through the test record processing module, is kept in the test record storehouse, preserves the test record script with the form of text simultaneously.Operation is during test record, and the test record script is sent to test data by the test and management module and obtains operation result after each application program is handled, again with operation result after tested administration module be saved in the test record storehouse.
As shown in Figure 4, be Data Structure Design of the present invention.Shown in illustrated in table 1, table 2, table 3, table 4, table 5, table 6, table 7, table 8, table 9, table 10, table 11, table 12 and the table 13 of major database table and main field thereof.
Table 1 test cases table (TC)
Field name Data type Length Key assignments Explanation
FUPO ?VARchar2 ?20 ?Y The test cases numbering
SCRIPT ?VARchar2 ?8 ?N The shell script name
TCTYPE ?VARchar2 ?6 Kind
DPT ?VARchar2 ?3027 ?N Describe
USERNAME ?VARchar2 ?20 ?N User name
TCTIMES ?NUMBER ?10 The case number of times that is cited
Table 2 test recording table (TD)
Field name Data type Length Key assignments Explanation
PROJECTNO ?VARchar2 ?8 ?Y Bullets
TNO ?VARchar2 ?1 ?Y Round
FUPO ?VARchar2 ?10 ?Y The test cases numbering
RECNUM ?VARchar2 ?2 ?Y Test cases record number
CASENUM ?VARchar2 ?2 ?Y Transaction step
SCRIPT ?VARchar2 ?40 ?N The shell script name
TDTYPE ?VARchar2 ?6 ?N Kind
DPT ?VARchar2 ?3072 ?N Describe
STATUS ?VARchar2 ?1 ?N Running status
RESULT ?VARchar2 ?1 ?N The test record execution result
USERNAME ?VARchar2 ?20 ?N User name
Table 3 test report table (TR)
Field name Data type Length Key assignments Explanation
PROJECTNO ?VARchar2 ?8 ?Y Bullets
TNO ?VARchar2 ?1 ?Y Round
FUPO ?VARchar2 ?10 ?Y The test cases numbering
RECNUM ?VARchar2 ?2 ?Y Test cases record number
CASENUM ?VARchar2 ?2 ?Y Transaction step
TRANS ?VARchar2 ?6 ?N Transaction Identification Number
ADDOPR ?VARchar2 ?20 ?N Test cases submission person
ENDPIC ?VARchar2 ?40 ?N The test result sectional drawing is deposited the path
RESULT ?VARchar2 ?1 ?N Test result 0: failure; 1: success
Table 4 user management table (UM)
Field name Data type Length Key assignments Explanation
USERNAME ?VARchar2 ?20 ?Y User name
REALNAME ?VARchar2 ?20 ?N Real Name
PRIVE ?VARchar2 ?20 ?N The user right string
TESTPCIP ?VARchar2 ?15 ?N The test machine IP that takies
NOTESID ?VARchar2 ?50 ?N User's NotesID
Table 5 computer run admin table (PCM)
Field name Data type Length Key assignments Explanation
IP ?VARchar2 ?20 ?Y Test machine IP
PCNAME ?VARchar2 ?20 ?N The machine name of test machine
STATUS ?VARchar2 ?20 ?N The state of test machine
NOTESID ?VARchar2 ?15 ?N User's NotesID
Table 6 transaction input item table (TRANSITEM)
Field name Data type Length Key assignments Explanation
TRANS ?VARchar2 ?10 ?Y Transaction code
FLAG ?INT ?10 ?N Type code: 0-information, 1-input item
STREAM ?VARchar2 ?4000 ?N Data structure: various types of data are that separator is deposited with the comma
Table 7 type list (TT)
Field name Data type Length Key assignments Explanation
TYPEID ?VARchar2 ?20 ?N Type code
TYPENAME ?VARchar2 ?40 ?N Typonym
FTYPE ?VARchar2 ?20 ?N The upper strata type code
Table 8 data stream list (DATASTREAM)
Field name Data type Length Key assignments Explanation
TRANS ?VARchar2 ?6 ?Y The transaction name
CREATEDATE ?VARchar2 ?10 ?N Revise the date
STREAM ?VARchar2 ?200 ?N Describe
SCRIPT ?VARchar2 ?20 ?N The script name
The table 9 round title table of comparisons (TN)
Field name Data type Length Key assignments Explanation
TNO ?VARchar2 ?2 ?Y Round number
TNAME ?VARchar2 ?8 ?N The round Chinese name
The table 10 project name table of comparisons (PNC)
Field name Data type Length Key assignments Explanation
PRONO ?VARchar2 ?10 ?Y Bullets
PRONAME ?VARchar2 ?20 ?N The project Chinese
The database table that is based upon on the test machine is a table 11:
Table 11:CASEDB
Field name Data type Length Key assignments Explanation
ID ?LONG Automatic numbering ?Y Numbering
NAME ?char ?50 ?N The test record name
STATUS ?INT ?10 ?N State
Table 12:QUEUECONTROL
Field name Data type Length Key assignments Explanation
ID ?NUMBER ?10 ?Y Numbering
USERNAME ?char ?20 ?N User name
FLAG ?char ?1 ?N State
DATETIME ?DATE ?N Date
Table 13:EXECUTE
Field name Data type Length Key assignments Explanation
ID ?NUMBER ?10 ?Y Numbering
SEQUENCE ?char ?20 ?N User name
STATUS ?char ?1 ?N State
In the present invention, the test and management module is as the main modular of test monitoring and execution, and it realizes mainly launching around the solution of following three problems:
1) realization is to the supervision of test machine screen.Play a service at test machine and serve as Server, client is served as Client, is connected to test machine by Tcp, has held a timer at Client, to screenshotss of test machine request, screenshotss information is shown in client at set intervals.
2) realization is to some necessary controls of test machine.Need some be used for the instruction of communication in the agreement of Client and Server end.Self-defining TCP communication command is as follows:
Execution command with the beginning of " PLAY " character string;
The instruction that the wall scroll test record is carried out that stops with " stop1 " beginning;
The instruction of the execution of all test records that " stopA11 " stops once to submit to;
" disconnect " is for disconnecting link order;
3) realization is to the scheduling of test machine.
Automatic test platform submits to test macro all can generate a sign ID that total system is unique each time, and is key word record of insertion in queuecontrol shows with ID, and specified order insertion execute showed when submission all pressed in all current records of submitting to.
The automatic test queuing management server is ceaselessly sent out test and is instructed to the testing service end, detects the state of test machine, if find the test machine abnormal state, and the status=0 in the PCM table; Just call that the shutdown program is long-range restarts test machine, the state of putting current test machine in the PCM table simultaneously becomes 2 (restarting); If find idle test machine is arranged, just begin to detect the queuecontrol table after obtaining its IP, in case discovery has ID number of flag=0 (being untreated), just pressing the ID ascending order arranges, take out ID number inquiry execute table of article one record, all qualified test records are sent out " PLAY " by TCP instruct the test machine of free time, simultaneously the status field in the PCM table is changed to 1 (doing); It is 3 maintenance state that test machine also has a status, and when manually status=3 being set, queuing management server no longer detects the state of this test machine, makes things convenient for the technician to make attended operations such as refresh routine.
Test machine is received the script catalogue that " PLAY " instruction just begins the script text of test record correspondence is downloaded to by ftp robot, generate the expansion corresponding script.rtxml file by name simultaneously, robot can be discerned and can call this script with the script name; And the test record of in Access database table casedb, insert to need carrying out, the corresponding ID that it produces when submitting to of id field wherein, status=0, name=script name.
Robot is activated when service end starts, and carries out the big script of a continuous cycle detection Access database table casedb, and the record by sequence ascending order select goes out status=0 among the casedb calls its corresponding test record script in order; The value of the status field of current executive logging is changed to 1 (moving) in during execution the execute in casedb table and the oracle database being shown, and after being finished status is changed to 2 (operation finishes).
In the implementation, the user can cancel handling of having submitted to or untreated test record, the user can see test record and each ID of all ID correspondences that oneself is submitted to by a queuing monitoring window of automatic test platform, the current state that is in of each test record can manual refreshing and refresh automatically.When the user chooses an ID, during if this ID is untreated or handles, the execution of the test record during the user can handle or handle by all that send by " stopping to carry out " button that one " stopA11 " instruction cancels an ID correspondence; When the user chooses a test record, during if this test record is untreated or is handled, the user is during by " stop carry out ", can send one with the instruction headed by " stop1 " to the testing service end, stop the execution of a test record in being untreated or handling.Service end receives " stop1 " after the halt instruction, can be changed to 4 (cancelling) to the status field of test record corresponding in the execute table in casedb and the oracle database; Receive that " stopA11 is " after the instruction, the test record state that can be untreated in casedb and the oracle database execute table all or handle is changed to 4 (cancelling), simultaneously the flag field of the record of corresponding ID in the queuecontrol table also is changed to 4 (cancelling); When calling a test record script at every turn, the Deadloop script all can detect the status value of the test record of preparing execution earlier, if the discovery value is 4, and the execution of then skipping this test record script.
Monitoring: when script explanatory tool move, client played a timer and calls ClientMonDLL.d11 and be connected to the test terminal by tcp, obtained the picture of test terminal when transacting business, and realized that real-time screen monitors;
After the robotization queuing management server sends the PLAY instruction, after perhaps client sent " stop1 " and " stopa11 " instruction, service end all can send one, and " " instruction notification robotization queuing management server and client disconnected and being connected of server section disconnect.
The realization of case designer:
The test cases designer is that its function is by graphical interfaces, adds transaction code at a visual case design module of user's use habit exploitation, revises the input item and the corresponding action of transaction, generates the test cases script.The test cases designer can be remembered the input of each functional module that the user once tested, and effectively helps the user when the design test case, according to work in the past, simplifies the flow process of work at present.For example, the user once tested the part of module of certain system, all inputoutput datas when the test cases designer can be remembered to test this module, in the case design afterwards, when the user carries out Test Design to this module again, designer can access the information of once testing of this module and offer user's reference, has made things convenient for the work of user's design.
The file that uses: the case file on the case library server (case case script)
The table that uses: TC, TRANSITEM, DATASTREAM, TT
TC (case table): the information of the test cases that record has generated comprises: the case numbering, case is described, submission person, corresponding script path.Field contents sees the database design part for details.
TRANSITEM: be the table of a record test original data stream, the title of all input items that preservation is once tested and information etc.Field contents sees the database design part for details.
TT (case type list): be used for the table of management automation test cases type, the effect in case designer module is a type of depositing all test cases.Field contents sees the database design part for details.
As shown in Figure 6, first interface that shows the case designer, generate the tree of case type: read the TT table, because the last layer station code of system default ground floor node all is 0, so all last layer type codes of scanning are that 0 type code is the node of ground floor, the type code that scans all last layer type codes and be the ground floor code is the node of the second layer, by that analogy.In the case text, corresponding tested module has three inlet flow: inputstr, outputstr, actionstr, is presented on the interface with form respectively.
In transitem, flag has 4 values: the content among 0, the 2 expression corresponding field stream is the content (input item of test) of inputstr, and wherein 0 expression choosing is defeated, and 2 expressions must be failed item; The content of 1 corresponding actionstr; The error message of 3 corresponding transaction.
The data stream of each tested module is made up of a series of input item titles and input value.Wherein input value has following several:
Variable value: fixing in the case, assignment again when generating test record.
Fixed value: Gu Ding some numerals in the case, character etc.
The flow process of parameter transmission is: the information of inputing or outputing of the tested module of front is put among the outputstr, uses for the tested module of back.
Inputstr, outputstr, the form of actionstr is " title=value | and title=value | ... .. "
Test cases generates test record
The function of this module is to quote the test cases that has generated, and the variable in the test cases is carried out assignment, the test record that generation can move.
The file that uses: case file on the case library server (case case script) and test record file (test record script)
The table that uses: TC, TD, PNC, TN
TC (case table): the information of the test cases that record has generated comprises: the script path of case numbering, case description, submission person, correspondence.Field contents sees the database design part for details.
TD (test recording table): the information of the test record that record has generated comprises: the script path of bullets, round, case numbering, record number, case description, submission person, correspondence.Field contents sees the database design part for details.
PNC (the project name table of comparisons): project in the record test library and corresponding bullets.
TN (the round title table of comparisons): round in the record test library and corresponding round numbering.
As shown in Figure 7, the test cases of newly-built test record tree is formed by four layers.Three first layers is three levels of case type, illustrates in this case designer in front.The 4th layer is user name: obtain the case type code with three levels, search TC shows, and obtains submission person's title of all not repeated test cases.Use the realname field of submission person's title search subscriber admin table (UM) then, obtain submission person's real name, be shown as the 4th layer of case tree.
Increase assignment statement in the case script on record and generate the test record script: the general format of the data stream in the case script on record is " item=value | ... ", for " value " be variable value, usefulness " edit (i) " represent.Here " i " represent that this variable is which variable in the case case script.So when adding assignment statement, increase respectively according to the order of variable name on the interface " edit (i)=xxx " etc. assignment statement.
The realization that test record is reused:
The function of this module is to generate new test record from the test record that has generated " fast ", and keeps all variate-values of former test record, can directly move test, also can revise the test of carrying out difference in functionality point behind certain several variate-value.
Reusing of test record comprises two parts: wall scroll duplicates and batch duplicating
Wall scroll duplicates: a test record is copied under certain catalogue of appointment.Do not change any variate-value in duplicating.
Batch duplicating: many test records of same case numbering under the same User Catalog are copied under the designated directory.Can specify in duplicating and will revise those variate-values, and same modification.
Because batch duplicating comprises the realization that wall scroll duplicates, thus below introduce the realization of batch duplicating.
The file that uses: the test record file on the case library server
The table that uses: TD, PNC, TN, UM
As shown in Figure 8:
1) batch duplicating mainly is made up of two circulations, and a systemic circulation is to duplicate the test record of choosing one by one.Second is when duplicating each test record, and former record script is read in circulation, generates new record script.
2) the batch modification variable value in the batch duplicating is before duplicating, and lists all variable values, allows the user specify the name variable that will revise.In the reproduction process, when meeting the assignment of these variablees, just duplicate with the value of user's appointment.
3) replicate run after the assigned area: the content after the assigned area is copied to file destination from source file.Then file destination is uploaded to the case library server.
4) database manipulation: after having duplicated a test record, just the bullets of this test record, round, the case numbering, records of composition such as record number are inserted in the TD table.
The test specification explanation:
Automatization test system can be tested the application program of moving under the WINDOWS system: application software, C/S network application system, B/S browser application system and the various emulation terminal softwares etc. that comprise Single plate for load engaging.
Other explanation:
1) client exploitation and running environment
Developing instrument: Delphi;
Database client: the client of Oracle 9i relational database;
Operational system: Windows 2000 or Windows XP;
2) server end exploitation and running environment
Developing instrument: Delphi, C++;
Database server: Oracle 9i;
Script execution system: the software product Robot of IBM Rational;
Operational system: Windows 2000 or Windows XP;
In the concrete enforcement of system of the present invention, also need carry out Safety Design, comprising:
1) Subscriber Management System
Automatization test system has own independent user management; And, each user's operation is limited by the authority setting.User management also comprises the modification of automatization test system user's newly-increased and deletion and user cipher and authority.
2) running log
Automatization test system can get off User login and change operation such as database and corresponding time keeping, can search the place of the system failure or problem easily for the user mode of inquiring about automatization test system when the test generation problem.
Below be each treatment scheme of the specific embodiment of the present invention:
One, test cases generates guide
As shown in Figure 9, the treatment scheme of generation test cases is:
1, automatization test system is according to the information of client input, the request of sending search database;
2, the automatic test test macro is searched for the record that meets the client-requested search condition from database;
3, automatization test system returns to client with the database search result;
4, automatization test system video data library searching result on client;
5, add trading function: from database, take out the relevant input item of this transaction, output item and mutual with and relevant assignment information, be presented on the functional test guide interface.Make the user obtain the relevant information of this transaction quickly, and can be on the basis of original transaction, the modification of concluding the business; Save its time to every definition of concluding the business;
Add the processing block function: selected relationship trading, add then and handle soon, access processing
Recover the default value function: the value of each input item of given transaction can be returned to the value (from database, obtaining) of last this each input item of concluding the business of definition, make the user in the process of revising this each input item value of concluding the business, can regain once the edit box of piece fast, simply; Can in edit box, add the treatment scheme code.Make the functional test case can be applicable to more test case;
The deletion trading function: the transaction that will select in can the case transaction flow on operation interface with and the processing block deletion;
Deletion processing block function: can on operation interface, delete selected transaction processing piece; Define the value of this each input item of concluding the business, thereby guarantee the availability of transaction;
Function clears data: the assignment full scale clearance of each input item of given transaction can be fallen, make the user be not subjected to before the influence of input item definition, make things convenient for it to redefine the value of input item;
Empty data function: the title and the value of given transaction input item can be removed all, the user can redefine transaction;
Preserve data function, can with the transaction input item title of this generation of given transaction with and assignment be saved in the database, when using this transaction next time, can be from database with the transaction input item of this preservation with and assignment be shown to out;
6, client is sent the functional test case and is generated request;
7, automatization test system is according to the generative process systematic function test cases of this functional test case transaction;
8, automatization test system is saved in the functional test case that generates respectively in database and the test cases storehouse;
9, automatization test system returns to client with the functional test case numbering that generates and is presented on the client operation interface.
Two, editor's test cases script
Treatment scheme is illustrated as: when the user selected this, automatization test system accesses selected the test cases dialog box.
When opening each layer of search tree, test cases classified information in the automatization test system reading database; During one deck, automatization test system is searched for the case that belongs to this test-types and is presented in the interface from database to the end; Need to select editor's test cases to edit.
Automatization test system calls the editing and processing piece, ejects the editing dialog frame, and the test cases script is directly revised; Preserve then.Automated system will be preserved back test cases script and will be saved in the test cases storehouse.
Three, editor's test cases
The treatment scheme explanation: when the user selected this, automatization test system accesses selected the test cases dialog box.
When opening each layer of search tree, test cases classified information in the automatization test system reading database; During one deck, automatization test system is searched for the case that belongs to this test-types and is presented in the interface from database to the end; Need to select editor's test cases to edit.
Automatization test system accesses the dialog box of test cases.Test cases carries out visual modification: the test transaction flow process at existing case is adjusted, and its functional description is seen: the test cases design.
Four, set up new test record
As described in Figure 10, test cases is reused flow process and is:
1, automatization test system is accepted the database search solicited message of client input;
2, automatization test system is searched for the record that meets the client-requested search condition from database;
3, automatization test system returns to client with the database search result;
4, automatization test system video data library searching result on client;
5, automatization test system is accepted client and is selected information: path that the test cases place generates and selected test cases with and attribute definition, in database, add a new test record; Successfully interpolation information of database is returned to client; And be presented at and notify the new test record of tester to add successfully on the client end interface.
Five, test record reuses
As shown in Figure 5, test record reuse treatment scheme: on that interface of drawing, selected test record and revise the attribute of test record.
Click " generation test record " button, eject the dialog box that affiliated project of test record and round are set.The project of selected generation test record and round and interpolation are to its description.
As shown in figure 12, click " generation example " button, generate the new test record under technical routine and the round.The realization test record can be crossed over test event and be used.
As shown in figure 13, select " Yes " or " No ".
Six, operation test record
As shown in figure 14, operation test record treatment scheme:
1, client is initiated the request of operation test cases;
2, whether automatization test system is searched for from the database facility admin table and is also had idle background server to move test script for the user;
If 3 have idle machine, then the information with the user is stored in the equipment control table;
If 4 have idle machine, then move test record, otherwise wait for idle test machine;
5, automatization test system reads from the test cases storehouse by the FTP mode and specifies the corresponding test script of operation test record;
6, automatization test system is sent to this test script on the background server by the FTP mode and moves;
7, automatization test system will start that serve end program of operation copies and send it to immediately user's use side to operation test terminal picture on user side program and the runtime server at user's use side of automatization test system;
8, the user can be monitored in real time by the dialog box of lower end, automatization test system interface to background server ruuning situation.Certainly, the user also can select the not ruuning situation of control and measuring record, even can be closing automatization test system.When the user opens automatization test system once more, whether user's information is arranged in the equipment control table of automatization test system elder generation search database; If have, then also in the middle of operation, the user can monitor the test script ruuning situation of background server to test script once more;
If 9 do not have, to represent then that test script has moved to finish, the information that automatization test system finishes operation sends to client and sends information that the operation of mail notification user test case finishes and ruuning situation in detail;
10, client receives the information indicating that operation finishes, and notifies the user can inquire about the test script operation result at the interface at the interface.
Below be an application example of the present invention: use automatization test system to carry out the automatic test of TELNET agreement.(as shown in figure 15)
1, when the tester need test, can meet the test cases of current test request in the client search; Simplify the set-up procedure of test cases, particularly when test cases is abundant, test cases or test record that the tester writes in basically can the use test case library, the time that the minimizing tester writes test cases;
2, automatization test system is searched for the test cases that meets search condition from database;
3, automatization test system returns the database search result to client;
If 4 return the test cases that does not meet search condition, the tester needs use test case designer to generate interface detection case or functional test case.Automatically generate the interface detection case: simplified the time that the tester writes the DCO case, the tester only need set the inspection rule that the transaction input item needs, just can generate the interface detection case automatically by automatization test system.Equally, functional test case generates guide provides friendly interface to write the functional test case for the tester.If the test cases that meets search condition is arranged, then reuse this test cases or test record; Below introduce in detail: generate interface detection case process, functional test case generative process, test cases reuse process and test record reuse process automatically;
5, the tester needs the test cases of operation and its attribute is carried out assignment in that client is selected, generates test record then, then submits the test record (can be that a plurality of test records are submitted to together) that needs operation to;
6, the tester can select to monitor the test record ruuning situation of runtime server in real time or carry out before the writing and can inquire easily of other case and the result of current test record operation, thereby improves tester's work efficiency.Below introduce the test record operational scheme in detail.
One, test cases generative process (as shown in figure 16)
1, automatization test system is according to the information of client input, the request of sending search database;
2, the automatic test test macro is searched for the record that meets the client-requested search condition from database;
3, automatization test system returns to client with the database search result;
4, automatization test system video data library searching result on client;
5, add trading function: from database, take out the relevant input item of this transaction, output item and mutual with and relevant assignment information, be presented on the functional test guide interface.Make the user obtain the relevant information of this transaction quickly, and can be on the basis of original transaction, the modification of concluding the business; Save its time to every definition of concluding the business;
Add the processing block function: selected relationship trading, add then and handle soon, access the edit box of processing block; Can in edit box, add the treatment scheme code.Make the functional test case can be applicable to more test case;
The deletion trading function: the transaction that will select in can the case transaction flow on operation interface with and the processing block deletion;
Deletion processing block function: can on operation interface, delete selected transaction processing piece;
Recover the default value function: the value (from database, obtaining) that the value of each input item of given transaction can be returned to last this each input item of concluding the business of definition, make the user in the process of revising this each input item value of concluding the business, can regain the value that once defines this each input item of concluding the business fast, simply, thereby guarantee the availability of transaction;
Function clears data: the assignment full scale clearance of each input item of given transaction can be fallen, make the user be not subjected to before the influence of input item definition, make things convenient for it to redefine the value of input item;
Empty data function: the title and the value of given transaction input item can be removed all, the user can redefine transaction;
Preserve data function, can with the transaction input item title of this generation of given transaction with and assignment be saved in the database, when using this transaction next time, can be from database with the transaction input item of this preservation with and assignment be shown to out;
6, client is sent the functional test case and is generated request;
7, automatization test system is according to the generative process systematic function test cases of this functional test case transaction;
8, automatization test system is saved in the functional test case that generates respectively in database and the test cases storehouse;
9, automatization test system returns to client with the functional test case numbering that generates and is presented on the client operation interface.
Two, test cases is reused flow process (as shown in figure 17)
1, automatization test system is accepted the database search solicited message of client input;
2, automatization test system is searched for the record that meets the client-requested search condition from database;
3, automatization test system returns to client with the database search result;
4, automatization test system video data library searching result on client;
5, automatization test system is accepted client and is selected information: path that the test cases place generates and selected test cases with and attribute definition, in database, add a new test record; Successfully interpolation information of database is returned to client; And be presented at and notify the new test record of tester to add successfully on the client end interface.
In the test record reuse process,
1, on main interface, the attribute of selected test record and modification test record.(as Figure 11)
2, click " generation test record " button, eject the dialog box that affiliated project of test record and round are set.The project of selected generation test record and round and interpolation are to its description.(as Figure 12)
3, click " generation example " button, generate the new test record under technical routine and the round.The realization test record can be crossed over test event and be used.(as Figure 13)
Three, automated system is handled test record operational scheme (as shown in figure 18)
1, client is initiated the request of operation test cases;
2, whether automatization test system is searched for from the database facility admin table and is also had idle background server to move test script for the user;
If 3 have idle machine, then the information with the user is stored in the equipment control table;
If 4 have idle machine, then move test record; Otherwise wait for idle test machine;
5, automatization test system reads from the test cases storehouse by the FTP mode and specifies the corresponding test script of operation test record;
6, automatization test system is sent to this test script on the background server by the FTP mode and moves;
7, automatization test system will start that serve end program of operation copies and send it to immediately user's use side to operation test terminal picture on user side program and the runtime server at user's use side of automatization test system;
8, the user can be monitored in real time by the dialog box of lower end, automatization test system interface to background server ruuning situation.Certainly, the user also can select the not ruuning situation of control and measuring record, even can be closing automatization test system.When the user opens automatization test system once more, whether user's information is arranged in the equipment control table of automatization test system elder generation search database; If have, then also in the middle of operation, the user can monitor the test script ruuning situation of background server to test script once more;
If 9 do not have, to represent then that test script has moved to finish, the information that automatization test system finishes operation sends to client and sends information that the operation of mail notification user test case finishes and ruuning situation in detail;
10, client receives the information indicating that operation finishes, and notifies the user can inquire about the test script operation result at the interface at the interface.
It is roughly the same with the automatic test of character terminal to use automatization test system to carry out its use of automatic test of HTTP and ICP/IP protocol, just the different test script foundation forms of needs.Test cases is based on this template and produces.Because based on the test of http protocol and ICP/IP protocol, normally B/S structure or C/S structure not only need change in information in the transaction picture is tested, and need check the attribute of control in the browser.Need different test script basis masterplates so carry out the automatic test of HTTP and TCP/IP.
Beneficial effect of the present invention is 1) set up the test cases storehouse test cases is effectively managed, solved the problem that case is reused.2) test is carried out by the backstage, does not influence user's foregrounding.3) testing process automation mechanized operation need not manually-operated.4) test machine once can only move a system application, and automatization test system has been set up the test machine admin table at lane database, and the busy-idle condition of each test machine is judged, decides test cases to carry out on which platform test machine.Realized the balanced management of test resource.5) case of automatization test system uses the script (a kind C++ programming language) of script explanatory tool (Rational testing tool etc.) to write and explain execution, therefore, have high dirigibility and adaptability, can satisfy various service logic needs.Have stronger dirigibility, can satisfy various business demand.6) can test the application program of under the WINDOWS system, moving by ROBOT: application software, C/S network application system, B/S browser application system and the various emulation terminal softwares etc. that comprise Single plate for load engaging.
Only describing the present invention in detail by above specific embodiment, is not to be used to limit the present invention.

Claims (24)

1. automation software testing system based on script explanatory tool, comprising,
Test cases storehouse: be used to store test cases information, test cases script;
Test record storehouse: be used to store test record information, test record script;
The test cases processing unit: be used for to test cases generation, delete, reuse and handle;
The test record processing unit: be used for to test record generation, delete, duplicate, the running status statistics handles;
Test cases administrative unit: constitute by script explanatory tool, be used for all operations of management testing record run duration;
Test Master Control Unit: be used for system resource and hardware resource are controlled;
Described test Master Control Unit is accepted user's operation instruction information by man-machine interface, and control the primary data of described test cases processing unit read test case from described test cases storehouse, after user's editing operation, preserve the test cases script with textual form, and its path is kept in the test cases storehouse; Described test cases generates test record through described test record processing unit, is kept in the described test record storehouse, preserves the test record script with the form of text simultaneously; Move described test record, the test record script is sent to each application program by described test cases administrative unit with test data and handles, obtain operation result, operation result is saved in described test record storehouse through described test cases administrative unit.
2. system according to claim 1, it is characterized in that in described test cases storehouse, test cases information is corresponding one by one with the test cases script, and described test cases information stores is in database, and described test cases script is deposited with the form of text; By test cases management of information in the database being realized management to described test cases script.
3. system according to claim 1 is characterized in that, described test cases processing unit comprises: deletion case module, case type block and case designer.
4. system according to claim 3 is characterized in that, described case designer is a visual case design module, and it adds transaction code by graphical interfaces, revises the input item and the corresponding action of transaction, generates the test cases script.
5. system according to claim 3 is characterized in that, described case designer can be remembered the inputoutput data of each functional module that the user once tested.
6. system according to claim 3 is characterized in that, the file that described case designer uses comprises: the test cases script in the test cases storehouse; The table that uses comprises:
Case table: the information of the test cases that record has generated;
Transaction input item table: record test original data stream, preserve the once title and the information of all input items of test;
Case type list: manage all case type informations; Wherein,
Generate the tree of case type:
Read described case type list; Because the last layer station code of system default ground floor node all is 0, so all last layer type codes of scanning are that 0 type code is the node of ground floor, the type code that scans all last layer type codes and be the ground floor code is the node of the second layer, by that analogy.
7. system according to claim 4 is characterized in that, described case designer comprises automatic generation interface detection case unit, and this generates interface detection case unit automatically and comprises:
Transaction code administration module: be used to carry out transaction code search, transaction code is newly-increased, transaction code is revised, the transaction code deletion;
Input item administration module: be used to carry out that input item is newly-increased, input item is revised, the input item deletion;
Check an administration module: be used for the inspection item and increase, check a modification, inspection entry deletion newly;
Automatically generate the test data module: being used for concluding the business, the input field is checked, the test cases data generate;
Test specification imports and exports module: be used for test specification importing, test specification derivation.
8. system according to claim 7 is characterized in that, described transaction is meant: various tested application software.
9. system according to claim 1 is characterized in that, described test record processing unit is used to quote the test cases that has generated, and the variable in the test cases is carried out assignment, the test record that generation can move.
10. system according to claim 9 is characterized in that, the file that described test record processing unit uses comprises: case case script in the test cases storehouse and the test record script in the test record storehouse;
The table that uses comprises,
Case table: the information of the test cases that record has generated;
Test recording table: the information of the test record that record has generated;
The project name table of comparisons: project in the record test library and corresponding bullets;
The round title table of comparisons: round in the record test library and corresponding round numbering; Wherein:
The test cases tree of newly-built test record is formed by four layers; Three first layers is three levels of case type; The 4th layer is user name; Obtain the case type code with three levels, search for the case table, obtain submission person's title of all not repeated test cases; Use the realname field of submission person's title search subscriber admin table then, obtain submission person's real name, be shown as the 4th layer of case tree; Increase assignment statement in the case script on record and generate the test record script.
11. system according to claim 1, it is characterized in that, described test record processing unit also comprises the test record reuse module, be used for generating new test record from the test record that has generated, and keep all variate-values of former test record, directly the operation test or revise certain several variate-value after carry out the test of difference in functionality point.
12. system according to claim 11 is characterized in that, described test record reuse module comprises that wall scroll duplicates: be used for a test record is copied under certain catalogue of appointment, do not change any variate-value in duplicating;
Batch duplicating: be used for many test records of same case numbering under the same User Catalog are copied under the designated directory, can specify in duplicating and will revise which variate-value, and unified the modification.
13. system according to claim 12 is characterized in that, the employed file of described batch duplicating comprises: the test record script in the test cases storehouse;
The table that uses comprises,
Test recording table: the information of the test record that record has generated;
The project name table of comparisons: project in the record test library and corresponding bullets;
The round title table of comparisons: round in the record test library and corresponding round numbering;
The user management table;
Wherein,
Batch duplicating mainly is made up of two circulations, and a systemic circulation is to duplicate the test record of choosing one by one, and second is when duplicating each test record, and former record script is read in circulation, generates new record script;
Batch modification variable value in the batch duplicating is before duplicating, and lists all variable values, allows the user specify the name variable that will revise; In the reproduction process, when meeting the assignment of these variablees, just duplicate with the value of user's appointment;
Replicate run after the assigned area: the content after the assigned area is copied to file destination from source file, then file destination is uploaded to the case library server;
Database manipulation: after having duplicated a test record, just the bullets of this test record, round, the case numbering, records of composition such as record number are inserted in the test recording table.
14. system according to claim 1 is characterized in that, described test cases administrative unit comprises: test monitoring module, test cases transmit module, computer scheduling module.
15. system according to claim 1, it is characterized in that described test master control unit pack is drawn together: system is provided with module, user management module, modification crypto module, test machine administration module, daily record and checks module, round administration module, project management module.
16., it is characterized in that also comprising according to any described system of claim 1 to 15:
At least one client computer: the function of carrying out described test Master Control Unit;
At least one test machine: be loaded with the test terminal, script explanatory tool, the automatic test service end, the case database that constitute by test cases processing unit, test record processing unit, test cases administrative unit;
Case library server: store test cases storehouse, test record storehouse;
Wherein,
Described client computer, test machine, case library server intercouple, and described test machine is connected with the application server of the tested application software of operation.
17. system according to claim 16 is characterized in that, adopts Transmission Control Protocol to connect between described client computer, test machine, the case library server; Adopt being connected of respective protocol between described test machine and the application server, described respective protocol comprises: Transmission Control Protocol, http protocol or TELNET agreement.
18. system according to claim 16 is characterized in that, plays a service at described test machine and serves as Server; Described client computer serves as Client, and is connected to described test machine by TCP; Play a timer at described client computer end, to screenshotss of test machine request, screenshotss information is shown at client computer at set intervals, realize supervision described test machine screen.
19. system according to claim 18 is characterized in that, at described Client and the more self-defined TCP communication command that is used for communication of Server end, this TCP communication command is as follows:
Execution command with the beginning of " PLAY " character string;
The instruction that stops wall scroll test record execution of " stop1 " beginning;
The instruction of the execution of all test records that " stopAll " stops once to submit to;
" disconnect " is for disconnecting link order.
20. system according to claim 18 is characterized in that, during the test machine os starting, starts the automatic test service end automatically; The automatic test service end can be changed to 0 to the status field in the computer run admin table automatically, shows that this test machine can use;
Selected this test machine can be changed to 1 to its status field when test record is carried out, and guarantees that the same time can only have a user using this test machine; When test machine is whole occupied, the automatic test queuing management server is ceaselessly sent out test and is instructed to the testing service end, detect the state of test machine, if find the test machine abnormal state, and the status=0 in the computer run admin table, just call that the shutdown program is long-range restarts test machine, the state of putting current test machine in the computer run admin table simultaneously becomes 2; If find idle test machine is arranged, just begin to detect the queuecontrol table after obtaining its IP, in case discovery has ID number of flag=0, just pressing the ID ascending order arranges, take out ID number inquiry execute table of article one record, all qualified test records are sent out " PLAY " by TCP instruct the test machine of free time, simultaneously the status field in the computer run admin table is changed to 1; It is 3 maintenance state that test machine also has a status, and when manually status=3 being set, queuing management server no longer detects the state of this test machine, makes things convenient for the technician to make the refresh routine attended operation.
21. system according to claim 19, it is characterized in that, test machine is received the script catalogue that " PLAY " instruction just begins the script text of test record correspondence is downloaded to by ftp robot, generate the expansion corresponding script.rtxml file by name simultaneously with the script name, make robot can discern and can call this script, and the test record that insertion need be carried out in Access database table casedb, the corresponding ID that it produces when submitting to of id field wherein, status=0, name=script name.
22. system according to claim 19, it is characterized in that, Robot is activated when service end starts, carry out the big script of a continuous cycle detection Access database table casedb, select the record of status=0 among the casedb by the sequence ascending order, call its corresponding test record script in order; Value with the status field of current executive logging in the execute table in casedb table and the oracle database during execution is changed to 1, after being finished status is changed to 2.
23. system according to claim 19, it is characterized in that, in the implementation, the user can cancel handling of having submitted to or untreated test record, the user can see test record and each ID of all ID correspondences that oneself is submitted to by a queuing monitoring window of automatic test platform, the current state that is in of each test record can manual refreshing and refresh automatically; When the user chooses an ID, if this ID be being untreated of having submitted to or handle in, the execution of the test record during the user can handle by all that send by " stopping to carry out " button that one " stopAll " instruction cancel an ID correspondence; When the user chooses a test record, if this test record be being untreated of having submitted to or handle in, the user is during by " stop carry out ", can send one with the instruction headed by " stop1 " to the testing service end, stop the execution of a test record in being untreated or handling; After service end receives " stop1 " halt instruction, can be changed to 4 to the status field of test record corresponding in the execute table in casedb and the oracle database; After receiving " stopAll " instruction, the test record state that can be untreated in casedb and the oracle database execute table all or handle is changed to 4, simultaneously the flag field of the record of corresponding ID in the queuecontrol table also is changed to 4; When calling a test record script at every turn, the Deadloop script all can detect the status value of the test record of preparing execution earlier, if the discovery value is 4, and the execution of then skipping this test record script.
24. system according to claim 19, it is characterized in that when script explanatory tool moved, client played a timer and calls ClicntMonDLL.dll and be connected to the test terminal by tcp, obtain the picture of test terminal when transacting business, realize real-time screen monitoring;
After the robotization queuing management server sends the PLAY instruction, after perhaps client sent " stop1 " and " stopall " instruction, service end all can send " disconnect " instruction notification robotization queuing management server and client and disconnect and being connected of server end.
CNB2004100860413A 2004-10-22 2004-10-22 Automation software testing system based on script explanatory tool Active CN1326044C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100860413A CN1326044C (en) 2004-10-22 2004-10-22 Automation software testing system based on script explanatory tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100860413A CN1326044C (en) 2004-10-22 2004-10-22 Automation software testing system based on script explanatory tool

Publications (2)

Publication Number Publication Date
CN1601483A CN1601483A (en) 2005-03-30
CN1326044C true CN1326044C (en) 2007-07-11

Family

ID=34667078

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100860413A Active CN1326044C (en) 2004-10-22 2004-10-22 Automation software testing system based on script explanatory tool

Country Status (1)

Country Link
CN (1) CN1326044C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101609425B (en) * 2008-06-19 2011-09-21 中兴通讯股份有限公司 Transplanting system and transplanting method for scripts and associated data

Families Citing this family (42)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100388229C (en) * 2005-06-01 2008-05-14 中兴通讯股份有限公司 Unit test system and method for automatic generating stub and driving function
CN100369013C (en) * 2006-02-24 2008-02-13 北京博联伟图科技有限公司 Process monitoring method for embedded application software testing
CN100437514C (en) * 2006-12-22 2008-11-26 中国建设银行股份有限公司 Bank main machine pressure testing method and tester
CN100451989C (en) * 2007-04-20 2009-01-14 北京航空航天大学 Software testing system and testing method
CN101620563B (en) * 2008-06-30 2012-05-09 福建升腾资讯有限公司 Method for automatically testing input playback mode of terminal system
CN101620564B (en) * 2008-06-30 2011-10-19 福建升腾资讯有限公司 Method for automatically testing recording playback mode of terminal system
CN101620565B (en) * 2008-07-04 2012-05-09 福建升腾资讯有限公司 Method for automatically testing functions of terminal system
CN101989228A (en) * 2009-08-07 2011-03-23 中兴通讯股份有限公司 Estimation method and device of execution time of test plan
CN101782851B (en) * 2009-12-25 2013-04-03 天柏宽带网络技术(北京)有限公司 Method for updating displayed page
CN102004695A (en) * 2010-12-08 2011-04-06 深圳市茁壮网络股份有限公司 Method and system for testing browser
CN103281221B (en) * 2013-06-21 2016-08-10 成都信息工程学院 Fire-fighting Internet of things system method of testing
CN103336741A (en) * 2013-06-28 2013-10-02 广东电网公司电力科学研究院 Method and device for testing stability of operation system of power secondary system
CN103324572B (en) * 2013-06-28 2016-12-28 广东电网公司电力科学研究院 The operating system performance method of testing of electric power secondary system and device
CN104731703B (en) * 2013-12-23 2018-03-30 腾讯科技(深圳)有限公司 Refresh testing method and apparatus based on page operation
CN103761189B (en) * 2014-02-17 2017-02-01 广东欧珀移动通信有限公司 Test case management method and system
CN105446870B (en) * 2014-08-25 2019-04-05 北京畅游天下网络技术有限公司 The method and apparatus that automatic test is carried out to app application
CN104486309A (en) * 2014-12-06 2015-04-01 北京银信长远科技股份有限公司 Terminal emulation communication protocol recording method
CN104572446B (en) * 2014-12-17 2018-03-30 北京京东尚科信息技术有限公司 A kind of automated testing method and system
CN104965701B (en) 2015-06-12 2018-01-16 北京奇虎科技有限公司 Obtain the method and device of application message
CN105095078A (en) * 2015-07-22 2015-11-25 厦门美图移动科技有限公司 Systematic automation testing device and method and calculating device
CN105279090B (en) * 2015-11-17 2018-07-03 中国建设银行股份有限公司 Test script generation method and device applied to financial field
CN105739481B (en) * 2016-01-29 2019-03-19 软控股份有限公司 The test method of industrial control software, apparatus and system
CN107741900B (en) * 2016-08-26 2019-09-17 上海合福信息科技有限公司 A kind of automatic test approach
CN106789393B (en) * 2016-11-16 2019-09-06 烽火通信科技股份有限公司 A kind of CS framework communication equipment automatization test system and method
CN106775478A (en) * 2016-12-19 2017-05-31 郑州云海信息技术有限公司 A kind of method that storage system health is patrolled and examined
CN107038227A (en) * 2017-03-31 2017-08-11 武汉票据交易中心有限公司 The increment synchronization method and system of a kind of script code file
CN106997413A (en) * 2017-04-05 2017-08-01 广东浪潮大数据研究有限公司 A kind of method for realizing the examination & verification of Valor software automations
CN108008937A (en) * 2017-12-14 2018-05-08 携程计算机技术(上海)有限公司 Flowcharting method and system
CN108804317A (en) * 2018-05-24 2018-11-13 北京握奇智能科技有限公司 A kind of method and system for script of seeking unity of action
CN108763085A (en) * 2018-05-31 2018-11-06 平安科技(深圳)有限公司 On-line debugging device, method and the computer readable storage medium of test cases
CN110830319B (en) * 2018-08-10 2021-07-20 长鑫存储技术有限公司 Management method, device and system for integrated circuit test
CN109614310A (en) * 2018-10-22 2019-04-12 中国平安财产保险股份有限公司 Management method, device, computer equipment and the storage medium of test interface
CN109614312A (en) * 2018-10-23 2019-04-12 中国平安人寿保险股份有限公司 Method for generating test case, device, electronic equipment and storage medium
CN109684196B (en) * 2018-11-01 2024-01-09 北京中清龙图网络技术有限公司 Test method and device
CN109857507B (en) * 2019-02-21 2022-03-08 成都安恒信息技术有限公司 Method for automatically and remotely executing Windows program
CN110099098A (en) * 2019-03-26 2019-08-06 江西机电职业技术学院 Industrial robot data uploading method, system, readable storage medium storing program for executing and equipment
CN110399303B (en) * 2019-07-29 2024-01-26 中国工商银行股份有限公司 Method for preparing test data, data preparation device and electronic equipment
CN111221723B (en) * 2019-10-28 2023-11-24 东软集团股份有限公司 Test record generation method and device, storage medium and electronic equipment
CN111581107B (en) * 2020-05-13 2023-08-18 武汉虹信科技发展有限责任公司 FTP program fatigue test method and system
CN111831561B (en) * 2020-06-28 2024-01-12 许昌开普检测研究院股份有限公司 Plug-in type test case library system
CN112069082A (en) * 2020-09-29 2020-12-11 智慧互通科技有限公司 Automatic testing method and system
CN112685325B (en) * 2021-01-22 2023-07-28 中信银行股份有限公司 ETL software research and development test management method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5513315A (en) * 1992-12-22 1996-04-30 Microsoft Corporation System and method for automatic testing of computer software
US5594892A (en) * 1993-12-22 1997-01-14 International Business Machines Corporation Method for automated software application testing
US5634098A (en) * 1995-02-01 1997-05-27 Sun Microsystems, Inc. Method and apparatus for environment-variable driven software testing
CN1227643A (en) * 1996-12-04 1999-09-01 西门子公司 Method for testing the system components in an object-oriented program
US6668340B1 (en) * 1999-12-10 2003-12-23 International Business Machines Corporation Method system and program for determining a test case selection for a software application
CN1484790A (en) * 2001-01-04 2004-03-24 �Ҵ���˾ Method and apparatus for exercising an unknown program with a graphical user interface

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5513315A (en) * 1992-12-22 1996-04-30 Microsoft Corporation System and method for automatic testing of computer software
US5594892A (en) * 1993-12-22 1997-01-14 International Business Machines Corporation Method for automated software application testing
US5634098A (en) * 1995-02-01 1997-05-27 Sun Microsystems, Inc. Method and apparatus for environment-variable driven software testing
CN1227643A (en) * 1996-12-04 1999-09-01 西门子公司 Method for testing the system components in an object-oriented program
US6668340B1 (en) * 1999-12-10 2003-12-23 International Business Machines Corporation Method system and program for determining a test case selection for a software application
CN1484790A (en) * 2001-01-04 2004-03-24 �Ҵ���˾ Method and apparatus for exercising an unknown program with a graphical user interface

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101609425B (en) * 2008-06-19 2011-09-21 中兴通讯股份有限公司 Transplanting system and transplanting method for scripts and associated data

Also Published As

Publication number Publication date
CN1601483A (en) 2005-03-30

Similar Documents

Publication Publication Date Title
CN1326044C (en) Automation software testing system based on script explanatory tool
US6035297A (en) Data management system for concurrent engineering
CN108845940B (en) Enterprise-level information system automatic function testing method and system
CN112835560A (en) WEB multi-terminal low-code intelligent software development platform
CN101090295A (en) Test system and method for ASON network
CN111798216A (en) Robot process automation multi-tool integration method and system
CN113298503A (en) Government affair-oriented workflow management system and database and table dividing method thereof
CN111930354B (en) Framework component system for software development and construction method thereof
CN113706110B (en) FPGA test tool integrated test management platform
Helfen et al. Testing SAP solutions
CN109710513B (en) Engine for automatic test of CBTC (communication based train control) system
CN107248934A (en) A kind of automatic detecting method and device
CN113537943A (en) Universal workflow engine and construction method thereof
CN111738806A (en) Cloud manufacturing platform for SMT intelligent manufacturing
CN114385243B (en) Method and device for automatically issuing instructions for controlling layout engine
CN115951970A (en) Heterogeneous multi-simulation software integrated development environment
CN116450246A (en) Event stream configurable method based on state machine
CN109412861B (en) Method for establishing security association display of terminal network
CN112418796A (en) Sub-process node activation method and device, electronic equipment and storage medium
CN117407456B (en) Structured data sharing system for nuclear power service
CN110705823A (en) Production process route configuration method
CN114253542B (en) Triggering and running method based on visual trigger and computer storage medium
CN110297642A (en) A kind of system and method for the concurrent programming in multiple terminals, configuration and test
CN117477779A (en) Multi-service configuration configurator and configuration method of transformer substation monitoring system
CN117407456A (en) Structured data sharing system for nuclear power service

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