Hi,
I'm receiving below error when I changed the "Test User" value in parameter file to my user. The error occurs when I'm trying to run the test cases. Right now "System administrator" role is assigned to my user. The test case runs fine with admin user when no value is assigned to "Test User" value in parameter file.
Status: Test case failed.
ERROR:
<Message>Could not retrieve roles for AX user ***.*** (***.***@***.com)</Message>
<Message>Bad Request</Message>
DEBUG INFO:
<?xml version="1.0" encoding="utf-16"?>
<Error xmlns:xsi="">www.w3.org/.../XMLSchema-instance" xmlns:xsd="">www.w3.org/.../XMLSchema">
<ExceptionType>System.InvalidOperationException</ExceptionType>
<Message>Could not retrieve roles for AX user ***.*** (***.***@***.com)</Message>
<StackTrace> at MS.Dynamics.Performance.Application.TaskRecorder.Select_PO_vendor_and_item_numberBase.TryToConnectToEnvironment(Int32 connectionRetryCount, Int32 connectionRetryDelayInMilliseconds)
at MS.Dynamics.Performance.Application.TaskRecorder.Select_PO_vendor_and_item_numberBase.TestSetup(Boolean verboseSnapshotsEnabled, Int32 actionTimeout, Boolean caseSensitiveValidation, Boolean groupComparison, Int32 pauseBetweenActions, String playbackDirectory, Int32 connectionRetryCount, Int32 connectionRetryDelayInMilliseconds)</StackTrace>
<InnerError>
<ExceptionType>System.ServiceModel.FaultException`1[System.ComponentModel.Win32Exception]</ExceptionType>
<Message>Bad Request</Message>
<StackTrace>
Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at MS.Dynamics.TestTools.CloudCommonTestUtilities.AxUserManagementServiceReference.IAxUserManagement.GetUserRoles(AxUser& user)
at MS.Dynamics.TestTools.CloudCommonTestUtilities.Authentication.DynamicsUser.get_Roles()</StackTrace>
</InnerError>
</Error>