US9529704B2 - Graphical conversion between test program languages - Google Patents
Graphical conversion between test program languages Download PDFInfo
- Publication number
- US9529704B2 US9529704B2 US13/606,277 US201213606277A US9529704B2 US 9529704 B2 US9529704 B2 US 9529704B2 US 201213606277 A US201213606277 A US 201213606277A US 9529704 B2 US9529704 B2 US 9529704B2
- Authority
- US
- United States
- Prior art keywords
- computer readable
- graphical
- test program
- readable medium
- parser
- 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, expires
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3696—Methods or tools to render software testable
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3664—Environments for testing or debugging software
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
- G06F8/42—Syntactic analysis
- G06F8/427—Parsing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Stored Programmes (AREA)
Abstract
A parser may be graphically modified without needing to directly alter the parser software and may be graphically modified to adjust for extensibility of the source test program language. The parser may be graphically modify to adjust for extensibility of the destination test program language and to translate a new text based test program language not inherently built into the parser.
Description
In current Test Program Language parsers, the vocabulary and syntax of the source and destination Test Program Languages are either hard coded directly into the parser or passed to the parser through the use of external configuration files. For example, the Abbreviated Test Language for All Systems (ATLAS) program language has a very specific lexical and syntactical content and is designed to be extensible. New features (i.e., nouns, modifiers) are added for each version of the ATLAS Language. Creating comprehensive parsers for a specific version of the ATLAS Language is both time intensive and cumbersome.
Modifications of the current Test Language parsers are not end user graphically extensible. They require a user to either create new configuration files or to modify the source code of the test program language parser to account for deviations in a source or destination test program languages due to extensibility of those test program languages. This also applies if the end user desires to translate a different source or destination test program language.
The problem with prior test program parser implementations is their fundamental inability to deal with new or extensible test program languages that were not part of the original design and scope of the parser program. In addition, any modifications required alteration of the original parser software code and are not end user graphically extensible
In short, there exists a need in the art for a parser program that can be graphically extensible.
According to an embodiment, a computer readable medium storing computer readable program code for causing a computer to perform the steps of presenting a graphical user interface; receiving input from a user; reconfiguring a text based parser for a text based test language based on the user input; and parsing the source test program file using the reconfigured text based parser is provided. Related methods are of performing the process are also included.
This summary is provided merely to introduce certain concepts and not to identify any key or essential features of the claimed subject matter. Further features and advantages of embodiments of the invention, as well as the structure and operation of various embodiments of the invention, are described in detail below with reference to the accompanying drawings.
The foregoing and other features and advantages of embodiments of the invention will be apparent from the following, more particular description of embodiments of the invention, as illustrated in the accompanying drawings wherein like reference numbers generally indicate identical, functionally similar, and/or structurally similar elements. Unless otherwise indicated, the accompanying drawing figures are not to scale.
Various embodiments of the invention are discussed herein. While specific embodiments are discussed, specific terminology is employed for the sake of clarity. However, the invention is not intended to be limited to the specific terminology so selected and it should be understood that this is done for illustration purposes only. A person skilled in the relevant art will recognize that other components and configurations can be used without parting from the spirit and scope of the invention. Each specific element includes all technical equivalents that operate in a similar manner to accomplish a similar purpose. Embodiments of the invention may include the described process as well as software and hardware systems to carry out the described processes.
The implications of producing a graphically reconfigurable test program language parser are significant. The end user may graphically modify the parser without needing to directly alter the parser software and may graphically modify the parser to adjust for extensibility of the source test program language.
The parser may be graphically modify to adjust for extensibility of the destination test program language and to translate a new text based test program language not inherently built into the parser.
Graphical parsing software according to various embodiments of the invention may parse the text of the source test program language into a destination test program language using the following features:
-
- 1. Graphical manipulation of .NET regular expressions and string manipulations to control data extraction from the target test program language.
- 2. Closing expression capability to allow for control and manipulation of recursively embedded elemental tagged files such as HTML and XML.
- 3. User configurable data fields for storing and extracting parsed data.
- 4. User configurable state variable fields for storing data for transfer between different parsing operations.
- 5. Graphical manipulation of String Format functions and configurable data fields to convert data to a desirable format.
- 6. User configurable decision trees to allow customizable conversion actions based on parsed data and user defined actions.
- 7. Expandable and customizable conversion actions for translating one test program language to the next.
- 8. Selectable XML configuration files that are modified through the graphical interface.
- 9. Ability to load multiple input files into one parsing operation for test program languages that span multiple files.
- 10. Statistical converter actions for extracting user defined statics from parsing operations.
- 11. User configurable parsing log for tracking parsing operations.
Referring now to FIG. 1 , an exemplary user interface configured for configuration file selection, input file selection, and output file selection is described. The user interface 100 includes a field 102 for selecting the conversion configuration file. The configuration file may be an XML file that contains all the user selections and configurations performed within the user interface. The system may provide an option to select an existing configuration file for editing or to create a configuration file from scratch.
The files displayed in field 104 appear after the selection from a file dialog box. This is done by selecting the Add button in field 104. The types of files available through the dialog box are filtered based on the selected configuration file. Any number of files may be selected through the dialog box. The files may even be located in different locations. Files may be deselected by highlighting them and pressing the delete button. Once the total number of desired files are entered, the parser will acted upon all files listed in field 104.
Any number of different source files may be selected and then loaded for test program languages than span multiple source files. The converter performs conversions on the selected files in the order listed in field 104. A destination file path where the converted language is to be stored may be entered in field 106.
The parser may create a base statement by extracting data from the source files. The extraction may be based on a regular expression, a closing expression or a combination of both. The regular expression may be entered into field 108. The parser may use this regular expression to retrieve information from the source files to be parsed. Conversion from ATML is shown in the example of FIG. 2 . ‘Detailed TestInformation’ is entered as the regular expression into field 108. The parser retrieves anything that deals with detailed test information from the identified source files. Depending on the conversion being performed, the base statement may include verbs, tags, function names and the like.
Additionally, a closing statement may be chosen by selecting grouping mode via check box 110 and entering the closing expression in field 112. The closing expression may act as a bookend to extract data that may be located inside the starting and ending lines of the source file(s). This may be useful for tag based languages such as XML.
When parsing begins, the translator acts upon the top node of the decision tree (5). The user can extract parameters from the base statement using the regular expression or drop down menus containing string manipulations. The parser will act sequentially upon the parameter methods until all have been performed. The resulting data is placed in the parameter field for use by the converter actions. Methods may be added and/or removed. The option to create as many parameters as necessary to successfully complete the conversion action may also be provided.
The functions provided at 122 allow the customization of parameters. A name for the parameter may be provided by a user in field 124. A description of the parameter may be provided in field 126. The description may aid the user to determine what the parameter is. The number of methods in (6) is variable. The ability to create/delete as many of these methods as desired may be provided via the dropdown menus 128-132. Each method parsers the data received from the node in the order the methods are selected. Though this action, the specific data associated with the parameter name may be obtained.
Parameters may be created or deleted for use in the current decision node through the add and delete buttons in (6) Data passed from the current Decision Node to the parameters may be parsed independently for each of the parameters. This enables any and all data passed from the Decision Node to be located in the desired parameters.
The decision tree may be customized via the graphical interface. If the file to be converted includes statements that are not accounted for in the parser, the parser may be modified graphically to account for these new statements. For example, a user may right click on a branch of the decision tree to add a new decision point. The actions to be taken at the decision point may be specified by defining new parameters via window 122.
After the parameters are created, the parser then sequentially acts upon the base statement using the converter actions (7) and any created parameters (6). Conversion actions may either be a series of actions or a call to a lower node. The ability to add, reorder, modify, an/or remove the converter actions may be provided. Some examples of converter actions include parser-log-add message 140; teststand—add sequence 142; and parser-log-add statistic 144 as shown in FIG. 3 . The system may automatically create the converter action. For example for the teststand—add sequence converter action, the name 146, comment 148, ID attribute 150, and description attribute 152 are added to the text file, XML file or desired target language. The drop down menus are populated automatically by the system based on the defined parameters.
Additional user-selectable formatting fields allow customization of how one or more parameters are used in the converter action field. Additional formatting lines may be added to combine parameters or to use literals to create the desired data passed into the converter action field. For example, the converter action for the ID attribute parameter is selected in drop down menu. The value for the ID attribute will populate the {0} in the sequence.
Lines of target text may be created by a user and stored in the destination file using the parameters and/or the converter actions. The input text, parameters and state variables may be combined using formatting converter actions to create the desired line of text. There is also an additional converter action that allows the operator to re-enter the top decision node and perform a parsing operation on either the input texted passed from the calling decision node or a user define set of text.
The operator may create additional decision nodes that then in turn call lower decision nodes in a tree structure. Once the parser exhausts all actions to the end of a branch, it starts again at the top node until all text contained in the base statement has been parsed.
State variables may be used to store data that is not dependent on the status of the parsing process. Parameters by contrast are dependent on the particular node that is being processed. For example, in FIG. 4 , the “Call Action ID” node is highlighted. The information displayed by parameter tab and the conditional tab will vary based on the node selected, whereas the information displayed in the state variable tab is independent of the node. The state variable may be available to all nodes, any location.
Bus 610 may include one or more interconnects that permit communication among the components of computing device 600. Processor 620 may include any type of processor, microprocessor, or processing logic that may interpret and execute instructions (e.g., a field programmable gate array (FPGA)). Processor 620 may include a single device (e.g., a single core) and/or a group of devices (e.g., multi-core). Memory 630 may include a random access memory (RAM) or another type of dynamic storage device that may store information and instructions for execution by processor 620. Memory 630 may also be used to store temporary variables or other intermediate information during execution of instructions by processor 620.
Exemplary embodiments may be embodied in many different ways as a software component. For example, it may be a stand-alone software package, a combination of software packages, or it may be a software package incorporated as a “tool” in a larger software product. It may be downloadable from a network, for example, a website, as a stand-alone product or as an add-in package for installation in an existing software application. It may also be available as a client-server software application, or as a web-enabled software application. It may also be embodied as a software package installed on a hardware device.
It will be understood that the above description of the present invention is susceptible to various modifications, changes and adaptations, and that the same are intended to be comprehended within the meaning and range of equivalents of the appended claims.
Claims (7)
1. A non-transitory computer readable medium storing computer readable program code for causing a computer to perform steps of:
presenting a graphical user interface;
receiving input from a user using the graphical user interface;
receiving a first graphical manipulation of a closing expression from the user using the graphical user interface;
reconfiguring a text based parser for a text based test language based on the user input and the first graphical manipulations;
parsing a source test program file using the reconfigured text based parser, and controlling control data extraction from the source test program file based on the first graphical manipulation, wherein the closing expression acts as a bookend to extract data located inside starting and ending lines of the source test program file.
2. The non-transitory computer readable medium of claim 1 storing computer readable program code for causing a computer to perform the steps further comprising:
receiving input from the user selecting a plurality of source test program files; and
parsing the plurality of source test files.
3. The non-transitory computer readable medium of claim 1 storing computer readable program code for causing a computer to perform the steps further comprising:
receiving a second graphical manipulation of a regular expression or a string manipulation; and
controlling data extraction from the source test program file based on the second graphical manipulation.
4. The non-transitory computer readable medium of claim 1 storing computer readable program code for causing a computer to perform the steps further comprising:
presenting to the user configurable data fields for storing and extracting parsed data.
5. The non-transitory computer readable medium of claim 1 storing computer readable program code for causing a computer to perform the steps further comprising:
presenting decision trees defining an order of parsing;
receiving user input;
modifying the decision tree via the graphical user interface; and
performing customizable conversion actions based on the user input.
6. The non-transitory computer readable medium of claim 1 , wherein the closing expression may be activated using a check box on the graphical user interface.
7. The non-transitory computer readable medium of claim 1 storing computer readable program code for causing a computer to perform the steps further comprising:
creating state variables, wherein the state variables are independent of the parsing; and
providing on the graphical user interface a selection of state variables comprising: setup action, current code file, message-assembly path, message-root class, message-existing object, member name, and message-existing object parameter list.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US13/606,277 US9529704B2 (en) | 2012-09-07 | 2012-09-07 | Graphical conversion between test program languages |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US13/606,277 US9529704B2 (en) | 2012-09-07 | 2012-09-07 | Graphical conversion between test program languages |
Publications (2)
Publication Number | Publication Date |
---|---|
US20140075416A1 US20140075416A1 (en) | 2014-03-13 |
US9529704B2 true US9529704B2 (en) | 2016-12-27 |
Family
ID=50234747
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US13/606,277 Active 2033-11-04 US9529704B2 (en) | 2012-09-07 | 2012-09-07 | Graphical conversion between test program languages |
Country Status (1)
Country | Link |
---|---|
US (1) | US9529704B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10289533B2 (en) * | 2017-08-30 | 2019-05-14 | Sap Se | Managing extraction of data for testing |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104881496B (en) * | 2015-06-15 | 2018-12-14 | 北京金山安全软件有限公司 | File name identification and file cleaning method and device |
US10521331B1 (en) * | 2018-08-31 | 2019-12-31 | The Mitre Corporation | Systems and methods for declarative specification, detection, and evaluation of happened-before relationships |
US11762858B2 (en) | 2020-03-19 | 2023-09-19 | The Mitre Corporation | Systems and methods for analyzing distributed system data streams using declarative specification, detection, and evaluation of happened-before relationships |
Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5610828A (en) * | 1986-04-14 | 1997-03-11 | National Instruments Corporation | Graphical system for modelling a process and associated method |
US5950004A (en) | 1996-09-13 | 1999-09-07 | The United States Of America As Represented By The Secretary Of The Navy | Model-based process for translating test programs |
US6205407B1 (en) | 1998-02-26 | 2001-03-20 | Integrated Measurement Systems, Inc. | System and method for generating test program code simultaneously with data produced by ATPG or simulation pattern capture program |
US20030192030A1 (en) * | 2002-04-04 | 2003-10-09 | Hostettler Randy W. | Universal script editor |
US6654950B1 (en) | 1999-08-24 | 2003-11-25 | Bae Systems Mission Solutions Inc. | Software rehosting system and method |
US20040205406A1 (en) | 2000-05-12 | 2004-10-14 | Marappa Kaliappan | Automatic test system for testing remote target applications on a communication network |
US20050273685A1 (en) | 2004-06-08 | 2005-12-08 | Sanjay Sachdev | Automated and customizable generation of efficient test programs for multiple electrical test equipment platforms |
US7184917B2 (en) | 2003-02-14 | 2007-02-27 | Advantest America R&D Center, Inc. | Method and system for controlling interchangeable components in a modular test system |
US20070092069A1 (en) | 2005-10-21 | 2007-04-26 | Epiphany, Inc. | Method and system for testing enterprise applications |
US7389474B2 (en) | 2003-02-28 | 2008-06-17 | Microsoft Corporation | Language or script-based character set conversions per-application program |
US7406626B2 (en) | 2004-11-12 | 2008-07-29 | Empirix Inc. | Test agent architecture |
US20090271771A1 (en) | 2008-04-28 | 2009-10-29 | Fallows John R | System and methods for distributed execution of computer executable programs utilizing asymmetric translation |
US7613953B2 (en) | 2003-05-27 | 2009-11-03 | Oracle International Corporation | Method of converting a regression test script of an automated testing tool into a function |
US7669188B2 (en) | 2004-12-03 | 2010-02-23 | Palo Alto Research Center Incorporated | System and method for identifying viable refactorings of program code using a comprehensive test suite |
US7996817B1 (en) | 2006-10-27 | 2011-08-09 | Avaya Inc. | Automatic validation of test results using componentized software object reflection |
US8132161B2 (en) | 2005-05-20 | 2012-03-06 | Advantest Corporation | Semiconductor test program debug device |
-
2012
- 2012-09-07 US US13/606,277 patent/US9529704B2/en active Active
Patent Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5610828A (en) * | 1986-04-14 | 1997-03-11 | National Instruments Corporation | Graphical system for modelling a process and associated method |
US5950004A (en) | 1996-09-13 | 1999-09-07 | The United States Of America As Represented By The Secretary Of The Navy | Model-based process for translating test programs |
US6205407B1 (en) | 1998-02-26 | 2001-03-20 | Integrated Measurement Systems, Inc. | System and method for generating test program code simultaneously with data produced by ATPG or simulation pattern capture program |
US6654950B1 (en) | 1999-08-24 | 2003-11-25 | Bae Systems Mission Solutions Inc. | Software rehosting system and method |
US20040205406A1 (en) | 2000-05-12 | 2004-10-14 | Marappa Kaliappan | Automatic test system for testing remote target applications on a communication network |
US20030192030A1 (en) * | 2002-04-04 | 2003-10-09 | Hostettler Randy W. | Universal script editor |
US7184917B2 (en) | 2003-02-14 | 2007-02-27 | Advantest America R&D Center, Inc. | Method and system for controlling interchangeable components in a modular test system |
US7389474B2 (en) | 2003-02-28 | 2008-06-17 | Microsoft Corporation | Language or script-based character set conversions per-application program |
US7613953B2 (en) | 2003-05-27 | 2009-11-03 | Oracle International Corporation | Method of converting a regression test script of an automated testing tool into a function |
US20050273685A1 (en) | 2004-06-08 | 2005-12-08 | Sanjay Sachdev | Automated and customizable generation of efficient test programs for multiple electrical test equipment platforms |
US7406626B2 (en) | 2004-11-12 | 2008-07-29 | Empirix Inc. | Test agent architecture |
US7669188B2 (en) | 2004-12-03 | 2010-02-23 | Palo Alto Research Center Incorporated | System and method for identifying viable refactorings of program code using a comprehensive test suite |
US8132161B2 (en) | 2005-05-20 | 2012-03-06 | Advantest Corporation | Semiconductor test program debug device |
US20070092069A1 (en) | 2005-10-21 | 2007-04-26 | Epiphany, Inc. | Method and system for testing enterprise applications |
US7996817B1 (en) | 2006-10-27 | 2011-08-09 | Avaya Inc. | Automatic validation of test results using componentized software object reflection |
US20090271771A1 (en) | 2008-04-28 | 2009-10-29 | Fallows John R | System and methods for distributed execution of computer executable programs utilizing asymmetric translation |
Non-Patent Citations (2)
Title |
---|
Daniel Fan, et al., Case Study-Using STIL as Test Pattern Language, IEEE, 2003, pp. 811-817. |
Paul R. Salopek, Migration of Legacy Test Programs to Modern Programming Environments, IEEE, 2000, pp. 217-222. |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10289533B2 (en) * | 2017-08-30 | 2019-05-14 | Sap Se | Managing extraction of data for testing |
Also Published As
Publication number | Publication date |
---|---|
US20140075416A1 (en) | 2014-03-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10120857B2 (en) | Method and system for generating a parser and parsing complex data | |
KR100650427B1 (en) | Integrated development tool for building a natural language understanding application | |
US8855999B1 (en) | Method and system for generating a parser and parsing complex data | |
KR101805946B1 (en) | Generating text manipulation programs using input-output examples | |
US11354305B2 (en) | User interface commands for regular expression generation | |
US9043744B2 (en) | Converting existing artifacts to new artifacts | |
US9529704B2 (en) | Graphical conversion between test program languages | |
US20230409314A1 (en) | Method and system for software application optimization using natural language-based queries | |
US20170300305A1 (en) | Executable guidance experiences based on implicitly generated guidance models | |
US11158118B2 (en) | Language model, method and apparatus for interpreting zoning legal text | |
CN111723192B (en) | Code recommendation method and device | |
CN114503073A (en) | Automatic conversion of program written in procedural programming language into dataflow graph and related systems and methods | |
WO2020263676A1 (en) | Regular expression generation using span highlighting alignment | |
WO2020178856A1 (en) | A chatbot system using asynchronous dialog state machine | |
CN103294340A (en) | Textual and formatted data presentation method and system | |
Porcu | Python for data mining quick syntax reference | |
US20050177788A1 (en) | Text to XML transformer and method | |
CN114391151A (en) | Enhanced natural language generation platform | |
WO2020263674A1 (en) | User interface commands for regular expression generation | |
KR101705254B1 (en) | Apparatus and program | |
CN110879699A (en) | Graphical processing method and equipment for DSL (digital subscriber line) in domain-specific language | |
EP1918814A2 (en) | Type validation for applications incorporating a weakly-typed language | |
CN117171189A (en) | Data processing method, device and equipment | |
CN111723211A (en) | Information processing method and device, electronic equipment and computer storage medium | |
Morrall | NEFTool: system design. |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AS | Assignment |
Owner name: AAI CORPORATION, MARYLAND Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:WALDON, MICHAEL;WILLIAMS, WILLIAM;SCHULTZ, OLIVIA;SIGNING DATES FROM 20120913 TO 20121011;REEL/FRAME:029284/0235 |
|
STCF | Information on status: patent grant |
Free format text: PATENTED CASE |
|
MAFP | Maintenance fee payment |
Free format text: PAYMENT OF MAINTENANCE FEE, 4TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1551); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY Year of fee payment: 4 |