CN106383789A - Software interface test method and software interface test system - Google Patents

Software interface test method and software interface test system Download PDF

Info

Publication number
CN106383789A
CN106383789A CN201611108107.3A CN201611108107A CN106383789A CN 106383789 A CN106383789 A CN 106383789A CN 201611108107 A CN201611108107 A CN 201611108107A CN 106383789 A CN106383789 A CN 106383789A
Authority
CN
China
Prior art keywords
interface
sectional drawing
test
tested
testing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611108107.3A
Other languages
Chinese (zh)
Inventor
马家麒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Pinwei Software Co Ltd
Original Assignee
Guangzhou Vipshop Information And Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Vipshop Information And Technology Co Ltd filed Critical Guangzhou Vipshop Information And Technology Co Ltd
Priority to CN201611108107.3A priority Critical patent/CN106383789A/en
Publication of CN106383789A publication Critical patent/CN106383789A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The invention discloses a software interface test method. The software interface test method comprises the following steps: operating a test case and obtaining screenshots of a tested interface, wherein the tested interface is generated by the test case; keeping the screenshots to a preset position, and splicing the screenshots into a dynamic picture in sequence after the test is finished; and generating a test report containing the dynamic picture. The invention further discloses a software interface test system. By examining the dynamic picture formed by the tested interface screenshots, a tester can see the implementing process of the whole interface test according to the time sequence, so that the tester can conduct error checking more simply and conveniently, and the test efficiency can be improved.

Description

