Automate the Testing of JSL Using Hamcrest (2019-US-30MP-239)
Aug 27, 2019 12:44 PM
| Last Modified: Oct 21, 2019 8:11 AM
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.