Ask a Question

How to use macros and where to use them?

TestQA1
Frequent Contributor

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!

2 REPLIES 2
npaisley
Staff

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;

https://support.smartbear.com/testcomplete/docs/testing-with/data-driven/generators/types/custom-str...

 

Here is the overview for the Integer macro you can use to create numbers.

https://support.smartbear.com/testcomplete/docs/testing-with/data-driven/generators/types/custom-str...

 

I hope this helps!

 

 


Regards,
Nick

Solutions Engineer @ SmartBear
VirginiaSus3
Occasional Contributor


@npaisley wrote:

Hi @TestQA1!

LandstarOnline Login Portal

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;

https://support.smartbear.com/testcomplete/docs/testing-with/data-driven/generators/types/custom-str...

 

Here is the overview for the Integer macro you can use to create numbers.

https://support.smartbear.com/testcomplete/docs/testing-with/data-driven/generators/types/custom-str...

 

I hope this helps!

 

 


I appreciate what you did.

cancel
Showing results for 
Search instead for 
Did you mean: