CN108132879A - Automated software testing method, platform, terminal and medium - Google Patents
Automated software testing method, platform, terminal and medium Download PDFInfo
- Publication number
- CN108132879A CN108132879A CN201711396475.7A CN201711396475A CN108132879A CN 108132879 A CN108132879 A CN 108132879A CN 201711396475 A CN201711396475 A CN 201711396475A CN 108132879 A CN108132879 A CN 108132879A
- Authority
- CN
- China
- Prior art keywords
- user
- instruction
- test
- terminal
- task
- 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
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
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Debugging And Monitoring (AREA)
Abstract
A kind of Automated software testing method provided by the invention, platform, terminal and medium, in this method, terminal receives the testing procedure edit instruction of user, obtains test event;The scripting editing instruction of user is received, obtains automatized script;The dispatch command of user is received, creates scheduler task;The scheduling for receiving user preserves instruction, and scheduler task is uploaded to Node station by RMI;Node station operation automatized script completes test, and test log is fed back to terminal;Terminal shows the execution state and implementing result in test log, and tester can be helped to write test small routine, completes software test, writes environment and be easily understood, reduce the requirement to tester, substantially increase the degree of automation of software test.Tester is allowed to free from test activity that is cumbersome and repeating, is devoted to the activities such as significant test design.
Description
Technical field
The invention belongs to software testing technology fields, and in particular to Automated software testing method, platform, terminal and Jie
Matter.
Background technology
Software test is generated along with the generation of software.As software and IT industries enter great development, software
Tend to enlargement, high complexity, the quality of software is more and more important, and the basic theory and practical technique of software test start shape
Into, and people start for the various flows of software development and design and management method, to comment with structured analysis and design, structuring
It examines, Structured Programming and structuring test are characterized.
Existing software test means are almost all manual tests, and the efficiency of test is very low, and with software
There is the situation that test can not be much completed by manual mode, although opening in some large softwares in the raising of complexity
During hair, people's trial has write some small routines and has carried out subtest, but this still cannot meet most software project
It is unified need, and tester is required to be familiar with programmed method, it is more demanding to tester.
Invention content
For the defects in the prior art, the present invention provides Automated software testing method, platform, terminal and medium, energy
Enough tester is helped to write test small routine, complete software test, write environment and be easily understood, reduce to tester's
It is required that.
In a first aspect, the present invention provides a kind of Automated software testing method, including:
Terminal receives the testing procedure edit instruction of user, receives the key message of each testing procedure input by user,
Test event is obtained according to testing procedure;
Terminal receives the scripting editing instruction of user, the script of test event is edited, to obtain automatized script;
Terminal receives the dispatch command of user, creates scheduler task;The scheduler task includes automation foot to be tested
This;
The scheduling that terminal receives user preserves instruction, and scheduler task is uploaded to Node station by RMI;
Automatized script in Node station traffic control task completes test, and test log is fed back to terminal;
Terminal shows the execution state and implementing result in test log.
Further, the testing procedure edit instruction of user is received in the terminal, receives each test input by user
The key message of step before obtaining test event according to testing procedure, further includes:
The terminal receives manager's account of manager's typing, completes the register of manager;
The terminal receives the user management instruction of manager, creates, nullifies or change user account, specially:
The user management instruction includes newly-built user instruction, logging off users instruction and modification user instruction;
When terminal receives newly-built user instruction, user account is created;
When terminal receives logging off users instruction, existing user account is nullified according to logging off users instruction;
When terminal receives modification user instruction, existing user account is changed according to modification user instruction.
Further, described when terminal receives newly-built user instruction, creating user account is specially:
User management instruction further includes and creates client addition instruction, the addition instruction of establishment department, establishment project add
Add instruction and create role and add instruction;
When terminal receives newly-built user instruction, establishment task is created;
When terminal receives the addition instruction of establishment department, department's addition interface is switched to;On department's addition interface
Equipped with multiple department informations;The department information of user's selection is received, is increased in establishment task;
When terminal receives the addition instruction of establishment project, project addition interface is switched to;On the project addition interface
Equipped with multiple project information;The project information of user's selection is received, is increased in establishment task;
When terminal, which receives, creates role's addition instruction, switch to role and add interface;The role is added on interface
Equipped with multiple Role Informations;The Role Information of user's selection is received, is increased in establishment task;
When terminal, which receives, creates client addition instruction, the client ip address of user's typing is received, increases to wound
It builds in task;
Terminal is according to the establishment task creation user account of completion.
Further, the terminal receives the testing procedure edit instruction of user, receives each test step input by user
Rapid key message, obtaining test event according to testing procedure is specially:
Terminal receives the testing procedure edit instruction of user, receives the key message of each testing procedure input by user,
Edit test case;
Terminal is according to the Test cases technology test use cases of editor;
Terminal generates test plan according to test use cases;
Terminal generates the test event according to test plan.
Further, the terminal receives the testing procedure edit instruction of user, receives each test step input by user
Rapid key message is specially according to testing procedure editor's test case:
Terminal receives the testing procedure edit instruction of user, creates use-case editor's task, receives each survey input by user
The rapid key message of try edits testing procedure;The key message includes one or more combinations of following information:Position road
Diameter, operation, parameter, step action, expected results and type;
Terminal generates the test case according to testing procedure;
Wherein each testing procedure edit methods include:
Terminal receives the location path in the element positioning of user's typing, is added in use-case editor's task;
Terminal receives the operation that user selects in preset operating database, is added in use-case editor's task;
Terminal receives the parameter of user's typing, is added in use-case editor's task;
The step of terminal reception user's typing, acts, and is added in use-case editor's task;
Terminal receives the expected results of user's typing, is added in use-case editor's task;
Terminal receives the type of user's typing, is added in use-case editor's task.
Further, the use-case editor task is shown using form, wherein representing a testing procedure per a line;
Each row represent the location path, operation, parameter, step action, expected results and type respectively.
Second aspect, the present invention provides a kind of automation software testing platform, including terminal and Node station;
The terminal includes editor module, scheduler module and display module;
The editor module is used to receive the project edit instruction of user, edit item, to obtain test event;It is additionally operable to
The scripting editing instruction of user is received, the script of test event is edited, to obtain automatized script;
The scheduler module is used to receive the dispatch command of user, creates scheduler task;The scheduler task includes to be measured
The automatized script of examination;The scheduling for being additionally operable to receive user preserves instruction, and scheduler task is uploaded to Node station by RMI;
The display module is used to show execution state and the implementing result in test log;
The automatized script that the Node station is used in traffic control task completes test, and test log is fed back to end
End.
Further, the terminal further includes manager's module, and manager's module is used to receive the management of manager's typing
Person's account completes the register of manager;It is additionally operable to receive the user management instruction of manager, creates, nullifies or change and use
Family account is specially:
The user management instruction includes newly-built user instruction, logging off users instruction and modification user instruction;When terminal connects
When receiving newly-built user instruction, user account is created;When terminal receives logging off users instruction, instructed and noted according to logging off users
Sell existing user account;When terminal receives modification user instruction, existing user's account is changed according to modification user instruction
Number.
The third aspect, the present invention provides a kind of terminal, including processor, input equipment, output equipment and memory, institute
It states processor, input equipment, output equipment and memory to be connected with each other, the memory is described for storing computer program
Computer program includes program instruction, and the processor is configured for calling described program instruction, performs following methods:
The testing procedure edit instruction of user is received, receives the key message of each testing procedure input by user, according to
Testing procedure obtains test event;
The scripting editing instruction of user is received, the script of test event is edited, to obtain automatized script;
The dispatch command of user is received, creates scheduler task;The scheduler task includes automatized script to be tested;
The scheduling for receiving user preserves instruction, and scheduler task is uploaded to Node station by RMI;
Show the execution state and implementing result in test log.
Fourth aspect, the present invention provides a kind of computer readable storage medium, the computer storage media is stored with
Computer program, the computer program include program instruction, and described program instruction makes the processing when being executed by a processor
Device performs following methods:
The testing procedure edit instruction of user is received, receives the key message of each testing procedure input by user, according to
Testing procedure obtains test event;
The scripting editing instruction of user is received, the script of test event is edited, to obtain automatized script;
The dispatch command of user is received, creates scheduler task;The scheduler task includes automatized script to be tested;
The scheduling for receiving user preserves instruction, and scheduler task is uploaded to Node station by RMI;
Show the execution state and implementing result in test log.
As shown from the above technical solution, Automated software testing method provided by the invention, platform, terminal and medium, energy
Enough tester is helped to write test small routine, complete software test, write environment and be easily understood, reduce to tester's
It is required that substantially increase the degree of automation of software test.Tester is allowed to solve abjection from test activity that is cumbersome and repeating
Come, be devoted to the activities such as significant test design.
Description of the drawings
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution of the prior art
Embodiment or attached drawing needed to be used in the description of the prior art are briefly described.In all the appended drawings, similar element
Or part is generally identified by similar reference numeral.In attached drawing, each element or part might not be drawn according to practical ratio.
Fig. 1 is the flow chart one of Automated software testing method in embodiment one.
Fig. 2 is the flowchart 2 of Automated software testing method in embodiment one.
Fig. 3 is the flow chart 3 of Automated software testing method in embodiment one.
Fig. 4 is the flow chart four of Automated software testing method in embodiment one.
Fig. 5 is the module frame chart of terminal in embodiment three.
Specific embodiment
The embodiment of technical solution of the present invention is described in detail below in conjunction with attached drawing.Following embodiment is only used for
Clearly illustrate technical scheme of the present invention, therefore be only used as example, and the protection model of the present invention cannot be limited with this
It encloses.It should be noted that unless otherwise indicated, technical term or scientific terminology used in this application are should be belonging to the present invention
The ordinary meaning that field technology personnel are understood.
It it should be appreciated that ought be special described by the instruction of term " comprising " use in this specification and in the appended claims
Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step,
Operation, element, component and/or its presence or addition gathered.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment
And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
As used in this specification and in the appended claims, term " if " can be according to context quilt
Be construed to " when ... " or " once " or " in response to determining " or " in response to detecting ".Similarly, phrase " if it is determined that " or
" if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true
It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, the terminal described in the embodiment of the present invention is including but not limited to such as with touch sensitive surface
The mobile phone, laptop computer or tablet computer of (for example, touch-screen display and/or touch tablet) etc it is other just
Portable device.It is to be further understood that in certain embodiments, the equipment is not portable communication device, but with tactile
Touch the desktop computer of sensing surface (for example, touch-screen display and/or touch tablet).
In discussion below, the terminal including display and touch sensitive surface is described.It is, however, to be understood that
It is that terminal can include one or more of the other physical user-interface device of such as physical keyboard, mouse and/or control-rod.
Terminal supports various application programs, such as one or more of following:Drawing application program, demonstration application journey
Sequence, word-processing application, website create application program, disk imprinting application program, spreadsheet applications, game application
Program, telephony application, videoconference application, email application, instant messaging applications, exercise
Support application program, photo management application program, digital camera application program, digital camera application program, web-browsing application
Program, digital music player application and/or video frequency player application program.
The various application programs that can be performed in terminal can use at least one public of such as touch sensitive surface
Physical user-interface device.It can adjust and/or change among applications and/or in corresponding application programs and touch sensitive table
The corresponding information shown in the one or more functions and terminal in face.In this way, the public physical structure of terminal is (for example, touch
Sensing surface) it can support the various application programs with user interface intuitive and transparent for a user.
Embodiment one:
Referring to Fig. 1-4, embodiment one provides a kind of Automated software testing method, including:
S1:Terminal receives manager's account of manager's typing, completes the register of manager;
S2:Terminal receives the user management instruction of manager, creates, nullifies or change user account;
Specifically, new user account cannot be obtained by registration, it is necessary to unified by manager's creative management.Manager
It can nullify or change existing user account.User management instruction include newly-built user instruction, logging off users instruction and
Change user instruction;Specially:
S2.1:When terminal receives newly-built user instruction, user account is created;The user management instruction further includes wound
Client addition instruction is built, establishment department adds instruction, establishment project adds instruction and creates role's addition instruction;Specially:
S2.1.1:When terminal receives newly-built user instruction, establishment task is created;
S2.1.2:When terminal receives the addition instruction of establishment department, department's addition interface is switched to;Department's addition
Interface is equipped with multiple department informations;The department information of user's selection is received, is increased in establishment task;
S2.1.3:When terminal receives the addition instruction of establishment project, project addition interface is switched to;The project addition
Interface is equipped with multiple project information;The project information of user's selection is received, is increased in establishment task;
S2.1.4:When terminal, which receives, creates role's addition instruction, switch to role and add interface;Role's addition
Interface is equipped with multiple Role Informations;The Role Information of user's selection is received, is increased in establishment task;
S2.1.5:When terminal, which receives, creates client addition instruction, the client ip address of user's typing is received, is increased
It is added in establishment task;
S2.1.6:Terminal is according to the establishment task creation user account of completion.
Specifically, department information, project information and Role Information are that manager prestores in the database.It is creating
During user, manager adds in department selected on interface, role addition interface and project addition interface respectively, does not need to weight
New input reduces troublesome operation when user creates.Department is used to be represented to user affiliated function.Role Information is used to limit
The permission of user, such as the Role Information of A projects modification define that user can only check, change the data of A projects.Project information
For limiting the operation object of user.
S2.2:When terminal receives logging off users instruction, existing user account is nullified according to logging off users instruction;
S2.3:When terminal receives modification user instruction, existing user account is changed according to modification user instruction.
S3:Terminal receives the user account of user's typing, completes the register of user;
S4:Terminal receives the testing procedure edit instruction of user, receives the crucial letter of each testing procedure input by user
Breath, test event is obtained according to testing procedure;Specially:
S4.1:Terminal receives the testing procedure edit instruction of user, receives the key of each testing procedure input by user
Information, according to testing procedure editor's test case;Specially:
S4.1.1:Terminal receives the testing procedure edit instruction of user, creates use-case editor's task, receives input by user
The key message of each testing procedure, edits testing procedure;The key message includes one or more combinations of following information:
Location path, operation, parameter, step action, expected results and type;Wherein each testing procedure edit methods include:
Terminal receives the location path in the element positioning of user's typing, is added in use-case editor's task;
Specifically, location path is exclusive path of the element on the page, and traditional software test is all to pass through browsing
The developing instrument crawl element location path that device carries.
Terminal receives the operation that user selects in preset operating database, is added in use-case editor's task;
Specifically, operation represents test action, such as simulation mouse-click, double-clicks or be to click page button etc.
Deng.User is in selection operation, when mouse is placed on different option of operation, prompts the function of the operation.Such as:Click object
Action name for click, when mouse is placed on click, prompt to click object.
Terminal receives the parameter of user's typing, is added in use-case editor's task;
Specifically, parameter refers to the data that needs perform, such as user name when logging in, password, search during search
Data etc..
The step of terminal reception user's typing, acts, and is added in use-case editor's task;
Specifically, step action can fill in the stand-by period, such as fill in 5*wait, represent to wait for 5 seconds.
Terminal receives the expected results of user's typing, is added in use-case editor's task;
Specifically, it is contemplated that result expression needs to parameterize.
Terminal receives the type of user's typing, is added in use-case editor's task.
Specifically, software test tradition is divided into whitepack and black box, and black box includes UI (interface detection) and interface testing, interface
There are http agreement socket agreements, these interfaces are usually the program outside caller, such as when doing store, it will usually be called micro-
The interface of letter or Alipay is tested.
S4.1.2:Terminal generates the test case according to testing procedure;
Specifically, the use-case editor task is shown using form, wherein representing a testing procedure per a line;Often
One row represent the location path, operation, parameter, step action, expected results and type respectively.Use-case editor task uses table
Case form is shown, a testing procedure is represented per a line, and user can increase or delete the volume that testing procedure completes test case newly
Volume.Simultaneously using form editor, the complexity of user's editing environment is reduced, even the survey of unskilled programming language
Examination personnel can also be easily accomplished the editor of test case, reduce the requirement to tester.
S4.2:Terminal is according to the Test cases technology test use cases of editor;
S4.3:Terminal generates test plan according to test use cases;
S4.4:Terminal generates the test event according to test plan.
Specifically, each test event binding item id, a test event include multiple test plans, a tester
It draws comprising multiple test sets, a test set includes multiple test cases, and a test case includes multiple testing procedures.The party
Method gradually up generates test event according to testing procedure.
S5:Terminal receives the scripting editing instruction of user, the script of test event is edited, to obtain automatized script;
Specifically, since the mainstream of current software test is selenium language, automatized script refers to be based on
The execution order of selenium language.When language changes, automatized script refers to the execution order of corresponding language.
S6:Terminal receives the dispatch command of user, creates scheduler task;The scheduler task includes automation to be tested
Script;
S7:The scheduling that terminal receives user preserves instruction, and scheduler task is uploaded to Node station by RMI;
S8:Automatized script in Node station traffic control task completes test, and test log is fed back to terminal;
Specifically, each testing procedure is an order, and the jar packets on any one Node station can be driven to go to beat
Browser is opened to perform the step.For example an open order is sent, it will be there are one IE browser on a Node station
It is opened, and opens a link.In same network environment, the machine resources that can be would sit idle for utilize this method
Come, usually windows machines.As long as uploading a jar packet on these machines, without installing any software, one is opened
Rmi.bat oracle listeners, it is possible to which, as a Node station, such Node station can be unlimited dilatation.Such as one
There are 100 office computers in company, is idle after work, can serve as the Node station of automation, as " an automation
Robot " performs the traffic order of tester, so as to also achieve the function of completing automatic test at night, improves survey
Try efficiency.
S9:Terminal shows the execution state and implementing result in test log.
Specifically, user checks the execution state of each testing procedure and test feelings by the test log that Node station returns
Condition.
This method can help tester to write test small routine, complete software test, write environment and be easily understood, and drop
The low requirement to tester substantially increases the degree of automation of software test.Allow tester from it is cumbersome and repeat
It frees in test activity, is devoted to the activities such as significant test design.
Second aspect, the present invention provides a kind of automation software testing platform, including terminal and Node station;
The terminal includes manager's module, login module, editor module, scheduler module and display module;
Manager's module is used to receive manager's account of manager's typing, completes the register of manager;Also
For receiving the instruction of the user management of manager, user account is created, nullifies or changed;
The login module is used to receive the user account of user's typing, completes the register of user;
The editor module is used to receive the project edit instruction of user, receives the pass of each testing procedure input by user
Key information obtains test event according to testing procedure;It is additionally operable to receive the scripting editing instruction of user, edits the foot of test event
This, to obtain automatized script;
The scheduler module is used to receive the dispatch command of user, creates scheduler task;The scheduler task includes to be measured
The automatized script of examination;The scheduling for being additionally operable to receive user preserves instruction, and scheduler task is uploaded to Node station by RMI;
The display module is used to show execution state and the implementing result in test log;
The automatized script that the Node station is used in traffic control task completes test, and test log is fed back to end
End.
Further, manager's module is used to receive the user management instruction of manager, creates, nullifies or changes and uses
Family account is specially:
The user management instruction includes newly-built user instruction, logging off users instruction and modification user instruction;Manager's mould
Block is used for when receiving newly-built user instruction, creates user account;Manager's module is used to receive logging off users instruction
When, existing user account is nullified according to logging off users instruction;Manager's module is used for when receiving modification user instruction, root
Existing user account is changed according to modification user instruction.
Further, manager's module is used for when receiving newly-built user instruction, is created user account and is specially:
User management instruction further includes and creates client addition instruction, the addition instruction of establishment department, establishment project add
Add instruction and create role and add instruction;
Manager's module is used for when receiving newly-built user instruction, creates establishment task;
Manager's module is used to, when receiving the addition instruction of establishment department, switch to department's addition interface;The department
It adds interface and is equipped with multiple department informations;The department information of user's selection is received, is increased in establishment task;
Manager's module is used to, when receiving the addition instruction of establishment project, switch to project addition interface;The project
It adds interface and is equipped with multiple project information;The project information of user's selection is received, is increased in establishment task;
Manager's module is used to, when receiving establishment role's addition instruction, switch to role and add interface;The role
It adds interface and is equipped with multiple Role Informations;The Role Information of user's selection is received, is increased in establishment task;
Manager's module is used for when receiving establishment client addition instruction, with receiving the client ip of user's typing
Location increases in establishment task;
Manager's module is used for the establishment task creation user account according to completion.
Further, the editor module is used to receive the testing procedure edit instruction of user, receives input by user every
The key message of a testing procedure, obtaining test event according to testing procedure is specially:
Editor module is used to receive the testing procedure edit instruction of user, edits test case;
Editor module is used for the Test cases technology test use cases according to editor;
Editor module is used to generate test plan according to test use cases;
Editor module is used to generate the test event according to test plan.
Further, the editor module is used to receive the testing procedure edit instruction of user, receives input by user every
The key message of a testing procedure is specially according to testing procedure editor's test case:
Editor module is used to receive the testing procedure edit instruction of user, creates use-case editor's task, receives user's input
Each testing procedure key message, edit testing procedure;
Editor module is used to generate the test case according to testing procedure;
Wherein each testing procedure edit methods include:
Editor module is used for the location path in the element positioning for receiving user's typing, is added in use-case editor's task;
Editor module is added to use-case editor's task for receiving the operation that user selects in preset operating database
In;
Editor module is used to receive the parameter of user's typing, is added in use-case editor's task;
Editor module acts for the step of receiving user's typing, is added in use-case editor's task;
Editor module is used to receive the expected results of user's typing, is added in use-case editor's task;
Editor module is used to receive the type of user's typing, is added in use-case editor's task.
Further, the use-case editor task is shown using form, wherein representing a testing procedure per a line;
Each row represent the location path, operation, parameter, step action, expected results and type respectively.
The platform can help tester to write test small routine, complete software test, write environment and be easily understood, and drop
The low requirement to tester substantially increases the degree of automation of software test.Allow tester from it is cumbersome and repeat
It frees in test activity, is devoted to the activities such as significant test design.
Embodiment three:
Referring to Fig. 5, embodiment three provides a kind of terminal, including processor 101, input equipment 102, output equipment 103
With memory 104, the processor 101, input equipment 102, output equipment 103 and memory 104 are mutually interconnected by bus 105
It connects, for the memory 104 for storing computer program, the computer program includes program instruction, 101 quilt of processor
It is configured to call described program instruction, performs following methods:
Manager's account of manager's typing is received, completes the register of manager;
The user management instruction of manager is received, creates, nullify or change user account;
The user account of user's typing is received, completes the register of user;
The testing procedure edit instruction of user is received, receives the key message of each testing procedure input by user, according to
Testing procedure obtains test event;
The scripting editing instruction of user is received, the script of test event is edited, to obtain automatized script;
The dispatch command of user is received, creates scheduler task;The scheduler task includes automatized script to be tested;
The scheduling for receiving user preserves instruction, and scheduler task is uploaded to Node station by RMI;
Show the execution state and implementing result in test log.
Further, the terminal receives the user management instruction of manager, and establishment, cancellation or modification user account are specific
For:
The user management instruction includes newly-built user instruction, logging off users instruction and modification user instruction;
When terminal receives newly-built user instruction, user account is created;
When terminal receives logging off users instruction, existing user account is nullified according to logging off users instruction;
When terminal receives modification user instruction, existing user account is changed according to modification user instruction.
Further, described when terminal receives newly-built user instruction, creating user account is specially:
User management instruction further includes and creates client addition instruction, the addition instruction of establishment department, establishment project add
Add instruction and create role and add instruction;
When terminal receives newly-built user instruction, establishment task is created;
When terminal receives the addition instruction of establishment department, department's addition interface is switched to;On department's addition interface
Equipped with multiple department informations;The department information of user's selection is received, is increased in establishment task;
When terminal receives the addition instruction of establishment project, project addition interface is switched to;On the project addition interface
Equipped with multiple project information;The project information of user's selection is received, is increased in establishment task;
When terminal, which receives, creates role's addition instruction, switch to role and add interface;The role is added on interface
Equipped with multiple Role Informations;The Role Information of user's selection is received, is increased in establishment task;
When terminal, which receives, creates client addition instruction, the client ip address of user's typing is received, increases to wound
It builds in task;
Terminal is according to the establishment task creation user account of completion.
Further, the terminal receives the testing procedure edit instruction of user, receives each test step input by user
Rapid key message, obtaining test event according to testing procedure is specially:
Terminal receives the testing procedure edit instruction of user, receives the key message of each testing procedure input by user,
According to testing procedure editor's test case;
Terminal is according to the Test cases technology test use cases of editor;
Terminal generates test plan according to test use cases;
Terminal generates the test event according to test plan.
Further, the terminal receives the testing procedure edit instruction of user, receives each test step input by user
Rapid key message is specially according to testing procedure editor's test case:
Terminal receives the testing procedure edit instruction of user, creates use-case editor's task, receives each survey input by user
The rapid key message of try edits testing procedure;The key message includes one or more combinations of following information:Position road
Diameter, operation, parameter, step action, expected results and type;
Terminal generates the test case according to testing procedure;
Wherein each testing procedure edit methods include:
Terminal receives the location path in the element positioning of user's typing, is added in use-case editor's task;
Terminal receives the operation that user selects in preset operating database, is added in use-case editor's task;
Terminal receives the parameter of user's typing, is added in use-case editor's task;
The step of terminal reception user's typing, acts, and is added in use-case editor's task;
Terminal receives the expected results of user's typing, is added in use-case editor's task;
Terminal receives the type of user's typing, is added in use-case editor's task.
Further, the use-case editor task is shown using form, wherein representing a testing procedure per a line;
Each row represent the location path, operation, parameter, step action, expected results and type respectively.
It should be appreciated that in embodiments of the present invention, alleged processor can be central processing unit (Central
Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit,
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic
Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at
It can also be any conventional processor etc. to manage device.
Input equipment can include Trackpad, fingerprint adopts sensor (for acquiring the side of the finger print information of user and fingerprint
To information), microphone etc., output equipment can include display (LCD etc.), loud speaker etc..
The memory can include read-only memory and random access memory, and provide instruction and data to processor.
The a part of of memory can also include nonvolatile RAM.For example, memory can be with storage device type
Information.
In the specific implementation, processor, input equipment, the output equipment described in the embodiment of the present invention can perform the present invention
The method realization method of embodiment one and embodiment two, details are not described herein.
Example IV:
Example IV provides a kind of computer readable storage medium, and the computer storage media is stored with computer journey
Sequence, the computer program include program instruction, and described program instruction makes the processor perform reality when being executed by a processor
Apply the method in example three.
The computer readable storage medium can be the internal storage unit of the terminal described in aforementioned any embodiment, example
Such as the hard disk or memory of terminal.The computer readable storage medium can also be the External memory equipment of the terminal, such as
The plug-in type hard disk being equipped in the terminal, intelligent memory card (Smart Media Card, SMC), secure digital (Secure
Digital, SD) card, flash card (Flash Card) etc..Further, the computer readable storage medium can also be wrapped both
The internal storage unit for including the terminal also includes External memory equipment.The computer readable storage medium is described for storing
Other programs and data needed for computer program and the terminal.The computer readable storage medium can be also used for temporarily
When store the data that has exported or will export.
Those of ordinary skill in the art may realize that each exemplary lists described with reference to the embodiments described herein
Member and algorithm steps can be realized with the combination of electronic hardware, computer software or the two, in order to clearly demonstrate hardware
With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This
A little functions are performed actually with hardware or software mode, specific application and design constraint depending on technical solution.Specially
Industry technical staff can realize described function to each specific application using distinct methods, but this realization is not
It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience of description and succinctly, foregoing description is put down
The specific work process of platform and terminal can refer to the corresponding process in preceding method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed platform, terminal and method, it can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the module
It divides, only a kind of division of logic function can have other dividing mode, such as multiple module or components in actual implementation
It may be combined or can be integrated into another platform or some features can be ignored or does not perform.In addition, shown or beg for
The mutual coupling, direct-coupling or communication connection of opinion can be the INDIRECT COUPLING by some interfaces, device or unit
Or communication connection or electricity, the connection of mechanical or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit
The component shown may or may not be physical unit, you can be located at a place or can also be distributed to multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the embodiment of the present invention
Purpose.
In addition, each function module in each embodiment of the present invention can be integrated in a processing module, it can also
It is that each unit is individually physically present or two or more units integrate in a unit.It is above-mentioned integrated
The form that hardware had both may be used in unit is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is independent product sale or uses
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme of the present invention is substantially
The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products
It embodies, which is stored in a storage medium, is used including some instructions so that a computer
Equipment (can be personal computer, server or the network equipment etc.) performs the complete of each embodiment the method for the present invention
Portion or part steps.And aforementioned storage medium includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe is described in detail the present invention with reference to foregoing embodiments, it will be understood by those of ordinary skill in the art that:Its according to
Can so modify to the technical solution recorded in foregoing embodiments either to which part or all technical features into
Row equivalent replacement;And these modifications or replacement, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme should all cover in the claim of the present invention and the range of specification.
Claims (10)
1. a kind of Automated software testing method, which is characterized in that including:
Terminal receives the testing procedure edit instruction of user, receives the key message of each testing procedure input by user, according to
Testing procedure obtains test event;
Terminal receives the scripting editing instruction of user, the script of test event is edited, to obtain automatized script;
Terminal receives the dispatch command of user, creates scheduler task;The scheduler task includes automatized script to be tested;
The scheduling that terminal receives user preserves instruction, and scheduler task is uploaded to Node station by RMI;
Automatized script in Node station traffic control task completes test, and test log is fed back to terminal;
Terminal shows the execution state and implementing result in test log.
2. Automated software testing method according to claim 1, which is characterized in that receive the test of user in the terminal
Step edit instruction receives the key message of each testing procedure input by user, according to testing procedure obtain test event it
Before, it further includes:
The terminal receives manager's account of manager's typing, completes the register of manager;
The terminal receives the user management instruction of manager, creates, nullifies or change user account, specially:
The user management instruction includes newly-built user instruction, logging off users instruction and modification user instruction;
When terminal receives newly-built user instruction, user account is created;
When terminal receives logging off users instruction, existing user account is nullified according to logging off users instruction;
When terminal receives modification user instruction, existing user account is changed according to modification user instruction.
3. Automated software testing method according to claim 2, which is characterized in that
It is described when terminal receives newly-built user instruction, create user account be specially:
The user management instruction further includes and creates client addition instruction, establishment department adds instruction, the addition of establishment project refers to
It enables and creates role and add instruction;
When terminal receives newly-built user instruction, establishment task is created;
When terminal receives the addition instruction of establishment department, department's addition interface is switched to;Department's addition interface is equipped with
Multiple department informations;The department information of user's selection is received, is increased in establishment task;
When terminal receives the addition instruction of establishment project, project addition interface is switched to;The project addition interface is equipped with
Multiple project information;The project information of user's selection is received, is increased in establishment task;
When terminal, which receives, creates role's addition instruction, switch to role and add interface;The role adds interface and is equipped with
Multiple Role Informations;The Role Information of user's selection is received, is increased in establishment task;
When terminal, which receives, creates client addition instruction, the client ip address of user's typing is received, increases to establishment and appoints
In business;
Terminal is according to the establishment task creation user account of completion.
4. Automated software testing method according to claim 1, which is characterized in that
The terminal receives the testing procedure edit instruction of user, receives the key message of each testing procedure input by user,
Obtaining test event according to testing procedure is specially:
Terminal receives the testing procedure edit instruction of user, receives the key message of each testing procedure input by user, according to
Testing procedure editor's test case;
Terminal is according to the Test cases technology test use cases of editor;
Terminal generates test plan according to test use cases;
Terminal generates the test event according to test plan.
5. Automated software testing method according to claim 4, which is characterized in that
The terminal receives the testing procedure edit instruction of user, receives the key message of each testing procedure input by user,
It is specially according to testing procedure editor's test case:
Terminal receives the testing procedure edit instruction of user, creates use-case editor's task, receives each test step input by user
Rapid key message edits testing procedure;The key message includes one or more combinations of following information:Location path,
Operation, parameter, step action, expected results and type;
Terminal generates the test case according to testing procedure;
Wherein each testing procedure edit methods include:
Terminal receives the location path in the element positioning of user's typing, is added in use-case editor's task;
Terminal receives the operation that user selects in preset operating database, is added in use-case editor's task;
Terminal receives the parameter of user's typing, is added in use-case editor's task;
The step of terminal reception user's typing, acts, and is added in use-case editor's task;
Terminal receives the expected results of user's typing, is added in use-case editor's task;
Terminal receives the type of user's typing, is added in use-case editor's task.
6. Automated software testing method according to claim 5, which is characterized in that
The use-case editor task is shown using form, wherein representing a testing procedure per a line;Each row difference table
Show the location path, operation, parameter, step action, expected results and type.
7. a kind of automation software testing platform, which is characterized in that including terminal and Node station;
The terminal includes editor module, scheduler module and display module;
The editor module is used to receive the project edit instruction of user, edit item, to obtain test event;It is additionally operable to receive
The scripting editing instruction of user edits the script of test event, to obtain automatized script;
The scheduler module is used to receive the dispatch command of user, creates scheduler task;The scheduler task includes to be tested
Automatized script;The scheduling for being additionally operable to receive user preserves instruction, and scheduler task is uploaded to Node station by RMI;
The display module is used to show execution state and the implementing result in test log;
The automatized script that the Node station is used in traffic control task completes test, and test log is fed back to terminal.
8. automation software testing platform according to claim 7, which is characterized in that
The terminal further includes manager's module, and manager's module is used to receive manager's account of manager's typing, completes pipe
The register of reason person;It is additionally operable to receive the user management instruction of manager, creating, nullify or change user account is specially:
The user management instruction includes newly-built user instruction, logging off users instruction and modification user instruction;When terminal receives
During newly-built user instruction, user account is created;When terminal receives logging off users instruction, nullified according to logging off users instruction
Some user accounts;When terminal receives modification user instruction, existing user account is changed according to modification user instruction.
9. a kind of terminal, including processor, input equipment, output equipment and memory, the processor, input equipment, output
Equipment and memory are connected with each other, and for the memory for storing computer program, the computer program includes program instruction,
It is characterized in that, the processor is configured for calling described program instruction, following methods are performed:
The testing procedure edit instruction of user is received, the key message of each testing procedure input by user is received, according to test
Step obtains test event;
The scripting editing instruction of user is received, the script of test event is edited, to obtain automatized script;
The dispatch command of user is received, creates scheduler task;The scheduler task includes automatized script to be tested;
The scheduling for receiving user preserves instruction, and scheduler task is uploaded to Node station by RMI;
Show the execution state and implementing result in test log.
10. a kind of computer readable storage medium, which is characterized in that the computer storage media is stored with computer program,
The computer program includes program instruction, and described program instruction makes the processor perform with lower section when being executed by a processor
Method:
The testing procedure edit instruction of user is received, the key message of each testing procedure input by user is received, according to test
Step obtains test event;
The scripting editing instruction of user is received, the script of test event is edited, to obtain automatized script;
The dispatch command of user is received, creates scheduler task;The scheduler task includes automatized script to be tested;
The scheduling for receiving user preserves instruction, and scheduler task is uploaded to Node station by RMI;
Show the execution state and implementing result in test log.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711396475.7A CN108132879A (en) | 2017-12-21 | 2017-12-21 | Automated software testing method, platform, terminal and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711396475.7A CN108132879A (en) | 2017-12-21 | 2017-12-21 | Automated software testing method, platform, terminal and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108132879A true CN108132879A (en) | 2018-06-08 |
Family
ID=62392052
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711396475.7A Pending CN108132879A (en) | 2017-12-21 | 2017-12-21 | Automated software testing method, platform, terminal and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108132879A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109308263A (en) * | 2018-09-29 | 2019-02-05 | 北京云测信息技术有限公司 | A kind of small routine test method, device and equipment |
CN109684196A (en) * | 2018-11-01 | 2019-04-26 | 北京中清龙图网络技术有限公司 | A kind of test method and device |
CN109766280A (en) * | 2019-01-16 | 2019-05-17 | 广东飞企互联科技股份有限公司 | Method for testing software and software test platform |
CN110321283A (en) * | 2019-05-24 | 2019-10-11 | 平安银行股份有限公司 | Interface testing case generation method, device, computer installation and storage medium |
CN110928774A (en) * | 2019-11-07 | 2020-03-27 | 杭州顺网科技股份有限公司 | Automatic test system based on node formula |
CN111930456A (en) * | 2020-08-06 | 2020-11-13 | Oppo广东移动通信有限公司 | Display method of test log, electronic device and storage medium |
CN113485945A (en) * | 2021-09-07 | 2021-10-08 | 深圳市信润富联数字科技有限公司 | Method and device for testing mobile phone interface, terminal equipment and storage medium |
CN113590491A (en) * | 2021-08-06 | 2021-11-02 | 深圳市共进电子股份有限公司 | Test platform and product test method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105204991A (en) * | 2015-08-28 | 2015-12-30 | 青岛海尔智能家电科技有限公司 | Internet of things test method and device |
CN106874204A (en) * | 2017-02-15 | 2017-06-20 | 广州神马移动信息科技有限公司 | Automatic test method for customizing and custom-built system |
CN106933729A (en) * | 2015-12-29 | 2017-07-07 | 苏宁云商集团股份有限公司 | A kind of method of testing and system based on cloud platform |
US9727447B1 (en) * | 2015-01-16 | 2017-08-08 | Amdocs Software Systems Limited | System, method, and computer program for automated exploratory testing |
-
2017
- 2017-12-21 CN CN201711396475.7A patent/CN108132879A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9727447B1 (en) * | 2015-01-16 | 2017-08-08 | Amdocs Software Systems Limited | System, method, and computer program for automated exploratory testing |
CN105204991A (en) * | 2015-08-28 | 2015-12-30 | 青岛海尔智能家电科技有限公司 | Internet of things test method and device |
CN106933729A (en) * | 2015-12-29 | 2017-07-07 | 苏宁云商集团股份有限公司 | A kind of method of testing and system based on cloud platform |
CN106874204A (en) * | 2017-02-15 | 2017-06-20 | 广州神马移动信息科技有限公司 | Automatic test method for customizing and custom-built system |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109308263B (en) * | 2018-09-29 | 2021-10-22 | 北京云测信息技术有限公司 | Applet testing method, device and equipment |
CN109308263A (en) * | 2018-09-29 | 2019-02-05 | 北京云测信息技术有限公司 | A kind of small routine test method, device and equipment |
CN109684196A (en) * | 2018-11-01 | 2019-04-26 | 北京中清龙图网络技术有限公司 | A kind of test method and device |
CN109684196B (en) * | 2018-11-01 | 2024-01-09 | 北京中清龙图网络技术有限公司 | Test method and device |
CN109766280A (en) * | 2019-01-16 | 2019-05-17 | 广东飞企互联科技股份有限公司 | Method for testing software and software test platform |
CN110321283A (en) * | 2019-05-24 | 2019-10-11 | 平安银行股份有限公司 | Interface testing case generation method, device, computer installation and storage medium |
CN110321283B (en) * | 2019-05-24 | 2024-05-10 | 平安银行股份有限公司 | Interface test case generation method and device, computer device and storage medium |
CN110928774B (en) * | 2019-11-07 | 2023-05-05 | 杭州顺网科技股份有限公司 | Automatic test system based on node type |
CN110928774A (en) * | 2019-11-07 | 2020-03-27 | 杭州顺网科技股份有限公司 | Automatic test system based on node formula |
CN111930456A (en) * | 2020-08-06 | 2020-11-13 | Oppo广东移动通信有限公司 | Display method of test log, electronic device and storage medium |
CN113590491A (en) * | 2021-08-06 | 2021-11-02 | 深圳市共进电子股份有限公司 | Test platform and product test method |
CN113590491B (en) * | 2021-08-06 | 2024-03-29 | 深圳市共进电子股份有限公司 | Test platform and product test method |
CN113485945A (en) * | 2021-09-07 | 2021-10-08 | 深圳市信润富联数字科技有限公司 | Method and device for testing mobile phone interface, terminal equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108132879A (en) | Automated software testing method, platform, terminal and medium | |
CN105849691B (en) | The method and apparatus generated for code virtualization and remote process call | |
Inostroza et al. | Usability heuristics for touchscreen-based mobile devices: update | |
CN104965790B (en) | Method for testing software and system based on crucial word drive | |
US11449348B2 (en) | Pre/post deployment customization | |
US20130152041A1 (en) | Integrated workflow visualization and editing | |
WO2021217911A1 (en) | Method and apparatus for constructing service website project, and computer device and storage medium | |
CN107122301A (en) | Interface detection method and device | |
CN107846511A (en) | A kind of method, terminal and computer-readable recording medium for accessing moving advertising | |
CN105955888A (en) | Page debugging and previewing method and system | |
US8843836B2 (en) | Model driven content development | |
CN107015804A (en) | A kind of method and system by the quick exploration project of provisioning API | |
CN107728999A (en) | A kind of App, the method and system of small routine interface simulation | |
US20140282380A1 (en) | Method and apparatus for enabling agile development of services in cloud computing and traditional environments | |
CN110244899A (en) | Electronic contract on-line processing method, Online Processing System and terminal | |
CN112199093B (en) | Resource checking method, device, equipment and computer readable storage medium | |
US20150143267A1 (en) | SYSTEM AND METHOD FOR DEVELOPING A RULE-BASED EVENT-DRIVEN MULTI-LAYERED FRONTEND FOR BUSINESS SERVICES AND RENDERING THE GUIs ON MULTIPLE CLIENT DEVICES | |
CN113849156B (en) | Codeless intelligent development system applied to OpenHarmony operating system and application method thereof | |
CN110347458A (en) | A kind of button control methods of exhibiting, device, storage medium and interactive intelligent tablet computer | |
CN114357041A (en) | Industrial data asset publishing method and device | |
CN105094768A (en) | Application interface generation method and application interface generation device | |
CN112241373A (en) | Automatic test method, test device, processor and test system | |
CN106302011A (en) | Method of testings based on multiterminal and terminal | |
CN102541570B (en) | A kind of method, system and business development client developing value-added service | |
WO2013017054A1 (en) | Method and apparatus for automatically generating case scripts |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180608 |
|
RJ01 | Rejection of invention patent application after publication |