Changeset 1354 for trunk/autoquest-plugin-html/src/main/resources/manuals
- Timestamp:
- 02/07/14 17:11:39 (11 years ago)
- Location:
- trunk/autoquest-plugin-html/src/main/resources/manuals
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-html/src/main/resources/manuals/parseDirHTML
r1339 r1354 1 1 Treats all files in a directory structure as HTML log files and parses them into event sequences and a GUI model. Also sub directories are parsed. 2 2 3 The parsing process can be parameterized. This allows to ignore ids or indexes of GUI elements in the log files. If they are ignored, the GUI model is more harmonized and GUI elements are considered equal although they are not. This may be helpful, e.g., if you have a table where each row is semantically the same. Without ignoring indexes or ids of the rows, each row is treated separately. But withignored indexes or ids, all rows are considered the same.3 The parsing process can be parameterized. This allows to replace or ignore ids or indexes of GUI elements in the log files. If they are replaced or ignored, the GUI model is more harmonized and GUI elements are considered equal although they are not. This may be helpful, e.g., if you have a table where each row is semantically the same. Without replacing or ignoring indexes or ids of the rows, each row is treated separately. But with replaced or ignored indexes or ids, all rows are considered the same. 4 4 5 5 To ignore the indexes, add -clearIndex=<path to GUI element> as parameter to the command call. To ignore ids, add -clearId=<path to GUI element> to the command call. The path to the GUI element is written using the HTML tag names and either their index or their id as identification. E.g., to denote all rows in a table where the table has the id "table_1" you can specify "table(htmlId=table_1)/tbody/tr". To denote e.g. all divs being the child of a div with an index 1, you specify "div[1]/div". 6 6 7 To replace ids, a separate files with mappings must be created. The path to this file must be provided using the idReplacements parameter. The file follows a typical properties format. The key is the path denoting the GUI element of which the id shall be set. The value is the actual id. The key may contain the # character to denote a wildcard in html ids. This allows matching several GUI elements with similar ids at once and to give them the same id. An example entry of this file is: 8 9 div(htmlId\=id_number_#)=div_number_X 10 11 This line would give all divs with an id "id_number_#" where # denotes any character the new id "div_number_X". Please note that for specifying the keys, it is required to escape any = sign in the key specification. This is usually required if the path to the denoted GUI elements denotes elements by their id as shown in the example. 12 13 14 7 15 $USAGE$ 8 <directory> path to the directory 9 [<sequenceNames>] array of sequences into which the parsed events shall be stored 10 [<clearId>] used to define GUI elements of which the ids shall be ignored 11 [<clearIndex>] used to define GUI elements of which the indexes shall be ignored 16 17 <directory> 18 path to the directory 19 [<sequenceNames>] 20 array of sequences into which the parsed events shall be stored 21 {-idReplacements=path/to/replacementfile} 22 used to define id replacements as described in a separate file 23 {-clearId=path/to[0]/gui(htmlId=element)} 24 used to define GUI elements of which the ids shall be ignored 25 {-clearIndex=path/to[0]/gui(htmlId=element)} 26 used to define GUI elements of which the indexes shall be ignored 12 27 13 28 Example(s): 14 29 parseDirHTML /path/to/directory 15 30 parseDirHTML /path/to/directory sequences -clearId=table(htmlId=overview)/tbody[0]/tr 31 parseDirHTML /path/to/directory sequences -idReplacements=idReplacements.txt -clearId=body -
trunk/autoquest-plugin-html/src/main/resources/manuals/parseHTML
r1339 r1354 1 1 Parses an HTML log file them into an event sequence and a GUI model. 2 2 3 The parsing process can be parameterized. This allows to ignore ids or indexes of GUI elements in the log files. If they are ignored, the GUI model is more harmonized and GUI elements are considered equal although they are not. This may be helpful, e.g., if you have a table where each row is semantically the same. Without ignoring indexes or ids of the rows, each row is treated separately. But with ignored indexes or ids, all rows are considered the same.3 The parsing process can be parameterized. This allows to replace or ignore ids or indexes of GUI elements in the log files. If they are replaced or ignored, the GUI model is more harmonized and GUI elements are considered equal although they are not. This may be helpful, e.g., if you have a table where each row is semantically the same. Without ignoring indexes or ids of the rows, each row is treated separately. But with ignored or replaced indexes or ids, all rows are considered the same. 4 4 5 5 To ignore the indexes, add -clearIndex=<path to GUI element> as parameter to the command call. To ignore ids, add -clearId=<path to GUI element> to the command call. The path to the GUI element is written using the HTML tag names and either their index or their id as identification. E.g., to denote all rows in a table where the table has the id "table_1" you can specify "table(htmlId=table_1)/tbody/tr". To denote e.g. all divs being the child of a div with an index 1, you specify "div[1]/div". 6 6 7 To replace ids, a separate files with mappings must be created. The path to this file must be provided using the idReplacements parameter. The file follows a typical properties format. The key is the path denoting the GUI element of which the id shall be set. The value is the actual id. The key may contain the # character to denote a wildcard in html ids. This allows matching several GUI elements with similar ids at once and to give them the same id. An example entry of this file is: 8 9 div(htmlId\=id_number_#)=div_number_X 10 11 This line would give all divs with an id "id_number_#" where # denotes any character the new id "div_number_X". Please note that for specifying the keys, it is required to escape any = sign in the key specification. This is usually required if the path to the denoted GUI elements denotes elements by their id as shown in the example. 12 13 14 7 15 $USAGE$ 8 <file> path to the file to be parsed 9 [<sequenceNames>] array of sequences into which the parsed events shall be stored 10 [<clearId>] used to define GUI elements of which the ids shall be ignored 11 [<clearIndex>] used to define GUI elements of which the indexes shall be ignored 16 17 <file> 18 path to the file to be parsed 19 [<sequenceNames>] 20 array of sequences into which the parsed events shall be stored 21 {-idReplacements=path/to/replacementfile} 22 used to define id replacements as described in a separate file 23 {-clearId=path/to[0]/gui(htmlId=element)} 24 used to define GUI elements of which the ids shall be ignored 25 {-clearIndex=path/to[0]/gui(htmlId=element)} 26 used to define GUI elements of which the indexes shall be ignored 12 27 13 28 Example(s): 14 29 parseDirHTML /path/to/file.log 15 30 parseDirHTML /path/to/file.log sequences -clearId=table(htmlId=overview)/tbody[0]/tr 31 parseDirHTML /path/to/directory sequences -idReplacements=idReplacements.txt -clearId=body
Note: See TracChangeset
for help on using the changeset viewer.