31 Mar Metadata driven Selenium Framework to Test Salesforce.com Config & Dev
About 6 months back a colleague at my current employment, showed a generic testing framework that was built in UTF and showed me how she could build automated test scripts for point and click kind of web applications. How she can build test cases for web forms through simply adding steps to an xls sheet without touching UTF code. That was so exciting.
- Should let me add Libraries for various test scripts for standard Salesforce.com components like profiles, roles, sales processes – Incremental development
- Modifying these test scripts should be through xls sheets
- Running these test cases should be controlled through simple xls sheets
In a nutshell a Salesforce.com admin or BA should be able to record customization in an xls sheet and the testing framework (developed in Selenium WebDriver) should be able to convert that into a test script and be able to test Salesforce.com app, without any modification / changes to Selenium WebDriver code.
Following is the architecture for this framework.
So this is how the framework would work.
- Framework will look into the Orgs (Salesforce.comorg) Meta Data to pick up which Orgs to be tested and build a queue for the same.
2.Once this queue is build, then we read through “Test Cases list and action Meta Data”. Based on this information our framework will pick up test case specific Meta Data (That would include the steps to test and sample data to test).
3.Once we are ready with this information, our framework converts it into Selenium automated test scripts and test our Salesforce.com app across the scheduled orgs for regression or for new / enhanced functionality.
“Know more about Salesforce Consulting at Techila”