What is the difference between duration and delay on Ranorex? - automation

I would like to learn difference between Duration and Delay terms on Ranorex tool. Here is an image from my exercise :
Thanks in advance.

In Ranorex the term "Delay" refers to an action that the system will take, i.e. it will DELAY execution of the test for an amount of time (the Duration to be exact).
A "Duration" on a test step is the time to wait BEFORE THE NEXT STEP IS EXECUTED. This is important because it is backwards from what many might understand. Duration does not delay the step it is on, but instead delays the next step.

I don't know this app, but duration is a measure of "ending time minus starting time" of something, and delay is the time before "starting time". I hope it helps.

Delay
A Delay is just a normal action in Ranorex. Other Actions are Mouse, Key Sequence, Validation, ...
It does what the name says. Once this action is executed, it simply delays the execution of the next action for an exact amount of time.
Duration
A Duration is a certain property that all Actions have. Other properties of Actions are Continue on fail, Enabled, ...
The tooltip of the Duration property in Ranorex Studio 10.1.2 says: "The amount of time the entire action takes to execute, including wait time before the next action starts. Does not influence how fast the action itself is performed in the AUT. Example: For a Mouse click action with 10s duration, the click performs in a few ms, but Ranorex Studio then waits the full 10s before it executes the next action, effectively adding a delay. 0ms performs the action and then immediately starts the next action (may cause issues if the AUT isn't highly responsive). Duration does NOT include effective timeout value of a repository item linked to the action.

Related

Polling in Jmeter

I am trying to run a test plan wherein in a thread I have multiple requests added. I need to run one event fetching requests at regular intervals of 2 seconds until the complete execution of the thread.
Can someone please help me with the same ?
I have tried running the plan by adding timers and controllers but to no use.
Take a look at While Controller, it executes its children while JMeter Function or Variable you set in the "Condition" input field resolves to true
The delay can be introduced by either using a
Constant Timer - will create a delay before each Sampler it its scope
Flow Control Action Sampler - will create a delay exactly where it's placed in the script

Coalescing NSNotifications

Is there any way when using coalescing notifications on NSNotificationQueues to control the time range?
I would like to coalesce e.g. for the next second, but as I understand the options available it's either immediately or on next run loop invocation or 'when idle'..
Any other way to e.g. coalesce over a longer time range?
I'm basically looking for a way to gather all user events (like pinch-to-zoom) over a small time range and launch an expensive operation only after the user apparently stopped zooming/etc.
You can schedule a NSTimer when the first notification comes in. When the next notification comes in, check your timer instance variable. If it is non-nil, ignore the notification. Otherwise start a fresh timer.
When the timer fires, clear your timer instance variable and launch your expensive operation.
An simpler alternative is to use performSelector:afterDelay: and cancelPreviousPerformRequestsWithTarget:selector:object:. The effect however is not the same. You will further delay your expensive operation each time a notification is received. If notifications come faster than the delay you set, the expensive operation will never run.

Apache Jmeter-How to apply wait for page load?

After recording the login page script and playback.its giving warning and not allow to login in application..
I have to use wait command for waiting few second for doing all process ..
How can i use wait command for page load
Following approaches are possible:
1) using Test Action (Add >> Sampler >> Test Action).
Its advantage is the following: interval value can be passed as parameter that can be obtained either from file, either generated.
2) One can also look through fixed delay between the search samples whatever response time of the Sample
Actual difference between first approach and second one:
you don't vary pause time depending on response time while webpage proposes a variable pause time to make a request every 30s. With a test action note that if you use transaction controller you won't be able to exclude time taken from response time.
Also one should remember that timers are processed before each sampler in the scope in which they are found; if there are several timers in the same scope, all the timers will be processed before each sampler.
Pay attention to Execution order (section 4.9) of Timers in jMeter.
Throughput Constant Timer usage example.

Is there a way to set so that CLLocation do not update too often?

Obviously I need to update accurately. However not more often than once every 1 minute I think.
See example use of CLLocationManager and a handler class to do what you are asking. Rather than a timer, it sets up a handler to respond to location events received, checks the accuracy and time passed since previous event, then sends out a notification based on your requirements.
The frequency of your response action is configurable as often as you require.
It works in the background, with battery saving configuration options.
See the code here TTLocationHandler
You may also benefit from some of the discussion in this question thread Invoke get current coordinates every few seconds without NSTimer
Once you have position update you can:
Turn off updating
Start a timer for about 1 minute
Timer turns on updating
Done.

how to find accurate the "Total Testing duration time" in Jmeter?

I would like to know if there is a JMeter listener that displays the total time that a test has been running for.
Although this plugin shows elapsed time/total duration time along the x-axis, it gives this value in seconds but I would like the value in milliseconds.
Please tell me how can i get the total duration/elapsed time of testing in millisecond?
Thanks in advance.
The short answer to the question (which has been clarified based on comments) is no, AFAIK there is no listener that displays, to the screen, the total time that the test has been running for in milliseconds.
If you want this value, however, you would simply have to subtract the first timestamp from the last timestamp in the results file. This would give - more or less - the total number of milliseconds that the test ran for. I say more or less because the start and end points are subjective, some people might say the start point is the first request, others would say it is when JMeter is initiated - these can be different times.
If you really must have the value inside of the GUI then you could use the setup and teardown thread groups and a simple beanshell calculation to work out the time. Again, this is subject to interpretation as the setup TG will fire before the test has started. Not much before but a few milliseconds to be sure.
Note that starting from next version of Apache JMeter (> 2.7), there will be a new listener called Response Time Graph listener that will give you what you need.
This version is available now as nightly build:
http://jmeter.apache.org/nightly.html