How to run Coded UI existing test cases in Chrome

Anonymous
2021-06-24T19:03:50.083+00:00

Hi,

I installed Selenium Cross Browser into my Visual Studio 2019. I would like to run all my existing test cases which are recorded for IE should now run in Chrome. ( All the test cases are Coded UI)

I ran the test case for Chrome browser, the page is successfully opening the Chrome forthe link I provided, whereas, after that I got the error, Below is the screenshot.

Please let me know if I am missing some installation.

CreateRequestOrder
Source: RequestOrder.cs line 29
Duration: 14.5 sec

Message:
Initialization method .Materials.RequestOrder.RequestOrder.MyTestInitialize threw exception. Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException: A exception with a null response was thrown sending an HTTP request to the remote WebDriver server for URL http://localhost:6268/session/32a9df8bc2243dd02b90905ebf503321/title. The status of the exception was ConnectFailure, and the message was: Unable to connect to the remote server.

Thank you
Shilpa Vadyala

Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
337 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 29,351 Reputation points Microsoft Vendor
    2021-06-25T02:03:29.037+00:00

    Hello @Anonymous ,

    Welcome to Microsoft Q&A forum.

    Are you using the latest version of Server(Chromedriver server maybe), Webdriver and local executable(Chromedriver server executable maybe)? If not, please try to use the latest version.

    Best Regards,
    Tianyu

    • If the answer is helpful, please click "Accept Answer" and upvote it.
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    0 comments No comments