Skip to content

[HOW-TO] Configure Initialization of UCI App - opening app is really slow and loads page multiple times #908

Description

@todstanis

Login and OpenApp actually cause the same steps to occur multiple times and has long pauses for no apparent reason.

TestSettings testSettings = new TestSettings(TestCase);
WebClient webClient = new WebClient(testSettings.Options);
using(XrmApp xrmApp = new XrmApp(webClient))
{
	xrmApp.OnlineLogin.Login(uri, userName, password);
	xrmApp.Navigation.OpenApp(app);
}

Running the above test on a 9.1 Unified App takes about 1 min.

xrmApp.OnlineLogin.Login(uri, userName, password);

  • Logins into the application in about 5 seconds and loads the app menu page. - I can visually see the login and load are successful.
  • Waits about 5 seconds and then loads the page again
  • Waits about 30 seconds and then loads the page again

xrmApp.Navigation.OpenApp(app);

  • Loads the App page immediately. Takes a couple of seconds to be fully loaded and ready.
  • Waits a few seconds and reloads the page again
  • Waits about 20-30 seconds and the app menu slides out from the left and it selects the app again and reloads the same page.

Seems more like a bug, as I have essentially no special configuration or waits setup and I'm really only calling 2 lines from the UIAutomation library. v9.1.0.17139 of the library.

We don't have a default app configured.

Is there something I should be doing in my options/settings or some additional step or is this just a problem with UCI library? I know I can simply switch my startup url to include the landing App and not call OpenApp to at least cut the time in half, but I want to be able to switch between apps using the app menu eventually.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions