Difference between revisions of "Wildcard File"

From GXtest Wiki
Jump to: navigation, search
(Created page with " {{Idiomas|Archivo Wildcard|Wildcard File}} Este comodín nos sirve cuando queremos utilizar el contenido de un archivo de texto dentro del caso de prueba, por ejemplo para l...")
 
Line 2: Line 2:
 
{{Idiomas|Archivo Wildcard|Wildcard File}}
 
{{Idiomas|Archivo Wildcard|Wildcard File}}
  
Este comodín nos sirve cuando queremos utilizar el contenido de un archivo de texto dentro del caso de prueba, por ejemplo para llenar un campo con un texto que es muy extenso y preferimos manejarlo afuera del datapool.
+
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 it with the following command:
 +
*FillInput
 +
 
 +
 
 +
 
 +
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 02:28, 8 October 2013

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 it with the following command:

  • FillInput


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.