Code Monkey home page Code Monkey logo

navloadtest's People

Contributors

freddydk avatar wortho avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

navloadtest's Issues

Future of NAVLoadTest

Hi, Thank you for development of this great tool.
I'd like to ask if there are any additions / changes planned?

  • Will you be supporting it for Business Central and coming versions? (cloud and on-prem)
  • Will there be a change of tool since Visual Studio has indicated loadtest will be discontinued?

For now my project is for NAV2017. Enhancement request:

  • I see that there is no scenario for opening a card from a list. It would have been handy.
  • Or open a card on a specific record directly.

Issue with NAV 2018 CU6

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, Func2 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

Line Count

In test RunCreateAndPostSalesOrder exsist line
// Add a random number of lines between 2 and 5
int noOfLines = SafeRandom.GetRandomNext(2, 5);

When you try to change the range, such as SafeRandom.GetRandomNext(20, 25) get an error

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.Collection1.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

в Microsoft.Dynamics.Nav.LoadTest.OrderProcessorScenarios.CreateAndPostSalesOrder() в c:\Users\XXX\Source\Repos\NAVLoadTest\Microsoft.Dynamics.Nav.LoadTest\OrderProcessorScenarios.cs:строка 134

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.