Description
The MemoryPutGen Generator keeps a map of name/value pairs in memory for a given namespace. Any value from the map can then be retrieved from memory via its namespace and the value of its key using the MemoryGetGen Generator.
The MemoryGetGen Generator references a map of key/value pairs stored in memory by a MemoryPutGen Generator. It can reference a given memory map via its namespace and retrieve a value from within the memory map via the value of its key.
Because the key/value pairs are stored in memory during a Scenario run, the loopCount should be kept to a reasonable limit to avoid a memory crash.
Video Tutorial
MemoryPutGen Parameters
The following parameters may be configured for the MemoryPutGen Generator. Items with an asterisk* are required.
- namespace* - Defines a value that will uniquely define a map in memory allowing for two or more maps to exist in memory at the same time.
- key* - References an Attribute whose generated value represents the key of a key/value pair. The key must be unique for each represented value. Often, the value of the "id" Attribute is used to represent the key.
- value* - References an Attribute whose generated value represents the value of a key/value pair.
- resetMap* - Defines whether to reset the Map for every Scenario Run. This is helpful when you want the map values to be maintained across the Scenarios in Scenario Chains.
MemoryGetGen Parameters
The following parameters may be configured for the MemoryGetGen Generator. Items with an asterisk* are required.
- namespace* - Defines a value that will uniquely define a map in memory allowing for two or more maps to exist in memory at the same time.
- key* - References an Attribute whose generated value represents the key of a key/value pair. The key must be unique for each represented value. Often, the value of the "id" Attribute is used to represent the key.
- default* - References a Generator (most likely a linked Generator) whose generated value is used if a given key/value pair is not found within the memory map for a given namespace.