Page 1 of 1

Ranorex getting response times

Posted: Tue Jan 03, 2017 11:31 am
by mw-tw
Hi,

i like the Ranorex tool and already tried the free version.


Is there any chance to get the response times of a use case or a special part of a use case?

For example:

I created a "login" use case and want to know if the use case is working and as an additional info, i want to know how long this took.

Re: Ranorex getting response times

Posted: Wed Jan 04, 2017 3:04 pm
by asdf
Hi Mw-Tw,

The execution times can be found on the right side of the report.
2017-01-04 14_58_35-SampleSolution - Ranorex Studio.png
Furthermore, Ranorex isn't designed for performance testing and therefore there is no feature for exact time measuring. However, you can use the Stopwatch class under the namespace System.Diagnostics in order to achieve your intention.

Hope this helps.

Best regards,
asdf

Re: Ranorex getting response times

Posted: Thu Jan 05, 2017 9:44 am
by mw-tw
thanks,

yes i know that Ranorex is mainly for function-tests.

But i want to execute different use-cases in a rich-client application and want to know the execution times.

I think that the measurements of Ranorex is exact enough....


Or do you know another tool, that can be used to get the client-side times of different use-cases?

Re: Ranorex getting response times

Posted: Thu Jan 05, 2017 1:37 pm
by asdf
Unfortunately, I'm not familiar with performance testing. However, I have heard that Ranorex has a new integration in a performance testing tool called "NeoLoad".
You can find the integration itself here.

Hope this helps.

Best regards,
asdf

Re: Ranorex getting response times

Posted: Tue Jan 10, 2017 3:36 pm
by Speedboat
Hi mw-tw

You could use 2 code modules

1 - read 'Environment.TickCount' and store the value in a static variables

2 - read 'Environment.TickCount again, subtract the value of the static variables,
Write this timediff (msec) to the Report

Now place module 1 before your other modules and module 2 after the last module for the use case.

Or did I get something wrong?

Re: Ranorex getting response times

Posted: Wed Jan 11, 2017 8:52 am
by mw-tw
thanks :D