WO2016078335A1 - Method and apparatus for writing automatic script - Google Patents

Method and apparatus for writing automatic script Download PDF

Info

Publication number
WO2016078335A1
WO2016078335A1 PCT/CN2015/077534 CN2015077534W WO2016078335A1 WO 2016078335 A1 WO2016078335 A1 WO 2016078335A1 CN 2015077534 W CN2015077534 W CN 2015077534W WO 2016078335 A1 WO2016078335 A1 WO 2016078335A1
Authority
WO
WIPO (PCT)
Prior art keywords
business function
business
function
writing
keyword
Prior art date
Application number
PCT/CN2015/077534
Other languages
French (fr)
Chinese (zh)
Inventor
闵祥伟
刘宗昌
樊志强
单东立
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016078335A1 publication Critical patent/WO2016078335A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for writing an automated script.
  • the application of automated testing increases the efficiency of software testing, reduces the labor intensity of testers and reduces the cost of testing.
  • the writing of automated scripts is at the heart of automated testing. Automated scripts are written based on test cases, and coverage of test cases is accomplished by running the automated scripts.
  • the tester writes the automation script firstly needs to be familiar with the test case-related business, and then can write the automation script according to the steps of the test case. In order to ensure that the automation script can meet the requirements, the tester needs to complete the automation script. Troubleshoot and debug automated scripts.
  • the automatic scripting in the prior art has the following problems: when the function is called during the writing process, the information about the function is required to be consulted, and the automatic script writing is slow and inefficient, which leads to high automation test cost.
  • the embodiment of the invention provides a method and a device for writing an automatic script, so as to at least solve the technical problem that the automatic scripting in the prior art is slow in writing speed and low in efficiency, resulting in high cost of automatic testing.
  • an embodiment of the present invention provides a method for writing an automated script, and the method for writing the automated script includes the following steps:
  • the method for writing the automated script obtains other business functions related to the selected business function from the business function library, and displays the other business functions, including:
  • the method before the selecting the corresponding business function from the business function library, the method further includes:
  • mapping relationship table in which the keyword and the service function name are in one-to-one correspondence is established in the business function library
  • the obtaining the business function corresponding to the keyword of the test case from the business function library, and displaying the acquired business function specifically includes:
  • the acquired business function is displayed in descending order of weights of the business function under the keyword condition.
  • the method comprises:
  • the method further comprises:
  • mapping relationship table Establishing, in the mapping relationship table, a mapping relationship between the selected service function and the keyword
  • the method for writing the automated script further includes:
  • the text information of the remaining part of the business function name is automatically completed to form a complete name of the business function.
  • the method for writing the automated script further includes:
  • the method for writing the automated script further includes:
  • the parameter is triggered according to the parameter of the received service function, and the parameter information of the service function is obtained and displayed, so that the user completes the subsequent parameter editing operation according to the displayed parameter information.
  • the method for writing the automated script further includes:
  • the method for writing the automated script further includes:
  • an embodiment of the present invention further provides an apparatus for writing an automatic script, where the writing apparatus of the automatic script includes:
  • the presentation module is configured to obtain other business functions related to the selected business function from the business function library, and display the other business functions, so that the user determines subsequent operations according to other business functions displayed.
  • the display module comprises:
  • a generating unit configured to generate a list of related functions of the selected business function, the related function list recording all business function names associated with the selected business function;
  • a calculation unit configured to calculate a correlation value between the selected business function and each of the business functions recorded in the related function list
  • a deleting unit configured to delete a business function name whose correlation value from the selected business function is less than a set correlation threshold from the related function list, to form a new related function list
  • the display unit set to display all of the business functions recorded in the new related function list when the selected business function is output.
  • the writing device of the automated script further comprises:
  • the obtaining module is configured to obtain a business function corresponding to the keyword of the test case from the business function library, and display the acquired business function;
  • the selection module is configured to select a corresponding business function from the displayed business functions; or select a corresponding business function from a business function library different from the displayed business function.
  • the automatic script writing device has a mapping relationship table in which the keyword and the business function name are in one-to-one correspondence;
  • the obtaining module includes:
  • a search unit configured to acquire a keyword in the test case, and search for a business function name corresponding to the keyword from the mapping relationship table according to the keyword;
  • An obtaining unit configured to obtain a corresponding business function from a business function library according to the business function name
  • the first display unit is configured to display the acquired business function in descending order of weights of the business function under the keyword condition.
  • the writing device of the automated script further comprises:
  • the weight processing module is configured to add "1" to the weight of the selected business function under the keyword condition after selecting the corresponding business function from the displayed business functions.
  • the writing device of the automated script further comprises:
  • Establishing a module configured to: after selecting a corresponding business function from a business function library different from the displayed business function, establishing a mapping relationship between the selected business function and the keyword in the mapping relationship table;
  • the weight processing module sets the weight of the business function under the keyword condition to "1".
  • the writing device of the automated script further comprises:
  • the auto-completion module is configured to automatically complete the text information of the remaining part of the business function name according to part of the text information of the received business function name to form a complete name of the business function.
  • the writing device of the automated script further comprises:
  • the online help module is configured to obtain and display corresponding online help information according to the received online help instructions.
  • the writing device of the automated script further comprises:
  • the parameter display module is configured to: according to the parameter edit trigger instruction of the received business function, obtain and display the parameter information of the business function, so that the user completes the subsequent parameter editing operation according to the displayed parameter information.
  • the writing device of the automated script further comprises:
  • the function structure processing module is configured to write an instruction according to the received business function structure, generate a corresponding business function structure template, and modify the instruction according to the received business function structure, and perform corresponding modification on the business function structure template.
  • the writing device of the automated script further comprises:
  • the grammar checking module is configured to determine whether there is a grammatical error in the prepared automatic script according to the received grammar check instruction; and generate and display the grammar error prompt information when there is a grammatical error.
  • the method and device for writing a self-developing script selects a corresponding business function from a business function library according to a received function selection instruction in an automatic script writing process; and obtains and selects a selected service from a business function library Other business functions related to the function, and the other business functions are displayed, so that the user can determine the manner of subsequent operations according to other business functions displayed.
  • the user does not need to spend a lot of time searching for the selected service.
  • the related business functions of the function can speed up the writing of automated scripts, improve the efficiency of writing automated scripts, and reduce the labor cost of automated testing.
  • FIG. 1 is a schematic flow chart of an embodiment of a method for writing an automated script according to the present invention
  • FIG. 2 is a schematic diagram of obtaining a business function corresponding to a keyword of a test case from a business function library according to the present invention, and showing a schematic diagram of a specific refinement process of the obtained business function;
  • step S20 in FIG. 1 is a schematic diagram of a specific refinement process of step S20 in FIG. 1;
  • FIG. 4 is a schematic diagram of functional modules of an embodiment of an automatic script writing apparatus of the present invention.
  • FIG. 5 is a schematic diagram of a refinement function module of the module shown in FIG. 4;
  • FIG. 6 is a schematic diagram of functional modules of another embodiment of an apparatus for writing an automated script according to the present invention.
  • FIG. 7 is a schematic diagram of a refinement function module of the acquisition module in FIG. 6;
  • FIG. 8 is a schematic diagram of functional modules of still another embodiment of an apparatus for writing an automated script according to the present invention.
  • FIG. 9 is a schematic diagram of functional modules of still another embodiment of an apparatus for writing an automated script according to the present invention.
  • FIG. 10 is a schematic diagram of functional modules of still another embodiment of an apparatus for writing an automated script according to the present invention.
  • FIG. 11 is a schematic diagram of functional modules of still another embodiment of an apparatus for writing an automated script according to the present invention.
  • FIG. 12 is a schematic diagram of functional modules of still another embodiment of an apparatus for writing an automated script according to the present invention.
  • FIG. 13 is a schematic diagram of functional modules of still another embodiment of an apparatus for writing an automated script according to the present invention.
  • FIG. 1 is a schematic flowchart of an embodiment of a method for writing an automated script according to the present invention.
  • the method for writing the automated script includes:
  • step S10 in the process of writing the automatic script, according to the received function selection instruction, the corresponding business function is selected from the business function library.
  • the method before the selecting the corresponding business function from the business function library, the method further includes: obtaining a business function corresponding to the keyword of the test case from the business function library, and displaying the acquired business function.
  • the mapping table of the business function library has a mapping relationship between the keyword and the business function name.
  • FIG. 2 is a schematic diagram of a service function corresponding to a keyword of a test case obtained from a business function library according to the present invention, and showing a specific refinement process of the obtained business function.
  • the business function corresponding to the keyword of the test case is obtained from the business function library, and the obtained business function is specifically processed as follows:
  • Step S21 Acquire a keyword in the test case, and search for a business function name corresponding to the keyword from the mapping relationship table according to the keyword.
  • Step S22 Obtain a corresponding business function from the business function library according to the business function name.
  • Step S23 displaying the acquired business function in descending order of weights of the business function under the keyword condition.
  • the number of selections of each corresponding business function under each keyword condition is recorded in the manner of weight value. According to the business function in the order of the weights under the keyword condition, the obtained business function is displayed, which enables the user to intuitively see that each corresponding business function is selected under the keyword bar. The number of uses allows the user to make quick and accurate choices.
  • the step of selecting the corresponding business function from the business function library in step S10 is specifically: selecting a corresponding business function from the displayed business function; or different from the displayed business function library Select the corresponding business function in the business function.
  • a corresponding business function is selected from the displayed business functions, after selecting the corresponding business function from the displayed business functions, the following processing is included: weights of the selected business function under the keyword condition Adding "1" indicates that the number of times the selected business function is selected under the keyword condition is increased by one.
  • mapping relationship Establishing a mapping relationship between the selected business function and the keyword, and setting a weight of the business function under the keyword condition to “1”, indicating that the selected business function is in the keyword The number of times selected under the condition is "1".
  • Step S20 Obtain other business functions related to the selected business function from the business function library, and display the other business functions, so that the user determines subsequent operations according to other business functions displayed.
  • FIG. 3 is a schematic diagram of a specific refinement process of step S20 in FIG.
  • the specific refinement steps of the step S20 are as follows:
  • Step S31 Generate a related function list of the selected business function, and the related function list records all business function names related to the selected business function.
  • Step S32 Calculate a correlation value between the selected business function and each of the business functions recorded in the related function list.
  • Step S33 A new related function list formed by deleting a business function name whose correlation value from the selected business function is less than a set correlation threshold from the related function list.
  • Step S34 when outputting the selected business function, displaying all the business functions recorded in the new related function list.
  • the correlation value between the business functions is (0-1), 0 is the minimum correlation value, 1 is the maximum correlation value, and the set correlation threshold is 0.6.
  • the selected business function is ConfigDutLdp under the keyword L2VPN condition.
  • the related functions of the ConfigDutLdp include: ConfigDutOspf, ConfigDutDynamicPw, ConfigDutCip, ConfigDutIsis, ConfigDutStaticPw.
  • ConfigDutLdp records the names of the following business functions: ConfigDutOspf, ConfigDutDynamicPw, ConfigDutCip, ConfigDutIsis, and ConfigDutStaticPw.
  • the calculated correlation values are: 0.33, 0.67, 1, 0.67, 0.33; then the calculated correlation value and the relevant threshold 0.6
  • the names of the corresponding business functions ConfigDutOspf and ConfigDutStaticPw whose correlation values (0.33) are less than the relevant threshold (0.6) are deleted from the related function list to form a new related function list; when the selected business function ConfigDutLdp is output, the new related function is displayed. All business functions ConfigDutDynamicPw, ConfigDutCip, ConfigDutIsis recorded in the list.
  • the method for writing the automatic script provided by the above embodiment, by selecting an instruction according to the received function in the process of writing the automatic script, selecting a corresponding business function from the business function library; and obtaining the selected business function from the business function library
  • Related other business functions, and the other business functions are displayed, so that the user can determine the follow-up operation according to other business functions displayed.
  • the user does not need to spend a lot of time searching for the selected business function.
  • Related business functions which can speed up the speed of writing automation scripts and improve the efficiency of writing automated scripts, thus reducing the labor cost of automated testing.
  • the present invention provides another embodiment of the method for writing an automated script.
  • the embodiment further includes the following processing on the basis of the foregoing method embodiment: automatically completing the remaining part of the service function name according to the partial text information of the received service function name.
  • the text message forms the complete name of the business function. That is, in the process of writing an automated script, when the user inputs the first few pieces of text information of a business function name in the edit box, the remaining pieces of the business function name are automatically added in the edit box according to the first few text information. Text information, forming a complete business function name.
  • the present invention provides a further embodiment of the method for writing an automated script.
  • the embodiment further includes the following processing on the basis of the foregoing method embodiment: acquiring and displaying corresponding online help information according to the received online help instruction. That is, in the process of automatic script writing, according to the online help instruction input by the user, the corresponding online help information is obtained from the online help information library, and the obtained online help information is displayed.
  • the user can input the online help command by pressing the set physical button or the virtual button. For example, when a certain business function is selected through the script editor, according to the online help instruction input by the user, the relevant information of the business function is obtained from the online help information database, and the business function related information obtained by the search is displayed, so that The user can quickly and easily understand the business function.
  • the present invention provides a further embodiment of the method for writing an automated script.
  • the embodiment further includes the following processing on the basis of the foregoing method embodiment: acquiring and displaying parameter information of the service function according to a parameter editing trigger instruction of the received service function, So that the user can complete the subsequent parameter editing operation according to the displayed parameter information. That is, in the process of writing the automatic script, when the relevant parameters of the business function need to be edited, the triggering instruction is edited according to the user input parameter, the parameter information of the corresponding business function is searched, and then the searched parameter is obtained and displayed. Information, according to the displayed parameter information, the user can know how to edit the parameter information of the business function, speed up the editing speed of the business function parameter information, and ensure the correct rate of parameter information editing.
  • the present invention provides a further embodiment of the method for writing an automated script.
  • the embodiment further includes the following processing on the basis of the foregoing method embodiment: writing instructions according to the received service function structure, generating a corresponding service function structure template, and according to the received service
  • the function structure modification instruction performs corresponding modification on the business function structure template.
  • the service function structure template includes: a business function loop structure template, a business function branch structure template, and a business function judgment structure template.
  • the business function structure writing instruction comprises: a business function loop structure writing instruction, a business function branch structure writing instruction, and a business function judgment structure writing instruction.
  • the present invention provides a further embodiment of the method for writing an automated script.
  • the embodiment further includes the following processing on the basis of the foregoing method embodiment: determining whether there is a syntax error in the prepared automatic script according to the received syntax check instruction; An error generates and displays a syntax error message. That is, when the automatic script writing needs to perform the grammar check, the user can input the grammar check instruction, perform the grammar check on the prepared automatic script according to the grammar check instruction input by the user, and judge whether there is a grammar error in the prepared automatic script; If there is a syntax error, a syntax error message is generated and displayed indicating the location of the syntax error.
  • FIG. 4 is a schematic diagram of functional modules of an embodiment of the automatic script writing apparatus of the present invention.
  • the authoring apparatus 100 of the automated script includes a selection module 110 and a presentation module 120.
  • the selection module 110 is configured to select a corresponding business function from the business function library according to the received function selection instruction during the automatic script writing process.
  • the display module 120 is configured to obtain other business functions related to the selected business function from the business function library, and display the other business functions, so that the user determines subsequent operations according to other business functions displayed.
  • FIG. 5 is a schematic diagram of a refinement function module of the module shown in FIG.
  • the display module 120 includes: a generating unit 121, a calculating unit 122, a deleting unit 123, and a displaying unit 124.
  • the generating unit 121 is configured to generate a related function list of the selected business function, and the related function list records all business function names related to the selected business function.
  • the calculating unit 122 is configured to calculate a correlation value between the selected business function and each of the business functions recorded in the related function list.
  • the deleting unit 123 is configured to delete, from the related function list, a business function name whose correlation value between the selected business function is less than the set correlation threshold, to form a new related function list.
  • the presentation unit 124 is configured to display all of the business functions recorded in the new related function list when the selected business function is output. For example, the correlation value between the business functions is (0-1), 0 is the minimum correlation value, 1 is the maximum correlation value, and the set correlation threshold is 0.6.
  • the selected business function is ConfigDutLdp under the keyword L2VPN condition.
  • the related functions of the ConfigDutLdp include: ConfigDutOspf, ConfigDutDynamicPw, ConfigDutCip, ConfigDutIsis, ConfigDutStaticPw.
  • ConfigDutLdp records the names of the following business functions: ConfigDutOspf, ConfigDutDynamicPw, ConfigDutCip, ConfigDutIsis, and ConfigDutStaticPw.
  • the calculated correlation values are: 0.33, 0.67, 1, 0.67, 0.33; then the calculated correlation value and the relevant threshold 0.6
  • the names of the corresponding business functions ConfigDutOspf and ConfigDutStaticPw whose correlation values (0.33) are less than the relevant threshold (0.6) are deleted from the related function list to form a new related function list; when the selected business function ConfigDutLdp is output, the new related function is displayed. All business functions ConfigDutDynamicPw, ConfigDutCip, ConfigDutIsis recorded in the list.
  • FIG. 6 is a schematic diagram of functional modules of another embodiment of the automatic script writing apparatus of the present invention.
  • the authoring apparatus 100 of the automated script further includes an acquisition module 130 on the basis of the above embodiments.
  • the obtaining module 130 is configured to obtain a business function corresponding to the keyword of the test case from the business function library, and display the acquired business function.
  • the mapping table of the business function library has a mapping relationship between the keyword and the business function name.
  • FIG. 7 is a schematic diagram of a refinement function module of the acquisition module of FIG. 6.
  • the obtaining module 130 includes: a searching unit 131, an obtaining unit 132, and a first displaying unit 133.
  • the searching unit 131 is configured to acquire a keyword in the test case, and search for a business function name corresponding to the keyword from the mapping relationship table according to the keyword.
  • the obtaining unit 132 is configured to acquire a corresponding business function from the business function library according to the business function name.
  • the first display unit 133 is configured to display the acquired business function in descending order of weights of the business function under the keyword condition. In this embodiment, the number of selections of each corresponding business function under each keyword condition is recorded in the manner of weight value. According to the business function in the order of the weights under the keyword condition, the obtained business function is displayed, which enables the user to intuitively see that each corresponding business function is selected under the keyword bar. The number of uses allows the user to make quick and accurate choices.
  • FIG. 8 is a schematic diagram of functional blocks of still another embodiment of an apparatus for writing an automated script according to the present invention.
  • the authoring apparatus 100 of the automated script further includes a weight processing module 140 and an establishing module 150 on the basis of the above embodiments.
  • the selection module 110 is configured to select a corresponding business function from the displayed business functions; or select a corresponding business function from a business function library different from the displayed business function. When the selection module 110 selects a corresponding business function from the displayed business functions, the keyword condition is passed by the weight processing module 140 after selecting a corresponding business function from the displayed business functions.
  • the weight of the selected business function is incremented by "1", which means that the number of times the selected business function is selected under the keyword condition is increased by one.
  • the selection module 110 selects a corresponding business function from a business function library different from the displayed business function
  • the selection is performed after the corresponding business function is selected from the business function library different from the displayed business function.
  • the module 150 establishes a mapping relationship between the selected service function and the keyword in the mapping relationship table, and sets, by the weight processing module 140, the weight of the business function under the keyword condition to "1" indicates that the selected business function is selected "1" under the keyword condition.
  • the automatic script writing apparatus 100 selects a corresponding business function from the business function library according to the received function selection instruction in the automatic script writing process; and acquires the selected service from the business function library.
  • Other business functions related to the function, and the other business functions are displayed, so that the user can determine the manner of subsequent operations according to other business functions displayed.
  • the related business functions of the function can speed up the writing of automated scripts, improve the efficiency of writing automated scripts, and reduce the labor cost of automated testing.
  • FIG. 9 is a schematic diagram of functional modules of still another embodiment of the automatic script writing device of the present invention.
  • the writing device 100 of the automated script further includes an automatic completion module 160 on the basis of the above embodiments.
  • the auto-completion module 160 is configured to automatically complete the text information of the remaining part of the business function name according to the partial text information of the received service function name to form a complete name of the business function. That is, in the process of writing an automated script, when the user inputs the first few pieces of text information of a business function name in the edit box, the remaining pieces of the business function name are automatically added in the edit box according to the first few text information. Text information, forming a complete business function name.
  • the user when the text information at the beginning of the business function name to be input is the same as the text information at the beginning of other business function names, when the user inputs several text information at the beginning of the business function name in the edit box, the user automatically searches for and displays the input information. For all the business function names of several text messages, when the user inputs the business function name selection instruction, the business function name to be input is selected from all the business function names displayed according to the selection instruction, and the input of the required business function name is realized.
  • FIG. 10 is a schematic diagram of functional modules of still another embodiment of the automatic script writing device of the present invention.
  • the writing device 100 of the automated script further includes an online help module 170 based on the above embodiments.
  • the online help module 170 is configured to acquire and display corresponding online help information according to the received online help instruction. That is, in the process of automatic script writing, according to the online help instruction input by the user, the corresponding online help information is obtained from the online help information library, and the obtained online help information is displayed. The user can input the online help command by pressing the set physical button or the virtual button.
  • the relevant information of the business function is obtained from the online help information database, and the business function related information obtained by the search is displayed, so that The user can quickly and easily understand the business function.
  • FIG. 11 is a functional block diagram of still another embodiment of the automatic script writing device of the present invention.
  • the automated script writing device 100 further includes a parameter display module 180 on the basis of the above embodiments.
  • the parameter display module is configured to: acquire and display parameter information of the service function according to the parameter edit trigger instruction of the received service function, so that the user completes the subsequent parameter editing operation according to the displayed parameter information. That is, in the process of writing the automatic script, when the relevant parameters of the business function need to be edited, the triggering instruction is edited according to the user input parameter, the parameter information of the corresponding business function is searched, and then the searched parameter is obtained and displayed. Information, according to the displayed parameter information, the user can know how to edit the parameter information of the business function, speed up the editing speed of the business function parameter information, and ensure the correct rate of parameter information editing.
  • FIG. 12 is a schematic diagram of functional modules of still another embodiment of the automatic script writing device of the present invention.
  • the automatic script writing device 100 The basis of the above embodiment also includes a function structure processing module 190.
  • the function structure processing module 190 is configured to: write a command according to the received service function structure, generate a corresponding service function structure template; and modify the instruction according to the received service function structure, and perform corresponding modification on the service function structure template.
  • the service function structure template includes: a business function loop structure template, a business function branch structure template, and a business function judgment structure template.
  • the business function structure writing instruction comprises: a business function loop structure writing instruction, a business function branch structure writing instruction, and a business function judgment structure writing instruction.
  • a business function loop structure writing instruction When receiving the business function loop structure writing instruction, generating a business function loop structure template; when receiving the business function branch structure writing instruction, generating a business function branch structure template; when receiving the business function judgment structure writing instruction, generating a business function Judge the structure template.
  • the cycle number modification instruction can modify the number of cycles in the business function loop structure template according to the number of cycles input by the user, thereby implementing the writing of the specific business function loop structure.
  • FIG. 13 is a schematic diagram of functional modules of still another embodiment of the automatic script writing device of the present invention.
  • the authoring apparatus 100 of the automated script further includes a grammar checking module 101 on the basis of the above embodiments.
  • the grammar checking module 101 is configured to determine whether a grammatical error exists in the prepared automatic script according to the received grammar check instruction; and generate and display grammar error prompt information when there is a grammatical error.
  • the user can input the grammar check instruction, perform the grammar check on the prepared automatic script according to the grammar check instruction input by the user, and judge whether there is a grammar error in the prepared automatic script; If there is a syntax error, a syntax error message is generated and displayed indicating the location of the syntax error.
  • the method and apparatus for writing an automated script provided by the embodiment of the present invention have the following beneficial effects: in the process of writing an automated script, the user does not need to spend a lot of time searching for the relevant business function of the selected business function, thereby enabling Speed up the speed of writing automation scripts, improve the efficiency of writing automated scripts, and reduce the labor costs of automated testing.

Abstract

A method and apparatus for writing automatic script are disclosed in the present invention, the method comprising: in the process of writing automatic script, selecting a corresponding service function from a service function database according to a received function selection instruction; obtaining other service functions associated with the selected service function from the service function database, and displaying the other service functions so as to enable the user to determine the subsequent operation on the basis of the displayed other service functions. An apparatus for writing automatic script is also disclosed in the present invention. With the method and apparatus for writing automatic script provided by the present invention, the user does not need to spend a lot of time searching and finding the associated service functions of the selected service function, therefore the speed of the automatic script written by the user could be accelerated, the writing efficiency of the automatic script could be improved and the labor cost of automatic testing could be reduced.

Description

自动化脚本的编写方法和装置Method and device for writing automated script 技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种自动化脚本的编写方法和装置。The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for writing an automated script.
背景技术Background technique
自动化测试的应用提高了软件测试的效率,减轻了测试人员的劳动强度以及降低了测试成本。自动化脚本的编写是自动化测试的核心。自动化脚本是根据测试用例来进行编写的,通过对自动化脚本的运行完成对测试用例的覆盖。The application of automated testing increases the efficiency of software testing, reduces the labor intensity of testers and reduces the cost of testing. The writing of automated scripts is at the heart of automated testing. Automated scripts are written based on test cases, and coverage of test cases is accomplished by running the automated scripts.
现有技术中,测试人员编写自动化脚本首先需要熟悉测试用例相关的业务,然后才能根据测试用例的步骤,编写自动化脚本,为了确保自动化脚本能够符合要求,测试人员在编写完自动化脚本后,还需要对自动化脚本进行排错和调试处理。In the prior art, the tester writes the automation script firstly needs to be familiar with the test case-related business, and then can write the automation script according to the steps of the test case. In order to ensure that the automation script can meet the requirements, the tester needs to complete the automation script. Troubleshoot and debug automated scripts.
现有技术中的这种自动化脚本编写存在如下问题:编写过程中调用函数时需要人为查阅函数的相关信息,自动化脚本编写速度慢、效率低,从而导致自动化测试成本高。The automatic scripting in the prior art has the following problems: when the function is called during the writing process, the information about the function is required to be consulted, and the automatic script writing is slow and inefficient, which leads to high automation test cost.
发明内容Summary of the invention
本发明实施例提供了一种自动化脚本的编写方法和装置,以至少解决现有技术中自动化脚本编写速度慢、效率低,导致自动化测试成本高的技术问题。The embodiment of the invention provides a method and a device for writing an automatic script, so as to at least solve the technical problem that the automatic scripting in the prior art is slow in writing speed and low in efficiency, resulting in high cost of automatic testing.
为实现上述目的,本发明实施例提供的一种自动化脚本的编写方法,所述自动化脚本的编写方法包括以下步骤:To achieve the above objective, an embodiment of the present invention provides a method for writing an automated script, and the method for writing the automated script includes the following steps:
在自动化脚本编写过程中,根据接收的函数选择指令,从业务函数库中选择相应的业务函数;In the process of writing an automated script, selecting a corresponding business function from the business function library according to the received function selection instruction;
从业务函数库中获取与所选业务函数相关的其他业务函数,并对所述其他业务函数进行展示,以使用户根据展示的其他业务函数确定后续操作。Other business functions related to the selected business function are obtained from the business function library, and the other business functions are displayed, so that the user determines subsequent operations according to other business functions displayed.
优选地,所述的自动化脚本的编写方法中从业务函数库中获取与所选业务函数相关的其他业务函数,并对所述其他业务函数进行展示具体包括: Preferably, the method for writing the automated script obtains other business functions related to the selected business function from the business function library, and displays the other business functions, including:
生成所选业务函数的相关函数列表,所述相关函数列表记录有与所选业务函数相关的所有业务函数名称;Generating a list of related functions for the selected business function, the list of related functions recording all business function names associated with the selected business function;
计算所选业务函数与所述相关函数列表中记录的每个业务函数之间的相关值;Calculating a correlation value between the selected business function and each of the business functions recorded in the related function list;
将与所选业务函数之间的相关值小于设定相关阈值的业务函数名称从所述相关函数列表中删除,形成的新相关函数列表;Forming a new correlation function list by deleting a business function name whose correlation value from the selected business function is less than a set correlation threshold from the related function list;
在输出所选业务函数时,展示新相关函数列表中记录的所有业务函数。Shows all the business functions recorded in the new related function list when the selected business function is output.
优选地,所述从业务函数库中选择相应的业务函数之前还包括:Preferably, before the selecting the corresponding business function from the business function library, the method further includes:
从业务函数库中获取与测试用例的关键字对应的业务函数,并展示所获取的业务函数;Obtain a business function corresponding to the keyword of the test case from the business function library, and display the acquired business function;
从业务函数库中选择相应的业务函数具体为:Select the corresponding business function from the business function library as follows:
从展示的所述业务函数中选择相应的业务函数;或者,Select the corresponding business function from the displayed business functions; or,
从业务函数库中不同于所展示的业务函数中选择相应的业务函数。Select the appropriate business function from the business function library that is different from the business function shown.
优选地,所述业务函数库中建立有关键字与业务函数名称一一对应的映射关系表;Preferably, a mapping relationship table in which the keyword and the service function name are in one-to-one correspondence is established in the business function library;
所述从业务函数库中获取与测试用例的关键字对应的业务函数,并展示所获取的业务函数具体包括:The obtaining the business function corresponding to the keyword of the test case from the business function library, and displaying the acquired business function specifically includes:
获取测试用例中的关键字,根据所述关键字从所述映射关系表中查找与所述关键字对应的业务函数名称;Obtaining a keyword in the test case, and searching, according to the keyword, the name of the business function corresponding to the keyword from the mapping relationship table;
根据所述业务函数名称从业务函数库获取相应的业务函数;Obtaining a corresponding business function from the business function library according to the business function name;
按照业务函数在所述关键字条件下的权值由大到小的顺序,展示所获取的业务函数。The acquired business function is displayed in descending order of weights of the business function under the keyword condition.
优选地,所述从展示的所述业务函数中选择相应的业务函数之后包括:Preferably, after selecting the corresponding business function from the displayed business functions, the method comprises:
对在所述关键字条件下的所选业务函数的权值加“1”。Add "1" to the weight of the selected business function under the keyword condition.
优选地,所述从业务函数库中不同于所展示的业务函数中选择相应的业务函数之后还包括: Preferably, after selecting the corresponding business function from the business function library different from the displayed business function, the method further comprises:
在所述映射关系表中建立所选业务函数与所述关键字对应的映射关系;Establishing, in the mapping relationship table, a mapping relationship between the selected service function and the keyword;
并将所述业务函数在所述关键字条件下的权值设置为“1”。And setting the weight of the business function under the keyword condition to "1".
优选地,所述的自动化脚本的编写方法还包括:Preferably, the method for writing the automated script further includes:
根据接收的业务函数名称的部分文字信息,自动补全所述业务函数名称剩余部分的文字信息,形成完整的所述业务函数名称。According to the partial text information of the received business function name, the text information of the remaining part of the business function name is automatically completed to form a complete name of the business function.
优选地,所述的自动化脚本的编写方法还包括:Preferably, the method for writing the automated script further includes:
根据接收的在线帮助指令,获取并展示相应的在线帮助信息。Obtain and display the corresponding online help information according to the received online help instructions.
优选地,所述的自动化脚本的编写方法还包括:Preferably, the method for writing the automated script further includes:
根据接收的业务函数的参数编辑触发指令,获取并展示所述业务函数的参数信息,以使用户根据展示的参数信息,完成后续的参数编辑操作。The parameter is triggered according to the parameter of the received service function, and the parameter information of the service function is obtained and displayed, so that the user completes the subsequent parameter editing operation according to the displayed parameter information.
优选地,所述的自动化脚本的编写方法还包括:Preferably, the method for writing the automated script further includes:
根据接收的业务函数结构编写指令,生成相应的业务函数结构模板;Writing instructions according to the received business function structure, and generating a corresponding business function structure template;
根据接收的业务函数结构修改指令,对所述业务函数结构模板进行相应的修改。Modifying the instruction according to the received business function structure, and modifying the business function structure template accordingly.
优选地,所述的自动化脚本的编写方法还包括:Preferably, the method for writing the automated script further includes:
根据接收的语法检查指令,判断编写好的自动化脚本中是否存在语法错误;Judging whether there is a syntax error in the prepared automation script according to the received syntax check instruction;
当存在语法错误,则生成并展示语法错误提示信息。When there is a syntax error, a syntax error message is generated and displayed.
此外,为实现上述目的,本发明实施例还提供一种自动化脚本的编写装置,所述自动化脚本的编写装置包括:In addition, in order to achieve the above object, an embodiment of the present invention further provides an apparatus for writing an automatic script, where the writing apparatus of the automatic script includes:
选择模块,设置为在自动化脚本编写过程中,根据接收的函数选择指令,从业务函数库中选择相应的业务函数;Selecting a module, set to select a corresponding business function from the business function library according to the received function selection instruction during the automatic script writing process;
展示模块,设置为从业务函数库中获取与所选业务函数相关的其他业务函数,并对所述其他业务函数进行展示,以使用户根据展示的其他业务函数确定后续操作。The presentation module is configured to obtain other business functions related to the selected business function from the business function library, and display the other business functions, so that the user determines subsequent operations according to other business functions displayed.
优选地,所述展示模块包括: Preferably, the display module comprises:
生成单元,设置为生成所选业务函数的相关函数列表,所述相关函数列表记录有与所选业务函数相关的所有业务函数名称;a generating unit configured to generate a list of related functions of the selected business function, the related function list recording all business function names associated with the selected business function;
计算单元,设置为计算所选业务函数与所述相关函数列表中记录的每个业务函数之间的相关值;a calculation unit configured to calculate a correlation value between the selected business function and each of the business functions recorded in the related function list;
删除单元,设置为将与所选业务函数之间的相关值小于设定相关阈值的业务函数名称从所述相关函数列表中删除,形成的新相关函数列表;a deleting unit, configured to delete a business function name whose correlation value from the selected business function is less than a set correlation threshold from the related function list, to form a new related function list;
展示单元,设置为在输出所选业务函数时,展示新相关函数列表中记录的所有业务函数。The display unit, set to display all of the business functions recorded in the new related function list when the selected business function is output.
优选地,所述的自动化脚本的编写装置还包括:Preferably, the writing device of the automated script further comprises:
获取模块,设置为从业务函数库中获取与测试用例的关键字对应的业务函数,并展示所获取的业务函数;The obtaining module is configured to obtain a business function corresponding to the keyword of the test case from the business function library, and display the acquired business function;
所述选择模块,设置为从展示的所述业务函数中选择相应的业务函数;或者,从业务函数库中不同于所展示的业务函数中选择相应的业务函数。The selection module is configured to select a corresponding business function from the displayed business functions; or select a corresponding business function from a business function library different from the displayed business function.
优选地,所述的自动化脚本的编写装置,所述业务函数库中建立有关键字与业务函数名称一一对应的映射关系表;Preferably, the automatic script writing device has a mapping relationship table in which the keyword and the business function name are in one-to-one correspondence;
所述获取模块包括:The obtaining module includes:
查找单元,设置为获取测试用例中的关键字,根据所述关键字从所述映射关系表中查找与所述关键字对应的业务函数名称;a search unit, configured to acquire a keyword in the test case, and search for a business function name corresponding to the keyword from the mapping relationship table according to the keyword;
获取单元,设置为根据所述业务函数名称从业务函数库获取相应的业务函数;An obtaining unit, configured to obtain a corresponding business function from a business function library according to the business function name;
第一展示单元,设置为按照业务函数在所述关键字条件下的权值由大到小的顺序,展示所获取的业务函数。The first display unit is configured to display the acquired business function in descending order of weights of the business function under the keyword condition.
优选地,所述的自动化脚本的编写装置还包括:Preferably, the writing device of the automated script further comprises:
权值处理模块,设置为在从展示的所述业务函数中选择相应的业务函数之后,对所述关键字条件下的所选业务函数的权值加“1”。The weight processing module is configured to add "1" to the weight of the selected business function under the keyword condition after selecting the corresponding business function from the displayed business functions.
优选地,所述的自动化脚本的编写装置还包括: Preferably, the writing device of the automated script further comprises:
建立模块,设置为在从业务函数库中不同于所展示的业务函数中选择相应的业务函数之后,在所述映射关系表中建立所选业务函数与所述关键字对应的映射关系;并通过所述权值处理模块将所述业务函数在所述关键字条件下的权值设置为“1”。Establishing a module, configured to: after selecting a corresponding business function from a business function library different from the displayed business function, establishing a mapping relationship between the selected business function and the keyword in the mapping relationship table; The weight processing module sets the weight of the business function under the keyword condition to "1".
优选地,所述的自动化脚本的编写装置还包括:Preferably, the writing device of the automated script further comprises:
自动补全模块,设置为根据接收的业务函数名称的部分文字信息,自动补全所述业务函数名称剩余部分的文字信息,形成完整的所述业务函数名称。The auto-completion module is configured to automatically complete the text information of the remaining part of the business function name according to part of the text information of the received business function name to form a complete name of the business function.
优选地,所述的自动化脚本的编写装置还包括:Preferably, the writing device of the automated script further comprises:
在线帮助模块,设置为根据接收的在线帮助指令,获取并展示相应的在线帮助信息。The online help module is configured to obtain and display corresponding online help information according to the received online help instructions.
优选地,所述的自动化脚本的编写装置还包括:Preferably, the writing device of the automated script further comprises:
参数展示模块,设置为根据接收的业务函数的参数编辑触发指令,获取并展示所述业务函数的参数信息,以使用户根据展示的参数信息,完成后续的参数编辑操作。The parameter display module is configured to: according to the parameter edit trigger instruction of the received business function, obtain and display the parameter information of the business function, so that the user completes the subsequent parameter editing operation according to the displayed parameter information.
优选地,所述的自动化脚本的编写装置还包括:Preferably, the writing device of the automated script further comprises:
函数结构处理模块,设置为根据接收的业务函数结构编写指令,生成相应的业务函数结构模板;以及根据接收的业务函数结构修改指令,对所述业务函数结构模板进行相应的修改。The function structure processing module is configured to write an instruction according to the received business function structure, generate a corresponding business function structure template, and modify the instruction according to the received business function structure, and perform corresponding modification on the business function structure template.
优选地,所述的自动化脚本的编写装置还包括:Preferably, the writing device of the automated script further comprises:
语法检查模块,设置为根据接收的语法检查指令,判断编写好的自动化脚本中是否存在语法错误;以及当存在语法错误,则生成并展示语法错误提示信息。The grammar checking module is configured to determine whether there is a grammatical error in the prepared automatic script according to the received grammar check instruction; and generate and display the grammar error prompt information when there is a grammatical error.
本发明所提供的自身化脚本的编写方法和装置,通过在自动化脚本编写过程中,根据接收的函数选择指令,从业务函数库中选择相应的业务函数;从业务函数库中获取与所选业务函数相关的其他业务函数,并对所述其他业务函数进行展示,以使用户根据展示的其他业务函数确定后续操作的方式,在编写自动化脚本过程中,无需用户花费大量的时间搜索查找所选业务函数的相关业务函数,从而能够加快用户编写自动化脚本的速度,提高自动化脚本的编写效率,降低了自动化测试的人工成本。 The method and device for writing a self-developing script provided by the invention selects a corresponding business function from a business function library according to a received function selection instruction in an automatic script writing process; and obtains and selects a selected service from a business function library Other business functions related to the function, and the other business functions are displayed, so that the user can determine the manner of subsequent operations according to other business functions displayed. In the process of writing the automatic script, the user does not need to spend a lot of time searching for the selected service. The related business functions of the function can speed up the writing of automated scripts, improve the efficiency of writing automated scripts, and reduce the labor cost of automated testing.
附图说明DRAWINGS
图1是本发明的自动化脚本的编写方法一实施例的流程示意图;1 is a schematic flow chart of an embodiment of a method for writing an automated script according to the present invention;
图2是本发明的从业务函数库中获取与测试用例的关键字对应的业务函数,并展示所获取的业务函数具体细化流程示意图;2 is a schematic diagram of obtaining a business function corresponding to a keyword of a test case from a business function library according to the present invention, and showing a schematic diagram of a specific refinement process of the obtained business function;
图3是图1中步骤S20的具体细化流程示意图;3 is a schematic diagram of a specific refinement process of step S20 in FIG. 1;
图4是本发明的自动化脚本的编写装置一实施例的功能模块示意图;4 is a schematic diagram of functional modules of an embodiment of an automatic script writing apparatus of the present invention;
图5是图4中展示模块的细化功能模块示意图;5 is a schematic diagram of a refinement function module of the module shown in FIG. 4;
图6是本发明的自动化脚本的编写装置另一实施例的功能模块示意图;6 is a schematic diagram of functional modules of another embodiment of an apparatus for writing an automated script according to the present invention;
图7是图6中获取模块的细化功能模块示意图;7 is a schematic diagram of a refinement function module of the acquisition module in FIG. 6;
图8是本发明的自动化脚本的编写装置又一实施例的功能模块示意图。FIG. 8 is a schematic diagram of functional modules of still another embodiment of an apparatus for writing an automated script according to the present invention.
图9是本发明的自动化脚本的编写装置又一实施例的功能模块示意图;9 is a schematic diagram of functional modules of still another embodiment of an apparatus for writing an automated script according to the present invention;
图10是本发明的自动化脚本的编写装置又一实施例的功能模块示意图;10 is a schematic diagram of functional modules of still another embodiment of an apparatus for writing an automated script according to the present invention;
图11是本发明的自动化脚本的编写装置又一实施例的功能模块示意图;11 is a schematic diagram of functional modules of still another embodiment of an apparatus for writing an automated script according to the present invention;
图12是本发明的自动化脚本的编写装置又一实施例的功能模块示意图;12 is a schematic diagram of functional modules of still another embodiment of an apparatus for writing an automated script according to the present invention;
图13是本发明的自动化脚本的编写装置又一实施例的功能模块示意图。FIG. 13 is a schematic diagram of functional modules of still another embodiment of an apparatus for writing an automated script according to the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明实施例提供一种自动化脚本的编写方法参照图1,图1是本发明的自动化脚本的编写方法一实施例的流程示意图。在一实施例中,该自动化脚本的编写方法包括:The embodiment of the present invention provides a method for writing an automated script. Referring to FIG. 1 , FIG. 1 is a schematic flowchart of an embodiment of a method for writing an automated script according to the present invention. In an embodiment, the method for writing the automated script includes:
步骤S10,在自动化脚本编写过程中,根据接收的函数选择指令,从业务函数库中选择相应的业务函数。 In step S10, in the process of writing the automatic script, according to the received function selection instruction, the corresponding business function is selected from the business function library.
本实施例中,在所述从业务函数库中选择相应的业务函数之前还包括如下处理:从业务函数库中获取与测试用例的关键字对应的业务函数,并展示所获取的业务函数。其中,所述业务函数库中建立有关键字与业务函数名称一一对应的映射关系表。参见图2,图2是本发明的从业务函数库中获取与测试用例的关键字对应的业务函数,并展示所获取的业务函数具体细化流程示意图。所述从业务函数库中获取与测试用例的关键字对应的业务函数,并展示所获取的业务函数具体处理如下:In this embodiment, before the selecting the corresponding business function from the business function library, the method further includes: obtaining a business function corresponding to the keyword of the test case from the business function library, and displaying the acquired business function. The mapping table of the business function library has a mapping relationship between the keyword and the business function name. Referring to FIG. 2, FIG. 2 is a schematic diagram of a service function corresponding to a keyword of a test case obtained from a business function library according to the present invention, and showing a specific refinement process of the obtained business function. The business function corresponding to the keyword of the test case is obtained from the business function library, and the obtained business function is specifically processed as follows:
步骤S21、获取测试用例中的关键字,根据所述关键字从所述映射关系表中查找与所述关键字对应的业务函数名称。Step S21: Acquire a keyword in the test case, and search for a business function name corresponding to the keyword from the mapping relationship table according to the keyword.
步骤S22、根据所述业务函数名称从业务函数库获取相应的业务函数。Step S22: Obtain a corresponding business function from the business function library according to the business function name.
步骤S23、按照业务函数在所述关键字条件下的权值由大到小的顺序,展示所获取的业务函数。Step S23, displaying the acquired business function in descending order of weights of the business function under the keyword condition.
本实施例中以权值大小的方式记录每个关键字条件下相应的每个业务函数的选择次数。按照业务函数在所述关键字条件下的权值由大到小的顺序,展示所获取的业务函数,能够让用户很直观地查看到在所述关键字条下相应的每个业务函数被选择使用的次数,使得用户能够快速准确地做出选择。In this embodiment, the number of selections of each corresponding business function under each keyword condition is recorded in the manner of weight value. According to the business function in the order of the weights under the keyword condition, the obtained business function is displayed, which enables the user to intuitively see that each corresponding business function is selected under the keyword bar. The number of uses allows the user to make quick and accurate choices.
本实施例中,所述步骤S10的从业务函数库中选择相应的业务函数步骤具体为:从展示的所述业务函数中选择相应的业务函数;或者,从业务函数库中不同于所展示的业务函数中选择相应的业务函数。当从展示的所述业务函数中选择相应的业务函数,则在从展示的所述业务函数中选择相应的业务函数之后包括如下处理:对所述关键字条件下的所选业务函数的权值加“1”,即表明所选业务函数在所述关键字条件下被选择的次数增加1次。当从业务函数库中不同于所展示的业务函数中选择相应的业务函数,则在从业务函数库中不同于所展示的业务函数中选择相应的业务函数之后包括如下处理:在所述映射关系表中建立所选业务函数与所述关键字对应的映射关系,并将所述业务函数在所述关键字条件下的权值设置为“1”,即表明所选业务函数在所述关键字条件下被选择的次数为“1”。In this embodiment, the step of selecting the corresponding business function from the business function library in step S10 is specifically: selecting a corresponding business function from the displayed business function; or different from the displayed business function library Select the corresponding business function in the business function. When a corresponding business function is selected from the displayed business functions, after selecting the corresponding business function from the displayed business functions, the following processing is included: weights of the selected business function under the keyword condition Adding "1" indicates that the number of times the selected business function is selected under the keyword condition is increased by one. When a corresponding business function is selected from the business function library different from the displayed business function, after selecting the corresponding business function from the business function library different from the displayed business function, the following processing is included: in the mapping relationship Establishing a mapping relationship between the selected business function and the keyword, and setting a weight of the business function under the keyword condition to “1”, indicating that the selected business function is in the keyword The number of times selected under the condition is "1".
步骤S20,从业务函数库中获取与所选业务函数相关的其他业务函数,并对所述其他业务函数进行展示,以使用户根据展示的其他业务函数确定后续操作。Step S20: Obtain other business functions related to the selected business function from the business function library, and display the other business functions, so that the user determines subsequent operations according to other business functions displayed.
参见图3,图3是图1中步骤S20的具体细化流程示意图。所述步骤S20具体细化步骤如下: Referring to FIG. 3, FIG. 3 is a schematic diagram of a specific refinement process of step S20 in FIG. The specific refinement steps of the step S20 are as follows:
步骤S31、生成所选业务函数的相关函数列表,所述相关函数列表记录有与所选业务函数相关的所有业务函数名称。Step S31: Generate a related function list of the selected business function, and the related function list records all business function names related to the selected business function.
步骤S32、计算所选业务函数与所述相关函数列表中记录的每个业务函数之间的相关值。Step S32: Calculate a correlation value between the selected business function and each of the business functions recorded in the related function list.
步骤S33、将与所选业务函数之间的相关值小于设定相关阈值的业务函数名称从所述相关函数列表中删除,形成的新相关函数列表。Step S33: A new related function list formed by deleting a business function name whose correlation value from the selected business function is less than a set correlation threshold from the related function list.
步骤S34、在输出所选业务函数时,展示新相关函数列表中记录的所有业务函数。Step S34, when outputting the selected business function, displaying all the business functions recorded in the new related function list.
例如:设业务函数之间的相关值为(0-1),0为最小相关值,1为最大相关值,设定的相关阈值为0.6,在关键字L2VPN条件下所选业务函数为ConfigDutLdp。所述ConfigDutLdp的相关函数包括:ConfigDutOspf、ConfigDutDynamicPw、ConfigDutCip、ConfigDutIsis、ConfigDutStaticPw。即ConfigDutLdp的相关函数列表记录有以下业务函数的名称:ConfigDutOspf、ConfigDutDynamicPw、ConfigDutCip、ConfigDutIsis、ConfigDutStaticPw。然后计算ConfigDutLdp与ConfigDutOspf、ConfigDutDynamicPw、ConfigDutCip、ConfigDutIsis、ConfigDutStaticPw之间的相关值,计算得出的相关值分别为:0.33、0.67、1、0.67、0.33;然后将计算出的相关值与相关阈值0.6进行比较,将相关值(0.33)小于相关阈值(0.6)的相应的业务函数ConfigDutOspf、ConfigDutStaticPw的名称从相关函数列表中删除,形成新相关函数列表;在输出所选业务函数ConfigDutLdp时,展示新相关函数列表中记录的所有业务函数ConfigDutDynamicPw、ConfigDutCip、ConfigDutIsis。For example, the correlation value between the business functions is (0-1), 0 is the minimum correlation value, 1 is the maximum correlation value, and the set correlation threshold is 0.6. The selected business function is ConfigDutLdp under the keyword L2VPN condition. The related functions of the ConfigDutLdp include: ConfigDutOspf, ConfigDutDynamicPw, ConfigDutCip, ConfigDutIsis, ConfigDutStaticPw. That is, the list of related functions of ConfigDutLdp records the names of the following business functions: ConfigDutOspf, ConfigDutDynamicPw, ConfigDutCip, ConfigDutIsis, and ConfigDutStaticPw. Then calculate the correlation value between ConfigDutLdp and ConfigDutOspf, ConfigDutDynamicPw, ConfigDutCip, ConfigDutIsis, ConfigDutStaticPw, the calculated correlation values are: 0.33, 0.67, 1, 0.67, 0.33; then the calculated correlation value and the relevant threshold 0.6 For comparison, the names of the corresponding business functions ConfigDutOspf and ConfigDutStaticPw whose correlation values (0.33) are less than the relevant threshold (0.6) are deleted from the related function list to form a new related function list; when the selected business function ConfigDutLdp is output, the new related function is displayed. All business functions ConfigDutDynamicPw, ConfigDutCip, ConfigDutIsis recorded in the list.
以上所述实施例提供的自动化脚本的编写方法,通过在自动化脚本编写过程中,根据接收的函数选择指令,从业务函数库中选择相应的业务函数;从业务函数库中获取与所选业务函数相关的其他业务函数,并对所述其他业务函数进行展示,以使用户根据展示的其他业务函数确定后续操作的方式,在编写自动化脚本过程中,无需用户花费大量的时间搜索查找所选业务函数的相关业务函数,从而能够加快用户编写自动化脚本的速度,提高自动化脚本的编写效率,从而降低了自动化测试的人工成本。The method for writing the automatic script provided by the above embodiment, by selecting an instruction according to the received function in the process of writing the automatic script, selecting a corresponding business function from the business function library; and obtaining the selected business function from the business function library Related other business functions, and the other business functions are displayed, so that the user can determine the follow-up operation according to other business functions displayed. In the process of writing the automatic script, the user does not need to spend a lot of time searching for the selected business function. Related business functions, which can speed up the speed of writing automation scripts and improve the efficiency of writing automated scripts, thus reducing the labor cost of automated testing.
本发明提出自动化脚本的编写方法另一实施例,本实施例在上述方法实施例基础上还包括如下处理:根据接收的业务函数名称的部分文字信息,自动补全所述业务函数名称剩余部分的文字信息,形成完整的所述业务函数名称。即在自动化脚本编写过程中,当用户在编辑框内输入某个业务函数名称的开头几个文字信息时,则根据该开头几个文字信息自动在编辑框内补全该业务函数名称中剩余的文字信息,形成完整的业务函数名称。当需要输入的业务函数名称开头几个文字信息与其他业务函数名称开 头几个文字信息相同,则当用户在编辑框内输入业务函数名称开头几个文字信息时,则自动搜索并展示含有该输入的几个文字信息的所有业务函数名称,当用户输入业务函数名称选择指令,则根据所述选择指令从展示的所有业务函数名称选择需要输入的业务函数名称,实现所需业务函数名称的输入。The present invention provides another embodiment of the method for writing an automated script. The embodiment further includes the following processing on the basis of the foregoing method embodiment: automatically completing the remaining part of the service function name according to the partial text information of the received service function name. The text message forms the complete name of the business function. That is, in the process of writing an automated script, when the user inputs the first few pieces of text information of a business function name in the edit box, the remaining pieces of the business function name are automatically added in the edit box according to the first few text information. Text information, forming a complete business function name. When you need to enter the name of the business function at the beginning of several text information and other business function names open When the first few text messages are the same, when the user enters several text information at the beginning of the business function name in the edit box, it automatically searches for and displays all the business function names containing the input text information, when the user inputs the business function name. When the instruction is selected, the name of the business function to be input is selected from all the business function names displayed according to the selection instruction, and the input of the required business function name is realized.
本发明提出自动化脚本的编写方法又一实施例,本实施例在上述方法实施例基础上还包括如下处理:根据接收的在线帮助指令,获取并展示相应的在线帮助信息。即在自动化脚本编写过程中,根据用户输入的在线帮助指令,从在线帮助信息库中获取相应的在线帮助信息,并对获取的在线帮助信息进行展示。其中用户可以通过按压设定的实体按键或虚拟按键的方式实现在线帮助指令的输入。如当通过脚本编辑器选择某一业务函数时,根据用户输入的在线帮助指令,从在线帮助信息库搜索获取该业务函数的相关信息,并对该搜索获取的业务函数相关信息进行展示,以使用户方便快捷地了解所述业务函数。The present invention provides a further embodiment of the method for writing an automated script. The embodiment further includes the following processing on the basis of the foregoing method embodiment: acquiring and displaying corresponding online help information according to the received online help instruction. That is, in the process of automatic script writing, according to the online help instruction input by the user, the corresponding online help information is obtained from the online help information library, and the obtained online help information is displayed. The user can input the online help command by pressing the set physical button or the virtual button. For example, when a certain business function is selected through the script editor, according to the online help instruction input by the user, the relevant information of the business function is obtained from the online help information database, and the business function related information obtained by the search is displayed, so that The user can quickly and easily understand the business function.
本发明提出自动化脚本的编写方法又一实施例,本实施例在上述方法实施例基础上还包括如下处理:根据接收的业务函数的参数编辑触发指令,获取并展示所述业务函数的参数信息,以使用户根据展示的参数信息,完成后续的参数编辑操作。即在自动化脚本编写过程中,当需要对业务函数的相关参数进行编辑时,根据用户输入参数编辑触发指令,对所述相应的业务函数的参数信息进行搜索,然后获取并展示所搜索到的参数信息,用户根据展示的参数信息,便可知晓如何编辑业务函数的参数信息,加快了业务函数参数信息的编辑速度,并保证了参数信息编辑的正确率。The present invention provides a further embodiment of the method for writing an automated script. The embodiment further includes the following processing on the basis of the foregoing method embodiment: acquiring and displaying parameter information of the service function according to a parameter editing trigger instruction of the received service function, So that the user can complete the subsequent parameter editing operation according to the displayed parameter information. That is, in the process of writing the automatic script, when the relevant parameters of the business function need to be edited, the triggering instruction is edited according to the user input parameter, the parameter information of the corresponding business function is searched, and then the searched parameter is obtained and displayed. Information, according to the displayed parameter information, the user can know how to edit the parameter information of the business function, speed up the editing speed of the business function parameter information, and ensure the correct rate of parameter information editing.
本发明提出自动化脚本的编写方法又一实施例,本实施例在上述方法实施例基础上还包括如下处理:根据接收的业务函数结构编写指令,生成相应的业务函数结构模板,以及根据接收的业务函数结构修改指令,对所述业务函数结构模板进行相应的修改。本实施例中,所述业务函数结构模板包括:业务函数循环结构模板、业务函数分支结构模板、以及业务函数判断结构模板。所述业务函数结构编写指令包括:业务函数循环结构编写指令、业务函数分支结构编写指令、业务函数判断结构编写指令。当接收到业务函数循环结构编写指令,则生成业务函数循环结构模板;当接收到业务函数分支结构编写指令,则生成业务函数分支结构模板;当接收到业务函数判断结构编写指令,则生成业务函数判断结构模板。如当需要编写一个具体的业务函数循环结构,根据用户输入的业务函数循环结构编写指令,生成一个业务函数循环结构模板;但由于业务函数循环结构模板中的循环次数不符合需要,用户可以输入相关的循环次数修改指令,根据用户输入的循环次数修改指令即可实现对所述业务函数循环结构模板中的循环次数进行修改,从而实现了具体的业务函数循环结构的编写。 The present invention provides a further embodiment of the method for writing an automated script. The embodiment further includes the following processing on the basis of the foregoing method embodiment: writing instructions according to the received service function structure, generating a corresponding service function structure template, and according to the received service The function structure modification instruction performs corresponding modification on the business function structure template. In this embodiment, the service function structure template includes: a business function loop structure template, a business function branch structure template, and a business function judgment structure template. The business function structure writing instruction comprises: a business function loop structure writing instruction, a business function branch structure writing instruction, and a business function judgment structure writing instruction. When receiving the business function loop structure writing instruction, generating a business function loop structure template; when receiving the business function branch structure writing instruction, generating a business function branch structure template; when receiving the business function judgment structure writing instruction, generating a business function Judge the structure template. For example, when you need to write a specific business function loop structure, write a command according to the business function loop structure input by the user, and generate a business function loop structure template; but because the number of loops in the business function loop structure template does not meet the requirements, the user can input the relevant The cycle number modification instruction can modify the number of cycles in the business function loop structure template according to the number of cycles input by the user, thereby implementing the writing of the specific business function loop structure.
本发明提出自动化脚本的编写方法又一实施例,本实施例在上述方法实施例基础上还包括如下处理:根据接收的语法检查指令,判断编写好的自动化脚本中是否存在语法错误;当存在语法错误,则生成并展示语法错误提示信息。即当自动化脚本编写完成需要进行语法检查时,用户可以输入语法检查指令,根据用户输入的语法检查指令,对编写好的自动化脚本进行语法检查,判断编写好的自动化脚本中是否存在语法错误;当存在语法错误,则生成并展示语法错误提示信息,指出语法错误的位置。The present invention provides a further embodiment of the method for writing an automated script. The embodiment further includes the following processing on the basis of the foregoing method embodiment: determining whether there is a syntax error in the prepared automatic script according to the received syntax check instruction; An error generates and displays a syntax error message. That is, when the automatic script writing needs to perform the grammar check, the user can input the grammar check instruction, perform the grammar check on the prepared automatic script according to the grammar check instruction input by the user, and judge whether there is a grammar error in the prepared automatic script; If there is a syntax error, a syntax error message is generated and displayed indicating the location of the syntax error.
本发明实施例进一步提供一种自动化脚本的编写装置,参照图4,图4是本发明的自动化脚本的编写装置一实施例的功能模块示意图。在一实施例中,所述自动化脚本的编写装置100包括:选择模块110和展示模块120。其中,所述选择模块110,设置为在自动化脚本编写过程中,根据接收的函数选择指令,从业务函数库中选择相应的业务函数。所述展示模块120,设置为从业务函数库中获取与所选业务函数相关的其他业务函数,并对所述其他业务函数进行展示,以使用户根据展示的其他业务函数确定后续操作。The embodiment of the present invention further provides an apparatus for writing an automatic script. Referring to FIG. 4, FIG. 4 is a schematic diagram of functional modules of an embodiment of the automatic script writing apparatus of the present invention. In an embodiment, the authoring apparatus 100 of the automated script includes a selection module 110 and a presentation module 120. The selection module 110 is configured to select a corresponding business function from the business function library according to the received function selection instruction during the automatic script writing process. The display module 120 is configured to obtain other business functions related to the selected business function from the business function library, and display the other business functions, so that the user determines subsequent operations according to other business functions displayed.
参见图5,图5是图4中展示模块的细化功能模块示意图。所述展示模块120包括:生成单元121、计算单元122、删除单元123、以及展示单元124。其中,所述生成单元121,设置为生成所选业务函数的相关函数列表,所述相关函数列表记录有与所选业务函数相关的所有业务函数名称。所述计算单元122,设置为计算所选业务函数与所述相关函数列表中记录的每个业务函数之间的相关值。所述删除单元123,设置为将与所选业务函数之间的相关值小于设定相关阈值的业务函数名称从所述相关函数列表中删除,形成的新相关函数列表。所述展示单元124,设置为在输出所选业务函数时,展示新相关函数列表中记录的所有业务函数。例如设业务函数之间的相关值为(0-1),0为最小相关值,1为最大相关值,设定的相关阈值为0.6,在关键字L2VPN条件下所选业务函数为ConfigDutLdp。所述ConfigDutLdp的相关函数包括:ConfigDutOspf、ConfigDutDynamicPw、ConfigDutCip、ConfigDutIsis、ConfigDutStaticPw。即ConfigDutLdp的相关函数列表记录有以下业务函数的名称:ConfigDutOspf、ConfigDutDynamicPw、ConfigDutCip、ConfigDutIsis、ConfigDutStaticPw。然后计算ConfigDutLdp与ConfigDutOspf、ConfigDutDynamicPw、ConfigDutCip、ConfigDutIsis、ConfigDutStaticPw之间的相关值,计算得出的相关值分别为:0.33、0.67、1、0.67、0.33;然后将计算出的相关值与相关阈值0.6进行比较,将相关值(0.33)小于相关阈值(0.6)的相应的业务函数ConfigDutOspf、ConfigDutStaticPw的名称从相关函数列表中删除,形成新相关函数列表;在输出所选业务函数ConfigDutLdp时,展示新相关函数列表中记录的所有业务函数ConfigDutDynamicPw、ConfigDutCip、ConfigDutIsis。 Referring to FIG. 5, FIG. 5 is a schematic diagram of a refinement function module of the module shown in FIG. The display module 120 includes: a generating unit 121, a calculating unit 122, a deleting unit 123, and a displaying unit 124. The generating unit 121 is configured to generate a related function list of the selected business function, and the related function list records all business function names related to the selected business function. The calculating unit 122 is configured to calculate a correlation value between the selected business function and each of the business functions recorded in the related function list. The deleting unit 123 is configured to delete, from the related function list, a business function name whose correlation value between the selected business function is less than the set correlation threshold, to form a new related function list. The presentation unit 124 is configured to display all of the business functions recorded in the new related function list when the selected business function is output. For example, the correlation value between the business functions is (0-1), 0 is the minimum correlation value, 1 is the maximum correlation value, and the set correlation threshold is 0.6. The selected business function is ConfigDutLdp under the keyword L2VPN condition. The related functions of the ConfigDutLdp include: ConfigDutOspf, ConfigDutDynamicPw, ConfigDutCip, ConfigDutIsis, ConfigDutStaticPw. That is, the list of related functions of ConfigDutLdp records the names of the following business functions: ConfigDutOspf, ConfigDutDynamicPw, ConfigDutCip, ConfigDutIsis, and ConfigDutStaticPw. Then calculate the correlation value between ConfigDutLdp and ConfigDutOspf, ConfigDutDynamicPw, ConfigDutCip, ConfigDutIsis, ConfigDutStaticPw, the calculated correlation values are: 0.33, 0.67, 1, 0.67, 0.33; then the calculated correlation value and the relevant threshold 0.6 For comparison, the names of the corresponding business functions ConfigDutOspf and ConfigDutStaticPw whose correlation values (0.33) are less than the relevant threshold (0.6) are deleted from the related function list to form a new related function list; when the selected business function ConfigDutLdp is output, the new related function is displayed. All business functions ConfigDutDynamicPw, ConfigDutCip, ConfigDutIsis recorded in the list.
本发明提出自动化脚本的编写装置另一实施例,参见图6,图6是本发明的自动化脚本的编写装置另一实施例的功能模块示意图。所述自动化脚本的编写装置100在上述实施例的基础还包括:获取模块130。所述获取模块130,设置为从业务函数库中获取与测试用例的关键字对应的业务函数,并展示所获取的业务函数。其中,所述业务函数库中建立有关键字与业务函数名称一一对应的映射关系表。参见图7,图7是图6中获取模块的细化功能模块示意图。所述获取模块130包括:查找单元131、获取单元132和第一展示单元133。其中,所述查找单元131,设置为获取测试用例中的关键字,根据所述关键字从所述映射关系表中查找与所述关键字对应的业务函数名称。所述获取单元132,设置为根据所述业务函数名称从业务函数库获取相应的业务函数。所述第一展示单元133,设置为按照业务函数在所述关键字条件下的权值由大到小的顺序,展示所获取的业务函数。本实施例中以权值大小的方式记录每个关键字条件下相应的每个业务函数的选择次数。按照业务函数在所述关键字条件下的权值由大到小的顺序,展示所获取的业务函数,能够让用户很直观地查看到在所述关键字条下相应的每个业务函数被选择使用的次数,使得用户能够快速准确地做出选择。The present invention provides another embodiment of an automatic script writing apparatus. Referring to FIG. 6, FIG. 6 is a schematic diagram of functional modules of another embodiment of the automatic script writing apparatus of the present invention. The authoring apparatus 100 of the automated script further includes an acquisition module 130 on the basis of the above embodiments. The obtaining module 130 is configured to obtain a business function corresponding to the keyword of the test case from the business function library, and display the acquired business function. The mapping table of the business function library has a mapping relationship between the keyword and the business function name. Referring to FIG. 7, FIG. 7 is a schematic diagram of a refinement function module of the acquisition module of FIG. 6. The obtaining module 130 includes: a searching unit 131, an obtaining unit 132, and a first displaying unit 133. The searching unit 131 is configured to acquire a keyword in the test case, and search for a business function name corresponding to the keyword from the mapping relationship table according to the keyword. The obtaining unit 132 is configured to acquire a corresponding business function from the business function library according to the business function name. The first display unit 133 is configured to display the acquired business function in descending order of weights of the business function under the keyword condition. In this embodiment, the number of selections of each corresponding business function under each keyword condition is recorded in the manner of weight value. According to the business function in the order of the weights under the keyword condition, the obtained business function is displayed, which enables the user to intuitively see that each corresponding business function is selected under the keyword bar. The number of uses allows the user to make quick and accurate choices.
本发明提出自动化脚本的编写装置又一实施例,参见图8,图8是本发明的自动化脚本的编写装置又一实施例的功能模块示意图。所述自动化脚本的编写装置100在上述实施例的基础还包括:权值处理模块140和建立模块150。所述选择模块110,设置为从展示的所述业务函数中选择相应的业务函数;或者,从业务函数库中不同于所展示的业务函数中选择相应的业务函数。当所述选择模块110从展示的所述业务函数中选择相应的业务函数,则在从展示的所述业务函数中选择相应的业务函数之后通过所述权值处理模块140对所述关键字条件下的所选业务函数的权值加“1”,即表明所选业务函数在所述关键字条件下被选择的次数增加1次。当所述选择模块110从业务函数库中不同于所展示的业务函数中选择相应的业务函数,则在从业务函数库中不同于所展示的业务函数中选择相应的业务函数之后通过所述建立模块150在所述映射关系表中建立所选业务函数与所述关键字对应的映射关系;并通过所述权值处理模块140将所述业务函数在所述关键字条件下的权值设置为“1”,即表明所选业务函数在所述关键字条件下被选择的次数为“1”。The present invention provides a further embodiment of an apparatus for writing an automated script. Referring to FIG. 8, FIG. 8 is a schematic diagram of functional blocks of still another embodiment of an apparatus for writing an automated script according to the present invention. The authoring apparatus 100 of the automated script further includes a weight processing module 140 and an establishing module 150 on the basis of the above embodiments. The selection module 110 is configured to select a corresponding business function from the displayed business functions; or select a corresponding business function from a business function library different from the displayed business function. When the selection module 110 selects a corresponding business function from the displayed business functions, the keyword condition is passed by the weight processing module 140 after selecting a corresponding business function from the displayed business functions. The weight of the selected business function is incremented by "1", which means that the number of times the selected business function is selected under the keyword condition is increased by one. When the selection module 110 selects a corresponding business function from a business function library different from the displayed business function, the selection is performed after the corresponding business function is selected from the business function library different from the displayed business function. The module 150 establishes a mapping relationship between the selected service function and the keyword in the mapping relationship table, and sets, by the weight processing module 140, the weight of the business function under the keyword condition to "1" indicates that the selected business function is selected "1" under the keyword condition.
以上所述实施例提供的自动化脚本的编写装置100,通过在自动化脚本编写过程中,根据接收的函数选择指令,从业务函数库中选择相应的业务函数;从业务函数库中获取与所选业务函数相关的其他业务函数,并对所述其他业务函数进行展示,以使用户根据展示的其他业务函数确定后续操作的方式,在编写自动化脚本过程中,无需用户花费大量的时间搜索查找所选业务函数的相关业务函数,从而能够加快用户编写自动化脚本的速度,提高自动化脚本的编写效率,降低了自动化测试的人工成本。 The automatic script writing apparatus 100 provided by the embodiment described above selects a corresponding business function from the business function library according to the received function selection instruction in the automatic script writing process; and acquires the selected service from the business function library. Other business functions related to the function, and the other business functions are displayed, so that the user can determine the manner of subsequent operations according to other business functions displayed. In the process of writing the automatic script, the user does not need to spend a lot of time searching for the selected service. The related business functions of the function can speed up the writing of automated scripts, improve the efficiency of writing automated scripts, and reduce the labor cost of automated testing.
本发明提出自动化脚本的编写装置又一实施例,参见图9,图9是本发明的自动化脚本的编写装置又一实施例的功能模块示意图。所述自动化脚本的编写装置100在上述实施例的基础还包括:自动补全模块160。所述自动补全模块160,设置为根据接收的业务函数名称的部分文字信息,自动补全所述业务函数名称剩余部分的文字信息,形成完整的所述业务函数名称。即在自动化脚本编写过程中,当用户在编辑框内输入某个业务函数名称的开头几个文字信息时,则根据该开头几个文字信息自动在编辑框内补全该业务函数名称中剩余的文字信息,形成完整的业务函数名称。当需要输入的业务函数名称开头几个文字信息与其他业务函数名称开头几个文字信息相同,则当用户在编辑框内输入业务函数名称开头几个文字信息时,则自动搜索并展示含有该输入的几个文字信息的所有业务函数名称,当用户输入业务函数名称选择指令,则根据所述选择指令从展示的所有业务函数名称选择需要输入的业务函数名称,实现所需业务函数名称的输入。The present invention provides a further embodiment of an automatic script writing device. Referring to FIG. 9, FIG. 9 is a schematic diagram of functional modules of still another embodiment of the automatic script writing device of the present invention. The writing device 100 of the automated script further includes an automatic completion module 160 on the basis of the above embodiments. The auto-completion module 160 is configured to automatically complete the text information of the remaining part of the business function name according to the partial text information of the received service function name to form a complete name of the business function. That is, in the process of writing an automated script, when the user inputs the first few pieces of text information of a business function name in the edit box, the remaining pieces of the business function name are automatically added in the edit box according to the first few text information. Text information, forming a complete business function name. When the text information at the beginning of the business function name to be input is the same as the text information at the beginning of other business function names, when the user inputs several text information at the beginning of the business function name in the edit box, the user automatically searches for and displays the input information. For all the business function names of several text messages, when the user inputs the business function name selection instruction, the business function name to be input is selected from all the business function names displayed according to the selection instruction, and the input of the required business function name is realized.
本发明提出自动化脚本的编写装置又一实施例,参见图10,图10是本发明的自动化脚本的编写装置又一实施例的功能模块示意图。所述自动化脚本的编写装置100在上述实施例的基础还包括:在线帮助模块170。所述在线帮助模块170,设置为根据接收的在线帮助指令,获取并展示相应的在线帮助信息。即在自动化脚本编写过程中,根据用户输入的在线帮助指令,从在线帮助信息库中获取相应的在线帮助信息,并对获取的在线帮助信息进行展示。其中用户可以通过按压设定的实体按键或虚拟按键的方式实现在线帮助指令的输入。如当通过脚本编辑器选择某一业务函数时,根据用户输入的在线帮助指令,从在线帮助信息库搜索获取该业务函数的相关信息,并对该搜索获取的业务函数相关信息进行展示,以使用户方便快捷地了解所述业务函数。The present invention provides a further embodiment of an automatic script writing device. Referring to FIG. 10, FIG. 10 is a schematic diagram of functional modules of still another embodiment of the automatic script writing device of the present invention. The writing device 100 of the automated script further includes an online help module 170 based on the above embodiments. The online help module 170 is configured to acquire and display corresponding online help information according to the received online help instruction. That is, in the process of automatic script writing, according to the online help instruction input by the user, the corresponding online help information is obtained from the online help information library, and the obtained online help information is displayed. The user can input the online help command by pressing the set physical button or the virtual button. For example, when a certain business function is selected through the script editor, according to the online help instruction input by the user, the relevant information of the business function is obtained from the online help information database, and the business function related information obtained by the search is displayed, so that The user can quickly and easily understand the business function.
本发明提出自动化脚本的编写装置又一实施例,参见图11,图11是本发明的自动化脚本的编写装置又一实施例的功能模块示意图。所述自动化脚本的编写装置100在上述实施例的基础还包括参数展示模块180。所述参数展示模块,设置为根据接收的业务函数的参数编辑触发指令,获取并展示所述业务函数的参数信息,以使用户根据展示的参数信息,完成后续的参数编辑操作。即在自动化脚本编写过程中,当需要对业务函数的相关参数进行编辑时,根据用户输入参数编辑触发指令,对所述相应的业务函数的参数信息进行搜索,然后获取并展示所搜索到的参数信息,用户根据展示的参数信息,便可知晓如何编辑业务函数的参数信息,加快了业务函数参数信息的编辑速度,并保证了参数信息编辑的正确率。The present invention provides a further embodiment of an automatic script writing device. Referring to FIG. 11, FIG. 11 is a functional block diagram of still another embodiment of the automatic script writing device of the present invention. The automated script writing device 100 further includes a parameter display module 180 on the basis of the above embodiments. The parameter display module is configured to: acquire and display parameter information of the service function according to the parameter edit trigger instruction of the received service function, so that the user completes the subsequent parameter editing operation according to the displayed parameter information. That is, in the process of writing the automatic script, when the relevant parameters of the business function need to be edited, the triggering instruction is edited according to the user input parameter, the parameter information of the corresponding business function is searched, and then the searched parameter is obtained and displayed. Information, according to the displayed parameter information, the user can know how to edit the parameter information of the business function, speed up the editing speed of the business function parameter information, and ensure the correct rate of parameter information editing.
本发明提出自动化脚本的编写装置又一实施例,参见图12,图12是本发明的自动化脚本的编写装置又一实施例的功能模块示意图。所述自动化脚本的编写装置100 在上述实施例的基础还包括函数结构处理模块190。所述函数结构处理模块190,设置为根据接收的业务函数结构编写指令,生成相应的业务函数结构模板;以及根据接收的业务函数结构修改指令,对所述业务函数结构模板进行相应的修改。本实施例中,所述业务函数结构模板包括:业务函数循环结构模板、业务函数分支结构模板、以及业务函数判断结构模板。所述业务函数结构编写指令包括:业务函数循环结构编写指令、业务函数分支结构编写指令、业务函数判断结构编写指令。当接收到业务函数循环结构编写指令,则生成业务函数循环结构模板;当接收到业务函数分支结构编写指令,则生成业务函数分支结构模板;当接收到业务函数判断结构编写指令,则生成业务函数判断结构模板。如当需要编写一个具体的业务函数循环结构,根据用户输入的业务函数循环结构编写指令,生成一个业务函数循环结构模板;但由于业务函数循环结构模板中的循环次数不符合需要,用户可以输入相关的循环次数修改指令,根据用户输入的循环次数修改指令即可实现对所述业务函数循环结构模板中的循环次数进行修改,从而实现了具体的业务函数循环结构的编写。The present invention provides a further embodiment of an automatic script writing device. Referring to FIG. 12, FIG. 12 is a schematic diagram of functional modules of still another embodiment of the automatic script writing device of the present invention. The automatic script writing device 100 The basis of the above embodiment also includes a function structure processing module 190. The function structure processing module 190 is configured to: write a command according to the received service function structure, generate a corresponding service function structure template; and modify the instruction according to the received service function structure, and perform corresponding modification on the service function structure template. In this embodiment, the service function structure template includes: a business function loop structure template, a business function branch structure template, and a business function judgment structure template. The business function structure writing instruction comprises: a business function loop structure writing instruction, a business function branch structure writing instruction, and a business function judgment structure writing instruction. When receiving the business function loop structure writing instruction, generating a business function loop structure template; when receiving the business function branch structure writing instruction, generating a business function branch structure template; when receiving the business function judgment structure writing instruction, generating a business function Judge the structure template. For example, when you need to write a specific business function loop structure, write a command according to the business function loop structure input by the user, and generate a business function loop structure template; but because the number of loops in the business function loop structure template does not meet the requirements, the user can input the relevant The cycle number modification instruction can modify the number of cycles in the business function loop structure template according to the number of cycles input by the user, thereby implementing the writing of the specific business function loop structure.
本发明提出自动化脚本的编写装置又一实施例,参见图13,图13是本发明的自动化脚本的编写装置又一实施例的功能模块示意图。所述自动化脚本的编写装置100在上述实施例的基础还包括语法检查模块101。所述语法检查模块101,设置为根据接收的语法检查指令,判断编写好的自动化脚本中是否存在语法错误;以及当存在语法错误,则生成并展示语法错误提示信息。即当自动化脚本编写完成需要进行语法检查时,用户可以输入语法检查指令,根据用户输入的语法检查指令,对编写好的自动化脚本进行语法检查,判断编写好的自动化脚本中是否存在语法错误;当存在语法错误,则生成并展示语法错误提示信息,指出语法错误的位置。The present invention provides a further embodiment of an automatic script writing device. Referring to FIG. 13, FIG. 13 is a schematic diagram of functional modules of still another embodiment of the automatic script writing device of the present invention. The authoring apparatus 100 of the automated script further includes a grammar checking module 101 on the basis of the above embodiments. The grammar checking module 101 is configured to determine whether a grammatical error exists in the prepared automatic script according to the received grammar check instruction; and generate and display grammar error prompt information when there is a grammatical error. That is, when the automatic script writing needs to perform the grammar check, the user can input the grammar check instruction, perform the grammar check on the prepared automatic script according to the grammar check instruction input by the user, and judge whether there is a grammar error in the prepared automatic script; If there is a syntax error, a syntax error message is generated and displayed indicating the location of the syntax error.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.
工业实用性Industrial applicability
如上所述,本发明实施例提供的一种自动化脚本的编写方法和装置具有以下有益效果:在编写自动化脚本过程中,无需用户花费大量的时间搜索查找所选业务函数的相关业务函数,从而能够加快用户编写自动化脚本的速度,提高自动化脚本的编写效率,降低了自动化测试的人工成本。 As described above, the method and apparatus for writing an automated script provided by the embodiment of the present invention have the following beneficial effects: in the process of writing an automated script, the user does not need to spend a lot of time searching for the relevant business function of the selected business function, thereby enabling Speed up the speed of writing automation scripts, improve the efficiency of writing automated scripts, and reduce the labor costs of automated testing.

