%3CLINGO-SUB%20id%3D%22lingo-sub-1617726%22%20slang%3D%22en-US%22%3ETest%20Automation%20and%20EasyRepro%3A%2001%20-%20Overview%20and%20Getting%20Started%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1617726%22%20slang%3D%22en-US%22%3E%3CP%20class%3D%22md-end-block%20md-heading%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-heading%22%3E%3CSPAN%20class%3D%22md-plain%22%3EThe%20following%20is%20the%20first%20on%20a%20series%20of%20articles%20by%20%3CA%20href%3D%22https%3A%2F%2Fwww.linkedin.com%2Fin%2Faliyoussefi%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%40Ali%20Youssefi%3C%2FA%3E%20that%20we%20will%20be%20cross-posting%20into%20this%20Test%20Community%20Blog.%20These%20articles%20were%20first%20published%20by%20Ali%20in%20the%20Dynamics%20community%20but%20since%20the%20topic%20is%20very%20related%20with%20Testing%20it%20makes%20sense%20to%20publish%20here%20as%20well.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-heading%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-heading%22%3E%3CSPAN%20class%3D%22md-plain%22%3EWe%20will%20be%20interrelating%20cross-posting%20content%20with%20original%20articles%20and%20when%20it's%20a%20series.%20Stay%20tuned!%20%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-heading%22%3E%3CSPAN%20class%3D%22md-plain%22%3E-----------------------------------------------------------------------------------------------------------------%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-heading%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-heading%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20class%3D%22md-end-block%20md-heading%22%20id%3D%22toc-hId--1272181776%22%20id%3D%22toc-hId--1271468592%22%3E%3CFONT%20color%3D%22%23008080%22%3E%3CSTRONG%3E%3CSPAN%20class%3D%22md-plain%22%3ESummary%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FH2%3E%0A%3CP%20class%3D%22md-end-block%20md-p%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%22%3E%3CSPAN%20class%3D%22md-plain%22%3EEasyRepro%20is%20a%20framework%20that%20allow%20automated%20UI%20tests%20to%20be%20performed%20on%20a%20specific%20Dynamics%20365%20organization.%20You%20can%20use%20it%20to%20automate%20testing%20such%20as%20Smoke%2C%20Regression%2C%20Load%2C%20etc.%20The%20framework%20is%20built%20from%20the%20Open%20Source%20Selenium%20web%20drivers%20used%20by%20the%20industry%20across%20a%20wide%20range%20of%20projects%20and%20applications.%20The%20entire%20EasyRepro%20framework%20is%20Open%20Source%20and%20available%20on%20GitHub.%20The%20purpose%20of%20this%20article%20is%20to%20walk%20through%20the%20setup%20of%20the%20EasyRepro%20framework.%20It%20assumes%20you%20are%20familiar%20with%20concepts%20such%20as%20working%20with%20Unit%20Tests%20in%20Visual%20Studio%2C%20downloading%20NuGet%20packages%20and%20cloning%20repositories%20from%20GitHub.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20class%3D%22md-end-block%20md-heading%22%20id%3D%22toc-hId-1215331057%22%20id%3D%22toc-hId-1216044241%22%3E%3CSTRONG%3E%3CFONT%20color%3D%22%23008080%22%3E%3CSPAN%20class%3D%22md-plain%22%3EGetting%20Started%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FH2%3E%0A%3CP%20class%3D%22md-end-block%20md-p%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%22%3E%3CSPAN%20class%3D%22md-plain%22%3ENow%20that%20you%20have%20a%20basic%20understanding%20of%20what%20EasyRepro%20is%20useful%20for%20you%20probably%20would%20like%20to%20start%20working%20with%20it.%20Getting%20EasyRepro%20up%20and%20running%20is%20very%20simple%20as%20the%20framework%20is%20designed%20with%20flexibility%20and%20agility%20in%20mind.%20However%2C%20like%20any%20other%20utility%20there%20is%20some%20initial%20learning%20and%20few%20hurdles%20to%3C%2FSPAN%3E%3CSPAN%20class%3D%22md-softbreak%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22md-plain%22%3Eget%20over%20to%20begin%20working%20with%20EasyRepro.%20Let's%20start%20with%20dependencies!%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20class%3D%22md-end-block%20md-heading%20lia-indent-padding-left-30px%22%20id%3D%22toc-hId-1905892531%22%20id%3D%22toc-hId-1906605715%22%3E%3CSPAN%20class%3D%22md-plain%22%3EDependencies%3C%2FSPAN%3E%3C%2FH3%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20md-focus%20lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22md-plain%20md-expand%22%3EThe%20first%20dependency%20involves%20the%20EasyRepro%20assemblies%20and%20the%20Selenium%20framework.%20The%20second%20involve%20.NET%2C%20specifically%20the%20.NET%20framework%20(.NET%20core%20can%20be%20used%20and%20is%20included%20as%20a%20feature%20branch!).%20Finally%20depending%20on%20how%20you%20are%20working%20with%20the%20framework%20you%20will%20want%20to%20include%20a%20testing%20framework%20to%20design%2C%20build%20and%20run%20your%20unit%20tests.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20md-focus%20lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20class%3D%22md-end-block%20md-heading%20lia-indent-padding-left-30px%22%20id%3D%22toc-hId-98438068%22%20id%3D%22toc-hId-99151252%22%3E%3CSPAN%20class%3D%22md-plain%22%3EChoosing%20How%20to%20Consume%20the%20EasyRepro%20Framework%3C%2FSPAN%3E%3C%2FH3%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22md-plain%22%3EThere%20are%20two%20ways%20of%20consuming%20the%20EasyRepro%20framework%2C%20one%20is%20using%20the%20NuGet%20packages%20directly%20while%20the%20other%20is%20to%20clone%20or%20download%20from%20the%20GitHub%20repository.%20The%20decision%20to%20use%20one%20over%20the%20other%20primarily%20depends%20on%20your%20need%20to%20explore%20or%20extend%20the%20framework%20and%20how%20you%20go%20about%20doing%20so.%20Working%20directly%20with%20the%20source%20code%20allows%20exploration%20into%20how%20EasyRepro%20interacts%20with%20Dynamics%20365.%20However%20for%20extending%20the%20framework%20the%20approach%20of%20using%20the%20NuGet%20packages%20and%20building%20on%20top%20allows%20for%20increased%20flexibility.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20class%3D%22md-end-block%20md-heading%20lia-indent-padding-left-30px%22%20id%3D%22toc-hId--1709016395%22%20id%3D%22toc-hId--1708303211%22%3E%3CSPAN%20class%3D%22md-plain%22%3EDownloading%20using%20NuGet%20Package%20Manager%3C%2FSPAN%3E%3C%2FH3%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22md-plain%22%3EThe%20quickest%20way%20to%20get%20started%20with%20the%20EasyRepro%20framework%20is%20to%20simply%20add%20a%20NuGet%20package%20reference%20to%20your%20unit%20test%20project.%20You%20can%20do%20by%20running%20this%20command%20in%20the%20NuGet%20Package%20Manager%20command%20line%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-150px%22%3E%3CSPAN%20class%3D%22md-plain%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%221.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F215186i8BB02C57A1266BA1%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%221.png%22%20alt%3D%221.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-150px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22md-plain%22%3ECreate%20your%20unit%20test%20project%20and%20navigate%20to%20the%20NuGet%20Package%20Manager%20CLI.%20Use%20the%20Install-Package%20command%20to%20get%20the%20PowerApps.UIAutomation.Api%20package%20as%20show%20in%20the%20command%20below%20(v9.0.2%20is%20the%20latest%20as%20of%20this%20writing%20please%20refer%20to%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22%20md-link%22%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nuget.org%2Fpackages%2FPowerApps.UIAutomation.Api%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ethis%20link%3C%2FA%3E%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efor%20any%20updates%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-90px%22%3E%3CSPAN%20class%3D%22md-plain%22%3EInstall-Package%20PowerApps.UIAutomation.Api%20-Version%209.0.2%3C%2FSPAN%3E%3C%2FPRE%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%3CSPAN%3EThis%20will%20get%20you%20the%20references%20needed%20to%20begin%20working%20with%20the%20framework%20immediately.%20Once%20installed%20you%20should%20the%20following%20packages%20begin%20to%20download%20into%20your%20unit%20test%20project%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-150px%22%3E%3CSPAN%20class%3D%22md-plain%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%222.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F215178i47392DFF4A130B5E%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%222.png%22%20alt%3D%222.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-150px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22md-plain%22%3EWhen%20complete%20the%20required%20assemblies%20are%20available%20and%20you%20can%20begin%20working%20with%20the%20EasyRepro%20framework.%20There%20are%20some%20settings%20needed%20for%20the%20framework%20to%20connect%20to%20your%20Dynamics%20365%20organization%20which%20if%20you're%20new%20to%20the%20framework%20maybe%20unknown.%20If%20so%20I%20would%20suggest%20reviewing%20the%20next%20section%20which%20initiates%20a%20clone%20of%20the%20EasyRepro%20framework%20which%20happens%20to%20include%20a%20robust%20amount%20of%20sample%20unit%20tests%20that%20show%20how%20to%20interact%20with%20the%20framework.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20class%3D%22md-end-block%20md-heading%20lia-indent-padding-left-30px%22%20id%3D%22toc-hId-778496438%22%20id%3D%22toc-hId-779209622%22%3E%3CSPAN%20class%3D%22md-plain%22%3ECloning%20from%20GitHub%3C%2FSPAN%3E%3C%2FH3%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22md-plain%22%3EIf%20you're%20new%20to%20the%20framework%20in%20my%20opinion%20this%20is%20the%20best%20way%20to%20begin%20familiarizing%20yourself%20how%20it%20works%20and%20how%20to%20build%20a%20wide%20range%20of%20unit%20tests.%20This%20is%20also%20the%20way%20to%20go%20if%20you%20want%20to%20understand%20how%20EasyRepro%20is%20built%20upon%20the%20Selenium%20framework%20and%20how%20to%20extend.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22md-plain%22%3ETo%20begin%20go%20to%20the%20official%20EasyRepro%20project%20located%20at%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22md-link%22%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FMicrosoft%2FEasyRepro%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FMicrosoft%2FEasyRepro%3C%2FA%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22md-plain%22%3E.%20Once%20you're%20there%20take%20a%20moment%20to%20review%20the%20branches%20available.%20The%20branches%20are%20structured%20in%20a%20GitFlow%20approach%20so%20if%20you're%20wanting%20to%20work%20with%20the%20latest%20in%20market%20release%20of%20Dynamics%20365%20review%20the%20releases%2F*%20branches.%20For%20the%20latest%20on%20going%20development%20I%20would%20suggest%20the%20develop%20branch.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22md-plain%22%3EStart%20by%20cloning%20the%20project%20locally%20to%20review%20the%20contents%20and%20see%20how%20the%20interaction%20between%20the%20frameworks%20occurs.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22md-plain%22%3EThe%20gif%20below%20shows%20cloning%20to%20Azure%20DevOps%20but%20cloning%20locally%20directly%20from%20GitHub%20is%20also%20supported.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-150px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%223.gif%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F215179i4E8221CE02966A44%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%223.gif%22%20alt%3D%223.gif%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH4%20class%3D%22md-end-block%20md-heading%20lia-indent-padding-left-30px%22%20id%3D%22toc-hId-1469057912%22%20id%3D%22toc-hId-1469771096%22%3E%3CSPAN%20class%3D%22md-plain%22%3ECloning%20locally%20from%20Azure%20DevOps%3C%2FSPAN%3E%3C%2FH4%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22md-plain%22%3EAnother%20alternative%20which%20I%20highly%20recommend%20is%20to%20clone%20to%20an%20Azure%20DevOps%20project%20which%20can%20then%20be%20cloned%20locally.%20This%20will%20allow%20us%20to%20automate%20with%20CI%2FCD%20which%20we%20will%20cover%20in%20another%20article.%20If%20you%20decided%20to%20clone%20to%20Azure%20DevOps%20from%20GitHub%20the%20next%20step%20is%20to%20clone%20locally.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22md-plain%22%3EThe%20gif%20below%20shows%20cloning%20locally%20from%20an%20Azure%20DevOps%20repository.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-150px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%224.gif%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F215180i711EF6905A8BAC87%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%224.gif%22%20alt%3D%224.gif%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20class%3D%22md-end-block%20md-heading%22%20id%3D%22toc-hId--1039461129%22%20id%3D%22toc-hId--1038747945%22%3E%3CSTRONG%3E%3CFONT%20color%3D%22%23008080%22%3E%3CSPAN%20class%3D%22md-plain%22%3EReviewing%20the%20EasyRepro%20Source%20Code%20Projects%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FH2%3E%0A%3CP%20class%3D%22md-end-block%20md-p%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%22%3E%3CSPAN%20class%3D%22md-plain%22%3EThe%20EasyRepro%20source%20code%20includes%20a%20Visual%20Studio%20solution%20with%20three%20class%20library%20projects%20and%20one%20for%20sample%20unit%20tests.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-150px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%225.jfif%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F215181i8A16AE29E100A410%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%225.jfif%22%20alt%3D%225.jfif%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%22%3E%3CSPAN%20class%3D%22md-plain%22%3EThe%20projects%20used%20by%20the%20Unified%20Interface%20are%20Microsoft.Dynamics365.UIAutomation.Api.UCI%20and%20Microsoft.Dynamics365.UIAutomation.Api.Browser.%20Most%20of%20the%20usage%20between%20EasyRepro%20and%20unit%20tests%20will%20happen%20with%20objects%20and%20commands%20within%20the%20Microsoft.Dynamics365.UIAutomation.Api.UCI%20project.%20This%20project%20contains%20objects%20to%20interact%20with%20Dynamics%20Unified%20Interface%20modules%20and%20forms.%20%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%22%3E%3CSPAN%20class%3D%22md-plain%22%3EThe%20Microsoft.Dynamics365.UIAutomation.Api.Browser%20project%20is%20limited%20to%20interacts%20with%20the%20browser%20driver%20and%20other%20under%20the%20hood%20components.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20class%3D%22md-end-block%20md-heading%22%20id%3D%22toc-hId-1448051704%22%20id%3D%22toc-hId-1448764888%22%3E%3CSTRONG%3E%3CFONT%20color%3D%22%23008080%22%3E%3CSPAN%20class%3D%22md-plain%22%3EReviewing%20Sample%20Unit%20Tests%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FH2%3E%0A%3CH3%20class%3D%22md-end-block%20md-heading%20lia-indent-padding-left-30px%22%20id%3D%22toc-hId-2138613178%22%20id%3D%22toc-hId-2139326362%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20class%3D%22md-end-block%20md-heading%20lia-indent-padding-left-30px%22%20id%3D%22toc-hId--364004764%22%20id%3D%22toc-hId--363291580%22%3E%3CSPAN%20class%3D%22md-plain%22%3ELooking%20into%20the%20Open%20Account%20Sample%20Unit%20Test%3C%2FSPAN%3E%3C%2FH3%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22md-plain%22%3EThe%20unit%20test%20project%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%3E%3CSTRONG%3E%3CSPAN%20class%3D%22md-plain%22%3EMicrosoft.Dynamics365.UIAutomation.Sample%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22md-plain%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Econtains%20hundreds%20of%20unit%20tests%20which%20can%20serve%20as%20a%20great%20learning%20tool%20to%20better%20understand%20how%20to%20work%20with%20the%20EasyRepro%20framework.%20I%20highly%20suggest%20exploring%20these%20tests%20when%20you%20begin%20to%20utilize%20the%20framework%20within%20your%20test%20strategy.%20Many%20general%20and%20specific%20tasks%20are%20essentially%20laid%20out%20and%20can%20be%20transformed%20to%20your%20needs.%20Examples%20include%20opening%20forms%20(%3C%2FSPAN%3E%3CSPAN%3E%3CSTRONG%3E%3CSPAN%20class%3D%22md-plain%22%3EOpenRecord%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22md-plain%22%3E)%2C%20navigating%20(%3C%2FSPAN%3E%3CSPAN%3E%3CSTRONG%3E%3CSPAN%20class%3D%22md-plain%22%3EOpenSubArea%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22md-plain%22%3E)%20and%20searching%20for%20records%20(%3C%2FSPAN%3E%3CSPAN%3E%3CSTRONG%3E%3CSPAN%20class%3D%22md-plain%22%3ESearch%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22md-plain%22%3E)%2C%20creating%20and%20updating%20records%20(%3C%2FSPAN%3E%3CSPAN%3E%3CSTRONG%3E%3CSPAN%20class%3D%22md-plain%22%3ESave%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22md-plain%22%3E).%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22md-plain%22%3EFor%20this%20exercise%20we%20will%20open%20up%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%3E%3CSTRONG%3E%3CSPAN%20class%3D%22md-plain%22%3EUCITestOpenActiveAccount%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22md-plain%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eunit%20test%2C%20you%20can%20find%20this%20using%20Find%20within%20Visual%20Studio%20(Ctrl%2BF).%20Once%20found%20you%20should%20see%20something%20like%20the%20following%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-150px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%226.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F215182i5896AF35875D7C40%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%226.png%22%20alt%3D%226.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22md-plain%22%3EFollowing%20the%20steps%20within%20the%20unit%20test%20you%20can%20see%20its%20designed%20to%20perform%20basic%20user%20actions%20to%20read%20an%20account.%20We%20start%20by%20logging%20into%20an%20organization%20(%3C%2FSPAN%3E%3CSPAN%3E%3CSTRONG%3E%3CSPAN%20class%3D%22md-plain%22%3ELogin%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22md-plain%22%3E).%20Then%20we%20proceed%20to%20open%20the%20UCI%20application%20titled%20%22Sales%22%20(%3C%2FSPAN%3E%3CSPAN%3E%3CSTRONG%3E%3CSPAN%20class%3D%22md-plain%22%3EOpenApp%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22md-plain%22%3E).%20Once%20in%20the%20organization%20we%20open%20the%20Accounts%20sub%20area%20(%3C%2FSPAN%3E%3CSPAN%3E%3CSTRONG%3E%3CSPAN%20class%3D%22md-plain%22%3EOpenSubArea%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22md-plain%22%3E)%20and%20search%20for%20%22Adventure%22%20in%20the%20Quick%20Find%20View%20(%3C%2FSPAN%3E%3CSPAN%3E%3CSTRONG%3E%3CSPAN%20class%3D%22md-plain%22%3ESearch%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22md-plain%22%3E).%20Finally%20we%20open%20the%20first%20record%20(%3C%2FSPAN%3E%3CSPAN%3E%3CSTRONG%3E%3CSPAN%20class%3D%22md-plain%22%3EOpenRecord(0)%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22md-plain%22%3E)%20in%20the%20quick%20find%20view%20results.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH4%20class%3D%22md-end-block%20md-heading%20lia-indent-padding-left-30px%22%20id%3D%22toc-hId--2042376508%22%20id%3D%22toc-hId--2041663324%22%3E%3CSPAN%20class%3D%22md-plain%22%3EExploring%20Test%20Settings%3C%2FSPAN%3E%3C%2FH4%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22md-plain%22%3EIn%20the%20current%20sample%20Unit%20Test%20project%20the%20test%20settings%20are%20set%20in%20two%20places%3A%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%3E%3CSTRONG%3E%3CSPAN%20class%3D%22md-plain%22%3Eapp.config%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22md-plain%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efile%20located%20in%20the%20root%20of%20the%20project%20and%20in%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%3E%3CSTRONG%3E%3CSPAN%20class%3D%22md-plain%22%3ETestSettings.cs%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22md-plain%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efile%2C%20a%20class%20object%20used%20across%20all%20of%20the%20tests.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH5%20class%3D%22md-end-block%20md-heading%20lia-indent-padding-left-30px%22%20id%3D%22toc-hId-574219044%22%20id%3D%22toc-hId-574932228%22%3E%3CSPAN%20class%3D%22md-plain%22%3EApplication%20Configuration%20file%3C%2FSPAN%3E%3C%2FH5%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22md-plain%22%3EThe%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%3E%3CSTRONG%3E%3CSPAN%20class%3D%22md-plain%22%3Eapp.config%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22md-plain%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efile%20includes%20string%20configurations%20that%20tell%20the%20tests%20what%20organization%20to%20login%20to%2C%20who%20to%20login%20as%20and%20other%20under%20the%20hood%20settings%20like%20which%20browser%20to%20run%20and%20how%20to%20run%20the%20tests.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%3CSPAN%3E%3CU%3E%3CSPAN%20class%3D%22md-plain%22%3EApplication%20Configuration%20File%20Settings%3C%2FSPAN%3E%3C%2FU%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CFIGURE%20class%3D%22md-table-fig%20lia-indent-padding-left-30px%22%3E%0A%3CTABLE%20class%3D%22md-table%20lia-indent-margin-left-30px%22%20border%3D%221%22%3E%0A%3CTHEAD%20class%3D%22lia-indent-padding-left-30px%22%3E%0A%3CTR%20class%3D%22md-end-block%20lia-indent-padding-left-30px%22%3E%0A%3CTH%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22td-span%22%3E%3CSPAN%3E%3CSTRONG%3E%3CSPAN%20class%3D%22md-plain%22%3EProperty%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FTH%3E%0A%3CTH%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22td-span%22%3E%3CSPAN%3E%3CSTRONG%3E%3CSPAN%20class%3D%22md-plain%22%3EDescription%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FTH%3E%0A%3C%2FTR%3E%0A%3C%2FTHEAD%3E%0A%3CTBODY%20class%3D%22lia-indent-padding-left-30px%22%3E%0A%3CTR%20class%3D%22md-end-block%20lia-indent-padding-left-30px%22%3E%0A%3CTD%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22td-span%22%3E%3CSPAN%20class%3D%22md-plain%22%3EOnlineUsername%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FTD%3E%0A%3CTD%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22td-span%22%3E%3CSPAN%20class%3D%22md-plain%22%3EString.%20Used%20to%20represent%20the%20test%20user%20name.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20class%3D%22md-end-block%20lia-indent-padding-left-30px%22%3E%0A%3CTD%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22td-span%22%3E%3CSPAN%20class%3D%22md-plain%22%3EOnlinePassword%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FTD%3E%0A%3CTD%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22td-span%22%3E%3CSPAN%20class%3D%22md-plain%22%3EString.%20Used%20to%20represent%20the%20test%20user%20password.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20class%3D%22md-end-block%20lia-indent-padding-left-30px%22%3E%0A%3CTD%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22td-span%22%3E%3CSPAN%20class%3D%22md-plain%22%3EOnlineCrmUrl%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FTD%3E%0A%3CTD%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22td-span%22%3E%3CSPAN%20class%3D%22md-plain%22%3EString.%20Used%20to%20represent%20the%20organization%20(i.e.%20https%3A%2F%2F%3C%2FSPAN%3E%3CSPAN%20class%3D%22md-tag%20md-raw-inline%22%3E%3CYOUR%20org%3D%22%22%3E%3C%2FYOUR%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22md-plain%22%3E.crm.dynamics.com%2Fmain.aspx)%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20class%3D%22md-end-block%20lia-indent-padding-left-30px%22%3E%0A%3CTD%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22td-span%22%3E%3CSPAN%20class%3D%22md-plain%22%3EAzureKey%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FTD%3E%0A%3CTD%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22td-span%22%3E%3CSPAN%20class%3D%22md-plain%22%3EString.%20GUID%20representation%20of%20Azure%20Application%20Insights%20Instrumentation%20Key.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20class%3D%22md-end-block%20lia-indent-padding-left-30px%22%3E%0A%3CTD%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22td-span%22%3E%3CSPAN%20class%3D%22md-plain%22%3EBrowserType%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FTD%3E%0A%3CTD%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22td-span%22%3E%3CSPAN%20class%3D%22md-plain%22%3EString.%20Represents%20enum%20flag%20for%20Microsoft.Dynamics365.UIAutomation.Browser.BrowserType.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20class%3D%22md-end-block%20lia-indent-padding-left-30px%22%3E%0A%3CTD%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22td-span%22%3E%3CSPAN%20class%3D%22md-plain%22%3ERemoteBrowserType%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FTD%3E%0A%3CTD%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22td-span%22%3E%3CSPAN%20class%3D%22md-plain%22%3EString.%20Represents%20enum%20flag%20for%20Microsoft.Dynamics365.UIAutomation.Browser.BrowserType.%20Only%20used%20if%20BrowserType%20is%20Remote.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20class%3D%22md-end-block%20lia-indent-padding-left-30px%22%3E%0A%3CTD%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22td-span%22%3E%3CSPAN%20class%3D%22md-plain%22%3ERemoteHubServer%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FTD%3E%0A%3CTD%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22td-span%22%3E%3CSPAN%20class%3D%22md-plain%22%3EString.%20Represents%20Selenium%20Server%20remote%20hub%20URL.%20Only%20used%20if%20BrowserType%20is%20Remote.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FFIGURE%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22md-plain%22%3EFor%20this%20article%20we%20will%20focus%20on%20simply%20running%20locally%20with%20the%20Google%20Chrome%20browser%20by%20setting%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%3E%3CSTRONG%3E%3CSPAN%20class%3D%22md-plain%22%3EBrowserType%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22md-plain%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eto%20%22Chrome%22.%20Also%20inside%20of%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%3E%3CSTRONG%3E%3CSPAN%20class%3D%22md-plain%22%3Eapp.config%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22md-plain%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efile%20are%20three%20settings%20we%20need%20to%20modify%20called%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%3E%3CSTRONG%3E%3CSPAN%20class%3D%22md-plain%22%3EOnlineUsername%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22md-plain%22%3E%2C%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%3E%3CSTRONG%3E%3CSPAN%20class%3D%22md-plain%22%3EOnlinePassword%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22md-plain%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%3E%3CSTRONG%3E%3CSPAN%20class%3D%22md-plain%22%3EOnlineCrmUrl%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22md-plain%22%3E.%20In%20my%20case%20I%20am%20using%20a%20trial%20and%20as%20you%20can%20see%20below%20I%20am%20using%20a%20%22%3C%2FSPAN%3E%3CSPAN%20class%3D%22md-link%22%3E%3CA%20href%3D%22mailto%3Auser%40tenant.onmicrosoft.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Euser%40tenant.onmicrosoft.com%3C%2FA%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22md-plain%22%3E%22%20username%20and%20a%20%22https%3A%2F%2F%3C%2FSPAN%3E%3CSPAN%20class%3D%22md-tag%20md-raw-inline%22%3E%3CORGNAME%3E%3C%2FORGNAME%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22md-plain%22%3E.crm.dynamics.com%2Fmain.aspx%22%20URL.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%3CSPAN%3E%3CU%3E%3CSPAN%20class%3D%22md-plain%22%3EBefore%3A%3C%2FSPAN%3E%3C%2FU%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-left%22%20image-alt%3D%227.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F215183i8D2F7DA935D3925F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%227.png%22%20alt%3D%227.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3CU%3E%3CSPAN%20class%3D%22md-plain%22%3EAfter%3A%3C%2FSPAN%3E%3C%2FU%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-left%22%20image-alt%3D%228.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F215184i30CAB1E9BDD6ACFE%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%228.png%22%20alt%3D%228.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH5%20class%3D%22md-end-block%20md-heading%20lia-indent-padding-left-30px%22%20id%3D%22toc-hId--1233235419%22%20id%3D%22toc-hId--1232522235%22%3E%3CSPAN%20class%3D%22md-plain%22%3ETest%20Settings%20and%20the%20BrowserOptions%20object%3C%2FSPAN%3E%3C%2FH5%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22md-plain%22%3EAnother%20key%20object%20is%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%3E%3CSTRONG%3E%3CSPAN%20class%3D%22md-plain%22%3ETestSettings%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22md-plain%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eclass%20and%20the%20various%20properties%20inside.%20This%20class%20tells%20the%20unit%20tests%20how%20to%20render%20the%20browser%2C%20where%20the%20browser%20driver%20can%20be%20located%20as%20well%20as%20other%20properties.%20The%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%3E%3CSTRONG%3E%3CSPAN%20class%3D%22md-plain%22%3ETestSettings%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22md-plain%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eclass%20will%20need%20to%20be%20included%20in%20the%20Unit%20Test%20project%20and%20instantiate%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%3E%3CSTRONG%3E%3CSPAN%20class%3D%22md-plain%22%3EBrowserOptions%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22md-plain%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eobject%20as%20shown%20below%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-left%22%20image-alt%3D%229.jfif%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F215185i11059AB1F4BF96FC%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%229.jfif%22%20alt%3D%229.jfif%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22md-plain%22%3EIn%20the%20next%20post%20we%20will%20explore%20how%20these%20settings%20can%20change%20your%20experience%20working%20with%20unit%20tests%20and%20what%20options%20are%20available.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22md-end-block%20md-p%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20class%3D%22md-end-block%20md-heading%22%20id%3D%22toc-hId-867029257%22%20id%3D%22toc-hId-867742441%22%3E%3CSTRONG%3E%3CFONT%20color%3D%22%23008080%22%3E%3CSPAN%20class%3D%22md-plain%22%3ENext%20Steps%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FH2%3E%0A%3CH3%20class%3D%22md-end-block%20md-heading%20lia-indent-padding-left-30px%22%20id%3D%22toc-hId--811342487%22%20id%3D%22toc-hId--810629303%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20class%3D%22md-end-block%20md-heading%20lia-indent-padding-left-30px%22%20id%3D%22toc-hId-1676170346%22%20id%3D%22toc-hId-1676883530%22%3E%3CSPAN%20class%3D%22md-plain%22%3EConclusion%3C%2FSPAN%3E%3C%2FH3%3E%0A%3CP%20class%3D%22md-end-block%20md-p%20lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22md-plain%20md-expand%22%3EFrom%20this%20article%20you%20should%20be%20able%20to%20begin%20using%20EasyRepro%20with%20your%20Dynamics%20365%20organization%20immediately.%20The%20next%20articles%20will%20go%20into%20designing%20and%20debugging%20unit%20tests%2C%20extending%20the%20EasyRepro%20code%2C%20implementing%20with%20Azure%20DevOps%20and%20other%20topics.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1617726%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3ELearn%20in%20detail%20how%20to%20use%20the%20EasyRepro%20framework%20to%20do%20automated%20UI%20tests%20of%20Dynamics%20365.%20You%20can%20use%20it%20to%20automate%20testing%20such%20as%20Smoke%2C%20Regression%2C%20Load%2C%20etc.%20The%20framework%20is%20built%20from%20the%20Open%20Source%20Selenium%20web%20drivers%20used%20by%20the%20industry%20across%20a%20wide%20range%20of%20projects%20and%20applications.%20This%20article%20is%20to%20walk%20through%20the%20setup%20of%20the%20EasyRepro%20framework%20and%20works%20with%20Unit%20Tests%20in%20Visual%20Studio%20and%20GitHub%20repositories.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-150px%22%3E%3CSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-left%22%20image-alt%3D%222.png%22%20style%3D%22width%3A%20406px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F215170i35AE83E4A8B3F921%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%222.png%22%20alt%3D%222.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1617726%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EQA%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EQuality%20Assurance%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESelenium%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETest%20Automation%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETesting%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EUI%20Testing%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EVisual%20Studio%20Test%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E

 

The following is the first on a series of articles by @Ali Youssefi that we will be cross-posting into this Test Community Blog. These articles were first published by Ali in the Dynamics community but since the topic is very related with Testing it makes sense to publish here as well.

 

We will be interrelating cross-posting content with original articles and when it's a series. Stay tuned!

-----------------------------------------------------------------------------------------------------------------

 

 

Summary

 

EasyRepro is a framework that allow automated UI tests to be performed on a specific Dynamics 365 organization. You can use it to automate testing such as Smoke, Regression, Load, etc. The framework is built from the Open Source Selenium web drivers used by the industry across a wide range of projects and applications. The entire EasyRepro framework is Open Source and available on GitHub. The purpose of this article is to walk through the setup of the EasyRepro framework. It assumes you are familiar with concepts such as working with Unit Tests in Visual Studio, downloading NuGet packages and cloning repositories from GitHub.

 

 

Getting Started

 

Now that you have a basic understanding of what EasyRepro is useful for you probably would like to start working with it. Getting EasyRepro up and running is very simple as the framework is designed with flexibility and agility in mind. However, like any other utility there is some initial learning and few hurdles to get over to begin working with EasyRepro. Let's start with dependencies!

 

Dependencies

The first dependency involves the EasyRepro assemblies and the Selenium framework. The second involve .NET, specifically the .NET framework (.NET core can be used and is included as a feature branch!). Finally depending on how you are working with the framework you will want to include a testing framework to design, build and run your unit tests.

 

Choosing How to Consume the EasyRepro Framework

There are two ways of consuming the EasyRepro framework, one is using the NuGet packages directly while the other is to clone or download from the GitHub repository. The decision to use one over the other primarily depends on your need to explore or extend the framework and how you go about doing so. Working directly with the source code allows exploration into how EasyRepro interacts with Dynamics 365. However for extending the framework the approach of using the NuGet packages and building on top allows for increased flexibility.

 

Downloading using NuGet Package Manager

The quickest way to get started with the EasyRepro framework is to simply add a NuGet package reference to your unit test project. You can do by running this command in the NuGet Package Manager command line:

 

1.png

 

Create your unit test project and navigate to the NuGet Package Manager CLI. Use the Install-Package command to get the PowerApps.UIAutomation.Api package as show in the command below (v9.0.2 is the latest as of this writing please refer to this link for any updates:

 

Install-Package PowerApps.UIAutomation.Api -Version 9.0.2

 

This will get you the references needed to begin working with the framework immediately. Once installed you should the following packages begin to download into your unit test project:

 

2.png

 

When complete the required assemblies are available and you can begin working with the EasyRepro framework. There are some settings needed for the framework to connect to your Dynamics 365 organization which if you're new to the framework maybe unknown. If so I would suggest reviewing the next section which initiates a clone of the EasyRepro framework which happens to include a robust amount of sample unit tests that show how to interact with the framework.

 

Cloning from GitHub

If you're new to the framework in my opinion this is the best way to begin familiarizing yourself how it works and how to build a wide range of unit tests. This is also the way to go if you want to understand how EasyRepro is built upon the Selenium framework and how to extend.

To begin go to the official EasyRepro project located at https://github.com/Microsoft/EasyRepro. Once you're there take a moment to review the branches available. The branches are structured in a GitFlow approach so if you're wanting to work with the latest in market release of Dynamics 365 review the releases/* branches. For the latest on going development I would suggest the develop branch.

Start by cloning the project locally to review the contents and see how the interaction between the frameworks occurs.

 

The gif below shows cloning to Azure DevOps but cloning locally directly from GitHub is also supported.

 

3.gif

 

 

Cloning locally from Azure DevOps

Another alternative which I highly recommend is to clone to an Azure DevOps project which can then be cloned locally. This will allow us to automate with CI/CD which we will cover in another article. If you decided to clone to Azure DevOps from GitHub the next step is to clone locally.

The gif below shows cloning locally from an Azure DevOps repository.

 

4.gif

 

 

Reviewing the EasyRepro Source Code Projects

 

The EasyRepro source code includes a Visual Studio solution with three class library projects and one for sample unit tests.

 

5.jfif

 

The projects used by the Unified Interface are Microsoft.Dynamics365.UIAutomation.Api.UCI and Microsoft.Dynamics365.UIAutomation.Api.Browser. Most of the usage between EasyRepro and unit tests will happen with objects and commands within the Microsoft.Dynamics365.UIAutomation.Api.UCI project. This project contains objects to interact with Dynamics Unified Interface modules and forms.

 

The Microsoft.Dynamics365.UIAutomation.Api.Browser project is limited to interacts with the browser driver and other under the hood components.

 

 

Reviewing Sample Unit Tests

 

Looking into the Open Account Sample Unit Test

The unit test project Microsoft.Dynamics365.UIAutomation.Sample contains hundreds of unit tests which can serve as a great learning tool to better understand how to work with the EasyRepro framework. I highly suggest exploring these tests when you begin to utilize the framework within your test strategy. Many general and specific tasks are essentially laid out and can be transformed to your needs. Examples include opening forms (OpenRecord), navigating (OpenSubArea) and searching for records (Search), creating and updating records (Save).

 

For this exercise we will open up the UCITestOpenActiveAccount unit test, you can find this using Find within Visual Studio (Ctrl+F). Once found you should see something like the following:

 

6.png

 

Following the steps within the unit test you can see its designed to perform basic user actions to read an account. We start by logging into an organization (Login). Then we proceed to open the UCI application titled "Sales" (OpenApp). Once in the organization we open the Accounts sub area (OpenSubArea) and search for "Adventure" in the Quick Find View (Search). Finally we open the first record (OpenRecord(0)) in the quick find view results.

 

Exploring Test Settings

In the current sample Unit Test project the test settings are set in two places: the app.config file located in the root of the project and in the TestSettings.cs file, a class object used across all of the tests.

 

Application Configuration file

The app.config file includes string configurations that tell the tests what organization to login to, who to login as and other under the hood settings like which browser to run and how to run the tests.

 

Application Configuration File Settings

 

Property Description
OnlineUsername String. Used to represent the test user name.
OnlinePassword String. Used to represent the test user password.
OnlineCrmUrl String. Used to represent the organization (i.e. https://<your org>.crm.dynamics.com/main.aspx)
AzureKey String. GUID representation of Azure Application Insights Instrumentation Key.
BrowserType String. Represents enum flag for Microsoft.Dynamics365.UIAutomation.Browser.BrowserType.
RemoteBrowserType String. Represents enum flag for Microsoft.Dynamics365.UIAutomation.Browser.BrowserType. Only used if BrowserType is Remote.
RemoteHubServer String. Represents Selenium Server remote hub URL. Only used if BrowserType is Remote.

 

For this article we will focus on simply running locally with the Google Chrome browser by setting the BrowserType to "Chrome". Also inside of the app.config file are three settings we need to modify called OnlineUsername, OnlinePassword and OnlineCrmUrl. In my case I am using a trial and as you can see below I am using a "user@tenant.onmicrosoft.com" username and a "https://<orgname>.crm.dynamics.com/main.aspx" URL.

 

Before:

7.png

 

 After:

8.png

 

Test Settings and the BrowserOptions object

Another key object is the TestSettings class and the various properties inside. This class tells the unit tests how to render the browser, where the browser driver can be located as well as other properties. The TestSettings class will need to be included in the Unit Test project and instantiate the BrowserOptions object as shown below:

9.jfif

 

 

In the next post we will explore how these settings can change your experience working with unit tests and what options are available.

 

 

Next Steps

 

Conclusion

From this article you should be able to begin using EasyRepro with your Dynamics 365 organization immediately. The next articles will go into designing and debugging unit tests, extending the EasyRepro code, implementing with Azure DevOps and other topics.