Software interface method of testing and system
Technical field
Invention software interface detection technical field, more particularly, to a kind of software interface method of testing and system.
Background technology
In existing software interface measuring technology, can be to the total arrangement at tested interface, operating process design is carried out Whether assessment, to check whether it meets requirement, also detect control in tested interface it is anticipated that being responded simultaneously, but It is but needs once to test a lot of items during the test of most of software interface, but in test run, tested interface can not be stopped Change, picture all flashes across, and human eye is difficult to discover the concrete change that tested interface occurs, if tested at high speeds Interface occurs extremely, and tester is difficult to find out abnormity point, and testing efficiency is not high.
Content of the invention
Present invention is primarily targeted at providing a kind of software interface method of testing and system it is intended to improve testing efficiency.
For achieving the above object, a kind of software interface method of testing that the present invention provides comprises the following steps:
Testing results use-case, and obtain the sectional drawing at tested interface, described tested interface is produced by described test case;
Preserve described sectional drawing to predeterminated position, and splice described sectional drawing after test terminates in order for dynamic picture;
Generate the test report comprising described dynamic picture.
Preferably, described obtain testing results use-case, and obtain the sectional drawing at tested interface and include:
Intercept the event of specified type in tested interface;
After intercepting success, sectional drawing is carried out to described tested interface, and preserves described sectional drawing to specified location.
Preferably, the described event intercepting specified type in tested interface includes:
Monitor the event of all described specified type in described tested interface;
After listening to the event of described specified type, the triggering behavior of event according to described specified type occur when Between carry out sectional drawing.
Preferably, described testing results use-case, and obtain the sectional drawing at tested interface and include:
In testing control is positioned according to the first configuration file, described first configuration file includes described control Positional information;
It is automatically injected the parameter of the property value of described control to test code using note;
According to described parameter testing results.
Preferably, in described testing results use-case, and obtain inclusion before the sectional drawing at tested interface:
Choose the type of tested interface place container;
Type according to described container generates described tested interface.
Preferably, in described testing results use-case, and obtain inclusion before the sectional drawing at tested interface:
Create multiple container instances for accommodating described tested interface, multiple described container instances are in same test In machine;
Place each described container instance to run to single thread.
Additionally, for achieving the above object, the present invention also provides a kind of software interface test system, described software interface test System includes:
Acquisition module, for testing results use-case, and obtains the sectional drawing at tested interface, described tested interface is by described Test case produces;
Preserving module, for preserving described sectional drawing to predeterminated position, and splices described sectional drawing after test terminates in order For dynamic picture;
First generation module, for generating the test report comprising described dynamic picture.
Preferably, described acquisition module includes:
Blocking module, for intercepting the event of specified type in tested interface;
Sectional drawing unit, for, after intercepting success, carrying out sectional drawing to described tested interface, and preserving described sectional drawing extremely referring to Positioning is put.
Preferably, described blocking module includes:
Monitoring unit, for monitoring the event of all described specified type in described tested interface;
Suspend unit, for when listen to the event of described specified type after, event according to described specified type tactile The time being distributed as occurring carries out sectional drawing.
Preferably, described acquisition module includes:
First dispensing unit, for being positioned to control in testing according to the first configuration file, described first configuration File includes the positional information of described control;
Explain unit, for being automatically injected the property value of described control using note to the parameter of test code;
Running unit, for according to described parameter testing results.
Preferably, described software interface test system also includes:
Choose module, for choosing the type of tested interface place container;
Second generation module, generates described tested interface for the type according to described container.
Preferably, described software interface test system also includes:
Creation module, for creating multiple container instances for accommodating described tested interface, multiple described containers are real Example is in same test machine;
Placement module, runs to single thread for placing each described container instance.
The embodiment of the present invention passes through testing results use-case, and obtains the sectional drawing at tested interface, described tested interface by Described test case produces;Preserve described sectional drawing to predeterminated position, and splice described sectional drawing after test terminates in order and be State picture;Generate the test report comprising described dynamic picture.Tester is formed by checking described tested interface sectional drawing Dynamic picture, dynamic according to time sequencing see whole interface detection implementation procedure so that tester's debugging more Plus simple and convenient, improve testing efficiency.
Brief description
Fig. 1 is the schematic flow sheet of invention software interface detection method first embodiment;
Fig. 2 is to obtain testing results use-case in invention software interface detection method second embodiment, and obtains tested boundary The refinement schematic flow sheet of the sectional drawing in face;
Fig. 3 is the event intercepting specified type in tested interface in invention software interface detection method 3rd embodiment Service class step refinement schematic flow sheet;
Fig. 4 is to obtain testing results use-case in invention software interface detection method fourth embodiment, and obtains tested boundary The refinement schematic flow sheet of the sectional drawing in face;
Fig. 5 is the schematic flow sheet of invention software interface detection method the 5th embodiment;
Fig. 6 is the schematic flow sheet of invention software interface detection method sixth embodiment;
Fig. 7 is the high-level schematic functional block diagram of invention software interface test system first embodiment;
Fig. 8 is the refinement high-level schematic functional block diagram of acquisition module in invention software interface test system second embodiment;
Fig. 9 is the refinement high-level schematic functional block diagram of blocking module in invention software interface test system 3rd embodiment;
Figure 10 is the refinement high-level schematic functional block diagram of acquisition module in invention software interface test system fourth embodiment;
Figure 11 is the high-level schematic functional block diagram of invention software interface test system the 5th embodiment;
Figure 12 is the high-level schematic functional block diagram of invention software interface test system sixth embodiment.
The realization of the object of the invention, functional characteristics and advantage will be described further in conjunction with the embodiments referring to the drawings.
Specific embodiment
It should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
The present invention provides a kind of software interface method of testing, and with reference to Fig. 1, described software interface method of testing includes following step Suddenly:
Step S10, testing results use-case, and obtain the sectional drawing at tested interface, described tested interface is by described test Use-case produces;
In interface detection, using sectional drawing retain tested interface in test corresponding picture so that in tester According to described picture, described tested interface can be analyzed it is not necessary to tester observes the change at tested interface always Change, improve testing efficiency.It should be noted that in some embodiments, a sectional drawing can carried out after Preset Time.
Step S20, preserves described sectional drawing to predeterminated position, and to splice described sectional drawing after test terminates in order is dynamic Picture;
Described sectional drawing quantity is multiple, and the filename of multiple described sectional drawings was ordered using numeral by the generation time Name, uses gif (Graphics Interchange Format, " graphic interchange format ", Yi Zhongdong according to multiple described sectional drawings State picture format) generate the cardon of program gif form, it should be noted that should be with reality using which kind of dynamic picture form Depending on needs.
Step S30, generates the test report comprising described dynamic picture.
Specifically in the present embodiment, load test case and run described test case, in the present embodiment, using survey Submission form action in the tested interface of example on probation as key point, when table is submitted at the tested interface of described test case to Dan Hou, carries out sectional drawing immediately to described tested interface, and preserves described sectional drawing to the file " sectional drawing " specified;Simultaneously according to Sectional drawing time sequencing be named as " 1.jpg " for described sectional drawing filename, " 2.jpg " etc..Test terminate after described " section Figure " file finds described sectional drawing file, and according to filename sequence, multiple described jpg files is spliced into the dynamic of gif form Picture, and insert described motion picture cartoon in test report.Tester is dynamic by checking that described tested interface sectional drawing is formed State picture, dynamic the implementation procedure of whole interface detection is seen so that tester's debugging is simpler according to time sequencing Folk prescription just, improves testing efficiency.
Further, with reference to Fig. 2, based on invention software interface detection method first embodiment, in invention software circle In the method for testing second embodiment of face, described obtain testing results use-case, and obtain the sectional drawing at tested interface and include:
Step S11, intercepts the event of specified type in tested interface;
Space in described tested interface can be clicked in test, select, input, the event such as dragging, these Event often triggers some responses, and these responses can cause change at tested interface, by intercepting these events, so that in quilt Carry out sectional drawing when test interface changes so that tester more has been found that the problem occurring during change, improve test effect Rate.
Step S12, after intercepting success, carries out sectional drawing to described tested interface, and preserves described sectional drawing to specific bit Put.
Specifically in the present embodiment, when described tested interface occurs click event, described tested interface is entered Row sectional drawing, more specifically in described tested interface after a button is clicked, intercepts the click thing of described button immediately Part, carries out sectional drawing to described tested interface immediately after intercepting success, and is saved in specified location.Enable tester very square Just the response for a certain event carries out catching sectional drawing, can be absorbed in the mistake finding certain specific response, improves test Efficiency.
It should be noted that the control of trigger event in some embodiments, also can be extracted after intercepting described particular event The size and location attribute of part, to reach precise positioning, the purpose of accurate sectional drawing.
Further, with reference to Fig. 3, based on invention software interface detection method second embodiment, in invention software circle In the method for testing 3rd embodiment of face, the described event intercepting specified type in tested interface includes:
Step S111, monitors the event of all described specified type in described tested interface;
Step S112, after listening to the event of described specified type, the triggering row of the event according to described specified type Time for occurring carries out sectional drawing;
By registering an audiomonitor at tested interface, use-case monitors the event of specified type, when there being specified type After event occurs, described audiomonitor can be in the event of the described specified type of very first time acquisition and upper to the described event of acquisition Hereafter.After obtaining the context of event of described specified type, suspend acquiescence or the predefined action of described control, insert sectional drawing Action, sectional drawing is carried out to described tested interface, be further continued for after the completion for the treatment of sectional drawing executing described in state the acquiescence of control or predetermined Behavior.
Specifically, in the present embodiment, one special audiomonitor is set at described tested interface, described audiomonitor is only Monitor the event of all controls in described tested interface, be to monitor click event in concrete the present embodiment, further exist In the present embodiment, when there being a button clicked, described audiomonitor listens to described event, and obtains the upper and lower of described button Literary composition, the default behavior of the described button of acquisition, and suspend the execution of described default behavior, first described tested interface is carried out cutting Figure, executes the default behavior of described button again after the completion of sectional drawing, then carry out after 0.1 second cutting after executing described default behavior again Figure.The tested behavior accurately to described tested interface for the tester is caught, further increases survey Examination efficiency.
Further, with reference to Fig. 4, based on invention software interface detection method first embodiment, in invention software circle In the method for testing fourth embodiment of face, described testing results use-case, and obtain the sectional drawing at tested interface and include:
Step S13, positions to control in testing according to the first configuration file, and described first configuration file includes institute State the positional information of control;
In interface detection, the position of described control can be set, traditional method is the literary composition at tested interface It is configured in shelves, but because test needs can be adjusted to described control location, if write set in described document Put, need to distinguish the logical code in described document, in order to modify in the more efficient position to described control, described control The position of part is all disposed within described first configuration file, when a test is begun it is only necessary to load described first configuration file, and Content according to file carries out placing described control.
Step S14, is automatically injected the parameter of the property value of described control to test code using note;
Step S15, according to described parameter testing results.
Specifically, described configuration file is CSS (Cascading Style Sheets cascading style in the present embodiment Table), by loading described CSS file, obtain and be configured to " margin wherein about input frame:5px ", that is, according to outer back gauge 5 The spacing of pixel arranges described input frame;In described test is carried out, need the input value that described input frame is used as parameter During testing results, using the attribute explaining acquisition and the described title identical control being annotated attribute.Even if so that will change It is only necessary to change specific code in the first configuration file during the position of described input frame, simplify adjustment process, improve survey Examination efficiency, is used the mode explained to obtain the property value of needs as parameter from the control at described tested interface simultaneously, enters Improve testing efficiency to one step.
Further, with reference to Fig. 5, based on invention software interface detection method first embodiment, in invention software circle In face method of testing the 5th embodiment, in described testing results use-case, and obtain inclusion before the sectional drawing at tested interface:
Step S40, chooses the type of tested interface place container;
Step S50, the type according to described container generates described tested interface.
In test because different vessels have differences to identical document analysis and displaying it is desirable to tested interface energy is full The needs of all containers of foot, and identical interface can be shown it is necessary to parse to different containers, in the present embodiment, when When being chosen as mobile phone terminal container, described tested interface by mobile phone terminal browser resolves and is shown;It is desktop end container when selecting When, specifically use Chrome browser to be parsed and shown described test interface, held by selecting tested interface The type of device, so that tester switches convenient during described test container again, improves testing efficiency.
Further, with reference to Fig. 6, based on invention software interface detection method first embodiment, in invention software circle In the method for testing sixth embodiment of face, in described testing results use-case, and obtain inclusion before the sectional drawing at tested interface:
Step S60, creates multiple container instances for accommodating described tested interface, and multiple described container instances are same In one test machine;
Step S70, places each described container instance and runs to single thread.
Create multiple containers example in a test machine, decrease the quantity of test machine, saved testing cost; Described container instance is placed into running the multiple institutes it is ensured that running in same test machine in single thread simultaneously State the thread-safe of test container instance, further improve testing efficiency.
Specifically in the present embodiment, often create one be used for accommodate described tested interface container instance when, then A newly-built thread, puts into described container instance in described thread, thus ensureing that each container instance has the single of oneself Thread is it is ensured that thread-safe.
The present invention also provides a kind of software interface test system, refer to Fig. 7, invention software interface test system first Embodiment includes:
Acquisition module 10, for testing results use-case, and obtains the sectional drawing at tested interface, described tested interface is by institute State test case to produce;
In interface detection, using sectional drawing retain tested interface in test corresponding picture so that in tester According to described picture, described tested interface can be analyzed it is not necessary to tester observes the change at tested interface always Change, improve testing efficiency.It should be noted that in some embodiments, carrying out a sectional drawing after Preset Time.
Preserving module 20, for preserving described sectional drawing to predeterminated position, and splices described cutting after test terminates in order Figure is dynamic picture;
Described sectional drawing quantity is multiple, and the filename of multiple described sectional drawings was ordered using numeral by the generation time Name, uses gif (Graphics Interchange Format, " graphic interchange format ", Yi Zhongdong according to multiple described sectional drawings State picture format) generate the cardon of program gif form, it should be noted that should be with reality using which kind of dynamic picture form Depending on needs.
First generation module 30, for generating the test report comprising described dynamic picture.
Specifically in the present embodiment, load test case and run described test case, in the present embodiment, using survey As key point, acquisition module 10 is tested described test case for submission form action in the tested interface of example on probation After the submission form of interface, immediately described tested interface is carried out with sectional drawing, and preserves described sectional drawing " cutting to the file specified Figure ";Simultaneously preserving module 20 according to sectional drawing time sequencing be named as " 1.jpg " for described sectional drawing filename, " 2.jpg " Deng.Test finds described sectional drawing file in described " sectional drawing " file after terminating, and sorts multiple described jpg according to filename File is spliced into the motion picture cartoon of gif form, and the first generation module 30 inserts described motion picture cartoon in test report.Tester is led to Cross the dynamic picture checking that described tested interface sectional drawing is formed, dynamic whole interface detection is seen according to time sequencing Implementation procedure, so that the simpler convenience of tester's debugging, improves testing efficiency.
Further, with reference to Fig. 8, based on invention software interface test system first embodiment, in invention software circle In the test system second embodiment of face, described acquisition module includes:
Blocking module 11, for intercepting the event of specified type in tested interface;
Space in described tested interface can be clicked in test, select, input, the event such as dragging, these Event often triggers some responses, and these responses can cause change at tested interface, by intercepting these events, so that in quilt Carry out sectional drawing when test interface changes so that tester more has been found that the problem occurring during change, improve test effect Rate.
Sectional drawing unit 12, for, after intercepting success, carrying out sectional drawing to described tested interface, and preserving described sectional drawing extremely Specified location.
Specifically in the present embodiment, when described tested interface occurs click event, described tested interface is entered Row sectional drawing, more specifically in described tested interface after a button is clicked, blocking module 11 intercept immediately described in press The click event of button, after intercepting success, sectional drawing unit 12 carries out sectional drawing to described tested interface immediately, and is saved in specific bit Put.The response that tester is very easily directed to a certain event is enable to carry out catching sectional drawing, certain is special can be absorbed in discovery The mistake of provisioning response, improves testing efficiency.
It should be noted that the control of trigger event in some embodiments, also can be extracted after intercepting described particular event The size and location attribute of part, to reach precise positioning, the purpose of accurate sectional drawing.
Further, with reference to Fig. 9, based on invention software interface test system second embodiment, in invention software circle In the test system 3rd embodiment of face, described blocking module includes:
Monitoring unit 111, for monitoring the event of all described specified type in described tested interface;
Suspend unit 112, for after listening to the event of described specified type, event according to described specified type The time that triggering behavior occurs carries out sectional drawing;
By registering an audiomonitor at tested interface, use-case monitors the event of specified type, when there being specified type After event occurs, described audiomonitor can be in the event of the described specified type of very first time acquisition and upper to the described event of acquisition Hereafter.After obtaining the context of event of described specified type, suspend acquiescence or the predefined action of described control, insert sectional drawing Action, sectional drawing is carried out to described tested interface, be further continued for after the completion for the treatment of sectional drawing executing described in state the acquiescence of control or predetermined Behavior.
Specifically, in the present embodiment, one special audiomonitor is set at described tested interface, described audiomonitor is only Monitor the event of all controls in described tested interface, be to monitor click event in concrete the present embodiment, further exist In the present embodiment, when there being a button clicked, monitoring unit 111 calls described audiomonitor to listen to described event, and obtains Take the context of described button, obtain the default behavior of described button, suspend the execution that unit 112 suspends described default behavior, First sectional drawing is carried out to described tested interface, after the completion of sectional drawing, execute the default behavior of described button again, then described in execution Carry out sectional drawing again after 0.1 second after default behavior.Allow tester accurately tested tentative to described tested interface For being caught, further increase testing efficiency.
Further, with reference to Figure 10, based on invention software interface test system first embodiment, in invention software circle In the test system fourth embodiment of face, described acquisition module includes:
First dispensing unit 13, for being positioned to control in testing according to the first configuration file, described first joins Put the positional information that file includes described control;
In interface detection, the position of described control can be set, traditional method is the literary composition at tested interface It is configured in shelves, but because test needs can be adjusted to described control location, if write set in described document Put, need to distinguish the logical code in described document, in order to modify in the more efficient position to described control, described control The position of part is all disposed within described first configuration file, when a test is begun it is only necessary to load described first configuration file, and Content according to file carries out placing described control.
Explain unit 14, for being automatically injected the property value of described control using note to the parameter of test code;
Running unit 15, for according to described parameter testing results.
Specifically, described configuration file is CSS (Cascading Style Sheets cascading style in the present embodiment Table), the first dispensing unit 13 passes through to load described CSS file, obtains and is configured to " margin wherein about input frame:5px ", Arrange described input frame according to the spacing of outer back gauge 5 pixel;In described test is carried out, running unit 15 needs using described When the input value of input frame is as parameter testing results, explains unit 14 and obtained and the described title being annotated attribute using note The attribute of identical control.Even if so that will change during the position of described input frame it is only necessary to change special in the first configuration file Fixed code, simplifies adjustment process, improves testing efficiency, the control from described tested interface using the mode explained simultaneously The property value obtaining needs in part, as parameter, further increasing testing efficiency.
Further, with reference to Figure 11, based on invention software interface test system first embodiment, in invention software circle In face test system the 5th embodiment, described software interface test system also includes:
Choose module 40, for choosing the type of tested interface place container;
Second generation module 50, generates described tested interface for the type according to described container.
In test because different vessels have differences to identical document analysis and displaying it is desirable to tested interface energy is full The needs of all containers of foot, and identical interface can be shown it is necessary to parse to different containers, in the present embodiment, when When selection module 40 is chosen as mobile phone terminal container, tested interface described in the second generation module 50 is by mobile phone terminal browser resolves simultaneously Show;When selecting delivery block 40 to select to be desktop end container, when specifically using Chrome browser, the second generation module 50 parse and show that described test interface is the computerized version page, by selecting the type of tested interface chamber so that tester Member switches convenient during described test container again, improves testing efficiency.
Further, with reference to Figure 12, based on invention software interface test system first embodiment, in invention software circle In the test system sixth embodiment of face, described software interface test system also includes:
Creation module 60, for creating multiple container instances for accommodating described tested interface, multiple described containers Example is in same test machine;
Placement module 70, runs to single thread for placing each described container instance.
In a test machine, creation module 60 creates multiple containers example, decreases the quantity of test machine, saves Testing cost;70 described container instances of placement module are placed in single thread running it is ensured that same simultaneously The thread-safe of the multiple described test container instance running in test machine, further improves testing efficiency.
Specifically in the present embodiment, when often creating a container instance for accommodating described tested interface, then newly Build a thread, described container instance is put in described thread, thus ensureing that each container instance has the single line of oneself Journey is it is ensured that thread-safe.
These are only the preferred embodiments of the present invention, not thereby limit the present invention the scope of the claims, every using this Equivalent structure or equivalent flow conversion that bright description and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (12)

