1
0

Проверка на существование файла vrunner перед чтение его свойств

This commit is contained in:
Nikita Gryzlov
2021-12-04 13:00:24 +03:00
parent ba5bc457b6
commit 826d6bc62b

View File

@@ -31,6 +31,10 @@ class VRunner {
static boolean configContainsSetting(String configPath, String settingName) {
IStepExecutor steps = ContextRegistry.getContext().getStepExecutor()
if (!steps.fileExists(configPath)) {
return false
}
String fileContent = steps.readFile(configPath)
return fileContent.contains("\"$settingName\"")
}