wortho / navloadtest Goto Github PK
View Code? Open in Web Editor NEWDynamics NAV Load Test Framework & Sample Tests
Dynamics NAV Load Test Framework & Sample Tests
Lookup Helpers should use Lookup Actions on Current Page
Hi, Thank you for development of this great tool.
I'd like to ask if there are any additions / changes planned?
For now my project is for NAV2017. Enhancement request:
Hello David,
When we run the project, we get the following error:
System.InvalidOperationException
HResult=0x80131509
Mensaje = Communication error was thrown:
System.ServiceModel.CommunicationException: Could not parse the Json response. The response was ---> Newtonsoft.Json.JsonReaderException: Error reading JToken from JsonReader. Path '', line 0, position 0.
en Newtonsoft.Json.Linq.JToken.ReadFrom(JsonReader reader, JsonLoadSettings settings)
en Newtonsoft.Json.Linq.JToken.Parse(String json, JsonLoadSettings settings)
en Microsoft.Dynamics.Framework.UI.Client.JsonHttpClient.<>c__DisplayClass9_0.b__0()
--- Fin del seguimiento de la pila de la excepción interna ---
en Microsoft.Dynamics.Framework.UI.Client.JsonHttpClient.<>c__DisplayClass9_0.b__0()
en Microsoft.Dynamics.Framework.UI.Client.JsonHttpClient.ConvertExceptions[T](Func1 action) en Microsoft.Dynamics.Framework.UI.Client.JsonHttpClient.EndOpenSession(IAsyncResult result) en Microsoft.Dynamics.Framework.UI.Client.ClientSession.<>c__DisplayClass37_0.<OpenSessionCallback>b__0() en Microsoft.Dynamics.Framework.UI.Client.ClientSession.HandleServiceExceptions(ClientSessionState errorState, Action action) Origen = Microsoft.Dynamics.Nav.UserSession Seguimiento de la pila: en Microsoft.Dynamics.Nav.UserSession.ClientSessionExtensions.AwaitReady(ClientSession clientSession, Action action, Func
2 readyCondition, Boolean allowClosed, Int32 maxDuration) en C:\Temp\NAVLoadTest-master\Microsoft.Dynamics.Nav.UserSession\ClientSessionExtensions.cs: línea 345
en Microsoft.Dynamics.Nav.UserSession.ClientSessionExtensions.OpenSession(ClientSession clientSession, String uiCultureId) en C:\Temp\NAVLoadTest-master\Microsoft.Dynamics.Nav.UserSession\ClientSessionExtensions.cs: línea 48
en Microsoft.Dynamics.Nav.UserSession.UserContext.OpenSession(String uiCultureId) en C:\Temp\NAVLoadTest-master\Microsoft.Dynamics.Nav.UserSession\UserContext.cs: línea 52
en Microsoft.Dynamics.Nav.TestUtilities.UserContextManager.CreateSession(TestContext testContext) en C:\Temp\NAVLoadTest-master\Microsoft.Dynamics.Nav.TestUtilities\UserContextManager.cs: línea 71
en Microsoft.Dynamics.Nav.TestUtilities.UserContextManager.GetUserContext(TestContext testContext) en C:\Temp\NAVLoadTest-master\Microsoft.Dynamics.Nav.TestUtilities\UserContextManager.cs: línea 100
en Microsoft.Dynamics.Nav.TestUtilities.TestScenario.Run(UserContextManager manager, TestContext testContext, Action`1 action, String actionName) en C:\Temp\NAVLoadTest-master\Microsoft.Dynamics.Nav.TestUtilities\TestScenario.cs: línea 23
en Microsoft.Dynamics.Nav.LoadTest.OrderProcessorScenarios.CreateAndPostSalesOrder() en C:\Temp\NAVLoadTest-master\Microsoft.Dynamics.Nav.LoadTest\OrderProcessorScenarios.cs: línea 133
Excepción interna 1:
CommunicationException: Could not parse the Json response. The response was
Excepción interna 2:
JsonReaderException: Error reading JToken from JsonReader. Path '', line 0, position 0.
We are using the ODATA Service running in a NAV Server 2018 CU6 with the following URL: https://ServerAddress:7048/NAVInstance/ODatav4
but when we run the url in a browser with the same credentials we get a json file.
Is it an issue of the project or a misconfiguration our?
Thank you very much in advance.
Best Regards
In test RunCreateAndPostSalesOrder exsist line
// Add a random number of lines between 2 and 5
int noOfLines = SafeRandom.GetRandomNext(2, 5);
Test Name: CreateAndPostSalesOrder
Test FullName: Microsoft.Dynamics.Nav.LoadTest.OrderProcessorScenarios.CreateAndPostSalesOrder
Test Source: c:\Users\XXX\Source\Repos\NAVLoadTest\Microsoft.Dynamics.Nav.LoadTest\OrderProcessorScenarios.cs : line 133
Test Outcome: Failed
Test Duration: 0:01:28,8786043
Result Message:
Test method Microsoft.Dynamics.Nav.LoadTest.OrderProcessorScenarios.CreateAndPostSalesOrder threw exception:
System.ArgumentOutOfRangeException: Индекс за пределами диапазона. Индекс должен быть положительным числом, а его размер не должен превышать размер коллекции.
Имя параметра: index
Result StackTrace:
в System.ThrowHelper.ThrowArgumentOutOfRangeException()
в System.Collections.Generic.List1.get_Item(Int32 index) в System.Collections.ObjectModel.Collection
1.get_Item(Int32 index)
в Microsoft.Dynamics.Nav.LoadTest.OrderProcessorScenarios.AddSalesOrderLine(UserContext userContext, ClientLogicalForm newSalesOrderPage, Int32 line) в c:\Users\XXX\Source\Repos\NAVLoadTest\Microsoft.Dynamics.Nav.LoadTest\OrderProcessorScenarios.cs:строка 207
в
Microsoft.Dynamics.Nav.LoadTest.OrderProcessorScenarios.RunCreateAndPostSalesOrder(UserContext userContext) в c:\Users\XXX\Source\Repos\NAVLoadTest\Microsoft.Dynamics.Nav.LoadTest\OrderProcessorScenarios.cs:строка 167
в Microsoft.Dynamics.Nav.TestUtilities.TestScenario.Run(UserContextManager manager, TestContext testContext, Action`1 action, String actionName) в c:\Users\XXX\Source\Repos\NAVLoadTest\Microsoft.Dynamics.Nav.TestUtilities\TestScenario.cs:строка 37
This happens due to the fact that after the addition of a number of lines in Web client you need to call the view the next set of rows.
Is it possible to add a similar method?
We have just begun to use offered tool but now it seems to be extremely useful. Thank you!
UserContextManager should create a session per virtual user. Each virtual user has a Unique id and a session belonging to them. The virtual user may or not have a Unique NAVUser Name.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.