1. a kind of software interface method of testing is it is characterised in that described software interface method of testing comprises the following steps:
Testing results use-case, and obtain the sectional drawing at tested interface, described tested interface is produced by described test case;
Preserve described sectional drawing to predeterminated position, and splice described sectional drawing after test terminates in order for dynamic picture;
Generate the test report comprising described dynamic picture.
2. software interface method of testing as claimed in claim 1 is it is characterised in that described obtain testing results use-case, and obtains quilt The sectional drawing of test interface includes:
Intercept the event of specified type in tested interface;
After intercepting success, sectional drawing is carried out to described tested interface, and preserves described sectional drawing to specified location.
3. software interface method of testing as claimed in claim 2 is it is characterised in that specified type in the tested interface of described interception Event include:
Monitor the event of all described specified type in described tested interface;
After listening to the event of described specified type, the time that the triggering behavior of the event according to described specified type occurs enters Row sectional drawing.
4. software interface method of testing as claimed in claim 1 is it is characterised in that described testing results use-case, and obtains tested The sectional drawing at examination interface includes:
In testing control is positioned according to the first configuration file, described first configuration file includes the position of described control Information;
It is automatically injected the parameter of the property value of described control to test code using note;
According to described parameter testing results.
5. software interface method of testing as claimed in claim 1 is it is characterised in that in described testing results use-case, and obtains quilt Include before the sectional drawing of test interface:
Choose the type of tested interface place container;
Type according to described container generates described tested interface.
6. as any one of claim 1 to 5 software interface method of testing it is characterised in that described testing results use Example, and obtain inclusion before the sectional drawing at tested interface:
Create multiple container instances for accommodating described tested interface, multiple described container instances are in same test machine Interior;
Place each described container instance to run to single thread.
7. a kind of software interface test system is it is characterised in that described software interface test system includes:
Acquisition module, for testing results use-case, and obtains the sectional drawing at tested interface, described tested interface is by described test Use-case produces;
Preserving module, for preserving described sectional drawing to predeterminated position, and splices described sectional drawing after test terminates in order and is State picture;
First generation module, for generating the test report comprising described dynamic picture.
8. software interface test system as claimed in claim 7 is it is characterised in that described acquisition module includes:
Blocking module, for intercepting the event of specified type in tested interface;
Sectional drawing unit, for, after intercepting success, carrying out sectional drawing to described tested interface, and preserving described sectional drawing to specific bit Put.
9. software interface test system as claimed in claim 8 is it is characterised in that described blocking module includes:
Monitoring unit, for monitoring the event of all described specified type in described tested interface;
Suspend unit, for after listening to the event of described specified type, the triggering row of the event according to described specified type Time for occurring carries out sectional drawing.
10. software interface test system as claimed in claim 7 is it is characterised in that described acquisition module includes:
First dispensing unit, for being positioned to control in testing according to the first configuration file, described first configuration file Positional information including described control;
Explain unit, for being automatically injected the property value of described control using note to the parameter of test code;
Running unit, for according to described parameter testing results.
11. software interface test systems as claimed in claim 7 are it is characterised in that described software interface test system also includes:
Choose module, for choosing the type of tested interface place container;
Second generation module, generates described tested interface for the type according to described container.
12. as any one of claim 7 to 11 software interface test system it is characterised in that described software interface survey Test system also includes:
Creation module, for creating multiple container instances for accommodating described tested interface, multiple described container instances exist In same test machine;
Placement module, runs to single thread for placing each described container instance.
CN201611108107.3A 2016-12-05 2016-12-05 Software interface test method and software interface test system Pending CN106383789A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611108107.3A CN106383789A (en) 2016-12-05 2016-12-05 Software interface test method and software interface test system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611108107.3A CN106383789A (en) 2016-12-05 2016-12-05 Software interface test method and software interface test system

