Movatterモバイル変換


[0]ホーム

URL:


CN108287788A - A kind of use-case step matching method based on test case, system - Google Patents

A kind of use-case step matching method based on test case, system
Download PDF

Info

Publication number
CN108287788A
CN108287788ACN201711436050.4ACN201711436050ACN108287788ACN 108287788 ACN108287788 ACN 108287788ACN 201711436050 ACN201711436050 ACN 201711436050ACN 108287788 ACN108287788 ACN 108287788A
Authority
CN
China
Prior art keywords
case
case step
test
file
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711436050.4A
Other languages
Chinese (zh)
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.)
Guangdong Ruijiang Cloud Computing Co Ltd
Guangdong Eflycloud Computing Co Ltd
Original Assignee
Guangdong Ruijiang Cloud Computing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Ruijiang Cloud Computing Co LtdfiledCriticalGuangdong Ruijiang Cloud Computing Co Ltd
Priority to CN201711436050.4ApriorityCriticalpatent/CN108287788A/en
Publication of CN108287788ApublicationCriticalpatent/CN108287788A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

A kind of use-case step collocation system based on test case, the use-case step collocation system include creating use-case step block, management use-case step block and establishment test case module;The establishment use-case step block is for creating use-case step and being preserved to the use-case step of establishment;The management use-case step block is for modifying and deleting to the use-case step created;The establishment test case module is for creating test case and being preserved to test case.It is an object of the invention to propose a kind of use-case step matching method based on test case, system, it is encoded by each step to test case in automatic test, it is carried out writing test case and test code according to different situations, while facilitating developer to test, the tester for being also convenient for write code writes test case and generates code, and use-case step of flexibly arranging in pairs or groups realizes use-case test.

Description

