microsoft / PowerAppsTestAutomation

MIT License
63 stars 677 forks source link

Cannot test by Chrome browser #9

Open karamem0 opened 3 years ago

karamem0 commented 3 years ago

The test by Chrome browser fails because Chrome browser does not allow third party's cookie in private mode.

Benelio commented 3 years ago

Does this manifest itself via a login failure? That's what I'm seeing when trying to use automated tests with chrome.

e.g.

Failed RunTestAutomation Error Message: Test method Microsoft.PowerApps.TestAutomation.Tests.TestAutomation.RunTestAutomation threw exception: System.InvalidOperationException: Login failed after 3 attempts. Exception Details: System.Exception: Login page failed on login retry. at Microsoft.PowerApps.TestAutomation.Api.OnlineLogin.<>c.b__12_1(IWebDriver f) in D:\a\1\s\Microsoft.PowerApps.TestAutomation.Api\Pages\OnlineLogin.cs:line 188

itsmyownview commented 3 years ago

@Benelio , @karamem0 ,

May I know where i can find the steps to execute a test in this repo -microsoft/PowerAppsTestAutomation? Once after cloned this code, what are the steps i should follow to execute a sample test? Do we have any documentation (Getting started page is blank) ,if not Could you please guide how you guys executed the tests in this repo?

karamem0 commented 3 years ago

Hi @itsmyownview, This document will be useful to you. https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/test-studio-classic-pipeline-editor

narendradhavale commented 3 years ago

Built pipeline following https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/test-studio-classic-pipeline-editor However for both Chrome as well as Firefox, it always fails with following error; Failed RunTestAutomation Error Message: Test method Microsoft.PowerApps.TestAutomation.Tests.TestAutomation.RunTestAutomation threw exception: OpenQA.Selenium.ElementNotInteractableException: Element