@@ -36,12 +36,12 @@ export interface Variables {
3636 /**
3737 * Saves variable with name 'varName' and sets its value to 'varValue'.
3838 */
39- set ( varName : string , varValue : string ) : void ;
39+ set ( varName : string , varValue : unknown ) : void ;
4040
4141 /**
4242 * Returns value of variable 'varName'.
4343 */
44- get ( varName : string ) : string ;
44+ get ( varName : string ) : unknown ;
4545
4646 /**
4747 * Checks no variables are defined.
@@ -84,6 +84,11 @@ export interface CommonHttpClientRequest {
8484 * Method of the current request
8585 */
8686 method : string ;
87+
88+ // currently not supported
89+ // iteration(): number;
90+ // currently not supported
91+ // templateValue(expressionNumber: number): string | boolean | number;
8792}
8893
8994/**
@@ -117,12 +122,12 @@ export interface RequestEnvironment {
117122/**
118123 * Variables for constructing current request. Can be updated in Pre-request handler script.
119124 */
120- export interface RequestVariables {
125+ interface RequestVariables {
121126 /**
122127 * Retrieves request variable value by its name. Returns null if there is no such variable
123128 * @param name request variable name
124129 */
125- get ( name : string ) : string | null ;
130+ get ( name : string ) : unknown ;
126131}
127132
128133/**
@@ -134,6 +139,7 @@ export interface CommonRequestHeader {
134139 */
135140 name : string ;
136141}
142+
137143/**
138144 * Retrieves a value from a JSON object using a JSONPath expression.
139145 *
@@ -142,3 +148,19 @@ export interface CommonRequestHeader {
142148 * @return {any } - The value found in the JSON object using the JSONPath expression.
143149 */
144150export type jsonPath = ( obj : unknown , expression : string ) => unknown ;
151+
152+ /**
153+ * Retrieves a value from a XML object using a XPath expression.
154+ *
155+ * @param {any } obj - The obj to search in with XPath expression:
156+ * - if obj is Node, Element or Document returns result of search with expression.
157+ * - null in all other cases.
158+ * @param {string } expression - The XPath expression to use for searching.
159+ * @return {any } - The value found in the XML object using the XPath expression.
160+ */
161+ export type xpath = ( obj : unknown , expression : string ) => unknown ;
162+
163+ export interface CommonWindow {
164+ atob ( str : string ) : string ;
165+ btoa ( bytes : string ) : string ;
166+ }
0 commit comments