A kind of use-case step matching method based on test case, system
Technical field
The present invention relates to software auxiliary development field more particularly to a kind of use-case step collocation sides based on test caseMethod, system.
Background technology
Present company is also mostly in without test or the autonomous test phase of developer, does not touch testUse-case, test case (TestCase) are one group of test input, execution condition and the expection worked out for some special objectiveAs a result, to test some Program path or to verify whether meet some particular demands.Test case reflects the need to be verifiedIt asks.However, verifying these demands may implement by different modes and by different test mans;
And common primary test case management tool is also with execl, word, relatively advanced has testlink,Bugzilla etc..But these softwares cannot all be tested according to use-case automatic code generating, and non-technical personnel is being tested certainlyDynamicization can only look at use-case and not know how to determine whether that test is correct when testing.
Invention content
It is an object of the invention to propose a kind of use-case step matching method based on test case, system, by fromEach step of test case is encoded in dynamicization test, is carried out writing test case and test code, side according to different situationsJust while developer tests, the tester for being also convenient for write code writes test case and generates code,Flexibly collocation use-case step realizes use-case test.
For this purpose, the present invention uses following technical scheme:
A kind of use-case step matching method based on use-case test, the use-case step matching method include creating use-case stepSuddenly it, manages use-case step and creates three interior methods of test case, include the process of use-case step collocation:
Step A:Into use-case step system, and obtain operating right;
Step B:It chooses whether to create use-case step, if so, use-case Step Information is write, and the use-case to writing completionStep Information is preserved;If it is not, then choosing whether management use-case step;
Step C:If selection management use-case step, it is that use-case step is deleted or changed to continue selection;If choosingIt selects and use-case step is deleted, then directly delete use-case step file;If selection modifies to use-case step, to use-caseThe information and code of step are modified and are preserved;
Step D:If not selecting management use-case step, choose whether to create test case, if selection creates test case,Suitable use-case step is then selected according to use-case Step Information, determines use-case;And use-case is preserved.
Preferably, it is included in and creates in use-case step, writes the process of use-case Step Information:
Step B1:Write use-case step shorthand information;
Step B2:Write use-case Step Details;
Step B3:Write use-case step code.
Preferably, after creating use-case step, it includes filename, file remarks and text to need the use-case step file preservedPart content;The filename includes the shorthand information for the use-case step for needing to preserve;The file remarks include needing to preserveThe details of use-case step;File content includes the code for writing use-case step.
Preferably, include the process of determining use-case:
Step d1:It is created according to use-case Step Information and selects suitable use-case step;
Step d2:Write use-case shorthand information and use-case details;
Step d3:It adjusts use-case sequence of steps and preserves.
Preferably, it is included in when creating test case, process that determining use-case is preserved:
Step D1:Confirm and preserve use-case, and establishment file is pressed from both sides, the title expression of the file simply describes use-case;
Step D2:The code of use-case step is extracted to file;
Step D3:It creates public function file f unction and creates principal function file main;
Step D4:Public operation step is copied in public function file f unction;
Step D5:It is inserted into detailed use case description in principal function file main, according to use-case step, calls a step in orderRapid code and return information.
A kind of use-case step collocation system based on test case, the use-case step collocation system include creating use-case stepRapid module, management use-case step block and establishment test case module;
The establishment use-case step block is for creating use-case step and being preserved to the use-case step of establishment;
The management use-case step block is for modifying and deleting to the use-case step created;
The establishment test case module is for creating test case and being preserved to test case.
Preferably, the establishment use-case step block includes writing use-case Step Information module and preservation use-case step mouldBlock;
The use-case Step Information module of writing is for writing use-case step shorthand information, writing use-case Step DetailsWith write use-case step code;
For the preservation use-case step block for preserving the use-case step file created, the file includes fileName, file remarks and file content;
The filename includes the shorthand information for the use-case step for needing to preserve;The file remarks include needing to preserveThe details of use-case step;File content includes the code for writing use-case step.
Preferably, the establishment test case module includes determining use-case module and preservation use-case module;
The determining use-case module creates according to use-case Step Information and selects suitable use-case step, writes use-case and simply believesBreath and use-case details, adjust use-case sequence of steps and preserve;
The preservation use-case module is used to preserve the test case created, including:Confirm and preserve use-case, and createsFile is built, the title expression of the file simply describes use-case;The code of use-case step is extracted to file;It creates publicFunction file function and establishment principal function file main altogether;Public operation step is copied into public function fileIn function;It is inserted into detailed use case description in principal function file main, according to use-case step, calls a step in orderCode and return information.
Description of the drawings
Fig. 1 is use-case step collocation flow chart of the present invention;
Fig. 2 be the present invention write use-case Step Information flow chart;
Fig. 3 is the determination use-case flow chart of the present invention;
Fig. 4 is that the present invention preserves the flow chart for determining use-case
Fig. 5 is the system framework figure of the present invention.
Specific implementation mode
Technical solution to further illustrate the present invention below with reference to the accompanying drawings and specific embodiments.
A kind of use-case step matching method based on use-case test of the present embodiment, the use-case step matching method includeIt creates use-case step, management use-case step and creates three interior methods of test case, as shown in Figure 1, including that use-case step is takenThe process matched:
Step A:Into use-case step system, and obtain operating right;
Step B:It chooses whether to create use-case step, if so, use-case Step Information is write, and the use-case to writing completionStep Information is preserved;If it is not, then choosing whether management use-case step;
Step C:If selection management use-case step, it is that use-case step is deleted or changed to continue selection;If choosingIt selects and use-case step is deleted, then directly delete use-case step file;If selection modifies to use-case step, to use-caseThe information and code of step are modified and are preserved;
Step D:If not selecting management use-case step, choose whether to create test case, if selection creates test case,Suitable use-case step is then selected according to use-case Step Information, determines use-case;And use-case is preserved.
Each use-case is allocated as much walking according to operation, a step portion code, it can be according to operating procedure when combining use-caseManually sorted.Code has been fixed in use-case, needs to change when there is data, it is only necessary to change initial input step generationCode, the data of the output of every part of code halfway can be monitored and checked, final to obtain tester's demand data.SystemEffect is that these step codes are recorded, and is preserved, redjustment and modification, and a use-case of generation can be used for a long time according to demand.
In order to mitigate the pressure of developer and tester, can be walked according to the use-case preserved when creating use-caseSuddenly it is added, generates new use-case code.While facilitating developer to test, it is also convenient for that the survey of code will not be writeExamination personnel write test case and generate code, and use-case step of flexibly arranging in pairs or groups realizes use-case test.It is this establishment and generation forPressure test, automatic test, system testing, regression test can be supported, greatly reduce the development time and facilitate variousThe people in type post tests and adjusts.
Preferably, it is created in use-case step as shown in Fig. 2, being included in, writes the process of use-case Step Information:
Step B1:Write use-case step shorthand information;
Step B2:Write use-case Step Details;
Step B3:Write use-case step code.
Preferably, after creating use-case step, it includes filename, file remarks and text to need the use-case step file preservedPart content;The filename includes the shorthand information for the use-case step for needing to preserve;The file remarks include needing to preserveThe details of use-case step;File content includes the code for writing use-case step.
Preferably, as shown in figure 3, the process including determining use-case:
Step d1:It is created according to use-case Step Information and selects suitable use-case step;
Step d2:Write use-case shorthand information and use-case details;
Step d3:It adjusts use-case sequence of steps and preserves.
Preferably, as shown in figure 4, being included in when creating test case, the process that is preserved to determining use-case:
Step D1:Confirm and preserve use-case, and establishment file is pressed from both sides, the title expression of the file simply describes use-case;
Step D2:The code of use-case step is extracted to file;
Step D3:It creates public function file f unction and creates principal function file main;
Step D4:Public operation step is copied in public function file f unction;
Step D5:It is inserted into detailed use case description in principal function file main, according to use-case step, calls a step in orderRapid code and return information.
A kind of use-case step collocation system based on test case, as shown in figure 5, the use-case step collocation system includesIt creates use-case step block, management use-case step block and creates test case module;
The establishment use-case step block is for creating use-case step and being preserved to the use-case step of establishment;
The management use-case step block is for modifying and deleting to the use-case step created;
The establishment test case module is for creating test case and being preserved to test case.
Preferably, the establishment use-case step block includes writing use-case Step Information module and preservation use-case step mouldBlock;
The use-case Step Information module of writing is for writing use-case step shorthand information, writing use-case Step DetailsWith write use-case step code;
For the preservation use-case step block for preserving the use-case step file created, the file includes fileName, file remarks and file content;
The filename includes the shorthand information for the use-case step for needing to preserve;The file remarks include needing to preserveThe details of use-case step;File content includes the code for writing use-case step.
Preferably, the establishment test case module includes determining use-case module and preservation use-case module;
The determining use-case module creates according to use-case Step Information and selects suitable use-case step, writes use-case and simply believesBreath and use-case details, adjust use-case sequence of steps and preserve;
The preservation use-case module is used to preserve the test case created, including:Confirm and preserve use-case, and createsFile is built, the title expression of the file simply describes use-case;The code of use-case step is extracted to file;It creates publicFunction file function and establishment principal function file main altogether;Public operation step is copied into public function fileIn function;It is inserted into detailed use case description in principal function file main, according to use-case step, calls a step in orderCode and return information.
The technical principle of the present invention is described above in association with specific embodiment.These descriptions are intended merely to explain the present invention'sPrinciple, and it cannot be construed to limiting the scope of the invention in any way.Based on the explanation herein, the technology of this fieldPersonnel would not require any inventive effort the other specific implementation modes that can associate the present invention, these modes are fallen withinWithin protection scope of the present invention.

