CN100512160C - Off-lining test execution constructing method and apparatus - Google Patents

Off-lining test execution constructing method and apparatus Download PDF

Info

Publication number
CN100512160C
CN100512160C CNB2007100754723A CN200710075472A CN100512160C CN 100512160 C CN100512160 C CN 100512160C CN B2007100754723 A CNB2007100754723 A CN B2007100754723A CN 200710075472 A CN200710075472 A CN 200710075472A CN 100512160 C CN100512160 C CN 100512160C
Authority
CN
China
Prior art keywords
case
module
execution
information
test
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.)
Expired - Fee Related
Application number
CNB2007100754723A
Other languages
Chinese (zh)
Other versions
CN101119239A (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.)
Global Innovation Polymerization LLC
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CNB2007100754723A priority Critical patent/CN100512160C/en
Publication of CN101119239A publication Critical patent/CN101119239A/en
Application granted granted Critical
Publication of CN100512160C publication Critical patent/CN100512160C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The present invention discloses an off-line test executive construction method and device. The domain, the project and the user related information which are on the case server are stored into the local client terminal file through the synchronous module; the right limits and test task of the user are determined through the landing on the present domain and project with the aid of the landing module; the layer case collection and the case information, which are under the task catalog which is on the case server and needs testing, are stored into the local client terminal through the guide module, and then a library file is created; the library file is analyzed and restored to the case information with layer structure and to the executive case which is provided for the test task. The present invention achieves the off-line execution of the test case by taking the advantage of the case management instruments and can record the test errors and test requirements in the executive process, thus relieving the visit pressure on the server.

Description

