Don’t Get Struck By Lightning – Paul Meader

Many organisations are moving from Salesforce Classic to Lightning, throwing up challenges when they look to automate their regression testing as existing automation packs don’t work.

Salesforce uses custom components and Shadow DOMs to give developers the ability to share a component and protect the component from being manipulated by arbitrary HTML, CSS, and JavaScript. However, elements in a shadow tree aren’t accessible via traditional DOM querying methods, as used by many UI automation tools – which rules out many tools that would typically have been considered for these projects.

Embedded iFrames within pages add to the complexity of working with the custom components – as some tools were not able to handle iFrames without significant workarounds.

For any organisation that has a large manual regression suite that requires a lot of data setup, this can cause significant problems.

Working with one of our customers, Ten10 we were able to demonstrate that tests could be automated in Salesforce, integrated with the existing technology stack, and continuous integration (CI) deployment and were maintainable by customer teams.

What We Did

Firstly, we took the time to understand the issues. We evaluated the approach and tooling considerations to provide a solution that solved the problems, while still being mindful of the customers’s technology stack, the requirement for CI and the need for it being able to be fully maintainable.

We produced a proof of concept that was able to log in to Salesforce and demonstrate interactions with the Salesforce Lightning Components that met the customers’s requirements on CI, technology and reporting.

Developed a number of tests using the frameworks implemented and demonstrated the capability to integrate via CI.

We helped the customer to understand the complexities and the proposed solutions not visible when testing manually, and the challenges of automated testing in the Lightning environment.

Remote Working

Just after we started this project, we moved to full remote working. This didn’t provide any challenges as over 50% of our engagements have traditionally been delivered remotely, so we know what works, and more importantly, what doesn’t.

What We Can Do For You

  • Ten10 can provide automation testing for your Salesforce Lightning implementation
  • We are tools agnostic with experience across varied tools and technologies meaning that we can share ideas and advice internally to discuss proposed solutions
  • We have the capacity, expertise and knowledge in leverage tools and techniques to mobilise and provide effective off-site remote delivery, be this collaborative, Agile teams or standalone test phases