Claims (8)

CN201711436050.4A2017-12-262017-12-26A kind of use-case step matching method based on test case, systemPendingCN108287788A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201711436050.4ACN108287788A (en)2017-12-262017-12-26A kind of use-case step matching method based on test case, system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201711436050.4ACN108287788A (en)2017-12-262017-12-26A kind of use-case step matching method based on test case, system

Publications (1)

Publication NumberPublication Date
CN108287788Atrue CN108287788A (en)2018-07-17

Family

ID=62832379

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201711436050.4APendingCN108287788A (en)2017-12-262017-12-26A kind of use-case step matching method based on test case, system

Country Status (1)

CountryLink
CN (1)CN108287788A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109359049A (en)*2018-11-122019-02-19郑州云海信息技术有限公司 A test case execution method and system
CN115687140A (en)*2022-11-102023-02-03江苏衫数科技集团有限公司Test case compiling method and system based on automatic test
CN115775186A (en)*2022-11-232023-03-10深圳派氪司科技有限公司 A method and terminal equipment for designing double recording tasks
CN115952094A (en)*2022-12-282023-04-11卡斯柯信号有限公司 An automated testing framework and method

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101025686A (en)*2007-03-222007-08-29中兴通讯股份有限公司Automation test system and test script generating and operating method
CN101221503A (en)*2008-02-012008-07-16中国建设银行股份有限公司Software testing method and device
US20100229155A1 (en)*2009-03-092010-09-09Pandiyan AdiyapathamLifecycle management of automated testing
CN103984626A (en)*2014-05-132014-08-13华为技术有限公司Method and device for generating test-case script
CN103984628A (en)*2014-05-152014-08-13中国南方航空股份有限公司Automatic function test method and system applied to BS (browser/server) framework
CN107391378A (en)*2017-07-272017-11-24郑州云海信息技术有限公司The generation method and device of a kind of test script

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101025686A (en)*2007-03-222007-08-29中兴通讯股份有限公司Automation test system and test script generating and operating method
CN101221503A (en)*2008-02-012008-07-16中国建设银行股份有限公司Software testing method and device
US20100229155A1 (en)*2009-03-092010-09-09Pandiyan AdiyapathamLifecycle management of automated testing
CN103984626A (en)*2014-05-132014-08-13华为技术有限公司Method and device for generating test-case script
CN103984628A (en)*2014-05-152014-08-13中国南方航空股份有限公司Automatic function test method and system applied to BS (browser/server) framework
CN107391378A (en)*2017-07-272017-11-24郑州云海信息技术有限公司The generation method and device of a kind of test script

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109359049A (en)*2018-11-122019-02-19郑州云海信息技术有限公司 A test case execution method and system
CN115687140A (en)*2022-11-102023-02-03江苏衫数科技集团有限公司Test case compiling method and system based on automatic test
CN115687140B (en)*2022-11-102024-01-30江苏衫数科技集团有限公司Test case writing method and system based on automatic test
CN115775186A (en)*2022-11-232023-03-10深圳派氪司科技有限公司 A method and terminal equipment for designing double recording tasks
CN115952094A (en)*2022-12-282023-04-11卡斯柯信号有限公司 An automated testing framework and method
CN115952094B (en)*2022-12-282025-08-05卡斯柯信号有限公司 An automated testing framework and method

