Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试为我的 ASP 网站设置一个测试项目。对于某些测试,我想使用 selenium 来执行端到端测试。
因此,我的网站必须运行,以便测试可以访问该网站。
运行测试时如何启动我的网站项目?
请参考以下链接。我相信这是可能的,但会有点棘手。这些内容很详细,并提供了有关以编程方式执行此操作的信息。
以编程方式启动和停止 IIS Express
https://www.reimers.dk/jacob-reimers-blog/testing-your-web-application-with-iis-express-and-unit-tests