Claims (22)

  1. 一种自动化脚本的编写方法,所述自动化脚本的编写方法包括以下步骤:A method for writing an automated script, the method for writing the automated script includes the following steps:
    在自动化脚本编写过程中,根据接收的函数选择指令,从业务函数库中选择相应的业务函数;In the process of writing an automated script, selecting a corresponding business function from the business function library according to the received function selection instruction;
    从业务函数库中获取与所选业务函数相关的其他业务函数,并对所述其他业务函数进行展示,以使用户根据展示的其他业务函数确定后续操作。Other business functions related to the selected business function are obtained from the business function library, and the other business functions are displayed, so that the user determines subsequent operations according to other business functions displayed.
  2. 如权利要求1所述的自动化脚本的编写方法,其中,从业务函数库中获取与所选业务函数相关的其他业务函数,并对所述其他业务函数进行展示具体包括:The method for writing an automated script according to claim 1, wherein the obtaining other business functions related to the selected business function from the business function library and displaying the other business functions specifically includes:
    生成所选业务函数的相关函数列表,所述相关函数列表记录有与所选业务函数相关的所有业务函数名称;Generating a list of related functions for the selected business function, the list of related functions recording all business function names associated with the selected business function;
    计算所选业务函数与所述相关函数列表中记录的每个业务函数之间的相关值;Calculating a correlation value between the selected business function and each of the business functions recorded in the related function list;
    将与所选业务函数之间的相关值小于设定相关阈值的业务函数名称从所述相关函数列表中删除,形成的新相关函数列表;Forming a new correlation function list by deleting a business function name whose correlation value from the selected business function is less than a set correlation threshold from the related function list;
    在输出所选业务函数时,展示新相关函数列表中记录的所有业务函数。Shows all the business functions recorded in the new related function list when the selected business function is output.
  3. 如权利要求1所述的自动化脚本的编写方法,其中,所述从业务函数库中选择相应的业务函数之前还包括:The method for writing an automated script according to claim 1, wherein the selecting the corresponding business function from the business function library further comprises:
    从业务函数库中获取与测试用例的关键字对应的业务函数,并展示所获取的业务函数;Obtain a business function corresponding to the keyword of the test case from the business function library, and display the acquired business function;
    从业务函数库中选择相应的业务函数具体为:Select the corresponding business function from the business function library as follows:
    从展示的所述业务函数中选择相应的业务函数;或者,Select the corresponding business function from the displayed business functions; or,
    从业务函数库中不同于所展示的业务函数中选择相应的业务函数。Select the appropriate business function from the business function library that is different from the business function shown.
  4. 如权利要求3所述的自动化脚本的编写方法,其中,所述业务函数库中建立有关键字与业务函数名称一一对应的映射关系表;The method for writing an automated script according to claim 3, wherein a mapping relationship table in which a keyword and a business function name are in one-to-one correspondence is established in the business function library;
    所述从业务函数库中获取与测试用例的关键字对应的业务函数,并展示所获取的业务函数具体包括: The obtaining the business function corresponding to the keyword of the test case from the business function library, and displaying the acquired business function specifically includes:
    获取测试用例中的关键字,根据所述关键字从所述映射关系表中查找与所述关键字对应的业务函数名称;Obtaining a keyword in the test case, and searching, according to the keyword, the name of the business function corresponding to the keyword from the mapping relationship table;
    根据所述业务函数名称从业务函数库获取相应的业务函数;Obtaining a corresponding business function from the business function library according to the business function name;
    按照业务函数在所述关键字条件下的权值由大到小的顺序,展示所获取的业务函数。The acquired business function is displayed in descending order of weights of the business function under the keyword condition.
  5. 如权利要求4所述的自动化脚本的编写方法,其中,所述从展示的所述业务函数中选择相应的业务函数之后包括:The method for authoring an automated script according to claim 4, wherein said selecting a corresponding business function from said displayed business functions comprises:
    对在所述关键字条件下的所选业务函数的权值加“1”。Add "1" to the weight of the selected business function under the keyword condition.
  6. 如权利要求4所述的自动化脚本的编写方法,其中,从业务函数库中不同于所展示的业务函数中选择相应的业务函数之后还包括:The method for writing an automated script according to claim 4, wherein after selecting the corresponding business function from the business function library different from the displayed business function, the method further comprises:
    在所述映射关系表中建立所选业务函数与所述关键字对应的映射关系;Establishing, in the mapping relationship table, a mapping relationship between the selected service function and the keyword;
    并将所述业务函数在所述关键字条件下的权值设置为“1”。And setting the weight of the business function under the keyword condition to "1".
  7. 如权利要求1至6任一项所述的自动化脚本的编写方法,其中,还包括:The method for writing an automated script according to any one of claims 1 to 6, further comprising:
    根据接收的业务函数名称的部分文字信息,自动补全所述业务函数名称剩余部分的文字信息,形成完整的所述业务函数名称。According to the partial text information of the received business function name, the text information of the remaining part of the business function name is automatically completed to form a complete name of the business function.
  8. 如权利要求1至6任一项所述的自动化脚本的编写方法,其中,还包括:The method for writing an automated script according to any one of claims 1 to 6, further comprising:
    根据接收的在线帮助指令,获取并展示相应的在线帮助信息。Obtain and display the corresponding online help information according to the received online help instructions.
  9. 如权利要求1至6任一项所述的自动化脚本的编写方法,其中,还包括:The method for writing an automated script according to any one of claims 1 to 6, further comprising:
    根据接收的业务函数的参数编辑触发指令,获取并展示所述业务函数的参数信息,以使用户根据展示的参数信息,完成后续的参数编辑操作。The parameter is triggered according to the parameter of the received service function, and the parameter information of the service function is obtained and displayed, so that the user completes the subsequent parameter editing operation according to the displayed parameter information.
  10. 如权利要求1至6任一项所述的自动化脚本的编写方法,其中,还包括:The method for writing an automated script according to any one of claims 1 to 6, further comprising:
    根据接收的业务函数结构编写指令,生成相应的业务函数结构模板;Writing instructions according to the received business function structure, and generating a corresponding business function structure template;
    根据接收的业务函数结构修改指令,对所述业务函数结构模板进行相应的修改。Modifying the instruction according to the received business function structure, and modifying the business function structure template accordingly.
  11. 如权利要求1至6任一项所述的自动化脚本的编写方法,其中,还包括:The method for writing an automated script according to any one of claims 1 to 6, further comprising:
    根据接收的语法检查指令,判断编写好的自动化脚本中是否存在语法错误; Judging whether there is a syntax error in the prepared automation script according to the received syntax check instruction;
    当存在语法错误,则生成并展示语法错误提示信息。When there is a syntax error, a syntax error message is generated and displayed.
  12. 一种自动化脚本的编写装置,所述自动化脚本的编写装置包括:An apparatus for writing an automated script, the writing apparatus of the automated script comprising:
    选择模块,设置为在自动化脚本编写过程中,根据接收的函数选择指令,从业务函数库中选择相应的业务函数;Selecting a module, set to select a corresponding business function from the business function library according to the received function selection instruction during the automatic script writing process;
    展示模块,设置为从业务函数库中获取与所选业务函数相关的其他业务函数,并对所述其他业务函数进行展示,以使用户根据展示的其他业务函数确定后续操作。The presentation module is configured to obtain other business functions related to the selected business function from the business function library, and display the other business functions, so that the user determines subsequent operations according to other business functions displayed.
  13. 如权利要求12所述的自动化脚本的编写装置,其中,所述展示模块包括:The apparatus for authoring an automated script according to claim 12, wherein the presentation module comprises:
    生成单元,设置为生成所选业务函数的相关函数列表,所述相关函数列表记录有与所选业务函数相关的所有业务函数名称;a generating unit configured to generate a list of related functions of the selected business function, the related function list recording all business function names associated with the selected business function;
    计算单元,设置为计算所选业务函数与所述相关函数列表中记录的每个业务函数之间的相关值;a calculation unit configured to calculate a correlation value between the selected business function and each of the business functions recorded in the related function list;
    删除单元,设置为将与所选业务函数之间的相关值小于设定相关阈值的业务函数名称从所述相关函数列表中删除,形成的新相关函数列表;a deleting unit, configured to delete a business function name whose correlation value from the selected business function is less than a set correlation threshold from the related function list, to form a new related function list;
    展示单元,设置为在输出所选业务函数时,展示新相关函数列表中记录的所有业务函数。The display unit, set to display all of the business functions recorded in the new related function list when the selected business function is output.
  14. 如权利要求12所述的自动化脚本的编写装置,其中,还包括:The apparatus for writing an automated script according to claim 12, further comprising:
    获取模块,设置为从业务函数库中获取与测试用例的关键字对应的业务函数,并展示所获取的业务函数;The obtaining module is configured to obtain a business function corresponding to the keyword of the test case from the business function library, and display the acquired business function;
    所述选择模块,设置为从展示的所述业务函数中选择相应的业务函数;或者,从业务函数库中不同于所展示的业务函数中选择相应的业务函数。The selection module is configured to select a corresponding business function from the displayed business functions; or select a corresponding business function from a business function library different from the displayed business function.
  15. 如权利要求14所述的自动化脚本的编写装置,其中,所述业务函数库中建立有关键字与业务函数名称一一对应的映射关系表;The device for writing an automated script according to claim 14, wherein a mapping relationship table in which a keyword and a business function name are in one-to-one correspondence is established in the business function library;
    所述获取模块包括:The obtaining module includes:
    查找单元,设置为获取测试用例中的关键字,根据所述关键字从所述映射关系表中查找与所述关键字对应的业务函数名称;a search unit, configured to acquire a keyword in the test case, and search for a business function name corresponding to the keyword from the mapping relationship table according to the keyword;
    获取单元,设置为根据所述业务函数名称从业务函数库获取相应的业务函数; An obtaining unit, configured to obtain a corresponding business function from a business function library according to the business function name;
    第一展示单元,设置为按照业务函数在所述关键字条件下的权值由大到小的顺序,展示所获取的业务函数。The first display unit is configured to display the acquired business function in descending order of weights of the business function under the keyword condition.
  16. 如权利要求15所述的自动化脚本的编写装置,其中,还包括:The device for writing an automated script according to claim 15, further comprising:
    权值处理模块,设置为在从展示的所述业务函数中选择相应的业务函数之后,对所述关键字条件下的所选业务函数的权值加“1”。The weight processing module is configured to add "1" to the weight of the selected business function under the keyword condition after selecting the corresponding business function from the displayed business functions.
  17. 如权利要求15所述的自动化脚本的编写装置,其中,还包括:The device for writing an automated script according to claim 15, further comprising:
    建立模块,设置为在从业务函数库中不同于所展示的业务函数中选择相应的业务函数之后,在所述映射关系表中建立所选业务函数与所述关键字对应的映射关系;并通过所述权值处理模块将所述业务函数在所述关键字条件下的权值设置为“1”。Establishing a module, configured to: after selecting a corresponding business function from a business function library different from the displayed business function, establishing a mapping relationship between the selected business function and the keyword in the mapping relationship table; The weight processing module sets the weight of the business function under the keyword condition to "1".
  18. 如权利要求12至17任一项所述的自动化脚本的编写装置,其中,还包括:The apparatus for writing an automated script according to any one of claims 12 to 17, further comprising:
    自动补全模块,设置为根据接收的业务函数名称的部分文字信息,自动补全所述业务函数名称剩余部分的文字信息,形成完整的所述业务函数名称。The auto-completion module is configured to automatically complete the text information of the remaining part of the business function name according to part of the text information of the received business function name to form a complete name of the business function.
  19. 如权利要求12至17任一项所述的自动化脚本的编写装置,其中,还包括:The apparatus for writing an automated script according to any one of claims 12 to 17, further comprising:
    在线帮助模块,设置为根据接收的在线帮助指令,获取并展示相应的在线帮助信息。The online help module is configured to obtain and display corresponding online help information according to the received online help instructions.
  20. 如权利要求12至17任一项所述的自动化脚本的编写装置,其中,还包括:The apparatus for writing an automated script according to any one of claims 12 to 17, further comprising:
    参数展示模块,设置为根据接收的业务函数的参数编辑触发指令,获取并展示所述业务函数的参数信息,以使用户根据展示的参数信息,完成后续的参数编辑操作。The parameter display module is configured to: according to the parameter edit trigger instruction of the received business function, obtain and display the parameter information of the business function, so that the user completes the subsequent parameter editing operation according to the displayed parameter information.
  21. 如权利要求12至17任一项所述的自动化脚本的编写装置,其中,还包括:The apparatus for writing an automated script according to any one of claims 12 to 17, further comprising:
    函数结构处理模块,设置为根据接收的业务函数结构编写指令,生成相应的业务函数结构模板;以及根据接收的业务函数结构修改指令,对所述业务函数结构模板进行相应的修改。The function structure processing module is configured to write an instruction according to the received business function structure, generate a corresponding business function structure template, and modify the instruction according to the received business function structure, and perform corresponding modification on the business function structure template.
  22. 如权利要求12至17任一项所述的自动化脚本的编写装置,其中,还包括:The apparatus for writing an automated script according to any one of claims 12 to 17, further comprising:
    语法检查模块,设置为根据接收的语法检查指令,判断编写好的自动化脚本中是否存在语法错误;以及当存在语法错误,则生成并展示语法错误提示信息。 The grammar checking module is configured to determine whether there is a grammatical error in the prepared automatic script according to the received grammar check instruction; and generate and display the grammar error prompt information when there is a grammatical error.
