In this repository you will find a starter projet with some samples to use EasyRepro within Katalon Studio.
First of all EasyRepro is a set of methods made by Microsoft for web testing of Dynamics 365 with C# and Selenium library. It's available from github. Unfortunately it's only code based without any UI, so it targets dev essentially.
Katalon is a free tool for webtesting based on Selenium and Groovy code, you can download it here. In Katalon you can easily construct Tests cases, Tests Suites, Reports with a UI. There's a set of natives functions, named Keywords, and you can extend them with custom Keywords.
From Katalon Studio, go to Tests Cases > New > Test Case
- First step, use the native function Call Test Case, Object : Login, with no inputs
- Add Custom Keyword, easyrepro.XrmEntityPage.OpenCreateForm, inputs : "account" and
- entityName : "account"
- thinkTime : 2
- Add > Custom Keyword, easyrepro.XrmEntityPage.SwitchToContent (switch to the content frame, allows access to the fields in the form)
- Edit some fields, name for example, Add > Custom Keyword, easyrepro.XrmPage.SetValue
- Object : name
- Input : "Katalon account !"
- To finish, save the account with, Add > Custom Keyword, easyrepro.XrmEntityPage.Save, no object, input :
- thinkTime : 2
- timeOut : 120
- waitForSave : true
- Last step, configure once your global variables with baseUrl, login and password (encrypted).
Here we go ! you can now Launch your test case in Katalon with your favorite browser *. *Login Test Case is not working in headless browser
XPath constants used in EasyRepro are translated in Object for Katalon with the same hierarchy.
- Reference in EasyRepro :
Elements.Xpath[Reference.Frames.ContentPanel])
- Same Reference in Katalon :
findTestObject("Reference/Frames/ContentPanel")
Custom keywords can differ from their equivalent in EasyRepro, for :
- Simplify the code
- Fix issues with different behaviours in Katalon