A kind of test execution constructing method of off-line and device
Technical field
The present invention relates to test and management and execution field, relate in particular to the test execution constructing method and the device of a kind of off-line of domain of communication equipment.
Background technology
The test organization of domain of communication equipment is in order better to share test resource and to solidify the test experience, needs a kind of instrument that can manage all links of test life cycle such as testing requirement, test case, test execution, test failure.Present this test and management instrument is generally realized by B/S (abbreviation of Browser/Server, browser/server pattern are a kind of of Client/Server pattern) architecture.The B/S structure the strange land browse with information gathering on all have very large flexibility.Any time, any place, any system, as long as can use the browser online, just can use the terminal of B/S system, realize that real-time online operates, finish sequence of operations processes such as Demand Design, use-case design, use-case execution, fault submission.But also there is following problem in it:
1, by browser on-line operation mode, client needs the online in real time access server, and visit and service speed are all slower.
2, by browser on-line operation mode, under the more situation of operating personnel, server bears very big pressure, the risk increase of breaking and breaking down.
3, by browser on-line operation mode, every client needs a special network interface card to carry out the online access operation, and same network interface card can't use simultaneously for test execution operation and actual testing equipment, has strengthened the input of resource.
4, by browser on-line operation mode, because of carrying out the browser timeout that test execution work causes for a long time, very easily cause problems such as the user is locked, operating process is unsuccessful, brought inconvenience to the operational staff, reduced execution efficient.
Therefore,, brought great inconvenience also for simultaneously normal test job, reduced execution efficient though strengthened the management of use-case and solidified experience by browser on-line operation mode.
Summary of the invention
For solve existing testing tool adopt online mode of operation and caused carrying out efficient low, carry out the problem that complexity height, resource have high input, the invention provides a kind of test execution constructing method and device of off-line.
The test execution constructing method of off-line of the present invention, carry out according to the following steps:
A, utilize synchronization module that the territory on the use-case server, project and user related information are saved in the local client file;
B, land the territory and the project at place, determine user's authority and test assignment by login module;
C, stratification set of uses case and use-case information under the required test assignment catalogue on the use-case server are saved to local client, and create relevant library file by deriving module;
D, resolve the use-case information of above-mentioned library file and reduction levels structure, and provide the execution use-case for test assignment.
Wherein, described method is further comprising the steps of: F, the fault that proposes in use-case execution result and the implementation and demand information are uploaded to the use-case server admin preserve.
Wherein, among the described method step C, derive module and adopt the form structure stratification set of uses case of XML structure and the library file of use-case information.
Wherein, among the described method step C, described derivation module is handled the stratification set of uses case by following steps:
C11, the current required test assignment catalogue of processing;
All sets of uses case under C12, the processing current directory;
All use-cases under C13, the processing set of uses case;
Institute under C14, the processing execution example in steps, and recording-related information;
All subdirectories under C15, the processing current directory return step C11.
Wherein, among the described method step C, the process of the single use-case of described derivation resume module is as follows:
C21, in library file, create case node, write down current use-case association attributes;
C22, judge whether use-case has annex;
If annex is arranged, then all annexes are downloaded and be saved to local client, and execution in step C23;
If no annex then continues next step C23;
C23, judge whether the execution of use-case example is arranged in the use-case server;
If do not have, calling interface is then created the execution example of use-case and execution in step C24 automatically in the local client Test Host;
If have, then continue next step C24;
C24, create the example node in library file, the relevant information of example carried out in record;
C25, all testing procedures under the example are handled and record.
The present invention adopts the test execution constructing apparatus of the off-line of said method, and described device is positioned at the local client Test Host, comprising:
Synchronization module is used for the territory on the use-case server, project and user related information synchronously and be saved in local client;
Login module, the test assignment information that is used to verify user right and determines the user according to the information of described synchronization module;
Derive module, be used for stratification set of uses case under the required test assignment catalogue on the use-case server and use-case information are saved to local client, and set up relevant library file;
Executive Module is used to resolve above-mentioned library file, and offers use-case operational staff execution.
Wherein, described device also comprises: go up transmission module, this module is used for fault that use-case execution result and implementation are proposed and demand information and is uploaded to the use-case server admin and preserves.
Wherein, described device also comprises: log pattern, this module are used to write down use-case, fault, the demand information of having uploaded, consult use for follow-up.
Wherein, described derivation module is made up of set of uses case derivation script unit and library file unit; Set of uses case is derived the script unit and is used to scan on the use-case server level of all sets of uses case and structure under the test assignment catalogue, and set of uses case all use-cases down, and generates use-case execution example automatically; The library file unit is used to write down set of uses case derives set of uses case, the execution example of generation and the Step Information under the example that the script unit scan arrives.
The invention effect: the integrated interface that the present invention utilizes the case management instrument to provide has been realized the off-line execution of test case, and can write down test failure and testing requirement in the process of implementation, has satisfied the demand of the visit pressure that alleviates server; Compare with respect to the mode that the online in real time access server is tested, the present invention carries out the test execution job analysis to local, solved under the not enough situation of resources such as network interface card, can solve test case and carry out the problem of carrying out simultaneously with actual test assignment, situation about can't test when having avoided faults such as broken string to take place takes place, reduced resource input, saved cost; And the present invention carries out the test execution job analysis to local, greatly reduce the load of server, is very easy to other staff such as test case designer's access efficiency, the service speed that has improved test execution personnel and efficient.
Description of drawings
Fig. 1 is the structural representation of apparatus of the present invention;
Fig. 2 derives the flow chart that module is handled the stratification set of uses case in the inventive method;
Fig. 3 is the process flow diagram of deriving the single use-case of resume module in the inventive method.
Embodiment
Below will describe each preferred embodiment of the present invention in detail.
As shown in Figure 1, the test execution constructing method of off-line of the present invention, carry out according to the following steps:
A, utilize synchronization module 111 that the territory on the use-case server 120, project and user related information are saved in local client 110 files;
B, land the territory and the project at place, determine user's authority and test assignment by login module 112;
C, stratification set of uses case and use-case information under the required test assignment catalogue on the use-case server 120 are saved to local client 110, and create relevant library file by deriving module 113;
D, resolve the use-case information of above-mentioned library file and reduction levels structure, and for test assignment provides the execution use-case, as the test resource of the Test Host of local client 110.
Said method also comprises following: the fault and the demand information that propose in use-case execution result and the implementation are uploaded to the step that 120 management of use-case server are preserved.Among the said method step C, (XML full name EXtensible Markup Language is translated as extensible markup language, extend markup language or extensible indicating language, is a kind of markup language to derive module 113 employing XML.) form of structure makes up the library file of stratification set of uses case and use-case information.
The processing procedure of the set of uses case of the hierarchical structure in the above-mentioned derivation module 113 as shown in Figure 2, all sets of uses case under the current catalogue on the derivation script traversal server, after all use-cases and Step Information under the record set of uses case, again all subdirectories under the current directory are carried out recursive call and handle; Concrete operations are as follows, derive module 113 and by following steps the stratification set of uses case handled:
130, handle current required test assignment catalogue;
131, all sets of uses case under the processing current directory;
132, handle all use-cases under the set of uses case;
133, the institute under the processing execution example in steps, and recording-related information;
134, handle all subdirectories under the current directory, return step 130.
As shown in Figure 3, among the said method step C, the process that derives the single use-case of module 113 processing is as follows:
140, in library file, create case node, write down current use-case association attributes;
141, judge whether use-case has annex;
If annex is arranged, then execution in step 142: all annexes are downloaded be saved to local client 110, carry out next step 143 then;
If no annex then continues next step 143;
143, judge whether the execution of use-case example is arranged in the use-case server 120;
If do not have, then execution in step 144: calling interface, and the automatic execution example of creating use-case in local client 110 Test Hosts, execution in step 145 then;
If have, then continue next step 145;
145, create the example node in library file, the relevant information of example carried out in record;
146, all testing procedures under the example are handled and record.
As shown in Figure 1, adopt the test execution constructing apparatus of the off-line of said method, it is positioned at the local client Test Host, and it comprises: synchronization module 111, login module 112, derivation module 113 and Executive Module 114.
Synchronization module 111 is used for the territory on the use-case server 120, project and user related information synchronously and be saved in local client 110, this synchronization module 111 can be made up of synchronizing information script unit and message file unit, synchronizing information script unit is realized the process of a series of information synchronization such as the item design on the server, user profile to client terminal local, and be saved in local client 110 by the form of message file, use for login module 112.
The test assignment information that login module 112 is used to verify user right and determines the user according to the information of synchronization module 111; This login module 112 is selected login for the user provides all territories and project for the user, and whether checking user profile is correct, guaranteed the fail safe that use-case is carried out; The information of recording user login simultaneously makes things convenient for the user to login once more.
Derive module 113 and be used for stratification set of uses case under the required test assignment catalogue on the use-case server 120 and use-case information are saved to local client 110, and set up relevant library file; This is derived, and module 113 derives the script unit by set of uses case and the library file unit is formed, set of uses case is derived level and the structure of script unit by all sets of uses case under the step sweep test task catalogue shown in Figure 2, and all use-cases under the set of uses case, and generate use-case automatically by step shown in Figure 3 and carry out example, then with the set of uses case that scans, execution example that generates and the Step Information under the example are downloaded to local client 110 by mode shown in Figure 3 with the use-case attachment files simultaneously and preserve by former the having levels and the output of structure composition library file form on the use-case server 120.Deriving module 113 is kept at above-mentioned relevant information in the library file unit with XML version, for database mode, the XML document form can better be supported the data to stratification, for follow-up test use-case off-line execution provides form more easily.
Executive Module 114 is used to resolve above-mentioned library file, and offers use-case operational staff execution.This Executive Module 114 is that the use-case of describing with outside file mode and set of uses case information are changed into object set class example in the internal memory, this collection class has comprised set of uses case hierarchy information, use-case and has carried out example information and use-case Step Information or the like, and the collection class after will transforming shows with the reduction of the form of hierarchical structureization, and offer the use-case operational staff with the executive mode similar to former use-case server and carry out, preserve the use-case execution result information then.It is the execution result of directly revising use-case/step by interface that the execution result of Executive Module 114 is uploaded.
Above-mentioned Executive Module 114 also has fault and submits function to, can newly increased requirement or the demand of having submitted to checked and revise, fault object set class in internal memory is represented, has write down fault message and use-case and the Step Information related with fault, and finally describes with the XML file mode and preserve.Described Executive Module also has demand and proposes function, and demand is represented with object set class in the internal memory, and finally described with the XML file mode and preserve.
As shown in Figure 1, device of the present invention also comprises transmission module 115, and this module is used for fault that use-case execution result and implementation are proposed and demand information and is uploaded to 120 management of use-case server and preserves.Last transmission module 115 can also be used for the fault upload process, by fault upload script resolve fault XML file, whether has the process of making amendment or creating according to this fault in local client 110 Test Hosts.Last transmission module 115 also comprises the demand upload procedure, uploads script by demand and resolves demand XML file, whether has the process of making amendment or creating according to this demand in local client 110 Test Hosts.As shown in Figure 1, device of the present invention also comprises log pattern 116, and this module is used to write down use-case, fault, the demand information of having uploaded, consults use for follow-up.The present invention sets up these two and goes up transmission module 115 and log pattern 116, helps upgrading the database of use-case server 120, is convenient to management, the curing of experience, the accumulation and shared of use-case.
As shown in Figure 1, off-line test final controlling element of the present invention is carried out in the local test main frame.The present invention all needs and use-case server 120 interactive information before carrying out off-line execution and after off-line execution finishes, and promptly Test Host and use-case server need be placed a local area network (LAN) this moment.The case management instrument here can adopt the B/S management mode---and be the TestDirector instrument.Same, utilize design philosophy of the present invention also can on other functionally similar test and management instrument, realize the off-line test executive system.
Consider that the test case in above-mentioned TD case management instrument has been divided into different territories and project, the use-case operational staff needs the territory/project of logining to select pending test use cases before carrying out use-case, and the present invention has disposed two modules: synchronization module 111 and login module 112.Synchronization module 111 arrives local client 110 with the territory/project in the use-case server 120/information synchronization such as user, and set up corresponding territory and project information in this locality, 111 general of synchronization modules need call once, only have under the situation of change, just need invoke synchronous module once more in territory/project/information such as user.After synchronization module 111 was carried out, the user called territory and the project of login module 112 logins to the place.Derive module 113 and be the set of uses case that will show with hierarchical structure on the use-case server 120 and the use-case set of uses case under with the form derivation of XML file under the territory and project that the active user was logined.Only there is being new test assignment to carry out or current test assignment use-case has change the time just need call to derive module 113.
After deriving module 113 and test assignment is derived and being saved under local domain/project,, and provide with similar executive mode and carry out use-case for the test execution personnel to former server by the set of uses case/use-case/information such as example/step of Executive Module 114 scanning stratification.Executive Module 114 detail records are also preserved use-case/example/step implementation status.If need to propose new fault, can also and preserve the fault relevant information in the implementation, comprise the use-case and the Step Information of fault association by the establishment of Executive Module 114 additional fault class functional modules.If new demand is arranged, also can realize by demand class functional module additional in the Executive Module 114.
In the use-case implementation or after use-case carry out to finish, the operational staff can call 115 pairs of executed result/fault/demands of transmission module at any time and upload, and all modifications information uploading is preserved to the TD tool server.Consider that having many people carries out executable operations to same set of uses case, the present invention only uploads use-case/fault/demand of revising, and the user consults for convenience, and last transmission module 115 can call log pattern 116 automatically all upload procedure are recorded as the daily record form.
In sum, method and apparatus of the present invention adopts the mode of off-line test, has greatly improved the efficient of test, and, the present invention adopts transmission module to upload dependence test in real time and carries out information, is convenient to renewal, the management, shared of the test experience and the data of use-case server.
Illustrating of above-mentioned each concrete steps is comparatively concrete, can not therefore think the restriction to scope of patent protection of the present invention, and scope of patent protection of the present invention should be as the criterion with claims.

Claims (9)

1, a kind of test execution constructing method of off-line is characterized in that, described method is carried out according to the following steps:
A, utilize synchronization module that the territory on the use-case server, project and user related information are saved in the local client file;
B, land the territory and the project at place, determine user's authority and test assignment by login module;
C, stratification set of uses case and use-case information under the required test assignment catalogue on the use-case server are saved to local client, and create relevant library file by deriving module;
D, resolve the use-case information of above-mentioned library file and reduction levels structure, and provide the execution use-case for test assignment.
2, method according to claim 1 is characterized in that, described method is further comprising the steps of: F, the fault that proposes in use-case execution result and the implementation and demand information are uploaded to the use-case server admin preserve.
3, method according to claim 1 is characterized in that, among the described method step C, derives module and adopts the form structure stratification set of uses case of XML structure and the library file of use-case information.
4, method according to claim 1 is characterized in that, among the described method step C, described derivation module is handled the stratification set of uses case by following steps:
C11, the current required test assignment catalogue of processing;
All sets of uses case under C12, the processing current directory;
All use-cases under C13, the processing set of uses case;
Institute under C14, the processing execution example in steps, and recording-related information;
All subdirectories under C15, the described current directory of processing return step C11.
5, method according to claim 1 is characterized in that, among the described method step C, the process of the single use-case of described derivation resume module is as follows:
C21, in library file, create case node, write down current use-case association attributes;
C22, judge whether use-case has annex;
If annex is arranged, then all annexes are downloaded and be saved to local client, and execution in step C23;
If no annex then continues next step C23;
C23, judge whether the execution of use-case example is arranged in the use-case server;
If do not have, calling interface is then created the execution example of use-case and execution in step C24 automatically in the local client Test Host;
If have, then continue next step C24;
C24, create the example node in library file, the relevant information of example carried out in record;
C25, all testing procedures under the example are handled and record.
6, adopt the test execution constructing apparatus of the off-line of the described method of claim 1, described device is positioned at the local client Test Host, it is characterized in that, described device comprises:
Synchronization module is used for the territory on the use-case server, project and user related information synchronously and be saved in local client;
Login module, the test assignment information that is used to verify user right and determines the user according to the information of described synchronization module;
Derive module, be used for stratification set of uses case under the required test assignment catalogue on the use-case server and use-case information are saved to local client, and set up relevant library file;
Executive Module is used to resolve above-mentioned library file, and offers use-case operational staff execution.
7, device according to claim 6 is characterized in that, described device also comprises: go up transmission module, this module is used for fault that use-case execution result and implementation are proposed and demand information and is uploaded to the use-case server admin and preserves.
8, device according to claim 6 is characterized in that, described device also comprises: log pattern, this module are used to write down use-case, fault, the demand information of having uploaded, consult use for follow-up.
9, device according to claim 6 is characterized in that, described derivation module derives the script unit by set of uses case and the library file unit is formed;
Set of uses case is derived the script unit and is used to scan on the use-case server level of all sets of uses case and structure under the test assignment catalogue, and set of uses case all use-cases down, and generates use-case execution example automatically;
The library file unit is used to write down set of uses case derives set of uses case, the execution example of generation and the Step Information under the example that the script unit scan arrives.
CNB2007100754723A 2007-07-24 2007-07-24 Off-lining test execution constructing method and apparatus Expired - Fee Related CN100512160C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007100754723A CN100512160C (en) 2007-07-24 2007-07-24 Off-lining test execution constructing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007100754723A CN100512160C (en) 2007-07-24 2007-07-24 Off-lining test execution constructing method and apparatus