PCT/CN2015/077534 2014-11-18 2015-04-27 Method and apparatus for writing automatic script WO2016078335A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410659587.7A CN105677306A (en) 2014-11-18 2014-11-18 Automation script compiling method and device
CN201410659587.7 2014-11-18

Publications (1)

Publication Number Publication Date
WO2016078335A1 true WO2016078335A1 (en) 2016-05-26

Family

ID=56013195

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/077534 WO2016078335A1 (en) 2014-11-18 2015-04-27 Method and apparatus for writing automatic script

Country Status (2)

Country Link
CN (1) CN105677306A (en)
WO (1) WO2016078335A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107562622A (en) * 2017-08-29 2018-01-09 郑州云海信息技术有限公司 A kind of method of testing and system of checking MCS system firmware automatically updating functions
WO2019056726A1 (en) * 2017-09-21 2019-03-28 平安科技(深圳)有限公司 Test case creation method and device, equipment, and storage medium
CN111459796A (en) * 2020-02-27 2020-07-28 西安广和通无线软件有限公司 Automatic testing method and device, computer equipment and storage medium

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776336A (en) * 2016-12-29 2017-05-31 武汉船舶通信研究所 Test script generation method and device, method for testing software and device
CN107678968A (en) * 2017-10-18 2018-02-09 北京奇虎科技有限公司 Sample extraction method, apparatus, computing device and the storage medium of source code function
CN108255709A (en) * 2017-12-26 2018-07-06 平安壹钱包电子商务有限公司 Script tests method, apparatus, terminal device and the storage medium of written in code
CN110286894B (en) * 2019-05-09 2023-07-04 华自科技股份有限公司 Script generation method, script generation device, computer equipment and storage medium
CN112256595B (en) * 2020-12-22 2021-03-12 成都新希望金融信息有限公司 Heterogeneous system testing method and device and electronic equipment
CN113986441A (en) * 2021-11-05 2022-01-28 中国航空无线电电子研究所 Automatic testing method for man-machine interaction interface of airplane ground station software

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102135939A (en) * 2011-03-30 2011-07-27 镇江睿泰信息科技有限公司 Test case operation dispatching device and method
CN103150249A (en) * 2011-12-07 2013-06-12 北京新媒传信科技有限公司 Automatic testing method and system
US20140310690A1 (en) * 2013-04-15 2014-10-16 Futurewei Technologies, Inc. System and Method for Generating Automated Test Cases for Command Line Based Applications

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102479079B (en) * 2010-11-29 2015-04-01 中兴通讯股份有限公司 Method and device for generating application
CN102023861A (en) * 2010-12-08 2011-04-20 中兴通讯股份有限公司 Method and system for generating test script and test suite
KR101438102B1 (en) * 2012-07-18 2014-09-11 안지윤 Synchronization server for clipboard and synchronization system for clipboard having the same
CN103019697A (en) * 2012-11-22 2013-04-03 福建天晴数码有限公司 Edition plug-in unit of LUA script
CN104182234B (en) * 2014-08-25 2017-10-10 杭州华为数字技术有限公司 A kind of method for processing business and operation system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102135939A (en) * 2011-03-30 2011-07-27 镇江睿泰信息科技有限公司 Test case operation dispatching device and method
CN103150249A (en) * 2011-12-07 2013-06-12 北京新媒传信科技有限公司 Automatic testing method and system
US20140310690A1 (en) * 2013-04-15 2014-10-16 Futurewei Technologies, Inc. System and Method for Generating Automated Test Cases for Command Line Based Applications

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107562622A (en) * 2017-08-29 2018-01-09 郑州云海信息技术有限公司 A kind of method of testing and system of checking MCS system firmware automatically updating functions
WO2019056726A1 (en) * 2017-09-21 2019-03-28 平安科技(深圳)有限公司 Test case creation method and device, equipment, and storage medium
CN111459796A (en) * 2020-02-27 2020-07-28 西安广和通无线软件有限公司 Automatic testing method and device, computer equipment and storage medium
CN111459796B (en) * 2020-02-27 2024-03-15 西安广和通无线软件有限公司 Automated testing method, apparatus, computer device and storage medium

