CN108874680A - A kind of method for testing software and system of automation - Google Patents
A kind of method for testing software and system of automation Download PDFInfo
- Publication number
- CN108874680A CN108874680A CN201810747321.6A CN201810747321A CN108874680A CN 108874680 A CN108874680 A CN 108874680A CN 201810747321 A CN201810747321 A CN 201810747321A CN 108874680 A CN108874680 A CN 108874680A
- Authority
- CN
- China
- Prior art keywords
- script
- case
- test
- platform
- automation
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention relates to information technology field more particularly to the method for testing software and system of a kind of automation, wherein including:Step S1 manages platform by script and obtains test request;Step S2 manages the test request that platform obtains by script and generates the script comprising Test code, and by script synchronization into test platform;Step S3 judges in test platform with the presence or absence of corresponding use-case;If so, turning to step S4;If it is not, then newly adding corresponding use-case;Step S4, judges whether use-case is associated with script;Step S5 judges whether there is the environment for executing use-case;If so, executing use-case;If it is not, then terminating;Above-mentioned technical solution incorporate development of automation process, can recorde development of automation during milestone and procedure documents, improve team collaboration's efficiency, it improves automatized script to write and maintenance efficiency, also improves the execution efficiency of automatized script, operate entire automation process.
Description
Technical field
The present invention relates to information technology field more particularly to the method for testing software and system of a kind of automation.
Background technique
In internet works software life cycle, test is one of important link, and as exploitation iteration frequency is accelerated,
In the case that agile development is more and more, traditional-handwork test burden can be aggravated, first is that time efficiency problem, second is that when urgent
Between require under, be easier to occur test leakage situation, in this case, automatic test demand is just come into being.
For page end automation demanding, functional test personnel submit to automatic test personnel, automatic test personnel
It is encoded, foot is finally triggered by open source software project in locally triggering or functional test personnel by automatic test personnel
This, under this operation mode, in encoding context, when having newly-increased or update by brake, needs functional test personnel notice certainly
Dynamicization coder carries out function and increases or safeguard have a hysteresis quality problem, secondly in terms of script triggering, when function is got over newly
When coming more, open source software project triggers this mode, can become more and more bad maintenance, not be associated between script and use-case
Relationship needs manually to go to safeguard, when quantity is more and more, maintenance efficiency is not high.
Summary of the invention
In view of the above-mentioned problems, the invention proposes a kind of method for testing software of automation, wherein be applied to include use-case
One test platform in library and the script connecting with the test platform manage platform;Including:
Step S1 manages platform by the script and obtains test request;
Step S2 manages the test request that platform obtains by the script and generates the script comprising Test code,
And by the script synchronization into the test platform;
Step S3 judges in the test platform with the presence or absence of corresponding use-case;
If so, turning to step S4;If it is not, then newly adding the corresponding use-case;
Step S4, judges whether the use-case is associated with the script;
If so, turning to step S5;If it is not, being then associated by the test platform to the use-case and the script
Operation, turns again to step S5;
Step S5 judges whether there is the environment for executing the use-case;
If so, executing use-case;If it is not, executing the use-case after then newly adding the corresponding environment.
Above-mentioned method for testing software, wherein in the step S2, advised using one first coding rule or one second coding
Then generate the Test code;
First coding rule is by being selected preset coding templet to generate the Test code;
Second coding rule is by the test platform to Test code described in pre-set user application.
Above-mentioned method for testing software, wherein also generate phase while generating the coding under first coding rule
Close file.
Above-mentioned method for testing software, wherein the associated documents include project file, and/or programming file, and/or
Message file.
Above-mentioned method for testing software, wherein in the step S5, the foot is also triggered while executing the use-case
This.
Above-mentioned method for testing software, wherein further include:
Step S6 generates the report about use-case implementing result.
Above-mentioned method for testing software, wherein the step S1, the test request is from webpage client.
A kind of software testing system of automation a, wherein test platform including use-case library and flat with the test
The script of platform connection manages platform;
It include the task management module and a script generation module being connected in the script management platform;
The task management module is for generating the test assignment comprising corresponding test request;
The script generation module is used to generate the script comprising Test code according to the test assignment and is synchronized to institute
It states in test platform;
It include a sequentially connected searching module, a relating module and a processing module in the test platform;
The searching module is connect with the use-case library, searches the corresponding use of the script for choosing from the use-case library
Example;
The relating module is used for the use-case is associated with the script;
The processing module is used to execute the use-case under executable environment.
Above-mentioned software testing system, wherein corresponding management list of the script with the use-case is prestored in described.
Above-mentioned software testing system, wherein the relating module is by use-case association associated with the script
Rule is specially:
Existing in the relating module indicates the use-case label associated with the script.
Beneficial effect:A kind of method for testing software proposed by the present invention and system, incorporate development of automation process, can be with
The milestone and procedure documents during development of automation are recorded, team collaboration's efficiency is improved, improves automatized script volume
It writes and maintenance efficiency, also improves the execution efficiency of automatized script, operate entire automation process.
Detailed description of the invention
Fig. 1 is the step flow chart of the method for testing software automated in one embodiment of the invention;
Fig. 2 is the structure principle chart of the software testing system automated in one embodiment of the invention.
Specific embodiment
Invention is further explained with reference to the accompanying drawings and examples.
Embodiment one
In a preferred embodiment, as shown in Figure 1, proposing a kind of method for testing software of automation, wherein can
Platform is managed to be applied to the test platform including use-case library and the script connecting with test platform;May include:
Step S1 manages platform by script and obtains test request;
Step S2, the test request that platform obtains managed by script generate include Test code script, and by script
It is synchronized in test platform;
Step S3 judges in test platform with the presence or absence of corresponding use-case;
If so, turning to step S4;If it is not, then newly adding corresponding use-case;
Step S4, judges whether use-case is associated with script;
If so, turning to step S5;If it is not, being then associated operation to use-case and script by test platform, turn again to
Step S5;
Step S5 judges whether there is the environment for executing use-case;
If so, executing use-case;If it is not, executing the use-case after then newly adding the corresponding environment.
In above-mentioned technical proposal, different test scenes can have different use-cases, for example, can be it is normal log in or
Refusal login etc.:In step S3, judge that the rule in test platform with the presence or absence of corresponding use-case is:Searching in use-case library is
It is no that there are matched use-cases;In step S5, the rule for judging whether there is the environment of execution use-case is specially:In test platform
Search whether there is matched environment.
In a preferred embodiment, it in step S2, is generated using one first coding rule or one second coding rule
Test code;
First coding rule is by being selected preset coding templet to generate Test code;
Second coding rule is by test platform to pre-set user application Test code.
In above-described embodiment, it is preferable that also generate associated documents while generating coding under the first coding rule.
In above-described embodiment, it is preferable that associated documents include project file, and/or programming file and/or message file.
In a preferred embodiment, in step S5, script is also triggered while executing use-case.
In a preferred embodiment, further include:
Step S6 generates the report about use-case implementing result.
In a preferred embodiment, step S1, test request is from webpage client.
Embodiment two
In a preferred embodiment, as shown in Figure 2, it is also proposed that a kind of software testing system of automation, it can be with
A test platform 10 including use-case library 11 and the script being connect with test platform 10 management platform 20;
It include the task management module 21 and a script generation module 22 being connected in script management platform 20;
Task management module 21 is for generating the test assignment comprising corresponding test request;
Script generation module 22 is used to generate the script comprising Test code according to test assignment and is synchronized to test platform
In 10;
It include a sequentially connected searching module 12, a relating module 13 and a processing module 14 in test platform 10;
Searching module 12 is connect with use-case library 11, searches the corresponding use-case of script for choosing from use-case library 11;
Relating module 13 is used for use-case is associated with script;
Processing module 14 is used to execute use-case under executable environment.
In a preferred embodiment, the corresponding relationship list of script and use-case is prestored in searching module 12, is searched
Module 12 is according to the corresponding use-case of corresponding relationship list lookup script.
In a preferred embodiment, use-case correlation rule associated with script is specially by relating module 13:
Existing in relating module 13 indicates use-case label associated with script.
In above-mentioned technical proposal, label be can reside in a code field, and the label can be by bit
It indicates, then indicates not to be associated with when the binary digit is 0, then indicate to be associated with when being 1;The field can also have for corresponding
Identity information.
Specifically, can with automatic test code generator generate test code, including new construction, delete engineering, repair
Change engineering, addition function, deletes function, modification function, addition step, delete step, amendment step, move up, move down, generating survey
Try code, operating procedure explanation.
My task, can be there are two module, respectively task scheduling and automatic flow.Wherein task scheduling can be with
The docking of other platforms obtains the task of the corresponding authority of different personnel, and association test case is gone in newly-built subtask, by choosing
Associated use-case selects configured good test environment, removes triggering automatized script.Automatic flow module includes mentioning surveying Shen
Please, confirmation proposes survey, daily paper is sent, project acceptance inspection function.
Automatic test provides script and use-case incidence relation.It can be convenient for configuration script with the priority value of configuration script
Successive execute sequence.Query script is described by class name, method name, method, deletes script, addition association use-case, deletion pass
It is combined the functions such as example
Report management, inquiry, statistics list, including project name, plan title, deployed environment, performing environment, execution are opened
Begin the time, execute end time, executor, with number of cases, successfully number, unsuccessfully number, success rates, download more detailed logging, general report,
Checkpoint.
Use-case library provides case management function, including uploads use-case.
Automatic test code generator clicks newly-increased engineering by interface operation, selects engineering platform, fills in engineering
Name, engineering class name after preservation, generate code packet name, class name, founder.Engineering can be deleted, be modified, addition function
Operation.Engineering is selected, what's new is clicked, input function name, relies on method name at method name, clicks after saving, generation method
Name.Function can be deleted, modified, add step operation.Selection function clicks newly-increased step, input step name, selection
Step type, step type include:Menu operation, input operation, delay operation, replacement library of object operation, register, opening
Link, selection operation, the operation of selection input frame, page info verification, structured query language verification, structured query language behaviour
Make, pop-up box operation, sentence do-nothing operation etc., selection operation is the common function of encapsulation, can be expanded.It clicks after saving, generation step
Name, step type, step parameter explanation can generate the data-driven of excel form to the parameter of input from the background.It can be right
Step function is deleted, is modified, being added, being moved up, moving down operation.After completing all steps, clicks and generate code, eventually exist
In automation engineering code, a packet name, the corresponding class of a function, the corresponding test method of a method, root are increased newly
Script is generated according to step, one excel document is generated as data-driven according to be passed to parameter, and according to the successive of step
Sequentially, the XML format file for being configured with element location information is automatically generated.
My task, it to be task scheduling management and automatic flow respectively that there are two submenus.
Task scheduling management can show the bulleted list under account permission according to the different rights of logon account, including
Demand title, product line, the stage, can carry out tracking schedules operations at creation time.One plan can add multiple sons and appoint
The resource for taking bulleted list out of, i.e., all users having permission under the project are defaulted in business, subtask.Can it is relevant, modify, delete
Except operation.Association is clicked, display last time associated use-case and use-case to be selected can distribute use-case in use-case to be selected and provide
Source also can choose the use-case in association, select performing environment, trigger script execution.Performing environment can configure, configuration information
Address virtual machine ip including execution etc., can modify, delete operation.It clicks after executing.It can be seen that the process of script execution
Log can be checked, script execution process by logging in virtual machine, for example open browser, and input Account Logon etc. operates.
Automatic flow, four submenus propose survey application, confirmation proposes survey, daily paper is sent, the project acceptance inspection.For non-net
Page end demand, or have the page end demand of special demand, automation demanding side can survey the application page mentioning, and downloading proposes survey
Apply for template, after filling in, click is newly-increased to propose survey, fills in mail matter topics, addressee, makes a copy for people, uploads attachment, text, point
Percussion is sent, related personnel, it will is received portion and is mentioned survey application mail.The application page, sender, it can be seen that his permission are surveyed mentioning
Under mention survey application list, list information include serial number, theme, creation time, recipient mailbox, mention survey whether confirm, delete
Operation or downloading confirmation file operation.Confirmation mentions the survey page, mentions the addressee surveyed in application mail, can be appreciated that application list,
It is mentioned including serial number, theme, creation time, recipient mailbox, downloading and surveys accessory operation, confirmation proposes survey operation.It clicks confirmation and proposes survey
Button fills in mail matter topics, addressee, makes a copy for people, uploads attachment, text, clicks after sending, related personnel will receive confirmation and mention
Survey mail, once confirmation propose survey after, mention survey application the page, mention survey list in delete button will become downloading confirmation mention survey attachment
Button.After confirmation proposes survey, all mail senders, make a copy for and acknowledge a debt under family at recipient, and daily paper, which will send the page, will appear,
Confirmation proposes survey list, including serial number, theme, creation time, recipient mailbox, mentions whether survey confirms and edit that daily paper operates.
Click editor's daily paper, the page, which is shown, mentions survey e-mail messages, including mentions and survey applicant, mentions measurement information, and text, it is attached that downloading confirmation proposes survey
Part operation.The page also shows that confirmation mentions survey e-mail messages, including confirmation mentions survey people, confirmation mentions measurement information, text, and downloading, which mentions, surveys Shen
It please accessory operation.Addition daily paper button is clicked, can include with fill message, progress, stage, working condition, processing problem, tomorrow
Work plan, there are the problem of, click ACK button after.In daily paper list increase newly a daily paper information, including serial number, progress,
Stage, processing problem, there are problems, plan tomorrow, founder, creation time, and modification, delete operation.Once daily paper is sent out
The page is sent, after filling in daily paper information, in the project acceptance inspection page, will show and propose survey application project information, click examination and propose survey
Items button fills in mail matter topics, addressee, makes a copy for people, text, clicks and sends, and related personnel will receive whether examination passes through
Examination mail, the examination in list information mentions surveying project operation and will become and check and accept.
Automatic test, including two submenus, script association use-case, use-case associated script.Into script association use-case
The page, querying condition shown above, including the description of class name, method name, method, priority are successively inquired.Inquiry column are illustrated below
Table information, including the description of class name, method name, method, dependence method name, priority value, test case number, association and deletion behaviour
Make.Delete operation is clicked, institute's choosing method can be deleted, if relevant use-case under this method, prompts to delete failure, it is necessary to first solve
After tying up, then delete.Operation associated, display methods name, method description, class name, packet name, preposition execution, priority value are clicked, it can
To modify operation to information above, page lower part shows all not associated use-cases, has been associated with use-case, can be added,
Delete operation.Into the use-case associated script page, the left side shows use-case to be selected, chooses some use-case to be selected, and the right shows the use
All associated script lists under example, including the description of serial number, class name, method name, aspect, dependence method name, priority, unbundlings association
Operation
Report management, show account permission under project report messages, Report List information include serial number, project name,
Plan title, deployed environment, performing environment, execute the time started, execute end time, executor, with number of cases, successfully number, lose
Lose number, success rates, three operation buttons (more detailed logging, general report and checkpoint).Click more detailed logging button, download log
Information, the inside include all Step Informations and test data etc. in implementation procedure.Click general report, the test after downloading encapsulation
Report, including sum is executed, it by number, unsuccessfully counts, failure cause, test case description, the information such as data-driven.Click verification
Point shows report list information, including serial number, backstage verification prompt information, desired value, reality into checkpoint Report Page
Value, check results, creation time, task names.
Use-case library is operated with number of cases function, including addition set of uses case, use-case, duplication set of uses case, duplication use-case, deletion etc.,
Use-case template can be downloaded, batch uploads use-case.It clicks and uses set of uses case in number of cases, show all use-case information under the set of uses case,
It can also be retrieved by querying condition, list information includes serial number, father node title, use-case title, use-case grade, test side
Formula, automation covering, state, founder, modification time.
Specifically the step of, can be as follows:
When tester has automation demanding, there are two types of implementation is encoded, mode one passes through automatic test code
Generator generate code, according to page step operation after, corresponding engineering packet, java file, a function will be automatically generated
It can corresponding a test method, XML file, excel file.Mode two passes through automatic flow, proposes survey application to automation
Group is encoded.
Synchronised automatic code, execution is automatically imported platform script, i.e., all classes in automation projects engineering, side
The data such as method, data-driven are pushed in automation platform from the version control system of the open source code of automation engineering.
Code in the version control system of the open source code of automation engineering, can be by automation group in local Integrated Development ring
Upload to the version control system of open source code after the coding of border, can also with automation demanding side, by automation platform from
Dynamic code generator, generates code.
Whether there is the corresponding use-case of script, if nothing, is added by use-case depositary management reason.
Whether use-case is associated with script, if nothing, is operated by automatic test module.
Automated execution environment whether there is, if nothing, by task scheduling manage in performing environment menu, added
Add.
Execute use-case, operated by my task module, click my task, find test item, click it is subsequent with
Track schedules operations increase or select some subtask newly, and click is operation associated, into the triggering page, can directly choose this
Mesh is associated with use-case, goes to execute, can also be associated with new use-case and come in.The use-case needed to be implemented is chosen, clicks and executes, selection executes
Environment clicks confirmation, completes script trigger action.
After being finished, triggering human hair can be sent out and send mail reminder, Mail Contents include automatic test cases (use-case name
Claim) completion is executed, use-case successfully counts, failure number.Specific report please log in automatic test platform and be inquired (platform
Location).
It checks report, selects the project name of perform script, click inquiry, in inquiry list, the son for finding triggering is appointed
It is engaged in list, there are three operation buttons in list, after click, can download corresponding report file, are more detailed logging, total report respectively
It accuses, checkpoint.
More detailed logging has recorded every one step in automatic test course in detail, including executes the information such as time.Always
Report include general description (sum, by number, unsuccessfully number, be not carried out several and each dimension accounting), test set description (sum,
Failure accounting passes through accounting), (description of test, the time started, executes time, test case at implementing result to test case detail
Part data information, if including class, test data, have a failure, show failure information).Checkpoint, including backstage verification prompt letter
Breath, it is contemplated that value, actual value, check results, creation time, task names.
When the non-page end of automation demanding, if there is auto-coding demand in automation demanding side, except through code
Outside generator automatic code generating, automation task can also be submitted to automation by platform.
It illustrates:
Automation demanding side:A;Automation group:B,C;Project team related personnel:D,F;Mention survey document:Project automation mentions
Survey document;Automate group acknowledge document:Project automatic test prospectus, project automation demanding analyze book.
It enters under automatic flow menu and mentions the survey application page, click is newly-increased to propose survey, inputs mail matter topics:Project is certainly
Dynamicization proposes survey application, fills in addressee:B, C is filled in and is made a copy for people:D,F;Attachment is uploaded, project automation mentions survey document, and input is just
Literary information is clicked and is sent.
Party in request A, which is entered, mentions the survey page, and in list information, more records, list information is:Serial number, theme, wound
Build the time (2018-05-11 10:00:00), recipient mailbox (B, C), mention survey whether confirm (no), delete operation;Remaining people
Member, enters and mentions the survey page, inquires less than this information.
Automation group personnel B or C enter confirmation and mention the survey page, in list information, more records, and list information
For:Serial number, theme (project automation proposes survey application), creation time (2018-05-11 10:00:00), recipient mailbox (B,
C), two buttons (downloading mentions and surveys attachment, confirmation proposes survey).It clicks downloading and mentions survey attachment, download project automation and mention survey text
Shelves.It clicks confirmation and mentions survey button, enter confirmation and mention the survey page, input mail matter topics:Project automation mentions survey Requisition Validation, receives
Part people:Default display A, editable make a copy for people:Default display D, F, editable upload attachment:Project automatic test plan
Book, project automation demanding analyze book, input text message, click and send.
Party in request A, which is entered, mentions the survey page, in list information, mention survey whether confirm be updated to be, delete operation is updated to
It downloads confirmation and mentions survey attachment, click downloading confirmation and mentions survey accessory button, download project automatic test prospectus, project certainly
Dynamicization demand analysis book.Automation group personnel B, C enter confirmation and mention the survey page, and in list information, confirmation mentions survey operation button
It is changed to have confirmed that prompt information.Automation group personnel B, C enter daily paper and send the page, in list information, more notes
Record, list information are:Serial number, theme (project automation proposes survey application), creation time (2018-05-11 10:00:00) it, receives
Part people mailbox (B, C) mentions whether survey confirms:It is, operates:Edit daily paper button.
Party in request A, people D, F click editor's daily paper button are made a copy for, only checks permission, no editing authority, automation group B, C
Editor's daily paper button is clicked, the daily paper information that can be added daily paper and submit to oneself has modification, delete operation permission.
After daily paper adds successfully, party in request A enters the project acceptance inspection page, increases a list information newly, and list information is:
Serial number, theme (project automation proposes survey application), creation time (2018-05-11 10:00:00), recipient mailbox (B, C),
Operation button:Examination proposes survey project, remaining personnel checks without this list information, operating right.Party in request A, which clicks to check and accept, mentions survey item
Mesh, input mail matter topics (project automation, which proposes survey application and checks and accepts, to be passed through), addressee:Default takes all addressee A, B, C out of, can
It edits, make a copy for people:Default take out of it is all make a copy for people D, F, editable inputs text message, clicks and sends.Operation button is from examination
Mentioning and surveying Xiang Mingda is information alert:Examination passes through.
Automation code generator, which is one, can provide additions and deletions and change and look into engineering/packet/class/function/method/step work
Tool.
It illustrates:A user is increased newly in platform and is inquired.
The automatic test code generator page is entered, there are two submenus, respectively testing engineering list, behaviour in left side
Make step explanation.Testing engineering original list is the main window of code building, and operating procedure instruction page is functional description, in detail
The usage scenario of all kinds of operating procedures is carefully described, cans be compared to building blocks one by one, all kinds of building blocks can be freely combined and go to build one
Automatized script engineering.Right side top half is querying condition, and lower half portion is inquiry list information, and display is all to meet inquiry
The engineering list of condition.Click new construction, into the newly-built page, select engineering platform, drop-down option include each group name (A,
B, C etc.), respectively correspond packet name
Com.XX.testcase.gen.A, com.XX.testcase.gen.B, com.XX.testcase.gen.C etc.,
Fill in engineering name:Newly-increased XX platform user (without particular meaning in platform, only does mark and use, automation code will not be generated, as long as
Guarantee uniqueness), engineering class name:AddSupportUser (with the other concept of code level, such name sanctified by usage:Class
Name must by capitalization start and other letters in word are small letter);If class name is made of multiple words,
Then the initial of each word should be capitalization such as TestPage;If abridged in class name comprising word, this is write
Each letter of word should all be capitalized, such as:XMLExample), click and determine.In list information, a record is increased newly, information includes
Engineering name, packet name, class name, founder, operation (delete engineering, modification engineering, addition function, generate test code).
Some engineering list information is selected, addition function is clicked, enters the what's new page, click what's new,
In pop-up box, function name is filled in:Description to some function can be embodied in test report;Filling method name:Same code level
Other concept (such name sanctified by usage:First word all-lowercase a, if method is made of multiple words, from second
A word starts initial caps, does not use connector), if there is dependence method name, fill in, relies on method:For customized
Sequence is executed between method, if not specifying, default is carried out according to putting in order, and is clicked and is determined.In feature list information, newly
Increase a record, information includes function name, method name, dependence method, operation (deleting function, modification function, addition step).
Some feature list information is selected, addition step is clicked, the test operating procedure configuration page is entered, clicks newly-increased
Step fills in step name in pop-up box:Oneself is customized, such as landing platform;Select step type:Option is (different
Step type is corresponding true as follows with scene, and such as menu operation, i.e. clicking operation all on screen, input operates, i.e.,
The sleep of all information datas with input frame, delay operation on screen, i.e. process, logon operation, that is, input user name, close
Code selects platform name, opens link, i.e. the link of opening uniform resource locator, choice box menu, i.e. drop-down selection operation, page
The verification of face information checking, i.e. page character data, structured query language operation, i.e., fill in structuralized query language in input frame
Speech inquiry data, and select configured good database, structured query language verification, i.e., to the structuralized query checked out
Certain field in language data is verified, and is used with structured query language operative combination.Step type herein is not limited to
Above several classes, can expand.
Step name:Administrator's login, step type:Logon operation inputs user name:Admin, password:123456, selection
Landing platform:Xx platform is clicked and is determined
Step name:Click system permission menu, step type:Menu operation, xpath:/html/body/XX;It clicks true
It is fixed
Step name:Click user management menu, step type:Menu operation, xpath:/html/body/XX;It clicks true
It is fixed.
Step name:Click addition user button, step type:Menu operation, xpath:/html/body/XX;It clicks true
It is fixed.
Step name:Select affiliated function, step type:Select input frame operation, choice box xpath:/html/body/
XX;Input frame xpath:/html/body/XX;Input data:Operational department clicks and determines.
Step name:Input user name, step type:Input operation, xpath:/html/body/XX;Input data:
Testuser is clicked and is determined.
Step name:Input password, step type:Input operation, xpath:/html/body/XX;Input data:
123456, it clicks and determines.
Step name:Click preservation, step type:Menu operation, xpath:/html/body/XX;It clicks and determines.
Step name:Prompting frame verification, step type:Page info verification, page xpath:/html/body/XX;It is expected that
Value:Add user's success;Page check information:After preservation is clicked in verification, page prompts information is clicked and is determined.
Test code is generated, clicks and generates test button code, page prompts:Code building success.
It checks under the path SVN, the function code of the realization of script 1. can be generated:
AddSupportUser.java;2. element location information (path xpath filled in):Newly-increased XX platform user
.xml;3. data-driven (i.e. test data):com.XX.testcase.gen.support.AddSupportUser.xls.
By description and accompanying drawings, the exemplary embodiments of the specific structure of specific embodiment are given, based on present invention essence
Mind can also make other conversions.Although foregoing invention proposes existing preferred embodiment, however, these contents are not intended as
Limitation.
For a person skilled in the art, after reading above description, various changes and modifications undoubtedly be will be evident.
Therefore, appended claims should regard the whole variations and modifications for covering true intention and range of the invention as.It is weighing
The range and content of any and all equivalences, are all considered as still belonging to the intent and scope of the invention within the scope of sharp claim.
Claims (10)
1. a kind of method for testing software of automation, which is characterized in that applied to include use-case library a test platform and with
The script of the test platform connection manages platform;Including:
Step S1 manages platform by the script and obtains test request;
Step S2 manages the test request that platform obtains by the script and generates the script comprising Test code, and will
The script synchronization is into the test platform;
Step S3 judges in the test platform with the presence or absence of corresponding use-case;
If so, turning to step S4;If it is not, then newly adding the corresponding use-case;
Step S4, judges whether the use-case is associated with the script;
If so, turning to step S5;If it is not, being then associated behaviour to the use-case and the script by the test platform
Make, turns again to step S5;
Step S5 judges whether there is the environment for executing the use-case;
If so, executing use-case;If it is not, executing the use-case after then newly adding the corresponding environment.
2. method for testing software according to claim 1, which is characterized in that in the step S2, using one first coding
Rule or one second coding rule generate the Test code;
First coding rule is by being selected preset coding templet to generate the Test code;
Second coding rule is by the test platform to Test code described in pre-set user application.
3. method for testing software according to claim 2, which is characterized in that generate the volume under first coding rule
Associated documents are also generated while code.
4. method for testing software according to claim 3, which is characterized in that the associated documents include project file, and/
Or program file and/or message file.
5. method for testing software according to claim 1, which is characterized in that in the step S5, execute the use-case
The script is also triggered simultaneously.
6. method for testing software according to claim 1, which is characterized in that further include:
Step S6 generates the report about use-case implementing result.
7. method for testing software according to claim 1, which is characterized in that the step S1, the test request come from
In webpage client.
8. a kind of software testing system of automation, which is characterized in that a test platform including use-case library and with the survey
The script for trying platform connection manages platform;
It include the task management module and a script generation module being connected in the script management platform;
The task management module is for generating the test assignment comprising corresponding test request;
The script generation module is used to generate the script comprising Test code according to the test assignment and is synchronized to the survey
It tries in platform;
It include a sequentially connected searching module, a relating module and a processing module in the test platform;
The searching module is connect with the use-case library, searches the corresponding use-case of the script for choosing from the use-case library;
The relating module is used for the use-case is associated with the script;
The processing module is used to execute the use-case under executable environment.
9. software testing system according to claim 8, which is characterized in that prestore the script in the searching module
With the corresponding relationship list of the use-case.
10. software testing system according to claim 8, which is characterized in that the relating module is by the use-case and institute
Stating the associated correlation rule of script is specially:
Existing in the relating module indicates the use-case label associated with the script.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810747321.6A CN108874680B (en) | 2018-07-09 | 2018-07-09 | Automatic software testing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810747321.6A CN108874680B (en) | 2018-07-09 | 2018-07-09 | Automatic software testing method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108874680A true CN108874680A (en) | 2018-11-23 |
CN108874680B CN108874680B (en) | 2022-06-24 |
Family
ID=64300418
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810747321.6A Active CN108874680B (en) | 2018-07-09 | 2018-07-09 | Automatic software testing method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108874680B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109901999A (en) * | 2019-01-31 | 2019-06-18 | 国核自仪系统工程有限公司 | The emulation mode and system of programmable logic based on UVM |
CN109960654A (en) * | 2019-02-22 | 2019-07-02 | 德联易控科技(北京)有限公司 | Test method, device, equipment and the storage medium of setting loss rule |
CN110119599A (en) * | 2019-05-21 | 2019-08-13 | 国网福建省电力有限公司 | A kind of basic software platform automation safety encryption and system |
CN110727597A (en) * | 2019-10-15 | 2020-01-24 | 杭州安恒信息技术股份有限公司 | Method for completing use case based on log troubleshooting invalid codes |
CN111221725A (en) * | 2019-11-27 | 2020-06-02 | 杭州涂鸦信息技术有限公司 | Automatic testing method and system, readable storage medium and computer equipment |
CN113076247A (en) * | 2021-04-06 | 2021-07-06 | 成都安恒信息技术有限公司 | Method and system for managing and running test script |
CN114048084A (en) * | 2022-01-11 | 2022-02-15 | 深圳佑驾创新科技有限公司 | Method and device for generating test case schema of schematic diagram and storage medium |
CN114996123A (en) * | 2022-05-06 | 2022-09-02 | 江苏康众汽配有限公司 | Application release quality management method and system based on guarantee test |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103279419A (en) * | 2013-06-09 | 2013-09-04 | 浪潮电子信息产业股份有限公司 | Automation version verifying method and system based on B/S structural system |
CN103984624A (en) * | 2014-04-29 | 2014-08-13 | 北京京东尚科信息技术有限公司 | Automatic testing method and system for webpage |
CN104391794A (en) * | 2014-12-03 | 2015-03-04 | 浪潮集团有限公司 | Automatic testing method for multiple scripts |
CN107832207A (en) * | 2017-10-16 | 2018-03-23 | 深圳市牛鼎丰科技有限公司 | Interface performance test method, apparatus, storage medium and computer equipment |
CN107908551A (en) * | 2017-10-27 | 2018-04-13 | 中国平安人寿保险股份有限公司 | Terminal software test method, device, terminal and computer-readable storage medium |
-
2018
- 2018-07-09 CN CN201810747321.6A patent/CN108874680B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103279419A (en) * | 2013-06-09 | 2013-09-04 | 浪潮电子信息产业股份有限公司 | Automation version verifying method and system based on B/S structural system |
CN103984624A (en) * | 2014-04-29 | 2014-08-13 | 北京京东尚科信息技术有限公司 | Automatic testing method and system for webpage |
CN104391794A (en) * | 2014-12-03 | 2015-03-04 | 浪潮集团有限公司 | Automatic testing method for multiple scripts |
CN107832207A (en) * | 2017-10-16 | 2018-03-23 | 深圳市牛鼎丰科技有限公司 | Interface performance test method, apparatus, storage medium and computer equipment |
CN107908551A (en) * | 2017-10-27 | 2018-04-13 | 中国平安人寿保险股份有限公司 | Terminal software test method, device, terminal and computer-readable storage medium |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109901999A (en) * | 2019-01-31 | 2019-06-18 | 国核自仪系统工程有限公司 | The emulation mode and system of programmable logic based on UVM |
CN109901999B (en) * | 2019-01-31 | 2021-01-29 | 国核自仪系统工程有限公司 | Simulation method and system of programmable logic based on UVM |
CN109960654A (en) * | 2019-02-22 | 2019-07-02 | 德联易控科技(北京)有限公司 | Test method, device, equipment and the storage medium of setting loss rule |
CN110119599A (en) * | 2019-05-21 | 2019-08-13 | 国网福建省电力有限公司 | A kind of basic software platform automation safety encryption and system |
CN110727597A (en) * | 2019-10-15 | 2020-01-24 | 杭州安恒信息技术股份有限公司 | Method for completing use case based on log troubleshooting invalid codes |
CN110727597B (en) * | 2019-10-15 | 2023-03-10 | 杭州安恒信息技术股份有限公司 | Method for checking invalid code completion case based on log |
CN111221725A (en) * | 2019-11-27 | 2020-06-02 | 杭州涂鸦信息技术有限公司 | Automatic testing method and system, readable storage medium and computer equipment |
CN111221725B (en) * | 2019-11-27 | 2023-04-07 | 杭州涂鸦信息技术有限公司 | Automatic testing method and system, readable storage medium and computer equipment |
CN113076247A (en) * | 2021-04-06 | 2021-07-06 | 成都安恒信息技术有限公司 | Method and system for managing and running test script |
CN114048084A (en) * | 2022-01-11 | 2022-02-15 | 深圳佑驾创新科技有限公司 | Method and device for generating test case schema of schematic diagram and storage medium |
CN114996123A (en) * | 2022-05-06 | 2022-09-02 | 江苏康众汽配有限公司 | Application release quality management method and system based on guarantee test |
Also Published As
Publication number | Publication date |
---|---|
CN108874680B (en) | 2022-06-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108874680A (en) | A kind of method for testing software and system of automation | |
US9361069B2 (en) | Systems and methods for defining a simulated interactive web page | |
CN103383645B (en) | Code generating method and system | |
US7870535B2 (en) | Distributed development environment for building internet applications by developers at remote locations | |
US10372798B2 (en) | System and methods for web-based control of desktop applications | |
US20080072217A1 (en) | Method, apparatus, and system for customizing and performing policy in version control | |
US11550704B2 (en) | Methods, systems and computer program products for automated software testing | |
AU2002240429A1 (en) | Distributed development environment for building internet applications by developers at remote locations | |
JPH11296544A (en) | Structured data management system and computer-readable recording medium where structured data management program is recorded | |
Ananieva et al. | A conceptual model for unifying variability in space and time | |
CN106095670A (en) | The generation method and device of test report | |
JP2006512670A (en) | Method and apparatus for an integrated process modeler | |
CN114218105A (en) | UI automatic regression testing system based on configuration application mode | |
Lengyel et al. | Quality assured model-driven requirements engineering and software development | |
KR102567118B1 (en) | System for managing simple approval requests using email and the operating method thereof | |
JP2012150740A (en) | Program generating device and method | |
Shaffiei et al. | Change and Bug Tracking System: Anjung Penchala Sdn. Bhd. | |
Weck et al. | OWL Change Control Process | |
Kadur | Small Business Ticketing System | |
Mann | Using the SharePoint Designer | |
Bellagio et al. | Work Item Management with IBM Rational ClearQuest and Jazz: A Customization Guide | |
Ramsdell | Emission Inventory Graphic User Interface for Point Sources | |
Singh | DefSource | |
Gorroñogoitia et al. | D6. 4.3 Final Prototype For Service Composition and Adaptation Environment | |
Pallow | Graduate Advisor System |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |