Journey Scripting

Read Me

Here we will attempt to document how to write your own user journey script in our JSON mark-up schema.

Our scripting structure follows a basic 'steps->actions' hierarchy. Steps generally relate to a single page (starting with a click action) and actions are things our user journey engine can do on that page.

Please look at our Getting Started tutorial to begin understanding the RapidSpike User Journey structure.

Example

Here we visit the start page (declared outside of the steps and actions), Wait for 500ms - to account for animations - and then take a screen Capture. We then Click onto the pricing page (using a CSS selector), take a new screen Capture and then run an Assert action to ensure we are on the correct page.

[
    {
        "Comment":"Visit the homepage",
        "Actions":[
            {
                "Type":"Capture",
                "Comment":"Capture the RapidSpike homepage"
            }
        ]
    },
    {
        "Comment":"Visit the User Journey feature page",
        "Actions":[
            {
                "Type":"Click",
                "Selector":"ul li.nav-item.submenu-toggle-wrap a"
            },
            {
                "Type":"Click",
                "Selector":"ul li.subnav-item.userjourney a"
            },
            {
                "Type":"Wait",
                "Time":2000
            },
            {
                "Type":"Capture",
                "Comment":"Capture the User Journey feature page"
            }
        ]
    }
]