Also Published As

Publication number Publication date
CN105677306A (en) 2016-06-15

Similar Documents

Publication Publication Date Title
WO2016078335A1 (en) Method and apparatus for writing automatic script
US9141521B2 (en) Method and apparatus for automatically generating a test script for a graphical user interface
CN107908541B (en) Interface testing method and device, computer equipment and storage medium
CN106294673B (en) Method and system for analyzing log data in real time by user-defined rule
CN111159049B (en) Automatic interface testing method and system
US9946638B1 (en) System and method for end to end performance response time measurement based on graphic recognition
CN102495802B (en) Method and device for testing software system, and computer system
JPH08190587A (en) Simulation system for application process
CN105630661B (en) Method and apparatus for the debugging of automated trans system program
US20140250336A1 (en) Machine and Methods for Evaluating Failing Software Programs
CN106093897B (en) A kind of the test system and test method of radar system
KR101491848B1 (en) Gui software test automatic system having functon for script maintenance and method of controlling the same
JP2017084082A (en) Simulation device, test scenario file creation method, and test method using test scenario file
CN111737154A (en) Vehicle networking automatic test method and device based on UFT
CN103049374B (en) Automatic testing method and device
CN114003451B (en) Interface testing method, device, system and medium
CN107220183B (en) Test method and system for setting event log of server BMC (baseboard management controller)
CN112905441A (en) Test case generation method, test method, device and equipment
CN106919431B (en) Code comparison method, equipment and system in continuous integration
CN114138670A (en) Method based on interface automation test and function, performance and safety test fusion
JP6310527B1 (en) Object analysis apparatus, object analysis method, and program
CN109002980B (en) Scenarioized knowledge inspection method and device
JP2014186678A (en) Component formation system, method and program
CN110941830A (en) Vulnerability data processing method and device
JPWO2016151710A1 (en) Specification configuration apparatus and method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15860719

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15860719

Country of ref document: EP

Kind code of ref document: A1