Server Side Script Rollback?

OMT
Tera Expert

Do you know whether what the script has generated is deleted again after the test (rollback?)
Br

2 ACCEPTED SOLUTIONS

chetanb
Tera Guru

Hello @OMT 

 

Can you please elaborate your query.

 

If i understood correctly, in background script if you selected rollback checkbox then it will be recovered.

 

you can check in deleted records.

 

Regards,

CB

View solution in original post

No, ATF rollback functionality does not apply to Run Scripts. while ATF automatically rolls back changes made during test execution like - modifying records, creating attachments etc. Run scripts operate independently and their actions are permanent.

 

However, you have to be cautious while using run script within ATF especially actions that modify prod data.

 

Hope this helps.

 

Don't hesitate to mark as helpful if it solves your query.

 

Regards,

CB

View solution in original post

3 REPLIES 3

chetanb
Tera Guru

Hello @OMT 

 

Can you please elaborate your query.

 

If i understood correctly, in background script if you selected rollback checkbox then it will be recovered.

 

you can check in deleted records.

 

Regards,

CB

Hello chetanb, 
Does the ATF rollback also apply to Run Scripts? For example, I want to use a script for creating users, adding tags, etc, and im not sure if it will also rollback like other steps?

Br

No, ATF rollback functionality does not apply to Run Scripts. while ATF automatically rolls back changes made during test execution like - modifying records, creating attachments etc. Run scripts operate independently and their actions are permanent.

 

However, you have to be cautious while using run script within ATF especially actions that modify prod data.

 

Hope this helps.

 

Don't hesitate to mark as helpful if it solves your query.

 

Regards,

CB