C#C
C#3y ago
Davaaron

❔ E2E Test - Start MVC project

Hi,

im using a testing tool for E2E testing and wondered how to get a MVC project started so the tool can visit the URL of the application and do some stuff?
I call this in the constructor of the test class
        OtherProjRefNs.Program.CreateWebHostBuilder(null)
            .UseStartup<Startup>()
            .Build()
            .Start();

but when I navigate to the URL within a browser after the
Start()
method, it says the page is not reachable. How can I start my MVC project?
Was this page helpful?