Saving Records in Automated Test Framework
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-30-2019 09:13 AM
Would like to confirm if the Commit feature in the Personal Developer Instance and in a regular licensed instance of ServiceNow is the same. I was told an ATF test plan does not save records in the Developer Instance. However when I tried to replicate the same on a licensed instance I saw the exact same behavior. The test results clearly tell me that the Save function was used after a "Submit a Form" ATF test step was executed. The subsequent steps in the test that depend on the newly created record never worked because the said record was never committed.
My question is does the ATF only test the functionality behind ONE single form? I don't quite understand the purpose behind migrating the Submit a Form --> Record_Id --> Document ID to the next step if there is no document id that can be accessed.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-01-2019 03:07 AM
dont use Open an Existing Record.
use Record Validation.
I just did that with an insert and test is successful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2019 11:29 AM
I have tried Open a Form, Set Field Values and then Submit a Form in the said order but the record is never saved even though the test results claim otherwise. It says "Successfully submitted 'sn_vul_vulnerable_item' form for record with sys_id '4674ac034f053300652e121f9310c744' using the 'Save' action" but when you go to the application to look for the record with that SYS_Id it is not found. I honestly feel it only simulates a SAVE and then rolls it back. I tried Record Insert option and that does the same. The record never gets saved. It is happening in both Developer Instance and a licensed instance.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-03-2019 03:01 AM
I just did this with Record Insert >> Record Validation.
in record validation step >> i select the table >> then select the record id from the pill, then for field values I select person is Abel tuter (I inserted a record with a particular user) >> dont use SYSID for the record validation ... use another field that you set on the form in the previous step.