Iād like to find out if there are any suggested good practices for UI automation testing in terms of being able to execute any test case against any customer database/environment?
Hereās the backgroundā¦
I maintain a UI test automation solution for web and mobile products that is used by a variety of different customers, all of which have completely different data and configuration (essentially they all create and process ājobsā, each with their own unique system configuration).
I understand that good practice is for our tests to be environment-agnostic, so for example they could run against dev, test and production environments (e.g. by creating page objects that donāt tie them to any one environment).
But what would be a good practice in terms of executing any given test case against any given customer environment?
I know that for a simple login script for example, by keeping the test data (URL, username, password etc.) separate from the test case - as we do currently in āexecution profilesā - that this means we could run that test against any customer environment by simply having a different execution profile for each customer.
But inevitably for more in-depth test cases, such as creating a new job, so much of that test is going to be specific to that customer in terms of their data (for example, Customer Aās list of places will be different to Customer B).
Even if the data-specifics could be maintained in the execution profile, the likelihood is that the workflow will vary between customers because of their individual system configuration, which could mean that weād need a separate ācreate jobā test case for each individual customer, thereby defeating the objective?
I would really appreciate if anyone would be able to share their experiences and knowledge of this or similar scenarios, or provide links to any potentially useful resources.
For what itās worth, we use Katalon, but Iām really hoping to hear about the principles of how your solution has been implemented, more so than the tools/solutions used (unless of course theyāre fundamental to the solution).
Thank you
ps apologies if this has been covered already - I did a quick search of these forums and google generally but with no luck