Building Some ServiceNow Developer Utilities – Part 2

As I mentioned in the last utilities post, I was hoping to create some automated unit testing utilities to ensure my back end code is running as desired at all times.  It seems like 99.9% of server-side javascript testing is NodeJS based, and since ServiceNow is not run with node, and since I can’t easily get GlideRecord/GlideSystem outside of ServiceNow (mocking these seems like a big effort), we’re stuck with creating our own stuff.  When life gives you lemons, make lemonade.

Continue reading

Advertisements

Building Some ServiceNow Developer Utilities – Part 1

One of my favorite sessions from Knowledge 15 was given by Dell’s Larry Bell — Crafting Robust Javascript.  My other favorite session was the CreatorCon session on Advanced Scripting, given by my friends at Cloud Sherpas (Mark Amann was one of the presenters).  I’m still relatively new the world of Javascript, having only used it for just over two years (not much longer than I’ve been working with ServiceNow).  It made me examine some of my own short comings: working through some solutions too fast, not validating my own function’s input properly, etc.  So I decided to do something about that.

Continue reading