The CreatorCon Call for Content is officially open! Get started here.

ATF - Why Record Validation failed in sys_user?

bbf3562
Kilo Guru

I am using automated test framework to create a new test user to use for test purpose. The first test step is use Record Insert like this to insert new data in sys_user table,

find_real_file.png

Then next step is to validate the record that I inserted from above to make sure that SDLC_Scrum_Master exist by using Record Validation like this,

find_real_file.png

When I execute the test, it should failed on Record Validation that the record does not match with SDLC_Scrum_Master that I do not understand why?

find_real_file.png

1 ACCEPTED SOLUTION

georgimavrodiev
Mega Guru

Hello,


To achieve your goal, you may use a different path: configure your ATF to run as follows:
1. 'Impersonate' (here you should impersonate to a user who may create users on the targeted platform, for example admin);
2. 'Open a New Form' against User (sys_user) table;
3. 'Set Field Values' (populate the fields you are interested in with respective values);
4. 'Submit a Form';
5. 'Open an Existing Record' (here, you need to specify the recently submitted user record from the previous step);
6. 'Field Values Validation;
Note: during the ATF execution it will be positive if you monitor the steps covering via the Test Runner window;

In regards to your specific ATF failed configuration, I would make the test to validate the created user record by its sys_id or user_name.


Best Regards,
Georgi Mavrodiev

IT Consultant
Do IT Wise Bulgaria

You may visit us in our Web Site: www.doitwise.com

View solution in original post

2 REPLIES 2

georgimavrodiev
Mega Guru

Hello,


To achieve your goal, you may use a different path: configure your ATF to run as follows:
1. 'Impersonate' (here you should impersonate to a user who may create users on the targeted platform, for example admin);
2. 'Open a New Form' against User (sys_user) table;
3. 'Set Field Values' (populate the fields you are interested in with respective values);
4. 'Submit a Form';
5. 'Open an Existing Record' (here, you need to specify the recently submitted user record from the previous step);
6. 'Field Values Validation;
Note: during the ATF execution it will be positive if you monitor the steps covering via the Test Runner window;

In regards to your specific ATF failed configuration, I would make the test to validate the created user record by its sys_id or user_name.


Best Regards,
Georgi Mavrodiev

IT Consultant
Do IT Wise Bulgaria

You may visit us in our Web Site: www.doitwise.com

keerthi1
Kilo Contributor

Worked using above steps