Jasmine Framework
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2018 11:17 PM
Hi,
I am new of Jasmine Framework , Can you please explain me how to use jasmine in service now and give me one example.
Regards,
GCS
- Labels:
-
Automated Test Framework
- 5,257 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2018 10:20 AM
Any idea how we can upgrade the version? It's using Jasmine 2.0, which came out back in December 2013.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2018 08:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2018 06:48 AM
Thanks. That's good to know.
I also would like to know if there is an easy way to call a client script or a catalog client script for Jasmine testing rather than inserting a record and doing everything in a script as opposed to opening the form and doing everything. The reason I ask is because we were required to put some regex validation on certain form fields, and we'd like to test that regex. Doing so through Jasmine is more efficient. I can copy and paste the regex from the script to the test, but that's inefficient if that regex gets updated. Thoughts?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2018 10:14 AM
Hi Mark
Jasmin is only available at the server side script so there is no straightforward way to use it for client scripts. If somehow you can keep the same regEx at server-side, you can easily test it via Jasmine.
I can suggest a (dirty) workaround. Using a Jasmine step:
- Create the client script in a way that you can easily extract regEx from it via another regEx or String operation.
- Create a Jasmine script and query the client script. Extract the regEx to test.
- Now you are ready to test your regEx.
--
Best regards
Ankush
P.S. Please mark helpful/correct as appropriate to help fellow Community user in identifying useful answers.