Overview
When testing, it is often necessary to generate dynamic values, such as a unique email address for each test run. For example, you might need an email in the format thinkhrqa84+<randomText>@gmail.com. Functionize provides two supported methods to create these dynamic expressions.
How It Works
You can generate dynamic values using either ARC syntax editing during the recording process or by implementing a Custom Code action.
ARC Syntax Editing (During Recording)
You can directly edit the syntax within ARC while recording your test. This allows ARC to automatically handle the generation of a random value without requiring any scripting. This is a straightforward method for creating dynamic data on the fly.
Custom Code Approach
For greater flexibility or if you need to reuse the generated value across multiple steps, the recommended approach is to use a Custom Code action. This method provides better control and reusability for the dynamic value. Both methods are stable and supported for generating dynamic values in Functionize.