Publications (1)

Publication Number Publication Date
CN106383789A true CN106383789A (en) 2017-02-08

Family

ID=57959474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611108107.3A Pending CN106383789A (en) 2016-12-05 2016-12-05 Software interface test method and software interface test system

Country Status (1)

Country Link
CN (1) CN106383789A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108763097A (en) * 2018-06-06 2018-11-06 上海携程国际旅行社有限公司 Automated testing method, device, electronic equipment, storage medium
CN109857663A (en) * 2019-01-26 2019-06-07 北京工业大学 Automatic test platform of the crucial word drive in conjunction with image similarity
CN110888794A (en) * 2018-09-10 2020-03-17 北京京东尚科信息技术有限公司 Interface test method and device
CN115547402A (en) * 2022-10-24 2022-12-30 深圳三地一芯电子有限责任公司 Zero drop monitoring method, device, equipment and storage medium
CN116932414A (en) * 2023-09-14 2023-10-24 深圳市智慧城市科技发展集团有限公司 Method and equipment for generating interface test case and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140237455A1 (en) * 2013-02-20 2014-08-21 Kony, Inc. Detection of repetition areas during testing in an event driven, multichannel architecture
CN104050076A (en) * 2013-03-12 2014-09-17 阿里巴巴集团控股有限公司 Testing method, device and system of application software on mobile terminal
CN105103148A (en) * 2013-04-11 2015-11-25 惠普发展公司,有限责任合伙企业 Automated contextual-based software localization
CN105335295A (en) * 2015-12-01 2016-02-17 上海斐讯数据通信技术有限公司 Response type layout interface testing method and system and browser
CN105426144A (en) * 2015-11-02 2016-03-23 上海聚力传媒技术有限公司 Method and device for testing adaptive multiresolution of application program
CN105512043A (en) * 2015-12-24 2016-04-20 百度在线网络技术(北京)有限公司 Test method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140237455A1 (en) * 2013-02-20 2014-08-21 Kony, Inc. Detection of repetition areas during testing in an event driven, multichannel architecture
CN104050076A (en) * 2013-03-12 2014-09-17 阿里巴巴集团控股有限公司 Testing method, device and system of application software on mobile terminal
CN105103148A (en) * 2013-04-11 2015-11-25 惠普发展公司,有限责任合伙企业 Automated contextual-based software localization
CN105426144A (en) * 2015-11-02 2016-03-23 上海聚力传媒技术有限公司 Method and device for testing adaptive multiresolution of application program
CN105335295A (en) * 2015-12-01 2016-02-17 上海斐讯数据通信技术有限公司 Response type layout interface testing method and system and browser
CN105512043A (en) * 2015-12-24 2016-04-20 百度在线网络技术(北京)有限公司 Test method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李天祥: "《Android物联网开发细致入门与最佳实践》", 30 June 2016, 中国铁道出版社 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108763097A (en) * 2018-06-06 2018-11-06 上海携程国际旅行社有限公司 Automated testing method, device, electronic equipment, storage medium
CN110888794A (en) * 2018-09-10 2020-03-17 北京京东尚科信息技术有限公司 Interface test method and device
CN109857663A (en) * 2019-01-26 2019-06-07 北京工业大学 Automatic test platform of the crucial word drive in conjunction with image similarity
CN109857663B (en) * 2019-01-26 2022-04-12 北京工业大学 Keyword driving and image similarity combined automatic test platform
CN115547402A (en) * 2022-10-24 2022-12-30 深圳三地一芯电子有限责任公司 Zero drop monitoring method, device, equipment and storage medium
CN116932414A (en) * 2023-09-14 2023-10-24 深圳市智慧城市科技发展集团有限公司 Method and equipment for generating interface test case and computer readable storage medium
CN116932414B (en) * 2023-09-14 2024-01-05 深圳市智慧城市科技发展集团有限公司 Method and equipment for generating interface test case and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN106383789A (en) Software interface test method and software interface test system
CN104461900B (en) Test method, control server, test terminal and the system of user interface
Murphy-Hill et al. An interactive ambient visualization for code smells
Amalfitano et al. A general framework for comparing automatic testing techniques of Android mobile apps
Kevic et al. Tracing software developers' eyes and interactions for change tasks
CN104331373A (en) Monkey test system and method
US7636871B1 (en) Method for comparing customer and test load data with comparative functional coverage hole analysis
CN111078567B (en) Report generation method, terminal and storage medium of automatic test platform
JP6438651B2 (en) Method and system for searching and displaying scattered logs
CN108595343A (en) The test method and device of application program
CN103049371A (en) Testing method and testing device of Android application programs
US9824075B1 (en) System and method for interaction coverage
CN103530564A (en) Method and system for testing and verifying SQL injection vulnerability
WO2017134677A1 (en) Methods and systems for software related problem solution
CN106484605A (en) A kind of method and system realizing software automated testing
US20100332904A1 (en) Testing of Distributed Systems
Ma et al. A toolkit for usability testing of mobile applications
Holl et al. Mobile application quality assurance
CN104156305A (en) Application program testing method and device
KR20120040419A (en) Method for generating test case by auto analysis of user interface
Patil et al. Enhanced UI Automator Viewer with improved Android accessibility evaluation features
CN106375140A (en) Pressure testing method and device
CN103955425B (en) Webpage (WEB) exploring testing device and method
CN108763054A (en) Test effect methods of exhibiting, electronic device and the storage medium of test cases
US8464103B2 (en) Generating a functional coverage model from a trace

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20171204

Address after: 510000 Guangzhou City, Guangzhou, Guangdong, Fangcun Avenue, one of the 314 self compiled

Applicant after: Guangzhou Pinwei Software Co., Ltd.

Address before: Liwan District Fangcun Huahai street Guangzhou city Guangdong province 510000 No. 20 self 1-5 building (only for office use)

Applicant before: Guangzhou VIPSHOP Information and Technology Co., Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170208