ServiceNow / PySNC

Python API for ServiceNow
MIT License
91 stars 28 forks source link

Mock GlideRecords in automation testing #80

Closed sgrzemski closed 1 year ago

sgrzemski commented 1 year ago

Hello team, I am trying to assembly some tests for my automation. This automation is a bunch of Python scripts using PySNC. Unfortunately, I do not have any test SNOW instances to connect to, so I cannot perform the tests as you do in your pipeline. Any idea how should I mock the GlideRecord with some entries inside, so I can iterate over them in the tests? Many thanks for any ideas! Best, Szymon

vetsin commented 1 year ago

Honestly i would juse grab a PDI and point it there, should work fine. https://developer.servicenow.com/dev.do#!/learn/learning-plans/rome/new_to_servicenow/app_store_learnv2_buildmyfirstapp_rome_personal_developer_instances