CN110221969A - A kind of page function test method and relevant apparatus - Google Patents

A kind of page function test method and relevant apparatus Download PDF

Info

Publication number
CN110221969A
CN110221969A CN201910421957.6A CN201910421957A CN110221969A CN 110221969 A CN110221969 A CN 110221969A CN 201910421957 A CN201910421957 A CN 201910421957A CN 110221969 A CN110221969 A CN 110221969A
Authority
CN
China
Prior art keywords
test
function
tested
mentioned
case
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
CN201910421957.6A
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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201910421957.6A priority Critical patent/CN110221969A/en
Publication of CN110221969A publication Critical patent/CN110221969A/en
Priority to PCT/CN2019/120086 priority patent/WO2020233034A1/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
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Debugging And Monitoring (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention discloses a kind of page function test method and relevant apparatus, this method is suitable for H5 application performance test.This method comprises: receiving the voice messaging of user feedback page function, semantic analysis is carried out so that voice messaging is converted to text information to voice messaging;Information processing is carried out to obtain multiple test keywords to above-mentioned text information, the functional node to be tested on the target pages is determined according to the operating procedure of above-mentioned multiple test keyword descriptions;Multiple sub- test cases with the multiple test Keywords matching are determined from test case feature database;The functional node to be tested on target pages is tested according to multiple sub- Test cases technology target detection use-cases, and based on target detection use-case.Using the embodiment of the present invention, functional node to be tested can be quickly positioned based on speech information content and realizes corresponding test, fast response time, applicability height.

Description

A kind of page function test method and relevant apparatus
Technical field
The present invention relates to field of computer technology more particularly to a kind of page function test methods and relevant apparatus.
Background technique
With the fast development of science and technology and the progress of industry, there is enhancement people quality of life, changes people's life mould The various electric consumers of formula, such as: personal computer, mobile phone, tablet computer etc..Dependence of the people to these equipment Property also increasingly aggravates, and more and more production firms are devoted to produce more Related products, and therefore, production firms are invariably It is dedicated to promoting the performance of product.The product or mobile device-based software produced when mobile device manufacturers is listing Before, it usually needs page functional test is first carried out to the page on software, measuring and calculation machine platform product or soft is come with this Whether each page function in part version is normal.
In recent years, computer platform product or software version update more and more frequently, the publication of each version needs Each page function on software is tested.And after the problem of receiving user feedback and/or complaining, it needs to be directed to Particular problem writes test case to carry out correlation function test, long processing period, and testing efficiency is not high.
Summary of the invention
The embodiment of the present invention provides a kind of page function test method and relevant apparatus, can be based on the voice letter that user inputs Breath determines that functional node to be tested simultaneously implements corresponding test, can quick response user feedback, improve the flexibility and test of test Efficiency, applicability are high.
In a first aspect, the embodiment of the present invention provides a kind of page function test method, this method comprises:
The voice messaging for receiving user feedback page function carries out semantic analysis to above-mentioned voice messaging with by above-mentioned voice Information is converted to text information;
Information processing is carried out to obtain multiple test keywords, according to above-mentioned multiple test keywords to above-mentioned text information The operating procedure of description determines the functional node to be tested on above-mentioned target pages, wherein a test keyword is for retouching State an operating procedure of the page function of above-mentioned user feedback;
Multiple sub- test cases with above-mentioned multiple test Keywords matchings are determined from test case feature database, In, a sub- test case is used to test an operating procedure of above-mentioned functional node to be tested;
According to above-mentioned multiple sub- Test cases technology target detection use-cases, and based on above-mentioned target detection use-case to above-mentioned mesh Functional node to be tested on the mark page is tested.
In embodiments of the present invention, the voice messaging that can be directly based upon user's input realizes the function to be tested of target pages The quick determination of node, can the page function problem directly to customer complaint and/or feedback test, greatly improve test Efficiency, applicability are high.
With reference to first aspect, in a kind of possible embodiment, before the voice messaging of above-mentioned reception user input, on State method further include:
Multiple function samples for being used to describe page function are obtained from the function sample database of page function test system, And/or it is obtained from the history test record in above-mentioned page function test system multiple for describing the function sample of page function This, wherein a function sample is for describing a page function;
Above-mentioned test case feature database is constructed based on above-mentioned multiple function samples for describing page function.
It in embodiments of the present invention, can be in the function section to be tested to target pages by constructing test case feature database When point is tested, test case is directly obtained from test case feature database, is avoided after determining functional node to be tested It writes the time and performance consumption brought by test case, flexibility is good.
With reference to first aspect, above-mentioned based on above-mentioned multiple for describing page function in a kind of possible embodiment Function sample construct above-mentioned test case feature database and include:
By above-mentioned multiple function samples for being used to describe page function according to the operating procedure of page function split with Obtain multiple subfunction samples, wherein a subfunction sample is for describing the corresponding function sample of said one subfunction sample This operating procedure;
Multiple sub- test cases are generated according to the operating procedure of above-mentioned multiple subfunction pattern representations, wherein a son is surveyed Example on probation is for testing an operating procedure described in the corresponding subfunction sample of the sub- test case of said one, said one The corresponding functional label of sub- test case, said one functional label is for marking the sub- test case of said one to be tested Operating procedure;
Above-mentioned test case feature database is constructed based on above-mentioned multiple sub- test cases.
In embodiments of the present invention, by adding functional label for each sub- test case, it can greatly shorten and be used from test The time that the corresponding sub- test case of each subfunction sample is obtained in example feature database, improve test speed.
With reference to first aspect, in a kind of possible embodiment, it is above-mentioned determined from test case feature database with it is upper Stating multiple multiple sub- test cases for testing Keywords matchings includes:
The functional label of each sub- test case in above-mentioned test case feature database is crucial with above-mentioned multiple tests respectively Each test keyword in word is matched;
On any sub- test case marked with any any functional label for matching of test keyword is determined as The corresponding sub- test case of any test keyword is stated, to determine multiple sub- tests corresponding to above-mentioned multiple test keywords Use-case.
In embodiments of the present invention, by the functional label of each sub- test case in test case feature database respectively with it is multiple Each test keyword in test keyword is matched, and be can be improved and is obtained sub- test case from test case feature database Accuracy, while also can avoid screening bring time loss one by one from test case feature database, applicability is high.
With reference to first aspect, above-mentioned according to above-mentioned multiple sub- Test cases technology mesh in a kind of possible embodiment Test case is marked, and test bag is carried out to the functional node to be tested on above-mentioned target pages based on above-mentioned target detection use-case It includes:
Above-mentioned multiple sub- test cases are arranged according to the function statement sequence of above-mentioned functional node to be tested to obtain Target detection use-case is generated to test case group, and based on above-mentioned test case group;
Construct target detection scene corresponding with the running environment of above-mentioned target pages, the base under above-mentioned target detection scene The functional node to be tested on above-mentioned target pages is tested in above-mentioned target detection use-case.
In embodiments of the present invention, target detection use-case is obtained by combination that multiple sub- test cases directly sort, it can Different sub- test cases and directly productive target test case are chosen for different functional nodes to be tested, instead of previous The mode of different test cases is write for different functional nodes to be tested, so that page functional test is more flexible, test Speed is faster.
With reference to first aspect, in a kind of possible embodiment,
In embodiments of the present invention, it is above-mentioned based on above-mentioned target detection use-case to the function to be tested on above-mentioned target pages After node is tested, the above method further include:
The test data after testing the functional node to be tested on above-mentioned target pages is obtained, and is based on above-mentioned survey Examination data generate the corresponding target detection report of the functional node to be tested on above-mentioned target pages;
The report of above-mentioned target detection is stored to designated memory space to obtain spare test report, above-mentioned specified storage is empty Between in further include the test report for removing one or more other functional node to be tested except above-mentioned functional node to be tested It accuses;
When showing and/or inquiring the corresponding test report of any of the above-described functional node to be tested based on display equipment, from The corresponding test report of any of the above-described functional node to be tested is obtained in above-mentioned spare test report and will be any of the above-described to be tested The corresponding test report of functional node is exported to above-mentioned display equipment.
In embodiments of the present invention, the test report of generation reflects test result in real time, by different functional nodes to be tested Test report carry out storage when can be to identical and/or similar page function problem from retest or to target detection Use-case and/or target detection scene carry out appropriate adjustment, achieve the purpose that quickly to solve the problems, such as.It simultaneously can needle based on test report It is proposed that the corresponding solution of page function problem, applicability are higher to property.
Second aspect, the embodiment of the invention provides a kind of page device for testing functions, which includes:
Receiving unit carries out semantic point to above-mentioned voice messaging for receiving the voice messaging of user feedback page function Analysis is to be converted to text information for above-mentioned voice messaging;
Processing unit, the above-mentioned text information for obtaining to above-mentioned receiving unit carry out information processing to obtain multiple surveys Keyword is tried, the function to be tested on above-mentioned target pages is determined according to the operating procedure of above-mentioned multiple test keyword descriptions Node, wherein a test keyword is used to describe an operating procedure of the page function of above-mentioned user feedback;
Determination unit, multiple tests for determining to obtain with above-mentioned processing unit from test case feature database are crucial The matched multiple sub- test cases of word, wherein a sub- test case is used to test a behaviour of above-mentioned functional node to be tested Make step;
Test cell, above-mentioned multiple sub- Test cases technology target detections for being determined according to above-mentioned determination unit are used Example, and the functional node to be tested on above-mentioned target pages is tested based on above-mentioned target detection use-case.
In conjunction with second aspect, in a kind of possible embodiment, above-mentioned test device further include:
Acquiring unit is also used to obtain from the function sample database of page function test system multiple for describing page function Can function sample, and/or obtain from the history test record in above-mentioned page function test system multiple for describing page The function sample of face function, wherein a function sample is for describing a page function;
Generation unit is also used to construct above-mentioned test case based on above-mentioned multiple function samples for describing page function Feature database.
In conjunction with second aspect, in a kind of possible embodiment, above-mentioned processing unit is used for:
By above-mentioned multiple function samples for being used to describe page function according to the operating procedure of page function split with Obtain multiple subfunction samples, wherein a subfunction sample is for describing the corresponding function sample of said one subfunction sample This operating procedure;
Above-mentioned generation unit is used for:
Multiple sub- test cases are generated according to the operating procedure of above-mentioned multiple subfunction pattern representations, wherein a son is surveyed Example on probation is for testing an operating procedure described in the corresponding subfunction sample of the sub- test case of said one, said one The corresponding functional label of sub- test case, said one functional label is for marking the sub- test case of said one to be tested Operating procedure;
Above-mentioned test case feature database is constructed based on above-mentioned multiple sub- test cases.
In conjunction with second aspect, in a kind of possible embodiment, above-mentioned test device further include:
Matching unit, for by the functional label of each sub- test case in above-mentioned test case feature database respectively with it is above-mentioned Each test keyword in multiple test keywords is matched;
Above-mentioned determination unit, any son for being marked any functional label to match with any test keyword Test case is determined as the corresponding sub- test case of any of the above-described test keyword, to determine above-mentioned multiple test keywords institute Corresponding multiple sub- test cases.
In conjunction with second aspect, in a kind of possible embodiment, above-mentioned generation unit is used for above-mentioned multiple sub- tests Use-case is arranged according to the function statement sequence of above-mentioned functional node to be tested to obtain test case group, and is based on above-mentioned survey Example group on probation generates target detection use-case;
Above-mentioned test cell, for constructing target detection scene corresponding with the running environment of above-mentioned target pages, upper It states and the functional node to be tested on above-mentioned target pages is tested based on above-mentioned target detection use-case under target detection scene.
In conjunction with second aspect, in a kind of possible embodiment, above-mentioned generation unit is also used to obtain to above-mentioned target Functional node to be tested on the page tested after test data, and be based on the above-mentioned target pages of above-mentioned Test data generation On functional node to be tested corresponding target detection report;
Above-mentioned processing unit is also used to report above-mentioned target detection storing to designated memory space to obtain spare test Report, further include in above-mentioned designated memory space remove except above-mentioned functional node to be tested one or more other it is to be measured Try the test report of functional node;
Above-mentioned processing unit is also used to show and/or inquire any of the above-described functional node to be tested based on display equipment When corresponding test report, the corresponding test report of any of the above-described functional node to be tested is obtained from above-mentioned spare test report And the corresponding test report of any of the above-described functional node to be tested is exported to above-mentioned display equipment.
In embodiments of the present invention, page functional device provided in an embodiment of the present invention can be based on the voice letter that user inputs Breath directly determines target pages and functional node to be tested, and quickly generates target detection use-case and target detection scene to target Functional node to be tested on the page carries out functional test, and realization quickly surveys page function in unseconded situation Examination, flexibility is good, and applicability is high.
The third aspect, the embodiment of the invention provides a kind of terminal device, which includes processor and memory, The processor and memory are connected with each other.The memory for store support the terminal device execute above-mentioned first aspect and/or The computer program for the method that any possible implementation of first aspect provides, which includes program instruction, The processor is configured for calling above procedure instruction, executes above-mentioned first aspect and/or first aspect is any possible Method provided by embodiment.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage medium, the computer-readable storage mediums Matter is stored with computer program, and above-mentioned computer program is executed by processor to realize above-mentioned first aspect and/or first aspect Method provided by any possible embodiment.
In embodiments of the present invention, the voice messaging that can be inputted based on user directly determines target pages and function to be tested Node, and quickly generate target detection use-case and target detection scene and function is carried out to the functional node to be tested on target pages Test, realization quickly test page function in unseconded situation.It can be tested simultaneously based on Test data generation To reflect test result in real time, the test report of different functional nodes to be tested is carried out storage can be to identical and/or phase for report As the page function problem when suitably adjusted from retest or to target detection use-case and/or target detection scene It is whole, achieve the purpose that quickly to solve the problems, such as.The corresponding solution of page function problem can pointedly be proposed based on test report simultaneously Certainly scheme, flexibility is good, and applicability is high.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to needed in the embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ability For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is the flow diagram of the construction method of test case feature database provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of page function test method provided in an embodiment of the present invention;
Fig. 3 is the structural schematic diagram of page device for testing functions provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of terminal device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
(description for convenience, can the offer of the abbreviation embodiment of the present invention for page function test method provided in an embodiment of the present invention Method) be applicable to every field, each page function test system in various industries, herein with no restrictions.The present invention The method that embodiment provides can be based on the function sample database in existing page function test system, or is based on existing test Sample obtains the function sample for describing page function, constructs test case feature database.It, can be right based on test case feature database Functional node to be tested on the target pages for including in the voice messaging of the user got is tested, so as to user The voice messaging of input carries out corresponding functional test, can propose corresponding counter-measure in time, reduces page capability error band Carry out the risk of heavy losses.Page function test method provided in an embodiment of the present invention can be based on different field and/or not go together Industry constructs different use-case feature databases to be suitable for the page function test system of every field or various industries, flexibility Height, it is applied widely.It, below can be with a certain page functional test in some field and/or certain industry for convenience of description For system, method provided in an embodiment of the present invention is described.
Method provided in an embodiment of the present invention and relevant apparatus are illustrated respectively below in conjunction with Fig. 1 to Fig. 4.This hair The method that bright embodiment provides be may include the building of test case feature database and be inputted based on test case feature database and user Voice messaging execute test etc. the stages.
Before the voice messaging for receiving user's input, test case feature database can be first constructed.It is this hair referring to Fig. 1, Fig. 1 The flow diagram of the construction method for the test case feature database that bright embodiment provides.Test case provided in an embodiment of the present invention The construction method of feature database can as follows S11-S14 provide implementation be illustrated.
S11, multiple function samples for being used to describe page function are obtained.
In some possible embodiments, obtain it is multiple for describing function sample stages of page function, can be from Obtained in the function sample database of existing page function test system it is multiple for describing the function samples of page function, can also be from Multiple function samples for being used to describe page function are obtained in history test record in existing page function test system, also It can be established based on existing test environment and industrial nature multiple for describing the function sample of page function, specific acquisition side Formula is herein with no restrictions.It should be strongly noted that said one function sample is served only for one page function of description.For example, Said one function sample can for " click select button, select picture simultaneously upload " function, or " selection video and under Carry " function, herein with no restrictions.
S12, above-mentioned multiple function samples for being used to describe page function are torn open according to the operating procedure of page function Divide to obtain multiple subfunction samples.
In some possible embodiments, in order to make the test case in the test case feature database finally constructed more It is simple specific, it can be as small as possible according to function modoularization by the test case in the test case feature database finally constructed.I.e. Before generating test cases based on above-mentioned multiple function samples for describing page function, first multiple it is used to describe by above-mentioned The function sample of page function is split according to the operating procedure of page function, to obtain multiple subfunction samples.Wherein, one A subfunction sample is used to describe an operating procedure of the corresponding function sample of said one subfunction sample.For example, for " after clicking select button, select picture and upload " function sample, can be according to " click select button ", " the selection figure of the sample Piece " and " upload " three steps carry out sample fractionation, which is split into simplest three subfunction samples.
S13, multiple sub- test cases are generated according to the operating procedure of above-mentioned multiple subfunction pattern representations.
In some possible embodiments, which can be split after obtaining multiple subfunction samples, then Multiple sub- test cases are generated according to the operating procedure of subfunction pattern representation, wherein sub- test case can be by page function Test macro automatically generates, and is also possible to write sub- test case for different operating procedures by technical staff, not do herein Limitation.For example, " can will be clicked before it " after clicking select button, picture will be selected and uploaded " function sample to generate test case After select button, picture is selected simultaneously to upload " a function sample be split as " clicking select button ", " selection picture " and " on After blit piece " three smaller subfunction samples, for " click select button ", " selection picture " and " uploading pictures " three Subfunction sample generates corresponding sub- test case.When need by " click select button after, select document simultaneously upload " function sample When this generation test case, after the function sample being split, only can " selection document " subfunction sample be generated and be corresponded to Sub- test case, avoid and the case where repeatedly generating test case carried out for duplicate function sample, save by In generating the waste of time brought by a large amount of test cases, applicability is higher.
In some possible embodiments, when being split to obtain multiple subfunction samples and right for a certain function sample It obtains that band Prescribed Properties can be generated according to actual testing requirement after multiple subfunction samples write corresponding test case Sub- test case.For example, " after clicking select button, picture will be selected and uploaded " to obtain " clicking selection to press after being split Button ", " selection picture " and " uploading pictures " three sub- test cases.At this time if to the lattice of picture in actual test environment Formula, size etc. have certain requirement, can generate " gif format ", " no more than 5M " etc. according to the actual situation and make constraint to picture Sub- test case, specifically the constraint condition of the sub- test case with Prescribed Properties can be selected according to actual test scene etc., Any restrictions are not done herein.It should be strongly noted that being used generating corresponding sub- test according to above-mentioned multiple subfunction samples When example, including but not limited to " etc. can be used according to operating procedure described in each subfunction sample and specific test method The test such as valence class method ", " boundary values ", " decision table method ", " orthogonal experiment method ", " on-stream analysis " and " state transition method " Use-case common method, herein with no restrictions.
S14, above-mentioned test case feature database is constructed based on above-mentioned multiple sub- test cases.
In some possible embodiments, in order to certain behaviour can be quickly found out from the test case feature database finally constructed Make the corresponding sub- test case of step, obtains multiple sons generating corresponding sub- test case according to above-mentioned each subfunction sample After test case, can summarize automatically each sub- test case for test corresponding subfunction sample described grasp Make the Feature Words such as the Feature Words of step, such as " logging in ", " upload " and " downloading ", herein with no restrictions.Wherein, it summarizes each When sub- test case is used to test the Feature Words of certain operating procedure, functional label can be added automatically to mark for each sub- test case Remember the operating procedure that above-mentioned each sub- test case is tested, can also be corresponded to based on certain parameter addition in each sub- test case Feature Words.Further, it is also possible to establish the configuration of use-case Feature Words by existing Feature Words label and user-defined feature word label Interface to above-mentioned each sub- test case addition functional label or can add Feature Words simultaneously based on use-case Feature Words configuration interface It is stored and has obtained final test case feature database into designated memory space, wherein above-mentioned designated memory space can be Certain database is also possible in cloud and/or storage equipment, herein with no restrictions.It should be strongly noted that by making by oneself Adopted Feature Words label can expand the Feature Words range of each sub- test case in test case feature database, at the same can also to such as " Uncommon or more special subfunction sample, example in the functions sample such as sliding from left to right on touch screen ", " double-clicking touch screen " Such as " sliding from left to right ", " touch screen " provide the customized function of summarizing Feature Words and/or add functional label, flexibility Higher, the scope of application is wider.
After obtaining test case feature database, the voice messaging that can be inputted based on user executes test to page function.Please Referring to fig. 2, Fig. 2 is the flow diagram of page function test method provided in an embodiment of the present invention.The embodiment of the present invention provides Method may include following steps S21-S24:
S21, the voice messaging for receiving user feedback page function carry out semantic analysis to above-mentioned voice messaging with will be above-mentioned Voice messaging is converted to text information.
In some possible embodiments, when user feedback page function problem (ask by including but not limited to page upgrading Topic and page functional fault problem, herein with no restrictions) when, it can receive and semantic point is carried out to the voice messaging of user's input Analysis is to be converted to text information for above-mentioned voice messaging.Wherein, it can be adopted when carrying out semantic analysis to the voice messaging of user's input With natural language processing (Nature Language Process, NLP) tool, Fudan NLP tool and other speech recognitions Tool, herein with no restrictions.Wherein, user can by terminal device carry out voice input, above-mentioned terminal device can be mobile phone, Setting for voice messaging interaction can be carried out in tablet computer, laptop, palm PC, mobile internet device or other terminals It is standby, herein with no restrictions.Optionally, above-mentioned voice messaging can be user by making a phone call the voice messaging of input, can also It, specifically can be according to practical application to be that user is attended class by interactive voice equipment and carries out the voice messaging of voice communication software input Scene and user demand decision, herein with no restrictions.It optionally, can be by user after receiving the voice messaging of user's input The voice messaging of input carries out semantic analysis and directly obtains the corresponding text information of whole voice messagings, then mentions from text information Take text information relevant to the functional information to be tested on target pages and target pages;The language that user can also be inputted Message breath carries out semantic analysis and obtains target voice relevant to the functional node to be tested on target pages and target pages Information, then the target voice information is converted to text information, specific implementation is herein with no restrictions.For example, when user is logical It crosses voice and complains and/or feed back whole voice (these for now inputting user when business submits the picture on the page to upload problem For sentencing voice M) it carries out semantic analysis and obtains the corresponding text m of voice M, then extracted from text m and " submit the page in business On, after clicking select button, select picture can not upload " text n;The whole voice M that user can also be inputted are carried out Semantic analysis is described the voice N of " submitting on the page in business, after clicking select button, select picture that can not upload ", Voice N is converted to the text n of " submitting on the page in business, after clicking select button, select picture that can not upload ", needle again Under requiring different application scenarios and equipment performance, different implementations can be taken, flexibility is high.
S22, information processing is carried out to above-mentioned text information to obtain multiple test keywords, is closed according to above-mentioned multiple tests The operating procedure of keyword description determines the functional node to be tested on above-mentioned target pages.
In some possible embodiments, since the voice messaging of user's input is complicated, information content is larger, therefore can only connect The voice messaging of user feedback page function is received, then semantic analysis is carried out being converted to above-mentioned voice messaging to the voice messaging Text information.Above-mentioned whole voice messagings can also be subjected to semantic analysis and obtained after receiving whole voice messagings of user Information content screening is carried out to text information, then to text information to obtain text information relevant to page function.It can be with Receive user input the voice messaging stage by semantic analysis directly from the voice content of user feedback page function it is direct Get text information relevant to page function.
In some possible embodiments, the text envelope corresponding in the voice messaging for obtaining user feedback page function After breath, carrying out information processing to above-mentioned text information, (the including but not limited to modes such as Text region, information matches, do not do herein Limitation) to identify content described in above-mentioned text information.Meanwhile in the process for carrying out information processing to above-mentioned text information In, multiple tests of the operating procedure of the page function for describing above-mentioned user feedback can be extracted from above-mentioned text information Keyword.Above-mentioned text information can also be matched with each test keyword in existing test keywords database, be obtained For describing multiple test keywords of the operating procedure of the page function of above-mentioned user feedback, specific implementation is not done herein Limitation.It should be strongly noted that said one test keyword is used to describe one of the page function of the user feedback Operating procedure.It can determine target in need of test according to operating procedure described in multiple test keywords obtained above Functional node to be tested on the page and above-mentioned target pages, wherein above-mentioned functional node to be tested is the specific of user feedback A certain page function problem on the page.For example, there is function when user is submitted on the page by voice feedback business, lead to The text envelope of " submitting on the page in business, after clicking select button, select picture that can not upload " is obtained after crossing semantic analysis Breath carries out text information " clicking select button ", " selection picture " and " uploading pictures " three can be obtained after information processing A test keyword, while can determine that target pages mention for business based on operating procedure described in above three test keyword Handing over the page and the business to submit the functional node to be tested on the page is " selection picture can not upload after clicking select button ".
S23, it is determined from test case feature database and above-mentioned multiple multiple sub- test cases for testing Keywords matchings.
It in some possible embodiments, can be by above-mentioned test case feature database after obtaining multiple test keywords In each sub- test case functional label respectively with it is above-mentioned it is multiple test keywords in each test keywords matched, When the functional label of any sub- test case and any test Keywords matching successfully after, can will be with any test keyword phase Any sub- test case that any functional label matched is marked is determined as the corresponding sub- test of any of the above-described test keyword and uses Example, until obtaining the corresponding sub- test case of each test keyword in above-mentioned multiple test keywords, wherein any of the above-described survey The corresponding sub- test case of examination keyword is for testing above-mentioned functional node to be tested described in any of the above-described test keyword In an operating procedure.For example, obtaining above-mentioned " clicking select button ", " selection picture " and " uploading pictures " three surveys Try keyword after, can by the functional label of each sub- test case in above-mentioned test case feature database respectively with " click choosing Select button ", " selection picture " and " uploading pictures " three test keywords matched, obtain " clicking and selecting for testing The sub- test case of button ", " selection picture " and " uploading pictures " three operating procedures.
In some possible embodiments, it when being determined after target pages based on above-mentioned text information, can be based on above-mentioned Text information determines concrete scene, type, the communication mode etc. that the page function problem of customer complaint and/or feedback occurs, This is with no restrictions.For example, can obtain the cell phone apparatus model A led to the problem of based on above-mentioned text information, which exists The failure generated when APP is logged in is betided using mobile 4G communication mode and the problem when leading to the problem of.It can be supported unmanned In the environment of by user by voice complain and/or feed back the problem of be accurately positioned, improve the accuracy of description, simultaneously Also avoid bringing the unnecessary consumption of cost of labor.In some possible embodiments, it is thrown due to certain customers by voice Tell and/or there may be the situation that problem statement is unclear when feedback page function problem, thus user by voice complain with/ Or guide user to go accurately to describe problem in more detail by preset intelligent sentence during feedback, in order to obtain user The voice messaging of complete description problem.At the same time it can also before user is complained and/or suggested by voice, by default Option is by the essential feature of the autonomous select permeability of user, and if user is after putting through phone, user first selects equipment type, problem The options such as type reduce the excessive bring system loss of information content of voice messaging, and flexibility is more preferable, and accuracy is higher.
S24, according to above-mentioned multiple sub- Test cases technology target detection use-cases, and based on above-mentioned target detection use-case to upper The functional node to be tested stated on target pages is tested.
In some possible embodiments, after obtaining the corresponding sub- test case of above-mentioned multiple test keywords, Can by the corresponding sub- test case of above-mentioned multiple test keywords according to above-mentioned functional node to be tested function statement sequence into Row arrangement generates target detection use-case based on above-mentioned test case group to obtain a test case group.Wherein, based on above-mentioned It, can be by matching independently combinable testing tool (Pairwise Independent when test case group generates target detection use-case Combinatorial Testing Tool, PICT), Allpairs tool and other test case combination tools, herein not It is limited.For example, obtaining for testing " selection picture ", " clicking select button " and " uploading pictures " three operating procedures Sub- test case after, can based on functional node to be tested " click select button after selection picture can not upload " function statement Sequence " will select picture ", " clicking select button " and the sub- test case of " uploading pictures " three operating procedures are " to click The sequence arrangement of select button ", " selection picture ", " uploading pictures ", obtains a test case group.It is based on above-mentioned test simultaneously Use-case combination tool by the test case group progress test case combined treatment obtain " click select button, select picture and on The target detection use-case of biography ".
In some possible embodiments, after obtaining above-mentioned target detection use-case, above-mentioned text information can be based on The information architectures such as concrete scene, type, the communication mode that the page function problem of determining customer complaint and/or feedback occurs with The corresponding target detection scene of the running environment of above-mentioned target pages, and surveyed under above-mentioned target detection scene based on above-mentioned target Example on probation tests the functional node to be tested on above-mentioned target pages.For example, determining user based on above-mentioned text information It complains and/or the page function problem of feedback is the " business under mobile 4G network environment, in the mobile phone that device model is A Picture can not upload after submitting the page to click select button ", obtaining the target of " clicking select button, select picture and upload " After test case, " moving for the functional node to be tested for testing " clicking select button, select picture and upload " can be constructed Under dynamic 4G network environment, the business in the mobile phone that device model is A submits the page " target detection scene, and surveyed in the target To " under mobile 4G network environment, the business in the mobile phone that device model is A submits the page to click select button under the scape of examination hall Picture can not upload afterwards " page function problem tested.
It in some possible embodiments, can be special in above-mentioned test case when constructing above-mentioned test case feature database Sign is placed in advance in sub-scene keyword set in library, obtains multiple test scenes while obtaining above-mentioned multiple test keywords Keyword.By the feature tag of each sub- test case in above-mentioned test case feature database and above-mentioned multiple test keywords When being matched, it can be extracted from the sub-scene keyword set in above-mentioned test case feature database and above-mentioned multiple test scenes The consistent multiple sub-scene keywords of keyword, with when generating target detection use-case be based on above-mentioned multiple sub-scene keywords and Above-mentioned target pages construct target detection scene.For example, after obtaining " mobile 4G " and the sub-scene keyword of " A mobile phone ", Target pages based on above-mentioned " the business submission page " can construct " under mobile 4G network environment, in the mobile phone that device model is A In business submit the page " target detection scene.It should be strongly noted that when that can only be extracted from above-mentioned use-case feature database To " mobile 4G " and " mobile phone " sub-scene keyword, when can not know mobile phone concrete model, needed at this time from above-mentioned use-case feature Such as " A model mobile phone " relevant to " mobile phone " keyword, " Type B trumpeter machine " sub-scene are obtained in sub-scene keyword in library Keyword, respectively obtain " under mobile 4G network environment, the business in the mobile phone that device model is A submits the page " and " Under mobile 4G network environment, the business in the mobile phone that device model is B submits the page " etc. multiple target detection scenes.And The functional node to be tested of " clicking select button, select picture and upload " is tested respectively under multiple target detection scenes The same or similar page function problem of voice messaging to test out customer complaint and/or feedback improves again unmanned support The speed and accuracy of situation lower page functional test.
In some possible embodiments, it can also be surveyed according to the significance level of different functional nodes to be tested to define The number of examination, to improve the accuracy of page functional test.For example, 10 tests can be carried out if it is login function, if it is Executable 20 tests of function are moved back in more serious sudden strain of a muscle, and the division of the significance level of the definition and function of specific testing time can It defines according to the actual situation, herein with no restrictions.After the completion of page functional test, can obtain on above-mentioned target pages to Test function node tested after test data, and based on to be tested on the above-mentioned target pages of above-mentioned Test data generation The corresponding target detection report of functional node.The report of above-mentioned target detection is stored to designated memory space simultaneously spare to obtain Test report.When showing and/or inquiring the corresponding test report of any of the above-described functional node to be tested based on display equipment, from The corresponding test report of any of the above-described functional node to be tested is obtained in above-mentioned spare test report and will be any of the above-described to be tested The corresponding test report of functional node is exported to above-mentioned display equipment, in order to there is user to complain and/or feed back same page again Appropriate adjustment is carried out from retest or to target detection use-case and/or target detection scene when the function problem of face, is reached The purpose quickly solved the problems, such as.The corresponding solution of page function problem can pointedly be proposed based on test report simultaneously, Applicability is higher.
In embodiments of the present invention, the voice messaging that can be inputted based on user directly determines target pages and function to be tested Node, and quickly generate target detection use-case and target detection scene and function is carried out to the functional node to be tested on target pages Test, realization quickly test page function in unseconded situation.It can be tested simultaneously based on Test data generation To reflect test result in real time, the test report of different functional nodes to be tested is carried out storage can be to identical and/or phase for report As the page function problem when suitably adjusted from retest or to target detection use-case and/or target detection scene It is whole, achieve the purpose that quickly to solve the problems, such as.The corresponding solution of page function problem can pointedly be proposed based on test report simultaneously Certainly scheme, flexibility is good, and applicability is high.
It is the structural schematic diagram of page device for testing functions provided in an embodiment of the present invention referring to Fig. 3, Fig. 3.The present invention is real Applying the page device for testing functions that example provides includes:
Receiving unit 31 carries out above-mentioned voice messaging semantic for receiving the voice messaging of user feedback page function Analysis is to be converted to text information for above-mentioned voice messaging;
Processing unit 32, it is more to obtain that the above-mentioned text information for obtaining to above-mentioned receiving unit 31 carries out information processing A test keyword is determined to be tested on above-mentioned target pages according to the operating procedure of above-mentioned multiple test keyword descriptions Functional node, wherein a test keyword is used to describe an operating procedure of the page function of above-mentioned user feedback;
Determination unit 33, multiple tests for determining to obtain with above-mentioned processing unit 32 from test case feature database Multiple sub- test cases of Keywords matching, wherein a sub- test case is for testing the one of above-mentioned functional node to be tested A operating procedure;
Test cell 34, above-mentioned multiple sub- Test cases technology target detections for being determined according to above-mentioned determination unit 33 Use-case, and the functional node to be tested on above-mentioned target pages is tested based on above-mentioned target detection use-case.
In some possible embodiments, above-mentioned test device further include:
Acquiring unit 35 is also used to obtain from the function sample database of page function test system multiple for describing the page The function sample of function, and/or obtain from the history test record in above-mentioned page function test system multiple for describing The function sample of page function, wherein a function sample is for describing a page function;
Generation unit 36 is also used to construct above-mentioned test based on above-mentioned multiple function samples for describing page function and use Example feature database.
In some possible embodiments, above-mentioned processing unit 32 is used for:
By above-mentioned multiple function samples for being used to describe page function according to the operating procedure of page function split with Obtain multiple subfunction samples, wherein a subfunction sample is for describing the corresponding function sample of said one subfunction sample This operating procedure;
Above-mentioned generation unit 36 is used for:
Multiple sub- test cases are generated according to the operating procedure of above-mentioned multiple subfunction pattern representations, wherein a son is surveyed Example on probation is for testing an operating procedure described in the corresponding subfunction sample of the sub- test case of said one, said one The corresponding functional label of sub- test case, said one functional label is for marking the sub- test case of said one to be tested Operating procedure;
Above-mentioned test case feature database is constructed based on above-mentioned multiple sub- test cases.
In some possible embodiments, above-mentioned test device further include:
Matching unit 37, for by the functional label of each sub- test case in above-mentioned test case feature database respectively with The each test keyword stated in multiple test keywords is matched;
Above-mentioned determination unit 33, any for being marked any functional label to match with any test keyword Sub- test case is determined as the corresponding sub- test case of any of the above-described test keyword, to determine above-mentioned multiple test keywords Corresponding multiple sub- test cases.
In some possible embodiments, above-mentioned generation unit 36, for by above-mentioned multiple sub- test cases according to The function statement sequence for stating functional node to be tested is arranged to obtain test case group, and raw based on above-mentioned test case group At target detection use-case;
Above-mentioned test cell 34, for constructing target detection scene corresponding with the running environment of above-mentioned target pages, The functional node to be tested on above-mentioned target pages is surveyed based on above-mentioned target detection use-case under above-mentioned target detection scene Examination.
In some possible embodiments, above-mentioned generation unit 36, be also used to obtain on above-mentioned target pages to Test function node tested after test data, and based on to be tested on the above-mentioned target pages of above-mentioned Test data generation The corresponding target detection report of functional node;
Above-mentioned processing unit 32 is also used to report above-mentioned target detection storing to designated memory space to obtain spare survey Examination report, further include in above-mentioned designated memory space remove except above-mentioned functional node to be tested one or more other wait for The test report of test function node;
Above-mentioned processing unit 32 is also used to show and/or inquire any of the above-described function section to be tested based on display equipment When the corresponding test report of point, the corresponding test report of any of the above-described functional node to be tested is obtained from above-mentioned spare test report It accuses and exports the corresponding test report of any of the above-described functional node to be tested to above-mentioned display equipment.
In the specific implementation, above-mentioned apparatus can pass through the execution of the modules built in it such as figure 1 above each step institute into Fig. 2 The implementation of offer.For example, above-mentioned receiving unit 31 can be used for receiving the voice messaging of user feedback page function, to above-mentioned Voice messaging carries out semantic analysis so that above-mentioned voice messaging is converted to text information and other implementations, and for details, reference can be made to above-mentioned each Implementation provided by a step, details are not described herein.Above-mentioned processing unit 32 can be used for obtaining above-mentioned receiving unit 31 Above-mentioned text information carry out information processing to obtain multiple test keywords, according to it is above-mentioned it is multiple test keywords description behaviour The functional node to be tested and other implementations on above-mentioned target pages is determined as step, for details, reference can be made to above-mentioned each step institutes The implementation of offer, details are not described herein.Above-mentioned determination unit 33 can be used for for determining from test case feature database The multiple sub- test cases of multiple test Keywords matchings and other implementations obtained with above-mentioned processing unit 32, for details, reference can be made to Implementation provided by above-mentioned each step, details are not described herein.Above-mentioned test cell 34 can be used for according to above-mentioned determining single Above-mentioned multiple sub- Test cases technology target detection use-cases that member 33 determines, and based on above-mentioned target detection use-case to above-mentioned target Functional node to be tested on the page test and other implementations, and for details, reference can be made to realization sides provided by above-mentioned each step Formula, details are not described herein.Above-mentioned acquiring unit 35 can be used for from the function sample database of page function test system obtaining multiple It is obtained for describing the function sample of page function, and/or from the history test record in above-mentioned page function test system Multiple to be used to describe function sample of page function and other implementations, for details, reference can be made to realization sides provided by above-mentioned each step Formula, details are not described herein.Above-mentioned generation unit 36 can be used for based on above-mentioned multiple for describing the function sample structure of page function Above-mentioned test case feature database and other implementations is built, for details, reference can be made to implementations provided by above-mentioned each step, herein not It repeats again.Above-mentioned matching unit 37 can be used for the functional label difference of each sub- test case in above-mentioned test case feature database Match and other implementations with each test keywords in above-mentioned multiple test keywords, for details, reference can be made to above-mentioned each steps Implementation provided by rapid, details are not described herein.
In embodiments of the present invention, page functional device provided in an embodiment of the present invention can be based on the voice letter that user inputs Breath directly determines target pages and functional node to be tested, and quickly generates target detection use-case and target detection scene to target Functional node to be tested on the page carries out functional test, and realization quickly surveys page function in unseconded situation Examination, flexibility is good, and applicability is high.
Fig. 4 is the structural schematic diagram of terminal device provided in an embodiment of the present invention.As shown in figure 4, the end in the present embodiment End equipment may include: one or more processors 41 and memory 42.Above-mentioned processor 41 and memory 42 pass through bus 43 Connection.Memory 42 is for storing computer program, which includes program instruction, and processor 41 is for executing storage The program instruction that device 42 stores, performs the following operations:
The voice messaging for receiving user feedback page function carries out semantic analysis to above-mentioned voice messaging with by above-mentioned voice Information is converted to text information;
Information processing is carried out to obtain multiple test keywords, according to above-mentioned multiple test keywords to above-mentioned text information The operating procedure of description determines the functional node to be tested on above-mentioned target pages, wherein a test keyword is for retouching State an operating procedure of the page function of above-mentioned user feedback;
Multiple sub- test cases with above-mentioned multiple test Keywords matchings are determined from test case feature database, In, a sub- test case is used to test an operating procedure of above-mentioned functional node to be tested;
According to above-mentioned multiple sub- Test cases technology target detection use-cases, and based on above-mentioned target detection use-case to above-mentioned mesh Functional node to be tested on the mark page is tested.
In some possible embodiments, above-mentioned processor 41 is also used to:
Multiple function samples for being used to describe page function are obtained from the function sample database of page function test system, And/or it is obtained from the history test record in above-mentioned page function test system multiple for describing the function sample of page function This, wherein a function sample is for describing a page function;
Above-mentioned test case feature database is constructed based on above-mentioned multiple function samples for describing page function.
In some possible embodiments, above-mentioned processor 41 is used for:
By above-mentioned multiple function samples for being used to describe page function according to the operating procedure of page function split with Obtain multiple subfunction samples, wherein a subfunction sample is for describing the corresponding function sample of said one subfunction sample This operating procedure;
Multiple sub- test cases are generated according to the operating procedure of above-mentioned multiple subfunction pattern representations, wherein a son is surveyed Example on probation is for testing an operating procedure described in the corresponding subfunction sample of the sub- test case of said one, said one The corresponding functional label of sub- test case, said one functional label is for marking the sub- test case of said one to be tested Operating procedure;
Above-mentioned test case feature database is constructed based on above-mentioned multiple sub- test cases.
In some possible embodiments, above-mentioned processor 41 is used for:
The functional label of each sub- test case in above-mentioned test case feature database is crucial with above-mentioned multiple tests respectively Each test keyword in word is matched;
On any sub- test case marked with any any functional label for matching of test keyword is determined as The corresponding sub- test case of any test keyword is stated, to determine multiple sub- tests corresponding to above-mentioned multiple test keywords Use-case.
In some possible embodiments, above-mentioned processor 41 is used for:
Above-mentioned multiple sub- test cases are arranged according to the function statement sequence of above-mentioned functional node to be tested to obtain Target detection use-case is generated to test case group, and based on above-mentioned test case group;
Construct target detection scene corresponding with the running environment of above-mentioned target pages, the base under above-mentioned target detection scene The functional node to be tested on above-mentioned target pages is tested in above-mentioned target detection use-case.
In some possible embodiments, above-mentioned processor 41 is also used to:
The test data after testing the functional node to be tested on above-mentioned target pages is obtained, and is based on above-mentioned survey Examination data generate the corresponding target detection report of the functional node to be tested on above-mentioned target pages;
The report of above-mentioned target detection is stored to designated memory space to obtain spare test report, above-mentioned specified storage is empty Between in further include the test report for removing one or more other functional node to be tested except above-mentioned functional node to be tested It accuses;
When showing and/or inquiring the corresponding test report of any of the above-described functional node to be tested based on display equipment, from The corresponding test report of any of the above-described functional node to be tested is obtained in above-mentioned spare test report and will be any of the above-described to be tested The corresponding test report of functional node is exported to above-mentioned display equipment.
It should be appreciated that in some possible embodiments, above-mentioned processor 41 can be central processing unit (central processing unit, CPU), which can also be other general processors, digital signal processor (digital signal processor, DSP), specific integrated circuit (application specific integrated Circuit, ASIC), ready-made programmable gate array (field-programmable gate array, FPGA) or other can Programmed logic device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor Or the processor is also possible to any conventional processor etc..
The memory 42 may include read-only memory and random access memory, and provide instruction sum number to processor 41 According to.The a part of of memory 42 can also include nonvolatile RAM.It is set for example, memory 42 can also store The information of standby type.
In the specific implementation, above-mentioned terminal device can be executed by each functional module built in it if above-mentioned Fig. 1 is into Fig. 2 Implementation provided by each step, for details, reference can be made to implementations provided by above-mentioned each step, and details are not described herein.
In embodiments of the present invention, the voice messaging that can be inputted based on user directly determines target pages and function to be tested Node, and quickly generate target detection use-case and target detection scene and function is carried out to the functional node to be tested on target pages Test, realization quickly test page function in unseconded situation.It can be tested simultaneously based on Test data generation Report is fitted with reflecting test result in real time from retest or to target detection use-case and/or target detection scene Work as adjustment, achievees the purpose that quickly to solve the problems, such as.It can pointedly propose that page function problem is corresponding based on test report simultaneously Solution, flexibility is good, and applicability is high.
The embodiment of the present invention also provides a kind of computer readable storage medium, which has meter Calculation machine program, the computer program are executed by processor to realize Fig. 1 method provided by each step into Fig. 2, specifically may be used Referring to implementation provided by above-mentioned each step, details are not described herein.
Above-mentioned computer readable storage medium can be the Task Processing Unit or above-mentioned that aforementioned any embodiment provides The internal storage unit of terminal device, such as the hard disk or memory of electronic equipment.The computer readable storage medium is also possible to The plug-in type hard disk being equipped on the External memory equipment of the electronic equipment, such as the electronic equipment, intelligent memory card (smart Media card, SMC), secure digital (secure digital, SD) card, flash card (flash card) etc..Above-mentioned computer Readable storage medium storing program for executing can also include magnetic disk, CD, read-only memory (read-only memory, ROM) or deposit at random Store up memory body (randomaccessmemory, RAM) etc..Further, which can also both include The internal storage unit of the electronic equipment also includes External memory equipment.The computer readable storage medium is for storing the calculating Other programs and data needed for machine program and the electronic equipment.The computer readable storage medium can be also used for temporarily Store the data that has exported or will export.
Claims of the present invention and term " first " in specification and attached drawing, " second " etc. are for distinguishing difference Object is not use to describe a particular order.In addition, term " includes " and " having " and their any deformations, it is intended that It covers and non-exclusive includes.Referenced herein " embodiment " is it is meant that special characteristic, structure or the spy described in conjunction with the embodiments Property may include at least one embodiment of the present invention.Each position in the description shows that the phrase might not be equal Refer to identical embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art Explicitly and implicitly understand, embodiment described herein can be combined with other embodiments.In explanation of the invention Term "and/or" used in book and the appended claims refers to any group of one or more of associated item listed Conjunction and all possible combinations, and including these combinations.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.Specially Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not It is considered as beyond the scope of this invention.
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.

Claims (10)

1. a kind of page function test method, which is characterized in that the described method includes:
The voice messaging for receiving user feedback page function carries out semantic analysis to the voice messaging with by the voice messaging Be converted to text information;
Information processing is carried out to obtain multiple test keywords to the text information, is described according to the multiple test keyword Operating procedure determine the functional node to be tested on the target pages, wherein test keyword is for describing institute State an operating procedure of the page function of user feedback;
Multiple sub- test cases with the multiple test Keywords matching are determined from test case feature database, wherein one A sub- test case is used to test an operating procedure of the functional node to be tested;
According to the multiple sub- Test cases technology target detection use-case, and based on the target detection use-case to the page object Functional node to be tested on face is tested.
2. the method according to claim 1, wherein it is described receive user input voice messaging before, it is described Method further include:
Multiple function samples for being used to describe page function are obtained from the function sample database of page function test system, and/or Multiple function samples for being used to describe page function are obtained from the history test record in the page function test system, In, a function sample is for describing a page function;
The test case feature database is constructed based on the multiple function sample for describing page function.
3. according to the method described in claim 2, it is characterized in that, described based on the multiple function for being used to describe page function Energy sample constructs the test case feature database
The multiple function sample for being used to describe page function is split according to the operating procedure of page function to obtain Multiple subfunction samples, wherein a subfunction sample is for describing the corresponding function sample of one subfunction sample One operating procedure;
Multiple sub- test cases are generated according to the operating procedure of the multiple subfunction pattern representation, wherein a son test is used Example is for testing an operating procedure described in the corresponding subfunction sample of one sub- test case, one sub- survey The corresponding functional label of example on probation, the operation that one functional label is used to that one sub- test case to be marked to be tested Step;
The test case feature database is constructed based on the multiple sub- test case.
4. according to the method described in claim 3, it is characterized in that, it is described determined from test case feature database with it is described more It is a test Keywords matching multiple sub- test cases include:
By the functional label of each sub- test case in the test case feature database respectively and in the multiple test keyword Each test keyword matched;
Any sub- test case that any functional label to match with any test keyword is marked is determined as described appoint The corresponding sub- test case of one test keyword, to determine that multiple sub- tests corresponding to the multiple test keyword are used Example.
5. method according to any one of claims 1 to 4, which is characterized in that described according to the multiple sub- test case Target detection use-case is generated, and the functional node to be tested on the target pages is surveyed based on the target detection use-case Examination includes:
The multiple sub- test case is arranged according to the function statement sequence of the functional node to be tested to be surveyed Example group on probation, and target detection use-case is generated based on the test case group;
Target detection scene corresponding with the running environment of the target pages is constructed, institute is based under the target detection scene Target detection use-case is stated to test the functional node to be tested on the target pages.
6. method according to any one of claims 1 to 5, which is characterized in that described to be based on the target detection use-case pair After functional node to be tested on the target pages is tested, the method also includes:
The test data after testing the functional node to be tested on the target pages is obtained, and is based on the test number According to the corresponding target detection report of the functional node to be tested generated on the target pages;
Target detection report is stored to designated memory space to obtain spare test report, in the designated memory space It further include the test report for removing one or more other functional node to be tested except the functional node to be tested;
When showing and/or inquiring the corresponding test report of any functional node to be tested based on display equipment, from described The corresponding test report of any functional node to be tested is obtained in spare test report and by any function to be tested The corresponding test report of node is exported to the display equipment.
7. a kind of page device for testing functions, which is characterized in that the test device includes:
Receiving unit, for receiving the voice messaging of user feedback page function, to the voice messaging carry out semantic analysis with The voice messaging is converted into text information;
Processing unit, the text information for obtaining to the receiving unit carry out information processing and are closed with obtaining multiple tests Keyword determines the function section to be tested on the target pages according to the operating procedure of the multiple test keyword description Point, wherein a test keyword is used to describe an operating procedure of the page function of the user feedback;
Determination unit, multiple test keywords for determining to obtain with the processing unit from test case feature database The multiple sub- test cases matched, wherein a sub- test case is used to test the operation step of the functional node to be tested Suddenly;
Test cell, the multiple sub- Test cases technology target detection use-case for being determined according to the determination unit, and The functional node to be tested on the target pages is tested based on the target detection use-case.
8. test device according to claim 7, which is characterized in that the test device further include:
Acquiring unit is also used to obtain from the function sample database of page function test system multiple for describing page function Function sample, and/or obtain from the history test record in the page function test system multiple for describing page function The function sample of energy, wherein a function sample is for describing a page function;
Generation unit is also used to the function sample based on the multiple for describing page function and constructs above-mentioned test case feature Library.
9. a kind of terminal device, which is characterized in that including processor and memory, the processor and memory are connected with each other;
The memory is for storing computer program, and the computer program includes program instruction, and the processor is configured For calling described program to instruct, such as method as claimed in any one of claims 1 to 6 is executed.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey Sequence, the computer program are executed by processor to realize method described in claim 1 to 6 any one.
CN201910421957.6A 2019-05-21 2019-05-21 A kind of page function test method and relevant apparatus Pending CN110221969A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910421957.6A CN110221969A (en) 2019-05-21 2019-05-21 A kind of page function test method and relevant apparatus
PCT/CN2019/120086 WO2020233034A1 (en) 2019-05-21 2019-11-22 Page function testing method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910421957.6A CN110221969A (en) 2019-05-21 2019-05-21 A kind of page function test method and relevant apparatus

Publications (1)

Publication Number Publication Date
CN110221969A true CN110221969A (en) 2019-09-10

Family

ID=67821466

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910421957.6A Pending CN110221969A (en) 2019-05-21 2019-05-21 A kind of page function test method and relevant apparatus

Country Status (2)

Country Link
CN (1) CN110221969A (en)
WO (1) WO2020233034A1 (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782524A (en) * 2020-06-29 2020-10-16 京东数字科技控股有限公司 Application testing method and device, storage medium and electronic device
WO2020233034A1 (en) * 2019-05-21 2020-11-26 深圳壹账通智能科技有限公司 Page function testing method and related device
CN112199285A (en) * 2020-10-12 2021-01-08 中国农业银行股份有限公司 Test case optimization method and device and electronic equipment
CN112214397A (en) * 2020-09-09 2021-01-12 腾讯科技(深圳)有限公司 User interface testing method and device, computer equipment and storage medium
CN112420019A (en) * 2020-11-18 2021-02-26 青岛海尔科技有限公司 Equipment testing method and device
CN112559370A (en) * 2020-12-23 2021-03-26 平安普惠企业管理有限公司 Front-end-based React project unit testing method and related equipment
CN112579466A (en) * 2020-12-25 2021-03-30 深圳证券交易所 Test case generation method and device and computer readable storage medium
CN112597034A (en) * 2020-12-25 2021-04-02 深圳证券交易所 Test case generation method and device and computer readable storage medium
CN112597065A (en) * 2021-03-03 2021-04-02 浙江口碑网络技术有限公司 Page testing method and device
CN112597066A (en) * 2021-03-03 2021-04-02 浙江口碑网络技术有限公司 Page testing method and device
CN112884441A (en) * 2021-03-02 2021-06-01 岭东核电有限公司 Test result recording method and device, computer equipment and storage medium
CN114900632A (en) * 2022-05-11 2022-08-12 深圳创维-Rgb电子有限公司 Test question submitting method, system, equipment and computer readable storage medium

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112597012A (en) * 2020-12-16 2021-04-02 百度在线网络技术(北京)有限公司 Traversal method and device of application program, electronic equipment and storage medium
CN113434405B (en) * 2021-06-24 2023-06-13 青岛海尔科技有限公司 Method and device for determining test file, storage medium and electronic device
CN113434410A (en) * 2021-06-25 2021-09-24 青岛海尔科技有限公司 Data testing method and device, storage medium and electronic device
CN113626321B (en) * 2021-07-29 2024-03-19 北京达佳互联信息技术有限公司 Bridging test method, device, system and storage medium
CN113656320A (en) * 2021-08-26 2021-11-16 国网电子商务有限公司 Test case generation method and device
CN114281688A (en) * 2021-12-20 2022-04-05 神策网络科技(北京)有限公司 Codeless or low-code automatic case management method and device
CN116304399B (en) * 2023-05-19 2023-08-11 建信金融科技有限责任公司 Visual processing method, device and system for test cases
CN116860630B (en) * 2023-07-05 2024-09-20 珠海视熙科技有限公司 Equipment testing method and device, storage medium and computer equipment
CN116594916B (en) * 2023-07-17 2023-11-14 腾讯科技(深圳)有限公司 Page control positioning method, device and storage medium
CN117573525B (en) * 2023-11-14 2024-07-05 深圳市君时达科技有限公司 Cash register testing method and device, cash register and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107957957A (en) * 2017-12-28 2018-04-24 网易(杭州)网络有限公司 The acquisition methods and device of test case
CN108399131A (en) * 2018-03-13 2018-08-14 百度在线网络技术(北京)有限公司 Automatic test cases generation method and device
CN108959087A (en) * 2018-06-29 2018-12-07 百度在线网络技术(北京)有限公司 test method and device
US20190103100A1 (en) * 2017-09-29 2019-04-04 Piotr Rozen Techniques for client-side speech domain detection and a system using the same

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170118406A1 (en) * 2015-10-21 2017-04-27 Ebay Inc. Methods, systems, and apparatus for creating an item publication
CN109815147B (en) * 2019-01-21 2022-06-24 深圳乐信软件技术有限公司 Test case generation method, device, server and medium
CN110221969A (en) * 2019-05-21 2019-09-10 深圳壹账通智能科技有限公司 A kind of page function test method and relevant apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190103100A1 (en) * 2017-09-29 2019-04-04 Piotr Rozen Techniques for client-side speech domain detection and a system using the same
CN107957957A (en) * 2017-12-28 2018-04-24 网易(杭州)网络有限公司 The acquisition methods and device of test case
CN108399131A (en) * 2018-03-13 2018-08-14 百度在线网络技术(北京)有限公司 Automatic test cases generation method and device
CN108959087A (en) * 2018-06-29 2018-12-07 百度在线网络技术(北京)有限公司 test method and device

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020233034A1 (en) * 2019-05-21 2020-11-26 深圳壹账通智能科技有限公司 Page function testing method and related device
CN111782524A (en) * 2020-06-29 2020-10-16 京东数字科技控股有限公司 Application testing method and device, storage medium and electronic device
CN112214397A (en) * 2020-09-09 2021-01-12 腾讯科技(深圳)有限公司 User interface testing method and device, computer equipment and storage medium
CN112199285A (en) * 2020-10-12 2021-01-08 中国农业银行股份有限公司 Test case optimization method and device and electronic equipment
CN112199285B (en) * 2020-10-12 2023-08-01 中国农业银行股份有限公司 Test case optimization method and device and electronic equipment
CN112420019B (en) * 2020-11-18 2023-02-03 青岛海尔科技有限公司 Equipment testing method and device
CN112420019A (en) * 2020-11-18 2021-02-26 青岛海尔科技有限公司 Equipment testing method and device
CN112559370A (en) * 2020-12-23 2021-03-26 平安普惠企业管理有限公司 Front-end-based React project unit testing method and related equipment
CN112579466A (en) * 2020-12-25 2021-03-30 深圳证券交易所 Test case generation method and device and computer readable storage medium
CN112597034A (en) * 2020-12-25 2021-04-02 深圳证券交易所 Test case generation method and device and computer readable storage medium
CN112579466B (en) * 2020-12-25 2024-06-07 深圳证券交易所 Method and device for generating test cases and computer readable storage medium
CN112884441A (en) * 2021-03-02 2021-06-01 岭东核电有限公司 Test result recording method and device, computer equipment and storage medium
CN112597066A (en) * 2021-03-03 2021-04-02 浙江口碑网络技术有限公司 Page testing method and device
CN112597065A (en) * 2021-03-03 2021-04-02 浙江口碑网络技术有限公司 Page testing method and device
CN114900632A (en) * 2022-05-11 2022-08-12 深圳创维-Rgb电子有限公司 Test question submitting method, system, equipment and computer readable storage medium

Also Published As

Publication number Publication date
WO2020233034A1 (en) 2020-11-26

Similar Documents

Publication Publication Date Title
CN110221969A (en) A kind of page function test method and relevant apparatus
JP7371141B2 (en) Tools and methods for real-time dataflow programming languages
US9189377B1 (en) Automation testing using descriptive maps
CN106095673A (en) Automated testing method based on WEB interface and system
CN107463409A (en) A kind of interface conversion method, interface convertor, storage medium and electric terminal
CN109743311A (en) A kind of WebShell detection method, device and storage medium
CN113760730B (en) Automatic test method and device
CN103995778B (en) A kind of script file generation method and its device based on event and action
US12001823B2 (en) Systems and methods for building and deploying machine learning applications
CN104915297B (en) A kind of automated testing method of the APP power consumption of android equipment
CN105760296A (en) Automation testing control method, device and terminal
CN101237662B (en) Method and device for generating automatic test cases of mobile phone
CN109800147B (en) Test case generation method and terminal equipment
CN114185770A (en) Method and device for generating test data, computer equipment and storage medium
CN114356631A (en) Fault positioning method and device, computer equipment and storage medium
CN111124892B (en) Automatic testing method and system based on command line
WO2022122174A1 (en) Methods and apparatuses for troubleshooting a computer system
CN115185797A (en) Method and system for testing visual algorithm model, electronic equipment and storage medium
CN107273250A (en) The method of testing and device of electronic declaration form automatic cover system
US20200082822A1 (en) System and method for mapping a customer journey to a category
CN103955425A (en) Webpage (WEB) exploring testing device and method
Forell et al. Modeling meets Large Language Models
CN115964115B (en) Numerical control machine tool interaction method based on pre-training reinforcement learning and related equipment
CN110177006B (en) Node testing method and device based on interface prediction model
CN107679159A (en) Generation method, device, server and the storage medium that fault diagnosis class problem replies

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190910