在量角器中,您具有浏览器的功能。在这些功能中,有一个名为name
的字段,根据文档,该字段可用于将测试名称发送到SauceLabs等自动化平台。
如何根据正在运行的测试动态填充此name
功能?
capabilities: [
{
name: "",
browserName: "Chrome",
shardTestFiles: true,
maxInstances: maxNumberOfInstances,
platform: "Windows 10",
version: "73",
screenResolution: "1366x768",
record_video: true,
chromeOptions: {
args: chromeArgs,
prefs: {
credentials_enable_service: false,
profile: {
password_manager_enabled: false,
},
download: {
prompt_for_download: false,
directory_upgrade: true,
default_directory: "C:\\downloads\\",
},
},
},
loggingPrefs: {
browser: "SEVERE",
},
},
]