我有一个用dotnet核心编写的测试项目.这需要以xml或html格式发布结果.有没有办法可以使用相同的命令将结果发布到特定目录? - result-directory对我不起作用
我有一个简单的测试来在 chrome 中打开 launch_url。但是我收到错误,因为无法检索任何新会话。
另外我想知道如何在不运行网格的情况下使用 nightwatch。只是一个独立的实例。
下面是我用过的配置。
{
"src_folders" : ["tests"],
"output_folder" : "reports",
"custom_commands_path" : "",
"custom_assertions_path" : "",
"page_objects_path" : "",
"globals_path" : "",
"selenium" : {
"start_process" : false,
"server_path" : "./bin/selenium-server-standalone-3.4.0.jar",
"log_path" : "",
"port" : 4444,
"cli_args" : {
"webdriver.chrome.driver" : "./bin/chromedriver.exe",
"webdriver.gecko.driver" : "",
"webdriver.edge.driver" : ""
}
},
"test_settings" : {
"default" : {
"launch_url" : "http://127.0.0.1",
"selenium_port" : 4444,
"selenium_host" : "127.0.0.1",
"silent": true,
"screenshots" : {
"enabled" : false,
"path" : …
Run Code Online (Sandbox Code Playgroud) 我有以下情况
public class TestData
{
public TestEnum EnumTestData{get;set;}
}
public Enum TestEnum
{
Test1,Test2,Test3
}
Run Code Online (Sandbox Code Playgroud)
我还有另一个类遍历我的TestData类的所有属性。根据属性类型,它将为其生成随机数据。现在,当我的propertyType是Enum类型时,如何知道它是哪种枚举以及如何获取Test1,Test2或Test3作为输出?