简体   繁体   English

如何使用 c# 在 Visual Studio 2017 中为 1 个 selenium 项目创建 .exe 文件,其中包含多个类

[英]how to create .exe file in visual studio 2017 for 1 project of selenium using c# having multiple class within it

I am working on a project where I am writing selenium script.我正在开发一个正在编写硒脚本的项目。 I'm writing it in visual studio 2017.I am using c#, NUNIT framework with selenium.我在 Visual Studio 2017 中编写它。我正在使用带有 selenium 的 c#、NUNIT 框架。 I am having several classes.我有几节课。 Each class is testing functionality of each page enter image description here .1 class ie Login class is kept as parent class and other classes are inheriting that to login to the web page.每个类都在测试每个页面的功能在此处输入图像描述.1 类,即登录类保留为父类,其他类继承该类以登录网页。 I want to run the test outside visual studio from command prompt by creating a .exe file for each class.我想通过为每个类创建一个 .exe 文件,从命令提示符在 Visual Studio 外部运行测试。 In 1 single project I kept all the class files.how to create .exe file in visual studio 2017 for 1 project of selenium using c# having multiple class within it.在 1 个单个项目中,我保留了所有类文件。如何在 Visual Studio 2017 中为 1 个 selenium 项目创建.exe文件,使用 c# 在其中包含多个类

Select Release from the Solution Configuration drop-down list, which is on the Standard toolbar.从标准工具栏上的解决方案配置下拉列表中选择发布。 On the Build menu, click Build.在生成菜单上,单击生成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Visual Studio 2017安装项目为C#Windows窗体创建Exe / MSI - Creating Exe/MSI for C# Windows Forms using Visual Studio 2017 Setup Project 如何使用 C# 在 Visual Studio 上构建我的项目的 exe - how to build exe of my project on visual studio using c# Visual Studio 2017 RC - C#UWP项目 - 无法创建类 - Visual Studio 2017 RC - C# UWP Project - Can't create class 如何使用Visual Studio在C#中创建硒测试 - how to create a test for selenium in C# using visual studio 如何在 Visual Studio 2017 中使用 C# 使用 Selenium 查找和选择下拉值 - How do I find and select a dropdown value with Selenium using C# in Visual Studio 2017 如何使用 Visual Studio Code 创建 C# 项目? - How to create a C# project using Visual Studio Code? 如何找出我在Visual Studio 2017中使用的c#项目类型? - How can I find out what type of c# project I'm using in Visual Studio 2017? 文件存在c#visual Studio 2017 - file Exists c# visual studio 2017 Visual Studio 2017不会创建C#和Visual Basic项目 - Visual Studio 2017 won't create C# and Visual Basic project 如何在Visual Studio 2017中使用C#建立SQL连接? - how to build a SQL connection using C# in Visual Studio 2017?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM