You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Yonik Seeley (JIRA)" <ji...@apache.org> on 2010/08/16 16:46:16 UTC

[jira] Commented: (SOLR-2048) response testing with JSON

    [ https://issues.apache.org/jira/browse/SOLR-2048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12898955#action_12898955 ] 

Yonik Seeley commented on SOLR-2048:
------------------------------------

The test strings currently consist of path:expected_JSON  (the path is where to start in the input to do comparisons with the expected JSON).

example:
{code}
    assertJQ(req("fq","filt",  "q","{!func}"+f2, "group","true", "group.field",f, "fl","id")
      ,"/responseHeader/status:0"                         // exact match
      ,"/responseHeader:{'_SKIP_':'QTime', 'status':0}"   // partial match by skipping some elements
      ,"/responseHeader:{'_MATCH_':'status', 'status':0}" // partial match by only including some elements
      ,"/grouped:{'foo_i':{ 'groups':[{'groupValue':1, 'matches':3," + ...
{code}

> response testing with JSON
> --------------------------
>
>                 Key: SOLR-2048
>                 URL: https://issues.apache.org/jira/browse/SOLR-2048
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Yonik Seeley
>         Attachments: SOLR-2048.patch
>
>
> Use JSON to test for complete matches of complex hierarchies (rather than the element-by-element approach we need to use with xpath).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org