Testing is a complex process, there are many variables and cases. To simplify this. we have a special API called: "testReset" that randomises workers to match the last request.


Simply put, when you run testReset, a pool of 30 workers are assigned distances, categories, channels that might match (or not) a given request. The idea is to not have to "manually" configure these workers to match the request and to validate small variances like distance, profile, categories and similar variables.


To use this API, the steps are:

  1. Create a New Request
  2. Call testReset API
  3. Call myRequests ("eligible")


You can compare the response from testReset API regarding available workers that match the request against data returned in myRequests-eligible API.


All test workers are called "testWorker1" to "testWorker30", and it doesn't matter which market or location you place your request, testReset API will match it. However, it is recommended to test in a market with few users like "MX,ZAC" (22.7748194,-102.5858142) and use a Category that few workers have like "11" ("Movers").


{
"action" : "testReset",
"mode": "{{mode}}",
"reqID" : "{{reqId}}"
}


If you want to manually select a testWorker(1-30) or a testClient (1-3), you can login with its credentials: testWorker1@manoexperta.com ("password").


with testReset API, you will get a very similar response to myRequests ("eligible") to help you validate

{
    "success": true,
    "data": [
        {
            "optMailNews": true,
            "expertStars": 5.00,
            "expertShowInList": true,
            "expertLastLatLng": "22.777719,-102.594714",
            "expertAvatar": "https://manoexperta.s3.amazonaws.com/flutter/avatarW.png",
            "userId": 46,
            "expertPushMsg": true,
            "isPremium": true,
            "expertName": "Worker1",
            "expertEvals": 0,
            "distanceKm": 0.9677361010710848
        },
        {
            "optMailNews": true,
            "expertStars": 5.00,
            "expertShowInList": true,
            "expertLastLatLng": "22.775519,-102.580214",
            "expertAvatar": "https://manoexperta.s3.amazonaws.com/flutter/avatarW.png",
            "userId": 47,
            "expertPushMsg": true,
            "isPremium": true,
            "expertName": "Worker2",
            "expertEvals": 0,
            "distanceKm": 0.5794074300895338
        }
    ]
}