A/B testing or bucket testing is a methodology to measure user experience by presenting different versions of the same page to the end user. This is usually done to see how easily and efficiently an end user can interact with different forms and fields. It helps the organizations to take decisions to improve user experience.

Imagium supports the implementation of A/B testing in any automation framework. In any test case a step is uniquely identified by its ‘StepName‘, so by easily changing the step name as per the new form of the page we can easily implement A/B testing for any number of variations in the page.

//Check which state of page is displayed - A or B ?
//Use the the stepname accordingly
//During first run of the each state a baseline will be created and later it will be compared against baseline
if(element != null)
{
  postRequest("Step 1" + "Form A", uid, scrBase64);
}
else
{
    postRequest("Step 1" + "Form B", uid, scrBase64);
}