Difference between revisions of "Wildcard File"
Line 19: | Line 19: | ||
Such value may be used in either a variable, a Datapool, or directly as a value for the command. | Such value may be used in either a variable, a Datapool, or directly as a value for the command. | ||
− | Its use is not case sensitive, and it's addressed for using | + | Its use is not case sensitive, and it's addressed for using with: |
− | *FillInput | + | *the value typed in a FillInput command |
− | + | *the parameters of a WebService invocation | |
Bear in mind that, for running a test in a GXTest Executor, the file myst be available, either locally, or through a valid and available path in the network. | Bear in mind that, for running a test in a GXTest Executor, the file myst be available, either locally, or through a valid and available path in the network. |
Revision as of 16:30, 29 October 2014
This wildcard is particularly useful as we want to employ the contents of a text file in a test case, for instance, as we need to fill in a text field which is quite lengthy, and we prefer to handle it outside the datapool.
Using values from files
Taking into account that both, either Datapools, or the text fields may be uncomfortable to work with large amount of characters (for instance, an xml), the value a command will use may be loaded from a file in the hard drive. Throughout its execution, GXTest will use the text from within the file regardless the formatting of its content.
The syntax of the value is the following:
%FILEPATH_WILDCARD%<path_to_the_file>
For instance, in order to use in a FillInput, the value contained in the file c:\temp\archive.xml, the following value must be used %FILEPATH_WILDCARD%c:\temp\archivo.xml
Such value may be used in either a variable, a Datapool, or directly as a value for the command.
Its use is not case sensitive, and it's addressed for using with:
- the value typed in a FillInput command
- the parameters of a WebService invocation
Bear in mind that, for running a test in a GXTest Executor, the file myst be available, either locally, or through a valid and available path in the network.