ProvarTesting / provardx-vscode

BSD 3-Clause "New" or "Revised" License
0 stars 3 forks source link

Property file generated in VS Code on Windows has invalid characters for absolute paths #5

Closed mrdailey99 closed 4 years ago

mrdailey99 commented 4 years ago

ProvarDX VS code Issue

See the above video of creating a property file in a ProvarProject and giving it a name. Then, immediately after the validation fails for this property file due to the escape characters missing on a Windows machine. Here is a screenshot of the failure in VS Code: image

The suggested fix should instead create a property file like the below code: { "provarHome":"C:/Program Files/Provar21", "projectPath":"C:/Users/16156/git/provardx/ProvarProject", "resultsPath":"C:/Users/16156/git/provardx/ProvarProject/ANT/Results", "smtpPath": "", "resultsPathDisposition": "Increment", "testOutputLevel":"WARNING", "pluginOutputlevel":"WARNING", "stopOnError":false, "lightningMode":true, "connectionRefreshType":"Reload", "metadata":{ "metadataLevel":"Reuse", "cachePath":"../.provarCaches" }, "environment":{ "testEnvironment":"", "webBrowser":"Chrome", "webBrowserConfig":"Full Screen", "webBrowserProviderName":"Desktop", "webBrowserDeviceName":"Full Screen" } ,"testCase":[ "/Test Case 1.testcase" ] } Or alternatively, you can escape the "\" character each time it appears with another "\" in the JSON values. { "provarHome":"C:\\Program Files\\Provar21", "projectPath":"c:\\Users\\16156\\git\\provardx\\ProvarProject", "resultsPath":"c:\\Users\\16156\\git\\provardx\\ProvarProject\\ANT\\Results", "smtpPath": "", "resultsPathDisposition": "Increment", "testOutputLevel":"WARNING", "pluginOutputlevel":"WARNING", "stopOnError":false, "lightningMode":true, "connectionRefreshType":"Reload", "metadata":{ "metadataLevel":"Reuse", "cachePath":"../.provarCaches" }, "environment":{ "testEnvironment":"", "webBrowser":"Chrome", "webBrowserConfig":"Full Screen", "webBrowserProviderName":"Desktop", "webBrowserDeviceName":"Full Screen" } ,"testCase":[ "/Test Case 1.testcase" ] }

mrdailey99 commented 4 years ago

Raising issue in JIRA and closing here.