Tuesday, June 16, 2020

Microsoft Dynamics 365 eCommerce

Hi eCommerce guys,

below some useful links about the new eCommerce solution:

Getting Started with eCommerce development
How to Debug Dynamics 365 eCommerce

This page will be update frequently!

Stay Tuned!

Tuesday, March 31, 2020

RSAT and Selenium in action - Dynamics 365 for Finance & Operations Regression Test


Hi guys,

As you know, in order to handle the Regression Test in F&O we can use RSAT.

Here a couple of links:


One of the RSAT limit is the integration part, so you cannot use Task Recorder in order to recorder steps outside F&O.

The trick here is to use RSAT in combination with Selenium, https://www.selenium.dev/

Below the steps:

Generate the Recording of the Web application integrated to F&O through Selenium:















Create the Recording:








Export\Convert the Recording in a C# unit test file:














































The CS file will be looks like this:

// Generated by Selenium IDE
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Firefox;
using OpenQA.Selenium.Remote;
using OpenQA.Selenium.Support.UI;
using OpenQA.Selenium.Interactions;
using NUnit.Framework;

[TestFixture]
public class TEstTest {
  private IWebDriver driver;
  public IDictionary vars {get; private set;}
  private IJavaScriptExecutor js;
  [SetUp]
  public void SetUp() {
    driver = new ChromeDriver();
    js = (IJavaScriptExecutor)driver;
    vars = new Dictionary();
  }
  [TearDown]
  protected void TearDown() {
    driver.Quit();
  }
  [Test]
  public void Test() {
    // Test name: Test
    // Step # | name | target | value
    // 1 | open | /portale/web/guest | 
    driver.Navigate().GoToUrl("https://www.xxxxxxx.it");
    // 2 | setWindowSize | 1294x734 | 
    driver.Manage().Window.Size = new System.Drawing.Size(1294, 734);
    // 3 | click 
    driver.FindElement(By.LinkText("XXXXX")).Click();
    // 4 | click | css=p:nth-child(3) > a | 
    driver.FindElement(By.CssSelector("p:nth-child(3) > a")).Click();
    // 5 | close |  | 
    driver.Close();
  }
}

That said, will be enough to create an .NET C# class library with the above code.

Lastly, from X++, create a custom Menu in order to run from F&O the Selenium recording.
In order to achieve that, it's simple to create a custom project that reference the C# Library create before and call the "Selenium code".

Finally, with Task Recorder, walk through the custom menĂ¹ in order to simulate the External Application like Customer Engagement, Transportation Management System, PLM, etc.

Conclusion

In this way we will have an unique Console in order to handle our Regression Tests between Microsoft Dynamics 365 F&O and other external applications and so avoid to use different products or manual interactions.

Till soon!
















Saturday, December 28, 2019

Create Financial Reporting App - Dynamics 365 for Finance & Operations LBD

Hi LBD enthusiastic,

here I'm sharing the steps that we need to follow in order to install manually the Financial Reporting App.
Walk through the MR Node and follow those steps:
  1. If present with error, delete the FR app from the Fabric or run the following command with 3 parameters:
    \\fileserver\Agent\wp\Environment\StandaloneSetup-xxxxxx\Apps\FR\Deployment\FinancialReportingDeployer.exe \\fileserver\Agent\wp\Environment\StandaloneSetup-xxxxxx\\config.json \\fileserver\Agent\wp\Environment\StandaloneSetup-xxxxxx Cleanup
  2. If needed, remove also the FR Database (take a backup first) and configure it again. About the installation, go through the link https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/deployment/setup-deploy-on-premises-pu12#configure-the-financial-reporting-database
  3. Install the FR App:
    \\fileserver\Agent\wp\Environment\StandaloneSetup-xxxxxx\Apps\FR\Deployment\FinancialReportingDeployer.exe \\fileserver\Agent\wp\Environment\StandaloneSetup-xxxxxx\config.json \\fileserver\Agent\wp\Environment\StandaloneSetup-xxxxxx Setup

Thank you also to Uwe Zimmermann, MS LBD guru.

Till now!

Robotic process automation (RPA) Overview - Dynamics 365 for Finance & Operations

Hi guys,

again happy Christmas!

In those "holidays" days, I play around with UI Flows!

Here the public link Intuitive robotic process automation that works for you

You are able to automate several tasks, also with the standard connectors.

Last but not least, we can use UI Flow in the our Test Automation journey in combination with RSAT.

Through UI Flow, you can create a Desktop or Web App (browser application like F&O, CE, etc.) recording.



With UI Flow we can automate several day by day activities but also use with RSAT in order to trigger messages from and to external systems!

That said, we will be able to handle an end to end test without any manual interaction.

Here some useful links:

Prerequisites & Limitations

Microsoft Power Automate Community Forums

Support page

Create and test desktop UI flows

Create and test your Web UI flows

Selenium IDE

Blog

In the next post, I'll describe how to create a F&O recorder!

Till soon!

Friday, April 26, 2019

Unable to load DLL 'IfxEvents.dll' - Dynamics 365 for Finance & Operations LBD

Hi LBD enthusiasts,

I'm going to share an issue faced during the 10.0.1 PU25 version installation on F&O LBD.

Error message

System.DllNotFoundException: Unable to load DLL 'IfxEvents.dll': The specified module could not be found
System.TypeInitializationException: The type initializer for 'Microsoft.Dynamics.Performance.Logger.IfxLogger' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'IfxEvents.dll': The specified module could not be found

Reason

Microsoft Visual C++ 2013 Redistributable Package missing on the AOSs and Orchs Machine.

Resolution

Download Microsoft Visual C++ 2013 Redistributable Package and install it on Orch and AOS machines

Rerun the Installation.

Till soon!

Wednesday, April 24, 2019

LCS Environment Status not Updated - Dynamics 365 for Finance & Operations LBD

Hi Folks,

welcome again in the LBD world!

Issue

It could happen that the LCS Environment Status is not Up to date in relation with the On Premise Env Status.

For instance, the Environment is Up & Running but the LCS Status is Deploying.

Reason

That behavior could happen because the Orchestrators aren't able to communicate with LCS

Resolution

First of all, try to press the "Refresh State" Button on the LCS main Project Page.
If doesn't work, go through all Orchestrators and run the Test-D365FOConfiguration.ps1 script.
Probably will fail with the error : Unable to find access rules for certificate star.xxxxxx.com for user Domain\svc-LocalAgent$

In that case, run the Set-CertificateAcls.ps1 script and rerun the Test-D365FOConfiguration.ps1 script.
Repeat for all Orch

Lastly, go through LCS, count until 10 and refresh the page!

That's it