ATF TEST Reset User Password then use that reset to populate in a field

Ashley45
Tera Contributor

My goal is to enter an email and password for a Approval step however with trying to use best practice i do not want to use a real user and password since that will be shown in the test run as well as having to change in down the road. I created two users in the atf test. I impersonated 1 with admin roles and open the second created user in the user table and set a generated password. Is it possible to 'copy' or get a data p!ll to have that generate password into a text field? 

3 REPLIES 3

Shaqeel
Mega Sage

@Ashley45 

 

I don't think the steps you will be following is possible through ATF because for setting the password you will have to click on Set Password and that is a pop-up, and setting fields on pop-up is not possible.

 

What you can do is before running the ATF test you should create a test user manually and set the possible password. And use it in your test.

Don't forget to take created test user backup with your ATF test.


*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

*************************************************************************************************************

 

 

Regards

Shaqeel

 

 

 

 


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel

Ashley45
Tera Contributor

@Shaqeel With these steps i was able to interact with the popup, was just curious if i could use that generated password in another step

Ashley45_0-1726768127182.png

 

@Ashley45 

 

And after those steps it is not possible to enter the generated password to and field.

 


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel