Skip to content

Run a SAP Cloud Platform Integration Groovy script locally

License

Notifications You must be signed in to change notification settings

mpern/scpi-script-executor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scpi-script-executor

Run your SAP Cloud Platform Integration Groovy scripts on your local machine for easier test and debugging.

Prerequites

  • JDK installed and configured (e.g. SAPMachine)
    Make sure the environment variable JAVA_HOME points to the JDK
  • curl to download dependencies

Setup

  1. Clone/download the repo
  2. Run bootstrap.sh

How to use

  1. Copy-paste your script into script.groovy
  2. Adapt execute.groovy to:
    • Setup the test message
    • Change the log output
    • Add assertions
    • ...
  3. ./run.sh
    The first run downloads additional dependencies (cached for subsequent runs). Be patient 😉

Notes

This project only implements a limited subset of the Scripting API of SCPI. Check the classes in the impl subfolder for details.