Hi.
I am looking at C# - TestProject Documentation and thought i’d try the example of creating my first test project for it. When I try and run the test, i’m getting the following error:
Message:
TestProject.OpenSDK.Exceptions.InvalidTokenException : No token has been provided.
TearDown : System.NullReferenceException : Object reference not set to an instance of an object.
Stack Trace:
AgentClient.ctor(Uri remoteAddress, String token, DriverOptions capabilities, ReportSettings reportSettings, Boolean disableReports, Int32 restClientTimeout, Version compatibleVersion)
AgentClient.GetInstance(Uri remoteAddress, String token, DriverOptions capabilities, ReportSettings reportSettings, Boolean disableReports, Int32 restClientTimeout, Version compatibleVersion)
BaseDriver.ctor(Uri remoteAddress, String token, DriverOptions driverOptions, String projectName, String jobName, Boolean disableReports, ReportType reportType, String reportName, String reportPath, Nullable1 remoteConnectionTimeout, Int32 restClientTimeout) ChromeDriver.ctor(Uri remoteAddress, String token, ChromeOptions chromeOptions, String projectName, String jobName, Boolean disableReports, ReportType reportType, String reportName, String reportPath, Nullable
1 remoteConnectionTimeout, Int32 restClientTimeout)
Tests.Setup() line 16
–TearDown
Tests.TearDown() line 32
I have an agent set up and I have put the Dev Token into a RunSettings.xml file:
<RunSettings>
<RunConfiguration>
<EnvironmentVariables>
<!-- List of environment variables we want to set--> <TP_DEV_TOKEN>Lm1yYnWBsFa_rt7Js6w8_u7HvWFKcN9_mEIfHpqZ7701</TP_DEV_TOKEN>
</EnvironmentVariables>
</RunConfiguration>
</RunSettings>
Any idea of what I am doing wrong?