
Hello Microsoft community!
I'm trying to perform a single user performance test by following this guide: https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/perf-test/single-user-test-perf-sdk. I'm using visual studio 2015 on a T1 cloud hosted environment .When i run the test this error gets generated:
Result Message: Initialization method MS.Dynamics.Performance.Application.TaskRecorder.PerfomarnceTestning2_0Base.TestSetup threw exception. MS.Dynamics.TestTools.CloudCommonTestUtilities.Exceptions.UnsupportedEnvironmentException: MS.Dynamics.TestTools.CloudCommonTestUtilities.Exceptions.UnsupportedEnvironmentException: Unable to determine testroot directory. Ensure the test is running from an enlistment or the testroot has been defined as an environment variable.
as the log advice's i created an environment variable that is named testroot, and point it to the perfSDK folder. I can view this variable under system properties > advanced > environment variables. But the error still persists.
is any one familiar with this issue? or have any suggestions?
Hello Erik,
Did you follow the steps 8 to 11 in this link(Section: Prepare the PerfSDKSample solution for multi-user testing)
Even I have faced similar issue while running tests.
I have two business scenario(2 task recording) where in above steps are done for the 1st scenario along with configuration and executed the tests. It works fine.
Later I have imported 2nd business scenario but forgot to follow above steps(8 to 11).
When ever new recording is imported into VS, you need to make sure that above mentioned step is done.
Regards,
Saju K