{"action":"closed","issue":{"url":"https://api.github.com/repos/svanoort/pyresttest/issues/41","labels_url":"https://api.github.com/repos/svanoort/pyresttest/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/svanoort/pyresttest/issues/41/comments","events_url":"https://api.github.com/repos/svanoort/pyresttest/issues/41/events","html_url":"https://github.com/svanoort/pyresttest/issues/41","id":65498793,"number":41,"title":"There's a way to set a jsonpath_mini extracted data as a variable?","user":{"login":"jeanCarloMachado","id":2252355,"avatar_url":"https://avatars.githubusercontent.com/u/2252355?v=3","gravatar_id":"","url":"https://api.github.com/users/jeanCarloMachado","html_url":"https://github.com/jeanCarloMachado","followers_url":"https://api.github.com/users/jeanCarloMachado/followers","following_url":"https://api.github.com/users/jeanCarloMachado/following{/other_user}","gists_url":"https://api.github.com/users/jeanCarloMachado/gists{/gist_id}","starred_url":"https://api.github.com/users/jeanCarloMachado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeanCarloMachado/subscriptions","organizations_url":"https://api.github.com/users/jeanCarloMachado/orgs","repos_url":"https://api.github.com/users/jeanCarloMachado/repos","events_url":"https://api.github.com/users/jeanCarloMachado/events{/privacy}","received_events_url":"https://api.github.com/users/jeanCarloMachado/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-31T16:56:38Z","updated_at":"2015-04-02T01:10:34Z","closed_at":"2015-04-02T01:10:34Z","body":"\r\n```\r\n- config:\r\n    - testset: \"Inventory Group\"\r\n    - generators:\r\n       - 'ACCESSTOKEN': {type: 'env_variable', variable_name: ACCESSTOKEN}\r\n- test:\r\n    - group: \"Group\"\r\n    - name: \"Post Group\"\r\n    - url: \"/rpc/v1/inventory.post-group.json\"\r\n    - method: \"POST\"\r\n    - expected_status: [200]\r\n    - body: \"name=NewGroup\"\r\n    - headers: {template: {\"Authorization\": \"$ACCESSTOKEN\"}}\r\n    - validators:\r\n        - compare: {jsonpath_mini: \"status\",     comparator: \"eq\",     expected: 1}\r\n- test:\r\n    - group: \"Group\"\r\n    - name: \"Get group\"\r\n    - url: \"/rpc/v1/inventory.get-group.json\"\r\n    - method: \"POST\"\r\n    - expected_status: [200]\r\n    - headers: {template: {\"Authorization\": \"$ACCESSTOKEN\"}}\r\n    - validators:\r\n        - extract_test: {jsonpath_mini: \"0.id\",  test: \"exists\"}\r\n        - extract_test: {jsonpath_mini: \"0.name\",  test: \"exists\"}\r\n    - variable_binds: {CURRENTID: \"0.id\"}\r\n- test:\r\n    - group: \"Group\"\r\n    - name: \"Update group\"\r\n    - url: \"/rpc/v1/inventory.put-group.json\"\r\n    - method: \"POST\"\r\n    - body: {template: \"name=NewName&id=$CURRENTID\"}\r\n    - expected_status: [200]\r\n    - headers: {template: {\"Authorization\": \"$ACCESSTOKEN\"}}\r\n    - validators:\r\n        - compare: {jsonpath_mini: \"status\",     comparator: \"eq\",     expected: 1}\r\n```\r\n\r\nGiven this exemple, there's a way of getting the 0.id and set is as CURRENTID ?"}}