How to use macros and where to use them?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to use macros and where to use them?
Hi ,
What's the use of Macros in test scripts and can anybody give a very basic example please?
Can we use macros to generate timeout values for the wait methods?
Thanks you!
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @TestQA1!
Macros are primarily used to parameterize the Custom String generator. This is commonly used for generating a string of data that contains a Name and Address for instance.
Although you could use this to generate values used in variables in the wait methods.
Here is our overview for the Custom String Generator;
Here is the overview for the Integer macro you can use to create numbers.
I hope this helps!
Regards,
Nick
Solutions Engineer @ SmartBear
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@npaisley wrote:Hi @TestQA1!
Macros are primarily used to parameterize the Custom String generator. This is commonly used for generating a string of data that contains a Name and Address for instance.
Although you could use this to generate values used in variables in the wait methods.
Here is our overview for the Custom String Generator;
Here is the overview for the Integer macro you can use to create numbers.
I hope this helps!
I appreciate what you did.