Publications (2)

Publication Number Publication Date
CN101119239A CN101119239A (en) 2008-02-06
CN100512160C true CN100512160C (en) 2009-07-08

Family

ID=39055191

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007100754723A Expired - Fee Related CN100512160C (en) 2007-07-24 2007-07-24 Off-lining test execution constructing method and apparatus

Country Status (1)

Country Link
CN (1) CN100512160C (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101414935B (en) * 2008-07-09 2011-06-22 北京星网锐捷网络技术有限公司 Method and system for generating test case
CN101615159B (en) * 2009-07-31 2011-03-16 中兴通讯股份有限公司 Off-line test system, local data management method thereof and corresponding device
CN102868461B (en) * 2012-08-07 2015-04-15 大唐移动通信设备有限公司 Base band test method, device and system
CN103905258B (en) * 2012-12-24 2018-03-06 百度国际科技(深圳)有限公司 A kind of method of testing and device of client data upload function
CN103530232B (en) * 2013-10-24 2016-04-06 北京经纬恒润科技有限公司 A kind of software testing management framework establishment method and device
CN104915291B (en) * 2015-05-27 2019-05-14 惠州Tcl移动通信有限公司 Terminal restarts verification method and system
CN106911778A (en) * 2017-02-27 2017-06-30 网宿科技股份有限公司 A kind of flow bootstrap technique and system
CN109117360A (en) * 2017-06-26 2019-01-01 北京京东尚科信息技术有限公司 A kind of method and apparatus of processed offline business datum
CN108804317A (en) * 2018-05-24 2018-11-13 北京握奇智能科技有限公司 A kind of method and system for script of seeking unity of action
CN108984390B (en) * 2018-06-04 2022-08-30 卡斯柯信号有限公司 Universal automatic test framework for signal system off-line tool and application thereof
CN113391962B (en) * 2020-03-11 2023-08-15 百度在线网络技术(北京)有限公司 Offline data testing method, offline data testing device and electronic equipment
CN113254305B (en) * 2021-05-08 2022-08-02 山东英信计算机技术有限公司 Method, system, equipment and storage medium for displaying offline state of testing machine

Also Published As

Publication number Publication date
CN101119239A (en) 2008-02-06

Similar Documents

Publication Publication Date Title
CN100512160C (en) Off-lining test execution constructing method and apparatus
CN101615159B (en) Off-line test system, local data management method thereof and corresponding device
CN101241467B (en) Automatized white box test system and method facing to WEB application
US20120110566A1 (en) Apparatus and method for setting up multi-tenant saas applications
CN103646104A (en) Hard real-time fault diagnosis method and system
CN103530231A (en) Application program testing method and system based on service process control
CN103873517A (en) Method, device and system for data synchronization
CN108459951B (en) Test method and device
CN103605512A (en) System and method for data verification based on GTechnology platform
CN111274065B (en) Disaster recovery method and device based on software
CN101266566B (en) Multi- test scene automatic dispatch system and method
JP2007304759A (en) Operation management device and operation management method and program
CN115712623A (en) Batch data fault-tolerant acquisition method based on capture metadata change
CN113438126B (en) Distributed online test system applied to block chain domain name system
CN111782618B (en) Data synchronization system
CN103455662A (en) Distributed rendering system and distributed rendering method for dirty area graphs of power grids
CN112230981B (en) Method and device for realizing automation of version construction
CN105335145A (en) Operation result processing method, device and system
US8355806B2 (en) Information control system and information control method
Berton et al. The ESOC End-to-End Ground Segment Reference Facility
CN101382891A (en) Statistical method and apparatus for constructing log output every day
CN107608886A (en) A kind of method and system of automatic report recording software defect
CN107436790A (en) A kind of component upgrade management method and device
KR101868814B1 (en) Method for providing management service for client from remote area
CN104392506A (en) Hydropower station water conservancy project inspection system supporting multi-terminal platform

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20180823

Address after: California, USA

Patentee after: Global innovation polymerization LLC

Address before: 518057 Nanshan District high tech Industrial Park, Shenzhen, Guangdong, Ministry of justice, Zhongxing Road, South China road.

Patentee before: ZTE Corp.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090708