ProvarTesting / provardx-vscode

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

Not able to run tests, possible package missing, DXCommandExecuter - macOS #13

Open tjr357 opened 2 years ago

tjr357 commented 2 years ago

Hi, I'm not sure if this is an issue or not but I'm not able to run tests from the command line or VSCode. In the output, it mentions bad substitution, which may indicate there's an issue with parsing "provardx-properties.json" however it is validated. One thing I did notice was it looks like com.provar.provardx.DxCommandExecuter is being called however if I'm understanding correctly, this should be where Provar is installed, I checked that location (and entire Mac) and it's not there. image

Here's the output with error:

Starting sfdx provar:runtests -p /Users/myname/Provar/sf-provar-automation-testing/sf-provar-automation-testing-project/provardx/provardx-properties.json

16:57:09.769 sfdx provar:runtests -p /Users/myname/Provar/sf-provar-automation-testing/sf-provar-automation-testing-project/provardx/provardx-properties.json
Validating and retriving dx user info: test-jv0gqeyf8cap@example.com... successful
/bin/sh: {"provarHome":"/Applications/Provar.app/Contents/Eclipse/","projectPath":"/Users/myname/Provar/sf-provar-automation-testing/sf-provar-automation-testing-project","resultsPath":"/Users/myname/Provar/sf-provar-automation-testing/sf-provar-automation-testing-project/ANT/Results","smtpPath":"","resultsPathDisposition":"Increment","testOutputLevel":"DIAGNOSTIC","pluginOutputlevel":"FINEST","stopOnError":false,"lightningMode":true,"connectionRefreshType":"Reload","metadata":{"metadataLevel":"Reuse","cachePath":"../.provarCaches"},"environment":{"testEnvironment":"QA","webBrowser":"Chrome_Headless","webBrowserConfig":"Full Screen","webBrowserProviderName":"Desktop","webBrowserDeviceName":"Full Screen"},"testprojectSecrets":"${env.ProvarSecretsPassword}","testCase":["/Service/Accounts/Associate Personal Account to CS Case.testcase"],"connectionOverride":[{"connection":"Integration_OAuth","username":"test-jv0gqeyf8cap@example.com"}],"propertyFile":"/Users/myname/Provar/sf-provar-automation-testing/sf-provar-automation-testing-project/provardx/provardx-properties.json"}: bad substitution
ERROR running provar:runtests:  Command failed: java -cp "/Applications/Provar.app/Contents/Eclipse//provardx/provardx.jar" com.provar.provardx.DxCommandExecuter "{\"provarHome\":\"/Applications/Provar.app/Contents/Eclipse/\",\"projectPath\":\"/Users/myname/Provar/sf-provar-automation-testing/sf-provar-automation-testing-project\",\"resultsPath\":\"/Users/myname/Provar/sf-provar-automation-testing/sf-provar-automation-testing-project/ANT/Results\",\"smtpPath\":\"\",\"resultsPathDisposition\":\"Increment\",\"testOutputLevel\":\"DIAGNOSTIC\",\"pluginOutputlevel\":\"FINEST\",\"stopOnError\":false,\"lightningMode\":true,\"connectionRefreshType\":\"Reload\",\"metadata\":{\"metadataLevel\":\"Reuse\",\"cachePath\":\"../.provarCaches\"},\"environment\":{\"testEnvironment\":\"QA\",\"webBrowser\":\"Chrome_Headless\",\"webBrowserConfig\":\"Full Screen\",\"webBrowserProviderName\":\"Desktop\",\"webBrowserDeviceName\":\"Full Screen\"},\"testprojectSecrets\":\"${env.ProvarSecretsPassword}\",\"testCase\":[\"/Service/Accounts/Associate Personal Account to CS Case.testcase\"],\"connectionOverride\":[{\"connection\":\"Integration_OAuth\",\"username\":\"test-jv0gqeyf8cap@example.com\"}],\"propertyFile\":\"/Users/myname/Provar/sf-provar-automation-testing/sf-provar-automation-testing-project/provardx/provardx-properties.json\"}" "{\"dxUsers\":[{\"status\":0,\"result\":{\"accessToken\":\"00D63000000fHNQ!AQYAQMGxORsHOmMqvlqJDE9TK5p9EUPtwlUXCjKCwGLO6yae0ibWxmBtBZ0kwU5tDhpApEVcPiYHW90l0q6Na0azli0dvNDH\",\"id\":\"0056300000BuLs5AAF\",\"instanceUrl\":\"https://java-energy-1693.cs43.my.salesforce.com\",\"loginUrl\":\"https://CS43.salesforce.com\",\"orgId\":\"00D63000000fHNQEA2\",\"profileName\":\"System Administrator\",\"username\":\"test-jv0gqeyf8cap@example.com\",\"password\":\"xzxm%23tyb\",\"connection\":\"Integration_OAuth\"},\"warnings\":[\"This command will expose sensitive information that allows for subsequent activity using your current authenticated session.\nSharing this information is equivalent to logging someone in under the current credential, resulting in unintended access and escalation of privilege.\nFor additional information, please review the authorization section of the https://developer.salesforce.com/docs/atlas.en-us.234.0.sfdx_dev.meta/sfdx_dev/sfdx_dev_auth_web_flow.htm\"]}]}" Runtests
16:57:12.347 sfdx provar:runtests -p /Users/myname/Provar/sf-provar-automation-testing/sf-provar-automation-testing-project/provardx/provardx-properties.json
 ended with exit code 1,

If you need more info, please let me know. Thank you.

tjr357 commented 2 years ago

Here's my provardx-properties.json:

{
    "provarHome":"/Applications/Provar.app/Contents/Eclipse",
    "projectPath":"/Users/myname/Provar/sf-provar-automation-testing/sf-provar-automation-testing-project",
    "resultsPath":"/Users/myname/Provar/sf-provar-automation-testing/sf-provar-automation-testing-project/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"
    },
    "testprojectSecrets":"${env.ProvarSecretsPassword}",
    "testCase":[
         "/Test Case 1.testcase"  
     ],
     "connectionOverride":[
        { "connection": "Integration_User_Test", "username": "test-jv0gqeyf8cap@example.com" }
     ]
 }
tjr357 commented 2 years ago
❯ sfdx --version
sfdx-cli/7.139.0 darwin-x64 node-v16.13.2
❯ sfdx plugins --core
@oclif/plugin-autocomplete 0.3.0 (core)
@oclif/plugin-commands 1.3.0 (core)
@oclif/plugin-help 3.3.1 (core)
@oclif/plugin-not-found 1.2.6 (core)
@oclif/plugin-plugins 1.10.11 (core)
@oclif/plugin-update 1.5.0 (core)
@oclif/plugin-warn-if-update-available 1.7.3 (core)
@oclif/plugin-which 1.0.4 (core)
@provartesting/provardx 0.3.1
@salesforce/sfdx-plugin-lwc-test 0.1.7 (core)
alias 1.2.1 (core)
apex 0.9.0 (core)
auth 1.8.1 (core)
community 1.1.4 (core)
config 1.3.19 (core)
custom-metadata 1.0.12 (core)
data 0.6.9 (core)
generator 1.2.2 (core)
info 1.2.1 (core)
limits 1.3.0 (core)
org 1.11.1 (core)
salesforce-alm 53.10.2 (core)
schema 1.1.0 (core)
sfdx-cli 7.139.0 (core)
source 1.8.12 (core)
telemetry 1.4.0 (core)
templates 53.6.0 (core)
trust 1.1.0 (core)
user 1.7.1 (core)
❯ sfdx plugins
@provartesting/provardx 0.3.1