Page tree

Generate Custom Test View link:

You can generate a LINK to your customized TestView with the following format:

http://<reporter's host>:<reporter's port>/#/test-view-view/<testViewId>?testView=<Test View object in url encoding>

<reporter's host>:<reporter's port>

Reporter's URL, for example: localhost:9000


The Test View ID you want to show.

The special value -1 is for a new Test View (draft)

<Test View object in the URL encoding>

Test View object is a JSON object that encoded to URL, first, you will need to define the test view configuration with the JSON format and then encode it to URL

For Example:

Test View object in JSON

{"byKey": "date", "byKeyValue": "2018-06-28", "filter": [{"property": "device.os", "operator": "=", "value": "iOS"}]}

Test View object in URL Encoding


Test View Object

The Test View Object is a JSON with the test view configurations

The Test View object has 3 configurations:

  1. View By - Need to configure the View By key and its value, for example, view by key 'build.number' with the  value '445' 

    Only View By
    	"byKey": "Build.Number",
    	"byKeyValue": "445"
  2. Filter - Define the query expression by adding filters, each filter has its key name, operator and key value, for example, filter key 'os.version' with operator equal '=' and  value '12.0'
    We currently support only the equal '=' operator

    Only Filter
    	"filter": [{"property": "os.version", "operator": "=", "value": "12.0"}]
  3. Test View Columns - We can define which columns will be in the test view, the column is represented by the 'keys' array, for example, we would like to have the 'build.number' and 'os.version' columns in the Test-View

    Only Columns
    	"keys": ["build.number", "os.version"]

    You can combine several configurations in the test view JSON object or use only one configuration

Full Example

View By + Filter + Columns
	byKey: "Build.Number",
	byKeyValue: "445"
	"filter": [{"property": "os.version", "operator": "=", "value": "12.0"}],
	"keys": ["build.number", "os.version"]

Encoding JSON to URL using JavaScript code

Simply create a JavaScript object then encode it, for example:

let testView = { 
    filter: [ { property: "test_group", operator: "=", value: groupName } ]
let url = reporterUrl + encodeURIComponent(JSON.stringify(testView));;

  • No labels