CN109828900A - Test script automatic generation method, device, electronic equipment and storage medium - Google Patents
Test script automatic generation method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN109828900A CN109828900A CN201811535755.6A CN201811535755A CN109828900A CN 109828900 A CN109828900 A CN 109828900A CN 201811535755 A CN201811535755 A CN 201811535755A CN 109828900 A CN109828900 A CN 109828900A
- Authority
- CN
- China
- Prior art keywords
- interface
- ginseng
- name
- input frame
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 180
- 238000000034 method Methods 0.000 title claims abstract description 52
- 238000003860 storage Methods 0.000 title claims abstract description 17
- 241000208340 Araliaceae Species 0.000 claims abstract description 279
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 claims abstract description 279
- 235000003140 Panax quinquefolius Nutrition 0.000 claims abstract description 279
- 235000008434 ginseng Nutrition 0.000 claims abstract description 279
- 230000006870 function Effects 0.000 description 14
- 238000005304 joining Methods 0.000 description 14
- 238000004590 computer program Methods 0.000 description 13
- 230000004044 response Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 238000005457 optimization Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000013522 software testing Methods 0.000 description 1
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
A kind of test script automatic generation method, which comprises obtain the page elements in the interface testing page;The interface name called in the interface testing page is determined according to the page elements;It is obtained and the matched interface data of the interface name from the journal file that the record interface prestored is tested;According to it is preset enter ginseng mark and it is preset go out ginseng mark obtain from the interface data into ginseng information and go out ginseng information;According to page elements by it is described enter join information and it is described go out ginseng information be directed respectively into the interface testing page corresponding position and automatically generate test script.The present invention also provides a kind of device, electronic equipment and storage mediums, can automatically generate test script, to automatically generate testing tool.
Description
Technical field
The present invention relates to software testing technology fields, and in particular to a kind of test script automatic generation method, device, electronics
Equipment and storage medium.
Background technique
When testing interface, it is often necessary to record interface testing script and be monitored to interface or regression test.
Traditional recording interface testing script method is manually to enter to join information and out ginseng information one one for interface according to interface document
It is input to the corresponding position of the platform page or Webpage aly, will likely can so join due to being manually entered into ginseng information and out
Information it is incorrect and cause test crash and due to be manually entered into ginseng information and go out ginseng information cause test the time required to it is longer.
Summary of the invention
In consideration of it, it is necessary to provide a kind of test script automatic generation method, device, electronic equipment and storage medium, it can
Automatically generate test script.
The first aspect of the application provides a kind of test script automatic generation method, which comprises
Obtain the page elements in the interface testing page;
The interface name called in the interface testing page is determined according to the page elements;
It is obtained and the matched interface data of the interface name from the journal file that the record interface prestored is tested;
According to it is preset enter ginseng mark and it is preset go out ginseng mark obtain from the interface data into ginseng information and go out to join
Information;
According to page elements by it is described enter join information and it is described go out ginseng information be directed respectively into it is right in the interface testing page
The position answered automatically generates test script.
In alternatively possible implementation, the page elements include customized pattern, input frame and customized pattern
Positional relationship between input frame;Or
The page elements include the position between customized pattern, input frame, choice box, customized pattern and input frame
Positional relationship between relationship and customized pattern and choice box.
In alternatively possible implementation, called being determined in the interface testing page according to the page elements
Interface name before, the method also includes:
If the page elements are input frame, closed by the position between customized pattern and customized pattern and input frame
System determines the title of the input frame;
Whether the title for determining the input frame is interface name;
If the entitled interface name of the input frame, determine that the input frame is interface name input frame;
If the page elements are choice box, closed by the position between customized pattern and customized pattern and choice box
System determines the title of the choice box;
Whether the title for determining the choice box is interface name;
If the entitled interface name of the choice box, determine that the choice box is interface name choice box.
In alternatively possible implementation, is determined according to the page elements and to be called in the interface testing page
Interface name includes:
Determine the interface name input frame or interface name choice box in the page elements;
Determine that the content in the interface name input frame or the interface name choice box is the interface testing page
The interface name called in face.
In alternatively possible implementation, obtained and the interface from the journal file that the record interface prestored is tested
The interface data of name-matches includes:
The journal file of the record interface test prestored described in traversal determines day of the record interface test prestored
In will file with the matched target interface title of interface name called in the interface testing page;
In the journal file that the record interface prestored according to preset rules and target interface title determination is tested
Interface data.
In alternatively possible implementation, according to page elements by it is described enter join information and it is described go out ginseng information lead respectively
Entering in the interface testing page corresponding position to automatically generate test script includes:
Obtain the source code template prestored corresponding to the interface testing page;
By it is described enter join information and it is described go out ginseng information in the source code template entering ginseng and go out join match;
It adds and matched enters to join information and go out ginseng information and automatically generate test script into the source code template.
In alternatively possible implementation, enter to join in information and the ginseng information and the source code template out by described
Enter ginseng and go out ginseng matching and includes:
Enter to join described in determination in information with represent characters matching into ginseng name in the source code template and enter to join name;
Enter to join in information described in determination and enters ginseng value with represent characters matching into ginseng value in the source code template;
Ginseng out in the determining information of ginseng out with the text and/or character match that represent out ginseng value in the source code template
Value;
Go out the ginseng out in ginseng information with the text and/or character match that represent out ginseng name in the source code template described in determining
Name.
The second aspect of the application provides a kind of test script automatically generating device, and described device includes:
Module is obtained, for obtaining the page elements in the interface testing page;
Interface name determining module, for determining that is called in the interface testing page connects according to the page elements
Mouth title;
Interface data determining module, for being obtained and the interface name from the journal file that the record interface prestored is tested
Claim matched interface data;
Data obtaining module, for according to it is preset enter ginseng mark and it is preset go out ginseng mark obtain from the interface data
It is taken into ginseng information and goes out ginseng information;
Test script generation module, for according to page elements by it is described enter join information and it is described go out ginseng information be directed respectively into
Corresponding position automatically generates test script in the interface testing page.
The third aspect of the application provides a kind of electronic equipment, and the electronic equipment includes processor and memory, described
Processor realizes test script described in any one as above when being used to execute at least one instruction stored in the memory
Automatic generation method.
The fourth aspect of the application provides a kind of computer readable storage medium, the computer-readable recording medium storage
There is at least one instruction, at least one described instruction is executed by processor to realize test script described in any one as above certainly
Dynamic generation method.
This programme obtains into ginseng information from journal file according to the page elements in the interface testing page and goes out ginseng letter
Breath, and by it is described enter join information and it is described go out ginseng information be directed respectively into the interface testing page corresponding position and give birth to automatically
It avoids to be manually entered and believe into ginseng so as to be automatically filled according to the interface UI into ginseng information and go out ginseng information at test script
Test crash caused by breath and out ginseng information and testing time are too long.
Detailed description of the invention
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description
Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field
For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow chart for the test script automatic generation method that the embodiment of the present invention one provides.
Fig. 2 is the structure chart of test script automatically generating device provided by Embodiment 2 of the present invention.
Fig. 3 is the schematic diagram for the electronic equipment that the embodiment of the present invention three provides.
The present invention that the following detailed description will be further explained with reference to the above drawings.
Main element symbol description
Test script automatically generating device 20
Obtain module 21
Interface name determining module 22
Interface data determining module 23
Data obtaining module 24
Test script generation module 25
Electronic equipment 3
Memory 31
Processor 32
Computer program 33
The present invention that the following detailed description will be further explained with reference to the above drawings.
Specific embodiment
To better understand the objects, features and advantages of the present invention, with reference to the accompanying drawing and specific real
Applying example, the present invention will be described in detail.It should be noted that in the absence of conflict, embodiments herein and embodiment
In feature can be combined with each other.
In the following description, numerous specific details are set forth in order to facilitate a full understanding of the present invention, described embodiment is only
It is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill
Personnel's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Unless otherwise defined, all technical and scientific terms used herein and belong to technical field of the invention
The normally understood meaning of technical staff is identical.Term as used herein in the specification of the present invention is intended merely to description tool
The purpose of the embodiment of body, it is not intended that in the limitation present invention.
Embodiment one
Fig. 1 is the flow chart for the test script automatic generation method that the embodiment of the present invention one provides.The method is applied to
In electronic equipment, the electronic equipment can be any electronic product, for example, personal computer, tablet computer, intelligent hand
Machine, personal digital assistant (PersonalDigital Assistant, PDA) etc..As shown in Figure 1, the test script is given birth to automatically
It can comprise the following steps that at method
S11: the page elements in the interface testing page are obtained.
The interface testing page can be the page of the platform for being tested interface or the page of webpage.At this
In embodiment, the page elements include the position between customized pattern, input frame, choice box, customized pattern and input frame
Set the positional relationship between relationship and customized pattern and choice box.The customized pattern include customized text and/or from
Define picture.The customized text may include the text represented into ginseng name, such as parameter name or same request send ginseng together
Number: title etc., the customized text may also include the text represented into ginseng value, such as parameter value or same request are sent together
Parameter: value etc., the customized text may also include the text and/or character for representing out ginseng value, such as code or number of responses
Word etc..The customized text may also include the text and/or character for representing out ginseng name, such as msg or response effect etc..Institute
Stating customized text may also include the text for representing interface name, such as interface or interface name etc..The customized text
It may also include the text for representing request, such as method etc..The customized picture can be the picture with the customized text.
The quantity of the input frame can be multiple.The method also includes: if the page elements are input frame, by certainly
Define the title that the positional relationship between pattern and customized pattern and input frame determines the input frame.The customized pattern
Positional relationship between input frame can be located at left side, right side, upside or the downside of input frame for customized pattern.By making by oneself
Positional relationship between adopted pattern and customized pattern and input frame determines that the title of the input frame can be, such as the first input
It is shown on the left of frame and determines that the entitled of first input frame enters to join name when representing the text into ginseng name, on the left of the second input frame
Show determined when representing the text into ginseng value second input frame it is entitled enter ginseng value, show on the upside of third input frame
It determines that the entitled of the third input frame goes out to join name when representing out the text of ginseng name, shows and represents out on the upside of the 4th input frame
The entitled ginseng value out of the 4th input frame is determined when the text of ginseng value, is shown on the left of the 5th input frame and is represented interface name
Text when determine the entitled interface name of the 5th input frame.In the present embodiment, the method also includes: according to institute
The title for stating input frame determines that the input frame is into joining name input frame;The input frame is determined according to the title of the input frame
To enter ginseng value input frame;Determine that the input frame is ginseng name input frame according to the title of the input frame;According to the input
The title of frame determines that the input frame is ginseng value input frame;Or determine that the input frame is according to the title of the input frame
Interface name input frame.Wherein, determine that the input frame is to comprise determining that into joining name input frame according to the title of the input frame
Whether the title of the input frame is into joining name;If the entitled of the input frame enters to join name, determine that the input frame is into ginseng
Name input frame.Determine that the input frame is to comprise determining that the input frame into ginseng value input frame according to the title of the input frame
Title whether be into ginseng value;If the input frame it is entitled enter ginseng value, determine that the input frame is into ginseng value input frame.Root
According to the title of the input frame determine the input frame be ginseng name input frame comprise determining that the input frame title whether be
Join name out;If the entitled of the input frame goes out to join name, determine that the input frame is ginseng name input frame.According to the input frame
Title determine that the input frame is ginseng value input frame to comprise determining that whether the title of the input frame is ginseng value out;If institute
The entitled ginseng value out for stating input frame, determines that the input frame is ginseng value input frame.It is determined according to the title of the input frame
The input frame is interface name input frame comprises determining that whether the title of the input frame is interface name;If the input
The entitled interface name of frame determines that the input frame is interface name input frame.It is described enter join name input frame for input connect
Mouth enters to join name.It is described enter ginseng value input frame for input interface enter ginseng value.It is described to go out to join name input frame for input interface
Go out ginseng name.The ginseng value input frame out goes out ginseng value for input interface.The interface name input frame is used for input interface
Title.Wherein, the interface name in the interface name input frame can be manually entered or automatic according to interface inventory for user
Input.
The method also includes: if the page elements are choice box, pass through customized pattern and customized pattern and choosing
Select the title that the positional relationship between frame determines the choice box.Positional relationship between the customized pattern and choice box can
It is located at left side, right side, upside or the downside of choice box for customized pattern.Pass through customized pattern and customized pattern and selection
Positional relationship between frame determines that the title of the choice box can be, for example, choice box below show represent request text when
Determine the entitled request of the choice box.In the present embodiment, the method also includes: the title according to the choice box is true
The fixed choice box is request selecting frame.Specifically: whether the title for determining the choice box is request;If the choice box
Entitled request determines that the choice box is request selecting frame.The request selecting frame for user from required parameter for selecting
Select GET request, PUT request, DELETE request or POST request.In other embodiments, the interface name input frame can
It omits, the method also includes: whether the title for determining the choice box is interface name;If the entitled of the choice box connects
Mouth title determines that the choice box is interface name choice box.The interface name choice box is used for for user in interface name
It is selected in choice box in interface name, the interface name in automatic sequentially selection choice box or automated randomized selection choice box
Interface name.
In the present embodiment, the title of each input frame and each choice box can be determining by preset method, such as
When the page elements of the first row of the interface testing page are followed successively by input frame A, input frame B and customized pattern interface name, really
The entitled interface name of the fixed input frame B.
Obviously, this programme is not only limited to above-described embodiment, can also there is other deformations, such as: omit the request selecting
Frame, the request selecting frame can be replaced request input frame.The request input frame is used to input GET request for user, PUT is asked
It asks, DELETE request or POST request.
The page elements obtained in the interface testing page can be to receive acquisition when request automatically generates test script
Page elements in the interface testing page or for when detecting input or the interface name in the interface name input frame
Claim to select to obtain the page elements in the interface testing page when interface name in choice box.The request automatically generates test script
Generation when the representative request in the interface testing page can be selected to automatically generate the virtual box of test script for user.
The page elements obtained in the interface testing page can include: obtain the image of the interface testing page and pass through figure
As the page elements in image of the identification to identify the interface testing page.The page elements obtained in the interface testing page are also
Can include: the page elements in the interface testing page are directly acquired by pattern and control recognition methods.
S12: the interface name called in the interface testing page is determined according to the page elements.
Determine that the interface name called in the interface testing page includes: according to the page elements
X1: the interface name input frame or interface name choice box in the page elements are determined.
Determine that interface name input frame or interface name choice box in the page elements comprise determining that the page
The customized pattern that interface name is represented in element determines the customized pattern for representing interface name according to the preset method
Corresponding input frame or choice box is interface name input frame or interface name choice box.Such as: determine the page member
In element includes that the customized pattern of interface perhaps interface name determines and is located at the making by oneself including interface or interface name
Input frame or choice box on the left of adopted pattern are interface name input frame or interface name choice box.
X2: determine that the content in the interface name input frame or the interface name choice box is the interface testing
The interface name called in the page.
Determine that the content in the interface name input frame or the interface name choice box is the interface testing page
The interface name called in face includes:
Obtained from the interface name input frame or the interface name choice box interface name input frame or
The content that interface name choice box includes described in person determines the content by the interface name called in the interface testing page
Claim.Such as: the content that the interface name input frame includes :/elis_smp_ is obtained from the interface name input frame
Portal_dmz/do/userLogin/loginInfo, determination/elis_smp_portal_dmz/do/userLogin/
LoginInfo is the interface name called in the interface testing page.
S13: it is obtained and the matched interface data of the interface name from the journal file that the record interface prestored is tested.
The journal file of the record interface test prestored can be log included by the platform or the webpage
The journal file for the test interface that the journal file or the log module included by other systems that module is recorded record.
The journal file includes a plurality of log.Every log may include that a beginning flag and/or one terminate mark, so as to pass through
Beginning flag and/or termination mark are stated to determine a complete log.It is produced when every one interface testing of log recording
Raw interface data.The interface data contains, such as the ginseng information out for entering to join information and interface of interface name, interface
Deng.The journal file for user is subsequent for checking, to be analyzed test process and be traced.
It obtains from the journal file that the record interface prestored is tested with the matched interface data of the interface name and includes:
The journal file of the record interface test prestored described in traversal determines day of the record interface test prestored
In will file with the matched target interface title of interface name called in the interface testing page;
In the journal file that the record interface prestored according to preset rules and target interface title determination is tested
The interface data.The log that the record interface prestored according to preset rules and target interface title determination is tested
After the interface data in file comprises determining that the beginning flag before the target interface title and the target interface title
Beginning flag between data be the interface data, determine termination flag and the target before the target interface title
The data between termination flag after interface name are the beginning flag before the interface data or the target interface title
And the data between the termination flag after the target interface title are the interface data.
S14: according to it is preset enter ginseng mark and it is preset go out ginseng mark obtain from the interface data into ginseng information and
Join information out.
It is described it is preset enter ginseng mark be request or input etc..It is described it is preset go out ginseng mark be response or
Person output etc..According to it is preset enter ginseng mark and it is preset go out ginseng mark obtain from the interface data into ginseng information and go out
Joining information includes:
A1: from obtained in the interface data it is preset enter ginseng mark after data and it is preset go out ginseng mark after number
According to.
It is described it is preset enter ginseng mark after data include into join name and it is described enter join name it is corresponding enter ginseng value, such as:
Username:Ann, wherein enter and join entitled username, entering ginseng value is Ann.It is described it is preset go out ginseng mark after data include
Ginseng value and the corresponding ginseng name out of the value of ginseng out out, such as: 00001: logging in success, wherein ginseng value is 00001 out, joins name out
To log in success.
A2: determine it is described it is preset enter ginseng mark after data be into joining information.
It is described enter to join information include into joining name and enter ginseng value.Determine it is described it is preset enter ginseng mark after data be into ginseng believe
Breath include: according to preset condition determine it is described it is preset enter ginseng mark after data in enter to join name and enter ginseng value.It is described pre-
If condition be it is described it is preset enter ginseng mark after data in preceding data be into join name and posterior data be into ginseng
Data before value or symbol ": " are that the data after joining name and symbol ": " are into ginseng value.
A3: the data after determining the preset mark of ginseng out are to join information.
The packet of ginseng out includes ginseng value and goes out ginseng name.Data after determining the preset mark of ginseng out are to join letter
Breath includes: to determine the preset ginseng value out joined in the data after indicating out according to preset condition and go out to join name.It is described pre-
If condition be it is described it is preset go out ginseng mark after data in preceding data be that ginseng value and posterior data be to join
Data before name or symbol ": " are that the data after ginseng value and symbol ": " are ginseng name.
S15: according to page elements by it is described enter join information and it is described go out ginseng information be directed respectively into the interface testing page
In corresponding position automatically generate test script.
According to page elements by it is described enter join information and it is described go out ginseng information be directed respectively into it is right in the interface testing page
The position answered includes: to automatically generate test script
B1: the source code template prestored corresponding to the interface testing page is obtained.
In the present embodiment, the interface testing page is run by the source code template and is generated.The source code template
In include into ginseng and go out join.It is described to enter to join and enter join the text of name for representative, such as transmission is joined together for parameter name or same request
Number: title etc., and the text into ginseng value is represented, such as parameter value or same request send parameter together: value etc..It is described that ginseng can out
For the text and/or character for representing out ginseng value, such as code or responding digital etc., and represent out the text and/or word of ginseng name
Symbol, such as msg or response effect etc..
B2: by it is described enter join information and it is described go out ginseng information in the source code template entering ginseng and go out join match.
It is described by it is described enter join information and it is described go out ginseng information with entering ginseng and going out to join in the source code template match and include:
Enter to join described in determination in information with represent characters matching into ginseng name in the source code template and enter to join name;
Enter to join in information described in determination and enters ginseng value with represent characters matching into ginseng value in the source code template;
Ginseng out in the determining information of ginseng out with the text and/or character match that represent out ginseng value in the source code template
Value;
Go out the ginseng out in ginseng information with the text and/or character match that represent out ginseng name in the source code template described in determining
Name.
B3: addition is matched to be entered to join information and go out ginseng information into the source code template to automatically generate test script.
The addition is matched to be entered to join information and go out ginseng information into the source code template to automatically generate test script packet
It includes:
Enter to join the corresponding position that the representative that name is added in the source code template enters to join the text of name by matched;
By it is matched enter the representative that is added in the source code template of ginseng value enter ginseng value text corresponding position;
The representative that ginseng value is added in the source code template matched out is gone out to the correspondence position of the text and/or character of ginseng value
It sets;
The matched name of ginseng out is added to the correspondence position that the representative in the source code template goes out to join the text and/or character of name
It sets.
The corresponding position determines according to the corresponding position relationship of the input frame and the customized pattern, such as when
The input frame determines that corresponding position is right side when being located at the right side of the customized pattern;Described in being located at when the input frame certainly
Determine that corresponding position is downside when defining the downside of pattern.
The embodiment of the present invention one obtains the page elements in the interface testing page;It is connect according to page elements determination
The interface name called in mouth test page;It is obtained and the interface name from the journal file that the record interface prestored is tested
Claim matched interface data;According to it is preset enter ginseng mark and it is preset go out ginseng mark obtain from the interface data and to believe into ginseng
Breath and out ginseng information;According to page elements by it is described enter join information and it is described go out ginseng information be directed respectively into the interface testing page
In corresponding position automatically generate test script.Since the embodiment of the present invention one is surveyed by the page of platform or the interface of webpage
Page elements in the examination page obtain into ginseng information from journal file and go out ginseng information, and enter to join information and described by described
Ginseng information is directed respectively into the interface testing page corresponding position to automatically generate test script, so as to according to UI circle out
Face avoids that ginseng information is manually entered and goes out test caused by ginseng information and loses to be automatically filled in into ginseng information and go out ginseng information
It loses and the testing time is too long.
It is the detailed description carried out to method provided by the present invention above.According to different requirements, in shown flow chart
The execution sequence of square can change, and certain squares can be omitted, and the method for optimization aim application is also in above-mentioned optimization method
Selectivity is applied in combination, or is applied in combination with other above-mentioned unmentioned optimization methods.Below to provided by the present invention
Device is described.
Embodiment two
Fig. 2 is the functional block diagram of test script automatically generating device provided by Embodiment 2 of the present invention.In some implementations
In example, the test script automatically generating device 20 is run in electronic equipment.The electronic equipment can be any electricity
Sub- product, for example, personal computer, tablet computer, smart phone, personal digital assistant (PersonalDigital
Assistant, PDA) etc..The test script automatically generating device 20 may include multiple function as composed by program code segments
It can module.The program code of each program segment in the test script automatically generating device 20 can store in memory,
And as performed by least one processor, to automatically generate test script.
In the present embodiment, function of the test script automatically generating device 20 according to performed by it can be divided into
Multiple functional modules.The functional module may include: to obtain module 21, interface name determining module 22, interface data to determine
Module 23, data obtaining module 24 and test script generation module 25.The so-called module of the present invention refers to that one kind can be by least
One processor is performed and can complete the series of computation machine program segment of fixed function, and storage is in memory.
The acquisition module 21, for obtaining the page elements in the interface testing page.
The interface testing page can be the page of the platform for being tested interface or the page of webpage.At this
In embodiment, the page elements include the position between customized pattern, input frame, choice box, customized pattern and input frame
Set the positional relationship between relationship and customized pattern and choice box.The customized pattern include customized text and/or from
Define picture.The customized text may include the text represented into ginseng name, such as parameter name or same request send ginseng together
Number: title etc., the customized text may also include the text represented into ginseng value, such as parameter value or same request are sent together
Parameter: value etc., the customized text may also include the text and/or character for representing out ginseng value, such as code or number of responses
Word etc..The customized text may also include the text and/or character for representing out ginseng name, such as msg or response effect etc..Institute
Stating customized text may also include the text for representing interface name, such as interface or interface name etc..The customized text
It may also include the text for representing request, such as method etc..The customized picture can be the picture with the customized text.
The quantity of the input frame can be multiple.The acquisition module 21 is also used to: if the page elements are input frame,
The title of the input frame is determined by the positional relationship between customized pattern and customized pattern and input frame.It is described to make by oneself
Positional relationship between adopted pattern and input frame can be located at left side, right side, upside or the downside of input frame for customized pattern.It is logical
The positional relationship crossed between customized pattern and customized pattern and input frame determines that the title of the input frame can be, such as the
It is shown on the left of one input frame and determines that the entitled of first input frame enters to join name when representing the text into ginseng name, the second input
Show on the left of frame determined when representing the text into ginseng value second input frame it is entitled enter ginseng value, on the upside of third input frame
It determines that the entitled of the third input frame goes out to join name when showing the text for representing out ginseng name, is shown on the upside of the 4th input frame
The entitled ginseng value out of the 4th input frame is determined when representing out the text of ginseng value, is shown representative on the left of the 5th input frame and is connect
The entitled interface name of the 5th input frame is determined when the text of mouth title.In the present embodiment, the acquisition module 21
It is also used to: determining that the input frame is into joining name input frame according to the title of the input frame;According to the title of the input frame
Determine that the input frame is into ginseng value input frame;Determine that the input frame is ginseng name input according to the title of the input frame
Frame;Determine that the input frame is ginseng value input frame according to the title of the input frame;Or the title according to the input frame
Determine that the input frame is interface name input frame.Wherein, determine that the input frame is into ginseng according to the title of the input frame
Name input frame comprises determining that whether the title of the input frame is into joining name;If the entitled of the input frame enters to join name, determine
The input frame is into joining name input frame.Determine that the input frame is into ginseng value input frame packet according to the title of the input frame
Include: whether the title for determining the input frame is into ginseng value;If the input frame it is entitled enter ginseng value, determine the input frame
To enter ginseng value input frame.According to the title of the input frame determine the input frame be ginseng name input frame comprise determining that it is described
Whether the title of input frame is to join name out;If the entitled of the input frame goes out to join name, determine that the input frame is that ginseng name is defeated out
Enter frame.Determine that the input frame is the name for ginseng value input frame and comprising determining that the input frame according to the title of the input frame
It whether is referred to as ginseng value out;If the entitled ginseng value out of the input frame, determines that the input frame is ginseng value input frame.According to institute
The title for stating input frame determines that the input frame is interface name input frame comprises determining that whether the title of the input frame is to connect
Mouth title;If the entitled interface name of the input frame, determine that the input frame is interface name input frame.It is described to enter to join name
Input frame enters to join name for input interface.It is described enter ginseng value input frame for input interface enter ginseng value.The name of ginseng out is defeated
Enter frame and goes out ginseng name for input interface.The ginseng value input frame out goes out ginseng value for input interface.The interface name is defeated
Enter frame for input interface title.Wherein, the interface name in the interface name input frame can be manually entered for user or
It is automatically entered according to interface inventory.
The acquisition module 21 is also used to: if the page elements are choice box, passing through customized pattern and self-defining image
Positional relationship between case and choice box determines the title of the choice box.Position between the customized pattern and choice box
Relationship can be located at left side, right side, upside or the downside of choice box for customized pattern.Pass through customized pattern and customized pattern
Positional relationship between choice box determines that the title of the choice box can be, such as shows below choice box and represent request
The entitled request of the choice box is determined when text.In the present embodiment, the acquisition module 21 is also used to: according to the choosing
The title for selecting frame determines that the choice box is request selecting frame.Specifically: whether the title for determining the choice box is request;If
The entitled request of the choice box determines that the choice box is request selecting frame.The request selecting frame be used for for user from
GET request, PUT request, DELETE request or POST request are selected in required parameter.In other embodiments, the interface
Title input frame can omit, and the acquisition module 21 is also used to: whether the title for determining the choice box is interface name;If institute
The entitled interface name for stating choice box determines that the choice box is interface name choice box.The interface name choice box is used
In selected in interface name choice box for user interface name, the automatic interface name sequentially selected in choice box or from
Interface name in dynamic random selection choice box.
In the present embodiment, the title of each input frame and each choice box can be determining by preset method, such as
When the page elements of the first row of the interface testing page are followed successively by input frame A, input frame B and customized pattern interface name, really
The entitled interface name of the fixed input frame B.
Obviously, this programme is not only limited to above-described embodiment, can also there is other deformations, such as: omit the request selecting
Frame, the request selecting frame can be replaced request input frame.The request input frame is used to input GET request for user, PUT is asked
It asks, DELETE request or POST request.
The page elements obtained in the interface testing page can be to receive acquisition when request automatically generates test script
Page elements in the interface testing page or for when detecting input or the interface name in the interface name input frame
Claim to select to obtain the page elements in the interface testing page when interface name in choice box.The request automatically generates test script
Generation when the representative request in the interface testing page can be selected to automatically generate the virtual box of test script for user.
The page elements obtained in the interface testing page can include: obtain the image of the interface testing page and pass through figure
As the page elements in image of the identification to identify the interface testing page.The page elements obtained in the interface testing page are also
Can include: the page elements in the interface testing page are directly acquired by pattern and control recognition methods.
The interface name determining module 22 is adjusted for being determined in the interface testing page according to the page elements
Interface name.
Determine that the interface name called in the interface testing page includes: according to the page elements
X1: the interface name input frame or interface name choice box in the page elements are determined.
Determine that interface name input frame or interface name choice box in the page elements comprise determining that the page
The customized pattern that interface name is represented in element determines the customized pattern for representing interface name according to the preset method
Corresponding input frame or choice box is interface name input frame or interface name choice box.Such as: determine the page member
In element includes that the customized pattern of interface perhaps interface name determines and is located at the making by oneself including interface or interface name
Input frame or choice box on the left of adopted pattern are interface name input frame or interface name choice box.
X2: determine that the content in the interface name input frame or the interface name choice box is the interface testing
The interface name called in the page.
Determine that the content in the interface name input frame or the interface name choice box is the interface testing page
The interface name called in face includes:
Obtained from the interface name input frame or the interface name choice box interface name input frame or
The content that interface name choice box includes described in person determines the content by the interface name called in the interface testing page
Claim.Such as: the content that the interface name input frame includes :/elis_smp_ is obtained from the interface name input frame
Portal_dmz/do/userLogin/loginInfo, determination/elis_smp_portal_dmz/do/userLogin/
LoginInfo is the interface name called in the interface testing page.
The interface data determining module 23, for obtained from the journal file that the record interface that prestores is tested with it is described
The matched interface data of interface name.
The journal file of the record interface test prestored can be log included by the platform or the webpage
The journal file for the test interface that the journal file or the log module included by other systems that module is recorded record.
The journal file includes a plurality of log.Every log may include that a beginning flag and/or one terminate mark, so as to pass through
Beginning flag and/or termination mark are stated to determine a complete log.It is produced when every one interface testing of log recording
Raw interface data.The interface data contains, such as the ginseng information out for entering to join information and interface of interface name, interface
Deng.The journal file for user is subsequent for checking, to be analyzed test process and be traced.
It obtains from the journal file that the record interface prestored is tested with the matched interface data of the interface name and includes:
The journal file of the record interface test prestored described in traversal determines day of the record interface test prestored
In will file with the matched target interface title of interface name called in the interface testing page;
In the journal file that the record interface prestored according to preset rules and target interface title determination is tested
The interface data.The log that the record interface prestored according to preset rules and target interface title determination is tested
After the interface data in file comprises determining that the beginning flag before the target interface title and the target interface title
Beginning flag between data be the interface data, determine termination flag and the target before the target interface title
The data between termination flag after interface name are the beginning flag before the interface data or the target interface title
And the data between the termination flag after the target interface title are the interface data.
The data obtaining module 24, for entering to join mark and the preset mark of ginseng out from the number of ports according to preset
It is obtained in into ginseng information and goes out ginseng information.
It is described it is preset enter ginseng mark be request or input etc..It is described it is preset go out ginseng mark be response or
Person output etc..According to it is preset enter ginseng mark and it is preset go out ginseng mark obtain from the interface data into ginseng information and go out
Joining information includes:
A1: from obtained in the interface data it is preset enter ginseng mark after data and it is preset go out ginseng mark after number
According to.
It is described it is preset enter ginseng mark after data include into join name and it is described enter join name it is corresponding enter ginseng value, such as:
Username:Ann, wherein enter and join entitled username, entering ginseng value is Ann.It is described it is preset go out ginseng mark after data include
Ginseng value and the corresponding ginseng name out of the value of ginseng out out, such as: 00001: logging in success, wherein ginseng value is 00001 out, joins name out
To log in success.
A2: determine it is described it is preset enter ginseng mark after data be into joining information.
It is described enter to join information include into joining name and enter ginseng value.Determine it is described it is preset enter ginseng mark after data be into ginseng believe
Breath include: according to preset condition determine it is described it is preset enter ginseng mark after data in enter to join name and enter ginseng value.It is described pre-
If condition be it is described it is preset enter ginseng mark after data in preceding data be into join name and posterior data be into ginseng
Data before value or symbol ": " are that the data after joining name and symbol ": " are into ginseng value.
A3: the data after determining the preset mark of ginseng out are to join information.
The packet of ginseng out includes ginseng value and goes out ginseng name.Data after determining the preset mark of ginseng out are to join letter
Breath includes: to determine the preset ginseng value out joined in the data after indicating out according to preset condition and go out to join name.It is described pre-
If condition be it is described it is preset go out ginseng mark after data in preceding data be that ginseng value and posterior data be to join
Data before name or symbol ": " are that the data after ginseng value and symbol ": " are ginseng name.
The test script generation module 25, for entering to join information and the ginseng information point out by described according to page elements
Do not import in the interface testing page corresponding position to automatically generate test script.
According to page elements by it is described enter join information and it is described go out ginseng information be directed respectively into it is right in the interface testing page
The position answered includes: to automatically generate test script
B1: the source code template prestored corresponding to the interface testing page is obtained.
In the present embodiment, the interface testing page is run by the source code template and is generated.The source code template
In include into ginseng and go out join.It is described to enter to join and enter join the text of name for representative, such as transmission is joined together for parameter name or same request
Number: title etc., and the text into ginseng value is represented, such as parameter value or same request send parameter together: value etc..It is described that ginseng can out
For the text and/or character for representing out ginseng value, such as code or responding digital etc., and represent out the text and/or word of ginseng name
Symbol, such as msg or response effect etc..
B2: by it is described enter join information and it is described go out ginseng information in the source code template entering ginseng and go out join match.
It is described by it is described enter join information and it is described go out ginseng information with entering ginseng and going out to join in the source code template match and include:
Enter to join described in determination in information with represent characters matching into ginseng name in the source code template and enter to join name;
Enter to join in information described in determination and enters ginseng value with represent characters matching into ginseng value in the source code template;
Ginseng out in the determining information of ginseng out with the text and/or character match that represent out ginseng value in the source code template
Value;
Go out the ginseng out in ginseng information with the text and/or character match that represent out ginseng name in the source code template described in determining
Name.
B3: addition is matched to be entered to join information and go out ginseng information into the source code template to automatically generate test script.
The addition is matched to be entered to join information and go out ginseng information into the source code template to automatically generate test script packet
It includes:
Enter to join the corresponding position that the representative that name is added in the source code template enters to join the text of name by matched;
By it is matched enter the representative that is added in the source code template of ginseng value enter ginseng value text corresponding position;
The representative that ginseng value is added in the source code template matched out is gone out to the correspondence position of the text and/or character of ginseng value
It sets;
The matched name of ginseng out is added to the correspondence position that the representative in the source code template goes out to join the text and/or character of name
It sets.
The corresponding position determines according to the corresponding position relationship of the input frame and the customized pattern, such as when
The input frame determines that corresponding position is right side when being located at the right side of the customized pattern;Described in being located at when the input frame certainly
Determine that corresponding position is downside when defining the downside of pattern.
The embodiment of the present invention two is by obtaining the page elements in the module acquisition interface testing page;Interface name determines mould
Root tuber determines the interface name called in the interface testing page according to the page elements;Interface data determining module is from pre-
It is obtained and the matched interface data of the interface name in the journal file for the record interface test deposited;Data obtaining module according to
It is preset enter ginseng mark and it is preset go out ginseng mark obtained from the interface data into ginseng information and go out ginseng information;Test script
Generation module according to page elements by it is described enter join information and it is described go out ginseng information be directed respectively into it is right in the interface testing page
The position answered automatically generates test script.Since the embodiment of the present invention two passes through the page of platform or the interface testing page of webpage
Page elements in face enter to join information and the ginseng out obtained from journal file into ginseng information and go out ginseng information by described
Information is directed respectively into the interface testing page corresponding position to automatically generate test script, so as to according to the interface UI come
Be automatically filled in into ginseng information and go out ginseng information, avoid be manually entered ginseng information and go out ginseng information caused by test crash and
Testing time is too long.
The above-mentioned integrated unit realized in the form of software function module, can store and computer-readable deposit at one
In storage media.Above-mentioned software function module is stored in a storage medium, including some instructions are with so that an electronics is set
Standby or processor (processor) executes the part of each embodiment the method for the present invention.
Embodiment three
Fig. 3 is the schematic diagram for the electronic equipment that the embodiment of the present invention three provides.
The electronic equipment 3 includes: memory 31, at least one processor 32 and is stored in the memory 31 simultaneously
The computer program 33 that can be run at least one described processor 32.At least one described processor 32 executes the calculating
The step in above method embodiment is realized when machine program 33.Alternatively, at least one described processor 32 executes the computer
The function of each module in above-mentioned apparatus embodiment is realized when program 33.
Illustratively, the computer program 33 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 31, and are executed by least one described processor 32, to complete this hair
It is bright.One or more of module/units can be the series of computation machine program instruction section that can complete specific function, this refers to
Enable section for describing implementation procedure of the computer program 33 in the electronic equipment 3.For example, the computer program 33
Module shown in Fig. 2 can be divided into, each module concrete function is referring to embodiment two.
The electronic equipment 3 can be any electronic product, for example, personal computer, tablet computer, intelligent hand
Machine, personal digital assistant (PersonalDigital Assistant, PDA) etc..It will be understood by those skilled in the art that described
Schematic diagram 3 is only the example of electronic equipment 3, does not constitute the restriction to electronic equipment 3, may include more or more than illustrating
Few component perhaps combines certain components or different components, such as the electronic equipment 3 can also include input and output
Equipment, network access equipment, bus etc..
At least one described processor 32 can be central processing unit (Central Processing Unit, CPU),
It can also be other general processors, digital signal processor (Digital Signal Processor, DSP), dedicated integrated
Circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..The processor 32 can be microprocessor or the processor 32 is also possible to any conventional processing
Device etc., the processor 32 are the control centres of the electronic equipment 3, utilize various interfaces and the entire electronic equipment of connection
3 various pieces.
The memory 31 can be used for storing the computer program 33 and/or module/unit, and the processor 32 passes through
Operation executes the computer program and/or module/unit being stored in the memory 31, and calls and be stored in memory
Data in 31 realize the various functions of the electronic equipment 3.The memory 31 can mainly include storing program area and storage
Data field, wherein storing program area can application program needed for storage program area, at least one function (for example sound plays
Function, image player function etc.) etc.;Storage data area, which can be stored, uses created data (such as sound according to electronic equipment 3
Frequency evidence, phone directory etc.) etc..In addition, memory 31 may include high-speed random access memory, it can also include non-volatile
Memory, such as hard disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital
(Secure Digital, SD) card, flash card (Flash Card), at least one disk memory, flush memory device or other
Volatile solid-state part.
If the integrated module/unit of the electronic equipment 3 is realized in the form of SFU software functional unit and as independent
Product when selling or using, can store in a computer readable storage medium.Based on this understanding, the present invention is real
All or part of the process in existing above-described embodiment method, can also instruct relevant hardware come complete by computer program
At the computer program can be stored in a computer readable storage medium, which is being executed by processor
When, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the computer program includes computer program code, described
Computer program code can be source code form, object identification code form, executable file or certain intermediate forms etc..The meter
Calculation machine readable medium may include: can carry the computer program code any entity or device, recording medium, USB flash disk,
Mobile hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory
Device (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It needs to illustrate
It is that the content that the computer-readable medium includes can be fitted according to the requirement made laws in jurisdiction with patent practice
When increase and decrease, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium does not include electric carrier wave letter
Number and telecommunication signal.
In several embodiments provided by the present invention, it should be understood that disclosed electronic equipment, device and method,
It may be implemented in other ways.For example, the apparatus embodiments described above are merely exemplary, for example, the list
The division of member, only a kind of logical function partition, there may be another division manner in actual implementation.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in same treatment unit
It is that each unit physically exists alone, can also be integrated in same unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of hardware adds software function module.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie
In the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter
From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power
Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims
Variation is included in the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.This
Outside, it is clear that one word of " comprising " is not excluded for other units or, odd number is not excluded for plural number.The multiple units stated in system claims
Or device can also be implemented through software or hardware by a unit or device.
Finally it should be noted that the above examples are only used to illustrate the technical scheme of the present invention and are not limiting, although reference
Preferred embodiment describes the invention in detail, those skilled in the art should understand that, it can be to of the invention
Technical solution is modified or equivalent replacement, without departing from the spirit of the technical scheme of the invention range.
Claims (10)
1. a kind of test script automatic generation method, which is characterized in that the described method includes:
Obtain the page elements in the interface testing page;
The interface name called in the interface testing page is determined according to the page elements;
It is obtained and the matched interface data of the interface name from the journal file that the record interface prestored is tested;
According to it is preset enter ginseng mark and it is preset go out ginseng mark obtain from the interface data into ginseng information and go out ginseng information;
According to page elements by it is described enter join information and it is described go out ginseng information be directed respectively into it is corresponding in the interface testing page
Position automatically generates test script.
2. test script automatic generation method as described in claim 1, it is characterised in that:
The page elements include the positional relationship between customized pattern, input frame and customized pattern and input frame;Or
The page elements include that the position between customized pattern, input frame, choice box, customized pattern and input frame is closed
System and the positional relationship between customized pattern and choice box.
3. test script automatic generation method as claimed in claim 2, which is characterized in that determined according to the page elements
Before the interface name called in the interface testing page, the method also includes:
If the page elements are input frame, true by the positional relationship between customized pattern and customized pattern and input frame
The title of the fixed input frame;
Whether the title for determining the input frame is interface name;If the entitled interface name of the input frame, described in determination
Input frame is interface name input frame;
If the page elements are choice box, true by the positional relationship between customized pattern and customized pattern and choice box
The title of the fixed choice box;
Whether the title for determining the choice box is interface name;
If the entitled interface name of the choice box, determine that the choice box is interface name choice box.
4. test script automatic generation method as claimed in claim 3, which is characterized in that determine institute according to the page elements
Stating the interface name called in the interface testing page includes:
Determine the interface name input frame or interface name choice box in the page elements;
Determine that the content in the interface name input frame or the interface name choice box is in the interface testing page
The interface name called.
5. test script automatic generation method as described in claim 1, which is characterized in that tested from the record interface prestored
It obtains in journal file with the matched interface data of the interface name and includes:
The journal file of the record interface test prestored described in traversal is literary come the log for determining the record interface test prestored
In part with the matched target interface title of interface name called in the interface testing page;
Connecing in the journal file that the record interface prestored according to preset rules and target interface title determination is tested
Mouth data.
6. test script automatic generation method as described in claim 1, which is characterized in that enter to join by described according to page elements
Information and it is described go out ginseng information be directed respectively into the interface testing page corresponding position to automatically generate test script and include:
Obtain the source code template prestored corresponding to the interface testing page;
By it is described enter join information and it is described go out ginseng information in the source code template entering ginseng and go out join match;
It adds and matched enters to join information and go out ginseng information and automatically generate test script into the source code template.
7. test script automatic generation method as claimed in claim 6, which is characterized in that by it is described enter join information and it is described go out
Ginseng information joins with entering in the source code template and goes out to join to match
Enter to join described in determination in information with represent characters matching into ginseng name in the source code template and enter to join name;
Enter to join in information described in determination and enters ginseng value with represent characters matching into ginseng value in the source code template;
Determine the ginseng value out in the information of ginseng out with the text and/or character match that represent out ginseng value in the source code template;
Ginseng name out in the determining information of ginseng out with the text and/or character match that represent out ginseng name in the source code template.
8. a kind of test script automatically generating device, which is characterized in that described device includes:
Module is obtained, for obtaining the page elements in the interface testing page;
Interface name determining module, for determining the interface name called in the interface testing page according to the page elements
Claim;
Interface data determining module, for being obtained and the interface name from the journal file that the record interface prestored is tested
The interface data matched;
Data obtaining module, for according to it is preset enter ginseng mark and it is preset go out ginseng mark obtain from the interface data into
Join information and goes out ginseng information;
Test script generation module, for according to page elements by it is described enter join information and it is described go out ginseng information be directed respectively into it is described
Corresponding position automatically generates test script in the interface testing page.
9. a kind of electronic equipment, which is characterized in that the electronic equipment includes processor and memory, and the processor is for holding
Test script as claimed in any of claims 1 to 7 in one of claims is realized when at least one instruction stored in the row memory
Automatic generation method.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has at least one
Instruction, at least one described instruction are executed by processor to realize test script as claimed in any of claims 1 to 7 in one of claims
Automatic generation method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811535755.6A CN109828900A (en) | 2018-12-14 | 2018-12-14 | Test script automatic generation method, device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811535755.6A CN109828900A (en) | 2018-12-14 | 2018-12-14 | Test script automatic generation method, device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109828900A true CN109828900A (en) | 2019-05-31 |
Family
ID=66858772
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811535755.6A Pending CN109828900A (en) | 2018-12-14 | 2018-12-14 | Test script automatic generation method, device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109828900A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111782546A (en) * | 2020-07-23 | 2020-10-16 | 北京斗米优聘科技发展有限公司 | Automatic interface testing method and device based on machine learning |
CN112084108A (en) * | 2020-08-28 | 2020-12-15 | 山东英信计算机技术有限公司 | Test script generation method and device and related components |
CN113094281A (en) * | 2021-04-28 | 2021-07-09 | 杭州网易云音乐科技有限公司 | Hybrid App testing method and device |
CN113342644A (en) * | 2021-05-31 | 2021-09-03 | 中国工商银行股份有限公司 | Test script automatic generation method and device based on syntax analysis technology |
CN113468058A (en) * | 2021-07-09 | 2021-10-01 | 深圳希施玛数据科技有限公司 | Regression testing method and device for software-as-a-service platform and electronic equipment |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101135989A (en) * | 2006-08-31 | 2008-03-05 | 中国银联股份有限公司 | Automatization test method and device for Web applied system |
US20110214107A1 (en) * | 2010-03-01 | 2011-09-01 | Experitest, Ltd. | Method and system for testing graphical user interfaces |
CN103873318A (en) * | 2012-12-18 | 2014-06-18 | 阿里巴巴集团控股有限公司 | Website automated testing method and automated testing system |
CN104111852A (en) * | 2014-07-18 | 2014-10-22 | 南京富士通南大软件技术有限公司 | Web application automated testing system and testing method based on data drive |
CN104423961A (en) * | 2013-09-11 | 2015-03-18 | 阿里巴巴集团控股有限公司 | Method and system for generating testing script |
US9021440B1 (en) * | 2014-08-11 | 2015-04-28 | Pmc-Sierra Us, Inc. | System and method for automated test script generation |
CN104572463A (en) * | 2014-12-31 | 2015-04-29 | 广州酷狗计算机科技有限公司 | Method and device for testing interface information |
US20160283364A1 (en) * | 2015-03-24 | 2016-09-29 | Hcl Technologies Limited | System and method for automatically testing an application programming interface (api) |
US20170147480A1 (en) * | 2013-04-23 | 2017-05-25 | Google Inc. | Test script generation |
CN108388515A (en) * | 2018-03-06 | 2018-08-10 | 平安科技(深圳)有限公司 | Test data generating method, device, equipment and computer readable storage medium |
CN108628741A (en) * | 2018-04-10 | 2018-10-09 | 平安科技(深圳)有限公司 | Webpage test method, device, electronic equipment and medium |
CN108664406A (en) * | 2018-05-22 | 2018-10-16 | 深圳壹账通智能科技有限公司 | Exploitation test method, terminal device and the medium of mobile application |
CN108845950A (en) * | 2018-08-03 | 2018-11-20 | 平安科技(深圳)有限公司 | Test device, the method for test and storage medium |
-
2018
- 2018-12-14 CN CN201811535755.6A patent/CN109828900A/en active Pending
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101135989A (en) * | 2006-08-31 | 2008-03-05 | 中国银联股份有限公司 | Automatization test method and device for Web applied system |
US20110214107A1 (en) * | 2010-03-01 | 2011-09-01 | Experitest, Ltd. | Method and system for testing graphical user interfaces |
CN103873318A (en) * | 2012-12-18 | 2014-06-18 | 阿里巴巴集团控股有限公司 | Website automated testing method and automated testing system |
US20170147480A1 (en) * | 2013-04-23 | 2017-05-25 | Google Inc. | Test script generation |
CN104423961A (en) * | 2013-09-11 | 2015-03-18 | 阿里巴巴集团控股有限公司 | Method and system for generating testing script |
CN104111852A (en) * | 2014-07-18 | 2014-10-22 | 南京富士通南大软件技术有限公司 | Web application automated testing system and testing method based on data drive |
US9021440B1 (en) * | 2014-08-11 | 2015-04-28 | Pmc-Sierra Us, Inc. | System and method for automated test script generation |
CN104572463A (en) * | 2014-12-31 | 2015-04-29 | 广州酷狗计算机科技有限公司 | Method and device for testing interface information |
US20160283364A1 (en) * | 2015-03-24 | 2016-09-29 | Hcl Technologies Limited | System and method for automatically testing an application programming interface (api) |
CN108388515A (en) * | 2018-03-06 | 2018-08-10 | 平安科技(深圳)有限公司 | Test data generating method, device, equipment and computer readable storage medium |
CN108628741A (en) * | 2018-04-10 | 2018-10-09 | 平安科技(深圳)有限公司 | Webpage test method, device, electronic equipment and medium |
CN108664406A (en) * | 2018-05-22 | 2018-10-16 | 深圳壹账通智能科技有限公司 | Exploitation test method, terminal device and the medium of mobile application |
CN108845950A (en) * | 2018-08-03 | 2018-11-20 | 平安科技(深圳)有限公司 | Test device, the method for test and storage medium |
Non-Patent Citations (2)
Title |
---|
FEI SONG等: "An XPath-based Approach to Reusing Test Scripts", 《2017 14TH WEB INFORMATION SYSTEMS AND APPLICATIONS CONFERENCE (WISA)》 * |
张竞帆: "基于Selenium的一种Web自动化测试系统的设计与实现", 《中国优秀硕士学位论文全文数据库》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111782546A (en) * | 2020-07-23 | 2020-10-16 | 北京斗米优聘科技发展有限公司 | Automatic interface testing method and device based on machine learning |
CN112084108A (en) * | 2020-08-28 | 2020-12-15 | 山东英信计算机技术有限公司 | Test script generation method and device and related components |
CN113094281A (en) * | 2021-04-28 | 2021-07-09 | 杭州网易云音乐科技有限公司 | Hybrid App testing method and device |
CN113094281B (en) * | 2021-04-28 | 2024-05-03 | 杭州网易云音乐科技有限公司 | Test method and device for hybrid App |
CN113342644A (en) * | 2021-05-31 | 2021-09-03 | 中国工商银行股份有限公司 | Test script automatic generation method and device based on syntax analysis technology |
CN113342644B (en) * | 2021-05-31 | 2024-03-26 | 中国工商银行股份有限公司 | Automatic test script generation method and device based on grammar analysis technology |
CN113468058A (en) * | 2021-07-09 | 2021-10-01 | 深圳希施玛数据科技有限公司 | Regression testing method and device for software-as-a-service platform and electronic equipment |
CN113468058B (en) * | 2021-07-09 | 2024-05-03 | 深圳希施玛数据科技有限公司 | Regression testing method and device for software as service platform and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109828900A (en) | Test script automatic generation method, device, electronic equipment and storage medium | |
CN112333549B (en) | Video processing method and device, electronic equipment and storage medium | |
CN109657038A (en) | The method for digging, device and electronic equipment of a kind of question and answer to data | |
CN111815169B (en) | Service approval parameter configuration method and device | |
CN110833693B (en) | Game running method and device, storage medium and electronic device | |
CN111562965B (en) | Page data verification method and device based on decision tree | |
CN109815039A (en) | Test method and device, storage medium, the computer equipment of business software | |
CN109582550A (en) | A kind of method, apparatus and server obtaining full dose business scenario failure collection | |
CN106487603A (en) | A kind of response test method and device | |
CN110764999A (en) | Automatic testing method and device, computer device and storage medium | |
CN109815448B (en) | Slide generation method and device | |
CN107295082A (en) | Running software processing method, apparatus and system | |
CN108255702A (en) | A kind of test case creation method, apparatus, equipment and storage medium | |
CN102426567A (en) | Graphical editing and debugging system of automatic answer system | |
CN109710240A (en) | Flow chart decomposition method and system | |
CN110472298B (en) | Method, device, equipment and storage medium for constructing electric power market model | |
CN106980960B (en) | Knowledge point system manufacturing method and device | |
CN114942944A (en) | Training content generation and data processing method, device, equipment and storage medium | |
CN106250755A (en) | For generating the method and device of identifying code | |
CN109684033A (en) | Cloud platform bare machine management method, storage medium, electronic equipment and system | |
CN113158988B (en) | Financial statement processing method, device and computer readable storage medium | |
CN112487771B (en) | Report generation method, report generation device and terminal | |
CN109766089A (en) | Code generating method, device, electronic equipment and storage medium based on cardon | |
CN110398681B (en) | Double-strip-line inspection method and related device | |
CN109522210A (en) | Interface testing parameters analysis method, device, electronic device and storage medium |
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 | ||
AD01 | Patent right deemed abandoned |
Effective date of abandoning: 20240119 |
|
AD01 | Patent right deemed abandoned |