Java Script Device Testing - CRM 2016 Online

I am stuck. I want to unit test my Java scripts (web resources) in CRM 2016 , but I cannot achieve this. All unit tests for bullying / fraud on the Internet are for older versions of CRM. I still need to find a fully functional platform for testing CRM 2016. FakeXRMEasy , but it was designed only for plugins, workflows, etc. Does anyone know how I can achieve this?

+5
source share
1 answer

Now I have successfully implemented unit testing of Java scripts in my project using QUnit and the faking / Mocking framework called XRMPage-Mock . After I understood everything, it was a simple setup. The reference to the mocking structure is https://github.com/ambek/XrmPage-Mock Basically - grab the XRMPage.js , Attribute.js , Control.js files and put them into your test solution. Get QUnit and all related js , css and HTML files. An example of this link - https://github.com/ambek/XrmPage-Mock/tree/master/Example should help with writing the actual unit test.

+1
source

Source: https://habr.com/ru/post/1258434/


All Articles