Similar Documents

PublicationPublication DateTitle
CN109271326B (en)Cloud database testing method and device, equipment and storage medium thereof
CN107908541B (en)Interface testing method and device, computer equipment and storage medium
CN104809056B (en)A kind of generation method and device of interface testing code
CN104050078B (en)Test script generates system
CN110990274B (en)Data processing method, device and system for generating test cases
CN108287788A (en)A kind of use-case step matching method based on test case, system
CN106610854A (en) A method and device for updating a model
US10146530B1 (en)Simulating and evaluating code branch merge
CN107864052A (en)Method and its system based on lasting application deployment configuration automatic updating
CN110990053A (en) Creation method, usage method and device of machine learning scheme template
CN112685400A (en)Method and system for detecting quality of health medical data based on SDK rule engine
Hamza et al.Web and mobile applications' testing using black and white box approaches
CN108469955B (en)Annotation-based Android injection framework implementation method
EP2530460A2 (en)Manufacture of engineering components with designed defects for analysis of production components
CN112597034A (en)Test case generation method and device and computer readable storage medium
CN103970654B (en)Software reliability virtual test method
CN108446398A (en)A kind of generation method and device of database
US20060005079A1 (en)Methods and apparatus for translating application tests for execution with simulation software tools
CN106919431B (en)Code comparison method, equipment and system in continuous integration
CN113297058B (en) A use case generation method, testing method, device and server
CN107590044B (en)Testing method, device and equipment for distributed storage cluster
Luo et al.Clustering and tailoring user session data for testing web applications
CN105653445A (en)Implementation method capable of meeting DO-178C test result
CN111143229A (en)Software testing method and device, computer equipment and computer readable storage medium
CN105608006B (en)A kind of program error detection method and system based on probabilistic model

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20180717


[8]ページ先頭

©2009-2025 Movatter.jp