Skip to content

Token: Random Number

Otar Dvalishvili edited this page May 12, 2020 · 12 revisions

Contents

Flavors of Random Number

to do

Usecases of Random Number

to do

Using ${RANDOM.NUMBER}

todo

Using ${RANDOM.NUMBER.FIXED}

sample step:

`{ "name": "mytest", "url": "/orders", "operation": "POST", "request": { "headers": { "Content-Type": "application/json;charset=UTF-8" }, "body": { "orders": [ { "orderId": "${RANDOM.NUMBER}", "amount": 5, "productName": "product1" }, { "orderId": "${RANDOM.NUMBER}", "amount": 10, "productName": "product2" } ] } },

  "retry":{
    "max": 2,
    "delay": 500
  },

  "assertions": {
    "status": 200

  }
}`

Using ${RANDOM.NUMBER:10}

todo : Explain the limit...

Conclusion

Prodive the link to a "Hello World" test scenario which an end user can see-in-action ie a working code

Blogs

Clone this wiki locally