getRunSettings()
jobClients()
jobId()
jobInterval()
jobRepeat()
Current Job name test123-demo-users with 10 clients repeating 5 times with a gap of 5 seconds
index() or iteration()
client()
assert()
function.assert(condition, message)
function takes two parameters:retval
does not equal to 123.drive()
start
, end
: A starting and ending address where you would like to drive. It could be a city name, a street address or even a point of interest, such as:accuracy
: Since real-world GPS devices are not perfect, we will need to simulate the defects as well. Accuracy specifies how much maximum accuracy we should provide when simulating coordinates. In simple words, an accuracy of 5 meters specifies that the resulting coordinate could be anywhere within the 5-meter radius of the actual coordinate.key
: Provide your own Google maps direction key, if required. drive()
function is a JSON object, that’s why it is important to save this into a string with JSON.stringify()
. Here is what the output looks like:
drive()
function has been finished, the output will contain an additional field called finished set to true to indicate that the current drive has been finished. drive()
function, you could also pass the actual address in the parameter and it will convert that to a set of GPS coordinates. The accuracy of this could be still controlled by the accuracy parameter. The output of the location() function is following:weather.temperature()
and weather.humidity()
functions will query weather API to get the current weather of a city. For example:unit: 'f'
as an argument.cpu()
and memory()
functions will return mock CPU and memory usages of a running system in percentage points.min+max/2
Upon each iteration, volatile will change by a minimum of 0 to a maximum of delta in either positive or negative direction from its last value.(10+20)/2