CN110377277B - Prompting method and computer system thereof - Google Patents

Prompting method and computer system thereof Download PDF

Info

Publication number
CN110377277B
CN110377277B CN201910222525.2A CN201910222525A CN110377277B CN 110377277 B CN110377277 B CN 110377277B CN 201910222525 A CN201910222525 A CN 201910222525A CN 110377277 B CN110377277 B CN 110377277B
Authority
CN
China
Prior art keywords
information
database
test
instruction
search result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910222525.2A
Other languages
Chinese (zh)
Other versions
CN110377277A (en
Inventor
谢昌颖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Pegatron Corp
Original Assignee
Pegatron Corp
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 Pegatron Corp filed Critical Pegatron Corp
Publication of CN110377277A publication Critical patent/CN110377277A/en
Application granted granted Critical
Publication of CN110377277B publication Critical patent/CN110377277B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/338Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/33Intelligent editors

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A prompting method and a computer system thereof are used for acquiring related data from a database to assist editing instructions and comprise the following steps. In a text editor, an input context of an instruction is detected. First information is obtained based on the input context. Searching the database for the first information and generating a first search result. When the first search result indicates that the first information exists in the database, a plurality of second information related to the first information is obtained from the database, and the second information is displayed.

Description

Prompting method and computer system thereof
Technical Field
The invention relates to a prompting method and a computer system thereof.
Background
For manufacturers of electronic products, automated testing is performed upon completion of the sample to digitize and automate the analysis of the sample according to a programmed test procedure. However, the options for the required test and their parameter settings are often the most cumbersome and time consuming in performing the programming process.
Disclosure of Invention
In view of the above, the present invention provides a prompting method and a computer system thereof, which can provide related prompts in a script of a user-edited test program to assist the user in editing rapidly.
In an embodiment of the invention, the method is used for obtaining related data from a database to assist editing instructions, and includes the following steps. In a text editor, an input context of an instruction is detected. First information is obtained based on the input context. Searching the database for the first information and generating a first search result. When the first search result indicates that the first information exists in the database, a plurality of second information related to the first information is obtained from the database, and the second information is displayed.
In an embodiment of the invention, the computer system is configured to obtain related data from a database to assist in editing instructions, and includes a text editor, an input device, a memory, and a processor. The text editor is installed on the computer system. The input device is used for generating input text. The memory is used for storing program codes related to the flow. The processor is coupled to the memory for processing the program codes to execute the above-mentioned process. The process comprises the following steps: detecting input text of an instruction in a text editor; first information is obtained based on the input context. Searching the database for first information and generating a first search result; retrieving a plurality of second information related to the first information from the database when the first search result indicates that the first information is present in the database; and displaying the second information.
In order to make the above features and advantages of the present invention more comprehensible, embodiments accompanied with figures are described in detail below.
Drawings
FIG. 1 is a block diagram of a computer system according to one embodiment of the invention.
FIG. 2 is a schematic diagram of a process according to an embodiment of the invention.
FIG. 3 is a schematic diagram of a process according to another embodiment of the invention.
FIG. 4 is a schematic diagram of a text editor, according to an embodiment of the invention.
Reference numerals illustrate:
100: computer system
110: screen panel
120: input device
130: memory device
131: text editor
140: processor and method for controlling the same
20. 30: process flow
S202 to S210, S302 to S318: step (a)
400: text editor
first. Py: first script
401 to 404: test flow step
410: prompting window
411 to 414: test option combination
Detailed Description
Some example embodiments of the invention will be described in detail below with reference to the drawings, wherein reference to the following description refers to the same or similar elements when the same reference numerals appear in different drawings. These examples are only a part of the present invention and do not disclose all possible embodiments of the invention. Rather, these embodiments are merely examples of methods and computer systems that may be used in the claims.
FIG. 1 is a block diagram of a computer system according to one embodiment of the invention. First, fig. 1 first describes all components and configuration relationships in the system, and detailed functions will be disclosed together with flowcharts of the following embodiments.
Referring to fig. 1, the computer system 100 in the present embodiment includes a screen 110, an input device 120, a memory 130, a text editor 131, and a processor 140, wherein the processor 140 is coupled to the screen 110, the input device 120, the memory 130, and the text editor 131. The computer system 100 may be, for example, a personal computer, an industrial computer, a file server, a database server, a notebook computer, a tablet computer, etc.
The screen 110 is used for displaying a picture, and may be, for example, a liquid crystal display (liquid crystal display, LCD), a light-emitting diode (LED) display, an organic light-emitting diode (OLED) display, or other types of displays.
The input device 120 is used to provide user input information to the computer system 100, and may be, for example, a keyboard. In one embodiment, the input device 120 may be a keyboard, a mouse, a track ball, or the like. In an embodiment, the input device 120 and the screen 110 may be integrated into a touch screen with display and input functions.
The memory 130 is used to store buffered data, persistent data, and compiled code used to store the functions of the computer system 100, and may be any form of non-transitory, volatile, non-volatile data storage, integrated circuit, or combination thereof.
The text editor 131 is software or a program installed on the computer system 100 for providing an interface (interface) for a user to edit text. For example, the text editor may be a Python program editor, however the invention is not limited in this regard. In the embodiment of the present invention, the user can generate the input text on the text editor 131 through the input device 120 to edit the test Script (Script) of a test program. The test script may be used to test one or more electronic devices and includes a plurality of test instructions.
The processor 140 is used to control the operations among the components of the computer system 100, and may be, for example, a central processing unit (central processing unit, CPU), or other general purpose or special purpose microprocessor (microprocessor), digital signal processor (digital signal processor, DSP), programmable controller, application specific integrated circuit (application specific integrated circuits, ASIC), programmable logic device (programmable logic device, PLD), other similar devices, integrated circuits, or a combination thereof.
FIG. 2 is a schematic diagram of a process 20 according to an embodiment of the invention. The process 20 is used to obtain related data from a database to assist in editing a test instruction, and the process 20 of fig. 2 can be implemented by the computer system 100 of fig. 1.
First, the processor 140 of the computer system 100 detects the input text of the user in the text editor 131 through the input device 120 (step S202). Next, the processor 140 obtains the first information according to the input context (step S204). In other words, when the user opens the text editor 131 to edit the test instructions in the test script, the processor 140 will simultaneously detect the text input by the user and analyze the input text to obtain the first information. In the embodiment of the invention, the first information may be a test class, which is related to product information of an electronic device. Next, the processor 140 searches whether the first information exists in the database and generates a first search result (step S206). When the first search result indicates that the first information exists in the database, the processor 140 obtains a plurality of second information related to the first information from the database (step S208) and displays a prompt (e.g., the second information) on the screen 110 of the computer system 100 to prompt the user (step S210). In an embodiment of the present invention, the processor 140 may sequentially display a plurality of second information according to the weight of each second information, wherein the weight of each second information may be associated with the number of times each second information is selected. In the practice of the present invention, the more often the second information is selected, the more forward will be displayed. Preferably, the plurality of second information may be a plurality of test item combinations related to the test category, each test item combination including at least one test item and a parameter value of the corresponding test item.
In addition, when the user sees the prompts of the second information on the screen 110, the user can select one of the second information through the input device 120. Further, the processor 140 may receive the selection instruction, and insert one of the selected second information into the test instruction according to the selection instruction to complete editing of the test instruction. In an embodiment of the present invention, the processor 140 may update the weight of the selected second information according to the selection instruction.
Briefly, according to the embodiment of the present invention, the user does not need to manually input the test options and parameter settings thereof, and through the process 20, the processor 140 detects the text input by the user and obtains the test category, searches the database according to the test category, and further brings out a plurality of test item combinations related to the test category for providing the user reference. When the user sees a prompt for multiple combinations of test items on the screen 110, the user can select one of the combinations of test items through the input device 120. Further, the processor 140 inserts the test item and its parameter value into the test instruction according to the test item combination of the selected instruction to complete editing the test instruction. In this way, even a user unfamiliar with the test parameters can easily edit the test instructions through the process 20. In addition, each test instruction may also include information such as a number, description, etc. Preferably, the format of the test instructions may be predefined in the database by the developer of the test program. The database herein may store test scripts for test programs of a plurality of electronic devices, each script including a plurality of test flow instructions. In addition, the databases may also be stored individually in different categories. The database may be stored in the memory 130 of the computer system 100, or may be stored in a server or other computer system, and the computer system 100 may access the database through a communication interface (not shown), which is not limited in this invention.
The process 20 may be further modified to include other steps. FIG. 3 is a schematic diagram of a process 30 according to another embodiment of the invention. The process 30 is used to obtain related data from a database to assist in editing a test instruction, and the process 30 of fig. 3 may also be implemented by the computer system 100 of fig. 1.
Referring to fig. 1 and 3, steps S302 to S310 are similar to steps S202 to S210, and are not repeated here. When the first information does not exist in the database, the processor 140 continues to receive the input context to obtain third information related to the first information (step S312). For example, when the first information is the new test category, the third information is at least one test item and its related parameter value related to the new test category. Next, the processor 140 adds the first information and the third information to the database (step S314), that is, the processor 140 adds the first information to a new test category in the database, and stores the test items and parameters corresponding to the new test category in the database. In addition, the processor 140 searches the database for the presence of the third information and generates a second search result (step S316). When the second search result indicates that the third information exists in the database, the processor 140 obtains at least one parameter value related to the third information from the database (step S318). In detail, although new test categories were not present in the database in the past, test items related to the new test categories may already be present in the database. Thus, the processor 140 determines whether the same or similar test items in the database have been tested. If so, the processor 140 retrieves the parameter values for the same or similar test items from the database. Finally, the processor 140 provides the parameter values of the test items obtained from the database to the user (step S310).
Specifically, FIG. 4 is a schematic diagram of a text editor as shown in accordance with one embodiment of the invention.
Assume that a user is editing a test script of an electronic device with a text editor 400, wherein the test script includes a plurality of test instructions 401-403, and a format of each test instruction includes a number, a description, a test category, and a corresponding test option combination and parameter values of each test option in the test option combination.
For test instruction 401, the parameter values for Index1, desc 1, case1 for the test class, the corresponding test option combination, and the test options are OptionA=12 and OptionC=34. For the test flow instruction 402, the parameter values of the corresponding test option combination and the test options are optionb=abc and optionc=35, which are numbered Index2 and are described as presc 2, the test category is Case 2. For test flow step 403, the parameter values for Index3, desc 3, case1 for the test category, the corresponding test option combination, and the test options are OptionA=1234 and OptionC=5566.
Although the test instructions 401 and 403 correspond to the same test category, the corresponding test option combinations include different test options and parameter values. In one embodiment, test class Case1 is a brightness test of the LED module that can test the cycle of the LED from full dark, gradually to full light, and then gradually to full dark. In this case, the test item OptionA of the test instruction 401 may be a brightness adjustment value, and the test item OptionC may be the number of loops. The parameter value of the test item OptionA in the test instruction 403 is not identical to the parameter value of the test item OptionA in the test instruction 401, and the test item OptionD may be a delay time between each brightness adjustment. In another embodiment, test class Case1 may be a delay test when wired. In this case, the test item OptionA of the test instruction 401 may be a delay time value, and the test item OptionC may be a delay time unit. The test item OptionA of the test instruction 403 may be a delay time value and the test item OptionD may be a delay number.
In this embodiment, the processor 140 will detect that the user is editing the test instructions 404 in the test script and retrieve the test class Case3 from the input context. The processor 140 searches the database, and when the test class Case3 exists in the data, the processor 140 obtains all the test option combinations (e.g. the test option combinations 411-414) related to the test class Case3 from the database, and sequentially displays the test option combinations in the prompt window 410 according to the weights of the test option combinations for the user to select. For example, the test option combinations 411-414 are those in the test class Case3 with the top four highest selection frequencies. Assuming the user selects the option combination 412, the processor 140 automatically updates the weights of the option combination 411 and inserts the contents of the test option combination 412 into the test instructions 404.
In summary, the method and the computer system for assisting text editing according to the present invention can provide effective and normalized related prompts according to editing experience of other users when the user edits the script related to the test program of the electronic device, so as to assist the user to rapidly edit the script.
Although the present invention has been described with reference to the above embodiments, it should be understood that the invention is not limited thereto, but may be modified or altered somewhat by persons skilled in the art without departing from the spirit and scope of the invention.

Claims (10)

1. A method for retrieving relevant data from a database to assist in editing an instruction, the method comprising:
detecting an input context of the instruction in a text editor;
acquiring first information according to the input context;
searching the first information in the database and generating a first search result;
when the first search result indicates that the first information exists in the database, acquiring a plurality of pieces of second information related to the first information from the database, and displaying the plurality of pieces of second information; and
when the first search result indicates that the first information does not exist in the database, the input context is continuously received to obtain third information related to the first information, and the first information and the third information are newly added in the database.
2. The method of claim 1, further comprising:
receiving a selection instruction, wherein the selection instruction corresponds to one of the second information;
and receiving the selected one of the second information in the instruction according to the selection instruction.
3. The method of claim 1, further comprising:
searching the third information in the database and generating a second search result;
retrieving at least one parameter value associated with the third information from the database when the second search result indicates that the third information exists in the database; and
displaying the at least one parameter value.
4. The method of claim 1, wherein the first information is a test category, and the second information is a plurality of test item combinations related to the test category, each test item combination including at least one test item and at least one parameter value corresponding to the at least one test item.
5. The method of claim 4, wherein the instruction further comprises a number and a description.
6. The prompting method according to claim 1, wherein displaying the plurality of second information comprises:
and sequentially displaying the plurality of second information according to a weight of each of the plurality of second information.
7. The method of claim 6, wherein the weight of each of the plurality of second information is associated with a selected number of times each of the second information.
8. The method of claim 7, further comprising:
receiving a selection instruction, wherein the selection instruction corresponds to one of the second information; and
updating the weight of the one of the plurality of second information.
9. The method of claim 1, wherein the instruction is a test instruction for testing an electronic device.
10. A computer system for retrieving relevant data from a database to assist in editing an instruction, the computer system comprising:
a text editor installed on the computer system;
an input device for generating an input context;
a memory for storing a program code related to a process; and
a processor, coupled to the memory, for processing the program code to execute the process, the process comprising:
detecting an input context of the instruction in the text editor;
acquiring first information according to the input context;
searching the first information in the database and generating a first search result;
when the first search result indicates that the first information exists in the database, acquiring a plurality of pieces of second information related to the first information from the database, and displaying the plurality of pieces of second information; and
when the first search result indicates that the first information does not exist in the database, the input context is continuously received to obtain third information related to the first information, and the first information and the third information are newly added in the database.
CN201910222525.2A 2018-04-13 2019-03-22 Prompting method and computer system thereof Active CN110377277B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
TW107112769 2018-04-13
TW107112769A TWI676906B (en) 2018-04-13 2018-04-13 Prompt method and computer system thereof

Publications (2)

Publication Number Publication Date
CN110377277A CN110377277A (en) 2019-10-25
CN110377277B true CN110377277B (en) 2023-07-14

Family

ID=68248396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910222525.2A Active CN110377277B (en) 2018-04-13 2019-03-22 Prompting method and computer system thereof

Country Status (2)

Country Link
CN (1) CN110377277B (en)
TW (1) TWI676906B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113986444A (en) * 2021-11-19 2022-01-28 深圳前海移联科技有限公司 General management method for software system prompt words, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020138474A1 (en) * 2001-03-21 2002-09-26 Lee Eugene M. Apparatus for and method of searching and organizing intellectual property information utilizing a field-of-search
CN101419618A (en) * 2008-12-05 2009-04-29 深圳市迅雷网络技术有限公司 In-text information displaying method and apparatus
CN106919593A (en) * 2015-12-24 2017-07-04 北京奇虎科技有限公司 A kind of method and apparatus of search

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ATE491174T1 (en) * 2002-08-20 2010-12-15 Tokyo Electron Ltd METHOD FOR PROCESSING DATA BASED ON DATA CONTEXT
US7197417B2 (en) * 2003-02-14 2007-03-27 Advantest America R&D Center, Inc. Method and structure to develop a test program for semiconductor integrated circuits
US20050091036A1 (en) * 2003-10-23 2005-04-28 Hazel Shackleton Method and apparatus for a hierarchical object model-based constrained language interpreter-parser
KR101087312B1 (en) * 2004-07-08 2011-11-25 마이크로소프트 코포레이션 Importation of automatically generated content
CN100595759C (en) * 2007-04-25 2010-03-24 北大方正集团有限公司 Method and device for enquire enquiry extending as well as related searching word stock
BR102012008540B1 (en) * 2011-04-12 2020-11-17 Accenture Global Services Limited method and system for prioritizing and assigning test scripts to an integrated testing platform.
US10839110B2 (en) * 2014-05-09 2020-11-17 Autodesk, Inc. Techniques for using controlled natural language to capture design intent for computer-aided design

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020138474A1 (en) * 2001-03-21 2002-09-26 Lee Eugene M. Apparatus for and method of searching and organizing intellectual property information utilizing a field-of-search
CN101419618A (en) * 2008-12-05 2009-04-29 深圳市迅雷网络技术有限公司 In-text information displaying method and apparatus
CN106919593A (en) * 2015-12-24 2017-07-04 北京奇虎科技有限公司 A kind of method and apparatus of search

Also Published As

Publication number Publication date
TWI676906B (en) 2019-11-11
CN110377277A (en) 2019-10-25
TW201944270A (en) 2019-11-16

Similar Documents

Publication Publication Date Title
US20160224211A1 (en) Method and System for Displaying Icons of Application Programs, and Terminal
US20190213114A1 (en) Apparatus and application interface traversing method
CN108959067B (en) Method and device for testing search engine and computer readable storage medium
CN106528603A (en) Application program searching method and mobile terminal
US9477457B1 (en) Automated software installation using a click area prediction model
CN110967498B (en) Analyzer, method for searching specific sample by using analyzer and storage medium
JP2007086899A (en) Test result decision display method, test result decision display program and test device
US10546000B2 (en) Information processing apparatus and information processing system
CN104539741A (en) Prompting method and prompting device for account login
CN110377277B (en) Prompting method and computer system thereof
JP2015088191A5 (en)
JP2017111781A (en) Method to control action of smart device registered to catalog
US8924871B2 (en) GUI evaluation system, GUI evaluation method, and GUI evaluation program
US20150277413A1 (en) System construction support apparatus
CN107526590B (en) Operation guidance information display method and device of medical equipment and terminal
CN106970870B (en) Webpage test platform, webpage test method and webpage test system
CN106611404A (en) Puzzle template selecting method and mobile terminal
JP7019339B2 (en) Defect cause extraction system and its method
CN112988568A (en) Game testing method and device and electronic equipment
CN110990294B (en) Method, device, equipment and storage medium for determining software defect detection rule
CN104111977B (en) information matching method, device and terminal
JP2008250866A (en) Calculation method, calculation device and computer program
CN115098149A (en) Data dictionary configuration device and method, biochemical immune cascade instrument and related equipment
US8224838B2 (en) Database search method, program, and apparatus
TWI804953B (en) Training data creation assistance apparatus, training data creation assistance system and training data creation assistance method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant