Wildcard File

From GXtest Wiki
Revision as of 18:00, 11 February 2016 by Sebagra (Talk | contribs)

Jump to: navigation, search
Spanish.gif
English.gif
link= {{{3}}}

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 must be available, either locally, or through a valid and available path in the network.