testlibrary.context.commands.xml Maven / Gradle / Ivy
Gets a list from context and adds its elements to another list stored in the context
Name of the list in the context to which addlist's elements are added
Name of the list in the context whose elements will be added to tolist
The index of the tolist at which the elements of the addlist should get added (default: size of tolist)
The list with all of the elements in it. The name will be the value of tolist
Gets an object from context and adds that object into a list in the context
Name of list in context to which object will get added
Name of the object in context to add to list
The index of the list at which object should get added (default: size of list)
The list with the object in it. The name will be the value of list
Gets an object from context and puts it into a map in context
Name of map in context
Name of the object in context to put into map
Removes an object from context by replacing it with null
Name of the object in context to remove
Gets an object at a specified index from a list in context and stores that object into context
Name of list in context to get object from
Name of context key for which the object will get stored
The index of the list to get (default: size of list)
Gets an object from a map in context and stores that object into context
Name of map in context to get object from
Name of context key for which the object will get stored
Gets an object from context and stores that object into another attribute
Context key from which to get the object
Context key to which the object should be stored
Gets an object from context and restores that object into context with its .toString() value
Name of the key whose object will be restored in the context as a String
The String value of the object will be restored for the key
Verifies an object in context against another according to the expected object's type (ie: if map, then compare size and all keys/values)
Context key of the actual object to compare
Context key of the expected object to compare
The display name of the object being verified (for error reporting purposes)
True by default. When the actual object does not equal the expected object, an AssertionFailedError will be thrown
A list of error messages received when trying to compare equality of actual and expected
Stores a default value into context unless the object already exists in context
Key to store the default object if not yet stored in the context
If specified, the object in the context pulled with this value as its key will become the default value
The default value to use if no defaultKey specified. Note that this can be any sort of variable in the test script with name='default' (string, list, map, integer, etc.)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy