Share your ideas for the JMP Scripting Unsession at Discovery Summit by September 17th. We hope to see you there!
Choose Language Hide Translation Bar

Automate the Testing of JSL Using Hamcrest (2019-US-30MP-239)

Level: Advanced


Justin Chilton, JMP Senior Associate Test Engineer, SAS
Evan McCorkle, JMP Senior Software Developer, SAS


Have you written some JSL and gotten tired of manually testing after every change? Have you inadvertently broken some piece of your application, or has the fear of doing so prevented you from making the changes you want to make? With automated testing, you can be more confident in your changes. Now available is a set of tools for automating the testing of JSL. This framework includes the creation of tests and test cases, as well as an implementation of the well-known Hamcrest assertion library. Hamcrest provides flexible ways to assert what you know to be true about the behavior of your JSL. These tools are full-featured and can be specialized for your needs. In fact, JMP development even uses them to test JMP itself.The presentation will cover this framework and its use in testing an example JSL application, from individual functions to the automation of GUI interactions.


Download the JSL-Hamcrest add-in on GitHub.