H2K Infosys Forum

How to use Buffer a...
 
Notifications
Clear all

How to use Buffer and SetBuffer?

 
Honorable Member

Buffer stores values at runtime; SetBuffer writes them. In Tosca, add the TBox Set Buffer module to a test step. Set “Buffer” to a name (e.g., UserId) and “Value” to data or an expression (e.g., {RND[8NUM]}). Later, reference it with {B[UserId]} in any control, verification, or API step. Buffers persist within the execution context; overwrite or clear by calling SetBuffer again. Combine buffers, like Order-{B[UserId]}, and use environment variables or functions to derive values. For cross-test reuse, initialize buffers in preconditions. More step-by-step guides appear in TOSCA Online Training materials. Store credentials securely; avoid plain text in repositories and logs.


Quote
Topic starter Posted : 21/10/2025 6:10 am
Share: