CN108647355A - Methods of exhibiting, device, equipment and the storage medium of test case - Google Patents

Methods of exhibiting, device, equipment and the storage medium of test case Download PDF

Info

Publication number
CN108647355A
CN108647355A CN201810471628.8A CN201810471628A CN108647355A CN 108647355 A CN108647355 A CN 108647355A CN 201810471628 A CN201810471628 A CN 201810471628A CN 108647355 A CN108647355 A CN 108647355A
Authority
CN
China
Prior art keywords
test case
test
information
informative abstract
key word
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
CN201810471628.8A
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201810471628.8A priority Critical patent/CN108647355A/en
Publication of CN108647355A publication Critical patent/CN108647355A/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Electrically Operated Instructional Devices (AREA)

Abstract

The invention discloses a kind of methods of exhibiting of test case, device, equipment and storage mediums.The method includes:The key word information that user currently inputs is obtained, detects in key word information and whether there is keyword to be modified;When there is no keyword to be modified, the test data for including key word information is searched from presetting database, obtains the corresponding test case information of test data;Corresponding test case informative abstract is generated according to test case information, and test case informative abstract is shown, test data associated with these key word informations is searched by then passing through key word information input by user, then it according to the corresponding test case informative abstract of Test data generation that finds and shows, so as to will simply and effectively have associated test case to show user, facilitate user to check and use, improves the efficiency of test research and development.

Description

Methods of exhibiting, device, equipment and the storage medium of test case
Technical field
The present invention relates to software testing technology field more particularly to a kind of methods of exhibiting of test case, device, equipment and Storage medium.
Background technology
Test case is that tester carries out in test process types of applications program function integrality and stability, by The script or document for including the contents such as means of testing, testing procedure, expected results, actual result that tester writes.It is led It is difference by between expected results and actual result to act on, and reference frame is provided for research staff, especially for reality Border result and the inconsistent test data of expected results can be very good the mentality of designing for correcting research staff.
Currently, test case is write or is constructed mostly by theoretical and experience, and in fact for certain with similar The exploitation and test of function, test case there are certain relevance, can be reused to mitigate exploitation and test hardly possible Degree.Therefore, how to make research and development tester quick obtaining and the test case with relevance of checking these, improve test and grind Efficiency is sent out, a urgent problem to be solved is become.
The above is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that the above is existing skill Art.
Invention content
The main purpose of the present invention is to provide a kind of methods of exhibiting of test case, device, equipment and storage medium, purports It is solving in the prior art, can not fast and effeciently obtain and show the test case with relevance, is improving test research and development effect The problem of rate.
To achieve the above object, the present invention provides a kind of methods of exhibiting of test case, the method includes following steps Suddenly:
The key word information that user currently inputs is obtained, detects and whether there is key to be modified in the key word information Word;
When there is no keyword to be modified, the test number for including the key word information is searched from presetting database According to obtaining the corresponding test case information of the test data;
Corresponding test case informative abstract is generated according to the test case information, and the test case information is plucked It is shown.
Preferably, described that the test data for including the key word information is searched from presetting database, obtain the survey The step of trying data corresponding test case information, including:
Convert the keyword for including in the key word information to corresponding index information;
Using search for generally finding out from presetting database include the index information test data;
Obtain the corresponding test case information of each test data.
Preferably, described the step of obtaining each test data corresponding test case information, including:
Corresponding test data mark is extracted from the test data;
Test case information corresponding with test data mark is searched in mapping relations, is deposited in the mapping relations The correspondence being placed between test data mark and test case information.
Preferably, described that corresponding test case informative abstract is generated according to the test case information, and to the survey The step of example informative abstract on probation is shown, including:
Corresponding test case informative abstract is generated by automatic text summarization according to the test case information;
The test case informative abstract is shown by preset rules.
Preferably, the described the step of test case informative abstract is shown by preset rules, including:
The matching degree between the test case informative abstract and the key word information is determined respectively;
Several matching degrees determined are ranked up by sequence from big to small, and according to clooating sequence to the survey Example informative abstract on probation is shown.
Preferably, described to determine matching degree between the test case informative abstract and the key word information respectively Step, including:
Using the keyword for including in the key word information as target critical word set, the target keyword set pair is obtained The keyword sum answered;
Each test case informative abstract is calculated separately out to the target critical by following formula according to the keyword sum The coverage rate of word set;
Using calculated coverage rate as the matching degree between test case informative abstract and the key word information,
P=α/βs,
Wherein, P is coverage rate, and the keyword number that α is covered by test case informative abstract, β is keyword sum.
Preferably, described that corresponding test case informative abstract is generated according to the test case information, and to the survey After the step of example informative abstract on probation is shown, the method further includes:
It receives data input by user and checks instruction, determine and check the corresponding target detection use-case letter of instruction with the data Breath abstract;
According to the target detection use-case information, it is corresponding that the target detection use-case informative abstract is obtained from database Content is tested, and shows the test content, the test content includes:Test case, test error information and/or applied field Scape information.
In addition, to achieve the above object, the present invention also proposes that a kind of displaying device of test case, described device include:
Data obtaining module, information searching module and data display module;
Described information acquisition module, the key word information currently inputted for obtaining user, detects the key word information In whether there is keyword to be modified;
Described information searching module is searched from presetting database and includes for when there is no keyword to be modified The test data of the key word information obtains the corresponding test case information of the test data;
The data display module, for generating corresponding test case informative abstract according to the test case information, And the test case informative abstract is shown.
In addition, to achieve the above object, the present invention also proposes that a kind of presentation device of test case, the equipment include: Memory, processor and the presentation program for being stored in the test case that can be run on the memory and on the processor, The presentation program of the test case is arranged for carrying out the step of methods of exhibiting of test case as described above.
In addition, to achieve the above object, the present invention also proposes a kind of storage medium, and test is stored on the storage medium The presentation program of the presentation program of use-case, the test case realizes test case as described above when being executed by processor The step of methods of exhibiting.
The key word information that the present invention is currently inputted by obtaining user detects in key word information with the presence or absence of to be modified Keyword;When there is no keyword to be modified, the test data for including key word information is searched from presetting database, Obtain the corresponding test case information of test data;Corresponding test case informative abstract is generated according to test case information, and Test case informative abstract is shown, is searched and these key word informations by then passing through key word information input by user Then associated test data according to the corresponding test case informative abstract of Test data generation that finds and shows, from And can will simply and effectively have associated test case to show user, facilitate user to check and use, improves test The efficiency of research and development.
Description of the drawings
Fig. 1 is the structural representation of the presentation device of the test case for the hardware running environment that the embodiment of the present invention is related to Figure;
Fig. 2 is the flow diagram of the methods of exhibiting first embodiment of test case of the present invention;
Fig. 3 is the flow diagram of the methods of exhibiting second embodiment of test case of the present invention;
Fig. 4 is the flow diagram of the methods of exhibiting 3rd embodiment of test case of the present invention;
Fig. 5 is the structure diagram of the displaying device first embodiment of test case of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
It should be appreciated that described herein, specific examples are only used to explain the present invention, is not intended to limit the present invention.
Referring to Fig.1, Fig. 1 is the presentation device knot of the test case for the hardware running environment that the embodiment of the present invention is related to Structure schematic diagram.
As shown in Figure 1, the presentation device of the test case may include:Processor 1001, such as central processing unit (Central Processing Unit, CPU), communication bus 1002, user interface 1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is for realizing the connection communication between these components.User interface 1003 may include display Shield (Display), input unit such as keyboard (Keyboard), optional user interface 1003 can also connect including the wired of standard Mouth, wireless interface.Network interface 1004 may include optionally standard wireline interface and wireless interface (such as Wireless Fidelity (WIreless-FIdelity, WI-FI) interface).Memory 1005 can be the random access memory (Random of high speed Access Memory, RAM) memory, can also be stable nonvolatile memory (Non-Volatile Memory, ), such as magnetic disk storage NVM.Memory 1005 optionally can also be the storage device independently of aforementioned processor 1001.
It will be understood by those skilled in the art that structure shown in Fig. 1 is not constituted to the presentation device of test case It limits, may include either combining certain components or different components arrangement than illustrating more or fewer components.
As shown in Figure 1, as may include operating system, data storage mould in a kind of memory 1005 of storage medium The presentation program of block, network communication module, Subscriber Interface Module SIM and test case.
In the presentation device of test case shown in Fig. 1, network interface 1004 is mainly used for carrying out with background server Data communicate;User interface 1003 is mainly used for carrying out data interaction with user;In the presentation device of test case of the present invention Processor 1001, memory 1005 can be arranged in the presentation device of test case, and the presentation device of the test case is logical It crosses processor 1001 and calls the presentation program of the test case stored in memory 1005, and execute provided in an embodiment of the present invention The methods of exhibiting of test case.
An embodiment of the present invention provides a kind of methods of exhibiting of test case, are test case of the present invention with reference to Fig. 2, Fig. 2 Methods of exhibiting first embodiment flow diagram.
In the present embodiment, it the described method comprises the following steps:
Step S10:The key word information that user currently inputs is obtained, is detected in the key word information with the presence or absence of to be repaired Positive keyword;
It should be noted that the executive agent of the present embodiment method can be can be into line program operation, information exchange, number According to the electronic equipment of processing and network communication, such as smart mobile phone, tablet computer or PC, other are can also be certainly Device or equipment (hereinafter referred to as terminal) with similar functions, the present embodiment is without limitation.
It should be understood that the key word information can be such as vocabulary, number, letter and/or character string input by user Deng the information data for being used for carrying out information index.In the present embodiment, the key word information may include:Test script or test The title or code name for the loophole (bug) that test script/use-case occurs in the title of use-case, test process or answering for test data With information such as scenes.
It is understood that user when inputting key word information it is possible that hand, which is misled, writes the feelings of breath input error Condition, in order to ensure that terminal when receiving user and having input error-critical word information, remains able to accurately inquire for user Want the test data of inquiry, terminal can be when receiving key word information input by user, first to key word information into style of writing This amendment detects, and whether there is keyword to be modified in the key word information to detect, and if it exists, then to input by user Keyword to be modified is first modified in key word information, if being not present, carries out follow-up search operation, to effectively avoid The not accurate enough situation of query result occurs.In the present embodiment, the text amendment detection can be by key input by user Word information is compared with the lexical information of local lexical data base, network words database and/or user's history input, then Judged according to comparison result.
Certainly, before executing this step, test data that tester can generate different test cases according to number, The list items such as bug, the application scenarios occurred in title, specific scripted code, test process establish a tables of data, so by several The corresponding tables of data of test data is preserved into corresponding database.
In the concrete realization, when terminal gets the key word information that user inputs in the search box of current interaction page When, it detects and whether there is keyword to be modified in the key word information, and if it exists, then to key word information input by user In keyword to be modified be first modified, if being not present, execute the step S20.
Step S20:When there is no keyword to be modified, it includes the key word information to be searched from presetting database Test data, obtain the corresponding test case information of the test data;
In the concrete realization, terminal in detecting the key word information be not present keyword to be modified when, according to Key word information input by user extracts this several keyword to be checked, and from local storage space or server count Include the test data of any keyword input by user according to lookup in library (i.e. presetting database), and obtains these test numbers According to corresponding test case information, the test information can be it is above-mentioned comprising test data according to number, title, specific script The concrete form of the tables of data of the list items such as the bug, the application scenarios that occur in code, test process, the test information does not limit System.
Step S30:Corresponding test case informative abstract is generated according to the test case information, and the test is used Example informative abstract is shown.
It will be appreciated that since often length is larger for test script code in test case information, and display circle of terminal Face size is limited, in order to allow users to it is simple and clear check each test case, facilitate user to be looked into according to self-demand See the selection of content.In the present embodiment, terminal can generate the corresponding survey of each test case according to the test case information got Example informative abstract on probation.
It should be noted that the test case informative abstract can be the corresponding content summary of test case, substantially It may include the content outline of means of testing, testing procedure, expected results and actual result, can also include other letters certainly The reason of ceasing, such as reporting an error in the concrete application scene of test case, test process, specific clip Text is not limited System.
In addition, terminal generates the corresponding test case informative abstract of each test data, tool according to the test case information Body can obtain the corresponding test case informative abstract of each test data, the autotext by way of automatic text summarization Abstract (abbreviation automatic abstract) is exactly that digest is automatically extracted from original, and digest is all-sidedly and accurately to reflect a certain document The simply coherent short essay in centre point ground, common method are autoabstract using text as the linear order of sentence, and sentence is regarded For the linear order of word.In the present embodiment, one or more in key word information is may include in the test case informative abstract A keyword.
In the concrete realization, terminal generates corresponding test case informative abstract according to test case information, then aobvious Show and test case informative abstract is shown on interface, so that user checks.
The key word information that the present embodiment is currently inputted by obtaining user detects in key word information with the presence or absence of to be repaired Positive keyword;When there is no keyword to be modified, the test number for including key word information is searched from presetting database According to the corresponding test case information of acquisition test data;Corresponding test case informative abstract is generated according to test case information, And test case informative abstract is shown, believed with these keywords by then passing through key word information input by user and searching Then the associated test data of manner of breathing according to the corresponding test case informative abstract of Test data generation that finds and shows, So as to will simply and effectively have associated test case to show user, facilitates user to check and use, improve survey Try the efficiency of research and development.
With reference to figure 3, Fig. 3 is the flow diagram of the methods of exhibiting second embodiment of test case of the present invention.
It is described from preset data in the methods of exhibiting for the test case that the present embodiment proposes based on above-mentioned first embodiment The step of being searched in library and include the test data of the key word information, obtaining the test data corresponding test case information It may particularly include:
Step S201:Convert the keyword for including in the key word information to corresponding index information;
In this step, it is to be checked several to can extract out this when getting key word information input by user for terminal Then a keyword converts the keyword extracted to corresponding index information.It is described to convert the keyword extracted to Corresponding index information can (such as convert the conversion of keyword progress different type language to Chinese vocabulary to corresponding English Literary full name/abbreviation), such as:Active user input key word information be:Mobile terminal (Mobile Terminal, MT), user Interface (User Interface, UI) test, font/icon are shown, then can be incited somebody to action according to preset transformation rule " mobile End, UI tests, font/icon are shown " be converted to corresponding index information " MT, UI test, Font/Icon Display ";Again Or convert each common keyword to corresponding code/character string according to preset conversion table, it can also be only right Key word information carries out segment processing, does not make formal any change etc., mode the present embodiment of specific keyword conversion It is not restricted.
Step S202:Using search for generally finding out from presetting database include the index information test number According to;
It should be understood that so-called search for generally depositing between on the one hand can be understood as allowing searched information and search to put question to In certain difference, this species diversity is exactly the meaning of " fuzzy " in the search, for example, search name Smith when, will find out with Similar Smithe, Smythe, Smyth, Smitt etc.;On the other hand can be the synonym search that terminal carries out automatically, together Adopted word can be by the administrator configurations of the presetting database, for example, configuration " computer " after synonym, is searched with " computer " Rope " computer ", then include " computer " information may also appear in search result.
In the present embodiment, in order to make the test data finally obtained is more enough to cover keyword input by user to the maximum extent Information, found out from presetting database by the way of searching for generally include the index information several test numbers According to ensure the level of coverage of search result.
Step S203:Obtain the corresponding test case information of each test data.
In the concrete realization, terminal by search for generally getting include index information several test datas after, i.e., Corresponding test case information can be further obtained from presetting database according to these test datas.
Further, in order to reach the purpose of each test case information of quick obtaining, a test data can be pre-established It identifies the correspondence (i.e. mapping relations) between test case information and is stored in terminal and server, so that terminal is obtaining When getting test data, corresponding test data mark (e.g., the title of test case, self-defined is extracted from test data Number, store path etc.), it is then identified according to the test data extracted and is searched and the test number in the mapping relations According to corresponding test case information is identified, test case information is fast and accurately obtained with realizing.It is reflected in the mapping relations It penetrates end source to identify for test data, destination end source is test case information.
The present embodiment is by converting the keyword for including in key word information to corresponding index information;It is searched using fuzzy Rope found out from presetting database include index information test data;Then the corresponding test of each test data is obtained to use Example information, so as to ensure to find out the broad covered area of test data, and by being extracted wherein when getting test data Including test data mark, quickly and accurately found out according to the mapping relations pre-established corresponding with test data mark Test case information, further increase test efficiency of research and development.
With reference to figure 4, Fig. 4 is the flow diagram of the methods of exhibiting 3rd embodiment of test case of the present invention.
Based on the various embodiments described above, in the methods of exhibiting for the test case that the present embodiment proposes, the step S30 is specifically wrapped Include following steps:
Step S301:Corresponding test case information is generated according to the test case information by automatic text summarization to pluck It wants;
It will be appreciated that automatic text summarization is generally divided into two major classes, one kind is removable (extractive), i.e., from Some crucial sentences are found in document to be summarized, and are combined into an abstract;Another kind of is abstractive (abstractive), this mode needs automatic equipment that can understand the content of document to be summarized, and utilizes the understanding of itself It is summarized and.In view of the accuracy of test case informative abstract, the present embodiment preferably uses removable autotext Abstract mode.
In the concrete realization, terminal generates each test number according to the test case information got by automatic text summarization According to corresponding test case informative abstract.
Step S302:The test case informative abstract is shown by preset rules.
In this step, terminal, can be by preset after generating the corresponding test case informative abstract of each test data Displaying regular (the i.e. described preset rules) is shown each test case informative abstract, specifically, terminal can determine respectively respectively Matching degree between test case informative abstract and key word information;Then by sequence from big to small to determine several Matching degree is ranked up, and is shown to each test case informative abstract according to clooating sequence.
Specifically, terminal can pass through when determining the matching degree between each test case informative abstract and key word information Using several keywords for including in key word information as target critical word set, the corresponding keyword of target keyword collection is obtained Sum;Then each test case informative abstract is calculated separately out to target keyword by formula P=α/βs according to keyword sum The coverage rate of collection;Again using calculated coverage rate as the matching degree between test case informative abstract and key word information, In, P is coverage rate, and the keyword number that α is covered by test case informative abstract, β is keyword sum.For example, this target The keyword for including in keyword set is " client, performance test, concurrency performance test, load testing, pressure test ", through inspection It surveys, the keyword number covered in test case informative abstract A is " client, performance test, pressure test ", test case information The keyword number covered in abstract B is " performance test, concurrency performance test, load testing, pressure test ", then according to formula P =α/β, you can it is 3/5=0.6, test case letter to the coverage rate of target critical word set to calculate test case informative abstract A Breath abstract B is 4/5=0.8 to the coverage rate of target critical word set, i.e., between test case informative abstract A and key word information Matching degree is 0.6, and the matching degree between test case informative abstract B and key word information is 0.8.
The present embodiment generates corresponding test case information by automatic text summarization according to the test case information and plucks It wants, then determines the matching degree between each test case informative abstract and key word information respectively;Sequence from big to small is pressed again Several matching degrees determined are ranked up, and each test case informative abstract are shown according to clooating sequence, energy Enough user will be preferentially showed with the higher test case informative abstract of key word information matching degree input by user, and alleviate use The workload at family reduces inquiry difficulty.
Based on the various embodiments described above, the fourth embodiment of the methods of exhibiting of test case of the present invention is proposed
In the present embodiment, the methods of exhibiting of the test case is further comprising the steps of:Receive data input by user It checks instruction, determines and check the corresponding target detection use-case informative abstract of instruction with data;According to target detection use-case information, from The corresponding test content of target detection use-case informative abstract is obtained in database, and shows test content, the test content packet It includes:Test case, test error information and/or application scenarios information.
In the concrete realization, test research staff can be worked as when finding test case informative abstract by clicking terminal Button generates data and checks instruction checking on preceding interactive interface, so that terminal is when receiving the data and checking instruction, really Determine the corresponding detailed test content of target detection use-case informative abstract that user wants to check, and carrying out page jump will be detailed Content displaying is tested to user.
It, can be further, in this embodiment test research staff is for the test case that often reports an error in test process After confirming its abnormal scene and abnormal factors, the test case after modification and perfection is replaced into test wrong in test content and is used Example, and update into database.
The present embodiment checks instruction by receiving data input by user, determines and checks the corresponding target survey of instruction with data Example informative abstract on probation;According to target detection use-case information, it is corresponding that target detection use-case informative abstract is obtained from database Test content simultaneously shows test content, so as to by detailed test content information it is complete and comprehensive show user, it is convenient User understands.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium On be stored with the presentation program of test case, realized when the presentation program of the test case is executed by processor as described above Test case methods of exhibiting the step of.
With reference to the structure diagram for the displaying device first embodiment that Fig. 5, Fig. 5 are test case of the present invention.
As shown in figure 5, the displaying device for the test case that the embodiment of the present invention also proposes includes:Data obtaining module 501, Information searching module 502 and data display module 503;
Described information acquisition module 501, the key word information currently inputted for obtaining user detect the keyword letter It whether there is keyword to be modified in breath;
It should be understood that the key word information can be such as vocabulary, number, letter and/or character string input by user Deng the information data for being used for carrying out information index.In the present embodiment, the key word information may include:Test script or test The title or code name for the loophole (bug) that test script/use-case occurs in the title of use-case, test process or answering for test data With information such as scenes.
It is understood that user when inputting key word information it is possible that hand, which is misled, writes the feelings of breath input error Condition, in order to ensure the displaying device of test data when receiving user and having input error-critical word information, it is accurate to remain able to Ground is that user inquires the test data for wanting inquiry, and data obtaining module 501 can receive keyword letter input by user When breath, text amendment detection first is carried out to key word information, whether there is pass to be modified in the key word information to detect Keyword, and if it exists, then keyword to be modified in key word information input by user is first modified, if being not present, into The follow-up search operation of row, the situation to effectively avoid query result not accurate enough occur.In the present embodiment, the text amendment Detection can be by key word information input by user and local lexical data base, network words database and/or user's history The lexical information of input is compared, and is then judged according to comparison result.
Certainly, the test data that tester can in advance generate different test cases is according to number, title, specific script The list items such as the bug, the application scenarios that occur in code, test process establish a tables of data, so correspond to several test datas Tables of data preserve into corresponding database.
In the concrete realization, it is inputted when data obtaining module 501 gets user in the search box of current interaction page Key word information when, detect in the key word information whether there is keyword to be modified, and if it exists, then to user input Key word information in keyword to be modified be first modified, if there is no the key word information is transferred to described information Searching module 502.
Described information searching module 502, for when there is no keyword to be modified, packet to be searched from presetting database Test data containing the key word information obtains the corresponding test case information of the test data;
In the concrete realization, pass to be modified is not present in information searching module 502 in detecting the key word information When keyword, this several keyword to be checked is extracted according to key word information input by user, and from sky is locally stored Between or server database in search include any keyword input by user test data, and obtain these test datas Corresponding test case information, the test information can be it is above-mentioned comprising test data according to number, title, specific script generation The concrete form of the tables of data of the list items such as bug, the application scenarios occurred in code, test process, the test information is not limited.
The data display module 503 is plucked for generating corresponding test case information according to the test case information It wants, and the test case informative abstract is shown.
It will be appreciated that since often length is larger for test script code in test case information, and display circle of terminal Face size is limited, in order to allow users to it is simple and clear check each test case, facilitate user to be looked into according to self-demand See the selection of content.In the present embodiment, data display module 503 can generate each test according to the test case information got and use The corresponding test case informative abstract of example.
It should be noted that the test case informative abstract can be the corresponding content summary of test case, substantially It may include the content outline of means of testing, testing procedure, expected results and actual result, can also include other letters certainly The reason of ceasing, such as reporting an error in the concrete application scene of test case, test process, specific clip Text is not limited System.
In addition, data display module 503 generates the corresponding test case of each test data according to the test case information Informative abstract can specifically obtain the corresponding test case informative abstract of each test data by way of automatic text summarization, The automatic text summarization (abbreviation automatic abstract) is exactly that digest is automatically extracted from original, and digest is all-sidedly and accurately With reflecting a certain literature centre's content simply coherent short essay, common method is autoabstract using text as the linear order of sentence Sentence, is considered as the linear order of word by row.In the present embodiment, it may include in key word information in the test case informative abstract One or more keywords.
In the concrete realization, data display module 503 generates corresponding test case information according to test case information and plucks It wants, then test case informative abstract is shown on display interface, so that user checks.
The key word information that the displaying device of the present embodiment test data is currently inputted by obtaining user, detects keyword It whether there is keyword to be modified in information;When there is no keyword to be modified, from presetting database search include The test data of key word information obtains the corresponding test case information of test data;It is generated and is corresponded to according to test case information Test case informative abstract, and test case informative abstract is shown, is believed by then passing through keyword input by user Breath searches test data associated with these key word informations, then according to the corresponding test of Test data generation found Use-case informative abstract is simultaneously shown, so as to will simply and effectively have associated test case to show user, facilitates user It checks and uses, improve the efficiency of test research and development.
Displaying device first embodiment based on test case of the present invention proposes the displaying device the of test case of the present invention Two embodiments.
In the present embodiment, described information searching module 502 is additionally operable to the keyword that will include in the key word information It is converted into corresponding index information;Using search for generally finding out from presetting database include the index information test Data;Obtain the corresponding test case information of each test data.
Further, described information searching module 502 is additionally operable to extract corresponding test number from the test data According to mark;Test case information corresponding with test data mark is searched in mapping relations, is deposited in the mapping relations The correspondence being placed between test data mark and test case information.
Further, the data display module 503 is additionally operable to be plucked by autotext according to the test case information Generate corresponding test case informative abstract;The test case informative abstract is shown by preset rules.
Further, the data display module 503, be additionally operable to determine respectively the test case informative abstract with it is described Matching degree between key word information;Several matching degrees determined are ranked up by sequence from big to small, and according to Clooating sequence is shown the test case informative abstract.
Further, the data display module 503, be additionally operable to the keyword that will include in the key word information as Target critical word set obtains the corresponding keyword sum of the target keyword collection;
Each test case informative abstract is calculated separately out to the target critical by following formula according to the keyword sum The coverage rate of word set;
Using calculated coverage rate as the matching degree between test case informative abstract and the key word information,
P=α/βs,
Wherein, P is coverage rate, and the keyword number that α is covered by test case informative abstract, β is keyword sum.
Further, the displaying device of the present embodiment test case further includes content displaying module, the content displaying mould Block checks instruction for receiving data input by user, determines and checks the corresponding target detection use-case letter of instruction with the data Breath abstract;According to the target detection use-case information, it is corresponding that the target detection use-case informative abstract is obtained from database Content is tested, and shows the test content, the test content includes:Test case, test error information and/or applied field Scape information.
It is real that the other embodiment or specific implementation of the displaying device of test case of the present invention can refer to above-mentioned each method Example is applied, details are not described herein again.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or system including a series of elements include not only those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this There is also other identical elements in the process of element, method, article or system.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium (in such as read-only memory (Read Only Memory, ROM/RAM, magnetic disc, CD), including some instructions are used so that one Terminal device (can be mobile phone, computer, server, air conditioner or the network equipment etc.) executes each embodiment of the present invention The method.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of methods of exhibiting of test case, which is characterized in that the method includes:
The key word information that user currently inputs is obtained, detects and whether there is keyword to be modified in the key word information;
When there is no keyword to be modified, the test data for including the key word information is searched from presetting database, Obtain the corresponding test case information of the test data;
Generate corresponding test case informative abstract according to the test case information, and to the test case informative abstract into Row displaying.
2. the method as described in claim 1, which is characterized in that described searched from presetting database is believed comprising the keyword The test data of breath, the step of obtaining the test data corresponding test case information, including:
Convert the keyword for including in the key word information to corresponding index information;
Using search for generally finding out from presetting database include the index information test data;
Obtain the corresponding test case information of each test data.
3. method as claimed in claim 2, which is characterized in that each test data corresponding test case information of obtaining Step, including:
Corresponding test data mark is extracted from the test data;
Test case information corresponding with test data mark is searched in mapping relations, being stored in the mapping relations has Test data identifies the correspondence between test case information.
4. method as claimed in claim 3, which is characterized in that described to generate corresponding test according to the test case information Use-case informative abstract, and the step of test case informative abstract is shown, including:
Corresponding test case informative abstract is generated by automatic text summarization according to the test case information;
The test case informative abstract is shown by preset rules.
5. method as claimed in claim 4, which is characterized in that it is described by preset rules to the test case informative abstract into The step of row displaying, including:
The matching degree between the test case informative abstract and the key word information is determined respectively;
Several matching degrees determined are ranked up by sequence from big to small, and the test is used according to clooating sequence Example informative abstract is shown.
6. method as claimed in claim 5, which is characterized in that it is described respectively determine the test case informative abstract with it is described The step of matching degree between key word information, including:
Using the keyword for including in the key word information as target critical word set, it is corresponding to obtain the target keyword collection Keyword sum;
Each test case informative abstract is calculated separately out to the target critical word set by following formula according to the keyword sum Coverage rate;
Using calculated coverage rate as the matching degree between test case informative abstract and the key word information,
P=α/βs,
Wherein, P is coverage rate, and the keyword number that α is covered by test case informative abstract, β is keyword sum.
7. method as claimed in claim 6, which is characterized in that described to generate corresponding test according to the test case information Use-case informative abstract, and after the step of being shown to the test case informative abstract, the method further includes:
It receives data input by user and checks instruction, determine and check that the corresponding target detection use-case information of instruction is plucked with the data It wants;
According to the target detection use-case information, the corresponding test of the target detection use-case informative abstract is obtained from database Content, and show the test content, the test content includes:Test case, test error information and/or application scenarios letter Breath.
8. a kind of displaying device of test case, which is characterized in that described device includes:Data obtaining module, information searching mould Block and data display module;
Described information acquisition module, the key word information currently inputted for obtaining user, detecting in the key word information is It is no that there are keywords to be modified;
Described information searching module, for when there is no keyword to be modified, being searched comprising described from presetting database The test data of key word information obtains the corresponding test case information of the test data;
The data display module, for generating corresponding test case informative abstract according to the test case information, and it is right The test case informative abstract is shown.
9. a kind of presentation device of test case, which is characterized in that the equipment includes:Memory, processor and it is stored in institute The presentation program for the test case that can be run on memory and on the processor is stated, the presentation program of the test case is matched The step of being set to the methods of exhibiting for realizing the test case as described in any one of claim 1 to 7.
10. a kind of storage medium, which is characterized in that be stored with the presentation program of test case, the survey on the storage medium The presentation program of example on probation realizes the displaying side of test case as described in any one of claim 1 to 7 when being executed by processor The step of method.
CN201810471628.8A 2018-05-16 2018-05-16 Methods of exhibiting, device, equipment and the storage medium of test case Pending CN108647355A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810471628.8A CN108647355A (en) 2018-05-16 2018-05-16 Methods of exhibiting, device, equipment and the storage medium of test case

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810471628.8A CN108647355A (en) 2018-05-16 2018-05-16 Methods of exhibiting, device, equipment and the storage medium of test case

Publications (1)

Publication Number Publication Date
CN108647355A true CN108647355A (en) 2018-10-12

Family

ID=63756353

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810471628.8A Pending CN108647355A (en) 2018-05-16 2018-05-16 Methods of exhibiting, device, equipment and the storage medium of test case

Country Status (1)

Country Link
CN (1) CN108647355A (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109446104A (en) * 2018-11-16 2019-03-08 郑州云海信息技术有限公司 A kind of testing case management and device based on big data
CN109542795A (en) * 2018-12-13 2019-03-29 平安科技(深圳)有限公司 Recommend method, apparatus, the medium, electronic equipment of test action for user
CN109656815A (en) * 2018-11-27 2019-04-19 平安科技(深圳)有限公司 There are test statement write method, device, medium and the electronic equipment of configuration file
CN109684207A (en) * 2018-12-14 2019-04-26 平安科技(深圳)有限公司 Method, apparatus, electronic equipment and the storage medium of sequence of operation encapsulation
CN109684198A (en) * 2018-11-13 2019-04-26 平安科技(深圳)有限公司 Data capture method to be tested, device, medium, electronic equipment
CN109857661A (en) * 2019-01-25 2019-06-07 深圳微品致远信息科技有限公司 A kind of intelligence based on big data analysis generates the method and system of test case
CN109947654A (en) * 2019-03-28 2019-06-28 上海连尚网络科技有限公司 The method and apparatus automatically updated for test case library
CN110427328A (en) * 2019-08-07 2019-11-08 北京字节跳动网络技术有限公司 Text handling method, device, equipment and storage medium
CN110908902A (en) * 2019-11-12 2020-03-24 北京云测信息技术有限公司 Method and device for editing test steps and electronic equipment
CN111046073A (en) * 2019-12-11 2020-04-21 广州品唯软件有限公司 Test case query method and device and readable storage medium
TWI695273B (en) * 2019-02-01 2020-06-01 和碩聯合科技股份有限公司 System and method for planning test plan
CN111782505A (en) * 2020-05-26 2020-10-16 株洲中车时代电气股份有限公司 Train system simulation test method and device, computer equipment and storage medium
CN112579466A (en) * 2020-12-25 2021-03-30 深圳证券交易所 Test case generation method and device and computer readable storage medium
CN113225347A (en) * 2021-05-12 2021-08-06 杨必 Network security protection system and algorithm based on simulation attack strategy
CN113515454A (en) * 2021-07-01 2021-10-19 深圳创维-Rgb电子有限公司 Test case generation method, device, equipment and storage medium
CN117313111A (en) * 2023-11-30 2023-12-29 中汽智联技术有限公司 Labeling and indexing method and system based on automobile information security test cases
CN112579466B (en) * 2020-12-25 2024-06-07 深圳证券交易所 Method and device for generating test cases and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103020049A (en) * 2011-09-20 2013-04-03 中国电信股份有限公司 Searching method and searching system
US20140289260A1 (en) * 2013-03-22 2014-09-25 Hewlett-Packard Development Company, L.P. Keyword Determination
CN104424342A (en) * 2013-09-11 2015-03-18 携程计算机技术(上海)有限公司 Method for keyword matching, and device, server and system of method
CN106294358A (en) * 2015-05-14 2017-01-04 北京大学 The search method of a kind of information and system
CN107341080A (en) * 2017-07-07 2017-11-10 郑州云海信息技术有限公司 A kind of test case management system and method
CN107783983A (en) * 2016-08-24 2018-03-09 北京国双科技有限公司 Information displaying method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103020049A (en) * 2011-09-20 2013-04-03 中国电信股份有限公司 Searching method and searching system
US20140289260A1 (en) * 2013-03-22 2014-09-25 Hewlett-Packard Development Company, L.P. Keyword Determination
CN104424342A (en) * 2013-09-11 2015-03-18 携程计算机技术(上海)有限公司 Method for keyword matching, and device, server and system of method
CN106294358A (en) * 2015-05-14 2017-01-04 北京大学 The search method of a kind of information and system
CN107783983A (en) * 2016-08-24 2018-03-09 北京国双科技有限公司 Information displaying method and device
CN107341080A (en) * 2017-07-07 2017-11-10 郑州云海信息技术有限公司 A kind of test case management system and method

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109684198A (en) * 2018-11-13 2019-04-26 平安科技(深圳)有限公司 Data capture method to be tested, device, medium, electronic equipment
CN109684198B (en) * 2018-11-13 2024-03-29 平安科技(深圳)有限公司 Method, device, medium and electronic equipment for acquiring data to be tested
CN109446104A (en) * 2018-11-16 2019-03-08 郑州云海信息技术有限公司 A kind of testing case management and device based on big data
CN109656815A (en) * 2018-11-27 2019-04-19 平安科技(深圳)有限公司 There are test statement write method, device, medium and the electronic equipment of configuration file
CN109656815B (en) * 2018-11-27 2022-05-27 平安科技(深圳)有限公司 Test statement writing method, device and medium with configuration file and electronic equipment
CN109542795A (en) * 2018-12-13 2019-03-29 平安科技(深圳)有限公司 Recommend method, apparatus, the medium, electronic equipment of test action for user
CN109684207A (en) * 2018-12-14 2019-04-26 平安科技(深圳)有限公司 Method, apparatus, electronic equipment and the storage medium of sequence of operation encapsulation
CN109857661B (en) * 2019-01-25 2022-04-26 深圳微品致远信息科技有限公司 Method and system for intelligently generating test cases based on big data analysis
CN109857661A (en) * 2019-01-25 2019-06-07 深圳微品致远信息科技有限公司 A kind of intelligence based on big data analysis generates the method and system of test case
TWI695273B (en) * 2019-02-01 2020-06-01 和碩聯合科技股份有限公司 System and method for planning test plan
CN109947654A (en) * 2019-03-28 2019-06-28 上海连尚网络科技有限公司 The method and apparatus automatically updated for test case library
CN110427328A (en) * 2019-08-07 2019-11-08 北京字节跳动网络技术有限公司 Text handling method, device, equipment and storage medium
CN110908902A (en) * 2019-11-12 2020-03-24 北京云测信息技术有限公司 Method and device for editing test steps and electronic equipment
CN110908902B (en) * 2019-11-12 2023-04-21 北京云测信息技术有限公司 Editing method and device for testing steps and electronic equipment
CN111046073A (en) * 2019-12-11 2020-04-21 广州品唯软件有限公司 Test case query method and device and readable storage medium
CN111782505A (en) * 2020-05-26 2020-10-16 株洲中车时代电气股份有限公司 Train system simulation test method and device, computer equipment and storage medium
CN111782505B (en) * 2020-05-26 2024-05-28 株洲中车时代电气股份有限公司 Train system simulation test method, device, computer equipment and storage medium
CN112579466A (en) * 2020-12-25 2021-03-30 深圳证券交易所 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
CN113225347A (en) * 2021-05-12 2021-08-06 杨必 Network security protection system and algorithm based on simulation attack strategy
CN113515454A (en) * 2021-07-01 2021-10-19 深圳创维-Rgb电子有限公司 Test case generation method, device, equipment and storage medium
CN117313111A (en) * 2023-11-30 2023-12-29 中汽智联技术有限公司 Labeling and indexing method and system based on automobile information security test cases
CN117313111B (en) * 2023-11-30 2024-04-09 中汽智联技术有限公司 Labeling and indexing method and system based on automobile information security test cases

Similar Documents

Publication Publication Date Title
CN108647355A (en) Methods of exhibiting, device, equipment and the storage medium of test case
Groen et al. Users—the hidden software product quality experts?: A study on how app users report quality aspects in online reviews
US10169471B2 (en) Generating and executing query language statements from natural language
US9524291B2 (en) Visual display of semantic information
US10303689B2 (en) Answering natural language table queries through semantic table representation
CN110837550A (en) Knowledge graph-based question and answer method and device, electronic equipment and storage medium
US10565303B2 (en) Word order suggestion processing
WO2020077824A1 (en) Method, apparatus, and device for locating abnormality, and storage medium
CN107783976B (en) User information mining method and device
US10599760B2 (en) Intelligent form creation
JP7254925B2 (en) Transliteration of data records for improved data matching
US20220121668A1 (en) Method for recommending document, electronic device and storage medium
US11907863B2 (en) Natural language enrichment using action explanations
EP2951680B1 (en) Acquiring identification of an application lifecycle management entity associated with similar code
CN116560683A (en) Software updating method, device, equipment and storage medium
US11487801B2 (en) Dynamic data visualization from factual statements in text
US20220374212A1 (en) Indexing and accessing source code snippets contained in documents
US20210271637A1 (en) Creating descriptors for business analytics applications
CN111602129B (en) Smart search for notes and ink
CN111460235A (en) Atlas data processing method, device, equipment and storage medium
Suresh et al. Kaleidoscope: Semantically-grounded, context-specific ML model evaluation
US20150186363A1 (en) Search-Powered Language Usage Checks
CN111898762B (en) Deep learning model catalog creation
CN114115908A (en) Instruction set generation method, program analysis method, device and storage medium
US10846198B2 (en) Automatic navigation from log statement to code

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

Application publication date: 20181012