test_class.declarator: logger = LoggerFactory.getLogger(ScriptTest.class)
test_class.modifier: private static final
test_class.original_string: private static final Logger logger = LoggerFactory.getLogger(ScriptTest.class);
test_class.type: Logger
test_class.var_name: logger
test_class.declarator: ACTUAL = "{\"id\":{\"domain\":\"ACS\",\"type\":\"entityId\",\"value\":\"bef90f66-bb57-4fea-83aa-a0acc42b0426\"},\"primaryId\":\"bef90f66-bb57-4fea-83aa-a0acc42b0426\",\"created\":{\"on\":\"2016-02-28T05:56:48.485+0000\"},\"lastUpdated\":{\"on\":\"2016-02-28T05:56:49.038+0000\"},\"organization\":{\"id\":{\"domain\":\"ACS\",\"type\":\"entityId\",\"value\":\"631fafe9-8822-4c82-b4a4-8735b202c16c\"},\"created\":{\"on\":\"2016-02-28T05:56:48.486+0000\"},\"lastUpdated\":{\"on\":\"2016-02-28T05:56:49.038+0000\"}},\"clientState\":\"ACTIVE\"}"
test_class.modifier: private final
test_class.original_string: private final String ACTUAL = "{\"id\":{\"domain\":\"ACS\",\"type\":\"entityId\",\"value\":\"bef90f66-bb57-4fea-83aa-a0acc42b0426\"},\"primaryId\":\"bef90f66-bb57-4fea-83aa-a0acc42b0426\",\"created\":{\"on\":\"2016-02-28T05:56:48.485+0000\"},\"lastUpdated\":{\"on\":\"2016-02-28T05:56:49.038+0000\"},\"organization\":{\"id\":{\"domain\":\"ACS\",\"type\":\"entityId\",\"value\":\"631fafe9-8822-4c82-b4a4-8735b202c16c\"},\"created\":{\"on\":\"2016-02-28T05:56:48.486+0000\"},\"lastUpdated\":{\"on\":\"2016-02-28T05:56:49.038+0000\"}},\"clientState\":\"ACTIVE\"}";
test_class.type: String
test_class.var_name: ACTUAL
test_class.declarator: EXPECTED = "{\"id\":{\"domain\":\"ACS\",\"type\":\"entityId\",\"value\":\"#ignore\"},\"primaryId\":\"#ignore\",\"created\":{\"on\":\"#ignore\"},\"lastUpdated\":{\"on\":\"#ignore\"},\"organization\":{\"id\":{\"domain\":\"ACS\",\"type\":\"entityId\",\"value\":\"#ignore\"},\"created\":{\"on\":\"#ignore\"},\"lastUpdated\":{\"on\":\"#ignore\"}},\"clientState\":\"ACTIVE\"}"
test_class.modifier: private final
test_class.original_string: private final String EXPECTED = "{\"id\":{\"domain\":\"ACS\",\"type\":\"entityId\",\"value\":\"#ignore\"},\"primaryId\":\"#ignore\",\"created\":{\"on\":\"#ignore\"},\"lastUpdated\":{\"on\":\"#ignore\"},\"organization\":{\"id\":{\"domain\":\"ACS\",\"type\":\"entityId\",\"value\":\"#ignore\"},\"created\":{\"on\":\"#ignore\"},\"lastUpdated\":{\"on\":\"#ignore\"}},\"clientState\":\"ACTIVE\"}";
test_class.type: String
test_class.var_name: EXPECTED
test_class.file: karate-core/src/test/java/com/intuit/karate/ScriptTest.java
test_class.identifier: ScriptTest
test_case.body: @Test
      public void testMatchJsonPathOnResponse() {
          DocumentContext doc = JsonPath.parse("{ foo: 'bar' }");
          ScenarioContext ctx = getContext();
          ctx.vars.put("response", doc);
          assertTrue(Script.matchNamed(MatchType.EQUALS, "$", null, "{ foo: 'bar' }", ctx).pass);
          assertTrue(Script.matchNamed(MatchType.EQUALS, "$.foo", null, "'bar'", ctx).pass);
      }
test_case.class_method_signature: ScriptTest.testMatchJsonPathOnResponse()
test_case.full_signature: @Test public void testMatchJsonPathOnResponse()
test_case.identifier: testMatchJsonPathOnResponse
test_case.invocations: parse getContext put assertTrue matchNamed assertTrue matchNamed
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testMatchJsonPathOnResponse()
focal_class.declarator: VAR_SELF = "_"
focal_class.modifier: public static final
focal_class.original_string: public static final String VAR_SELF = "_";
focal_class.type: String
focal_class.var_name: VAR_SELF
focal_class.declarator: VAR_ROOT = "$"
focal_class.modifier: public static final
focal_class.original_string: public static final String VAR_ROOT = "$";
focal_class.type: String
focal_class.var_name: VAR_ROOT
focal_class.declarator: VAR_PARENT = "_$"
focal_class.modifier: public static final
focal_class.original_string: public static final String VAR_PARENT = "_$";
focal_class.type: String
focal_class.var_name: VAR_PARENT
focal_class.declarator: VAR_LOOP = "__loop"
focal_class.modifier: public static final
focal_class.original_string: public static final String VAR_LOOP = "__loop";
focal_class.type: String
focal_class.var_name: VAR_LOOP
focal_class.declarator: VAR_ARG = "__arg"
focal_class.modifier: public static final
focal_class.original_string: public static final String VAR_ARG = "__arg";
focal_class.type: String
focal_class.var_name: VAR_ARG
focal_class.declarator: VAR_HEADER = "header"
focal_class.modifier: public static final
focal_class.original_string: public static final String VAR_HEADER = "header";
focal_class.type: String
focal_class.var_name: VAR_HEADER
focal_class.declarator: VALIDATORS
focal_class.modifier: public static final
focal_class.original_string: public static final Map<String, Validator> VALIDATORS;
focal_class.type: Map<String, Validator>
focal_class.var_name: VALIDATORS
focal_class.declarator: VAR_AND_PATH_PATTERN = Pattern.compile("\\w+")
focal_class.modifier: private static final
focal_class.original_string: private static final Pattern VAR_AND_PATH_PATTERN = Pattern.compile("\\w+");
focal_class.type: Pattern
focal_class.var_name: VAR_AND_PATH_PATTERN
focal_class.declarator: VARIABLE_PATTERN_STRING = "[a-zA-Z][\\w]*"
focal_class.modifier: private static final
focal_class.original_string: private static final String VARIABLE_PATTERN_STRING = "[a-zA-Z][\\w]*";
focal_class.type: String
focal_class.var_name: VARIABLE_PATTERN_STRING
focal_class.declarator: VARIABLE_PATTERN = Pattern.compile(VARIABLE_PATTERN_STRING)
focal_class.modifier: private static final
focal_class.original_string: private static final Pattern VARIABLE_PATTERN = Pattern.compile(VARIABLE_PATTERN_STRING);
focal_class.type: Pattern
focal_class.var_name: VARIABLE_PATTERN
focal_class.declarator: TOKEN = "token"
focal_class.modifier: private static final
focal_class.original_string: private static final String TOKEN = "token";
focal_class.type: String
focal_class.var_name: TOKEN
focal_class.declarator: PATH = "path"
focal_class.modifier: private static final
focal_class.original_string: private static final String PATH = "path";
focal_class.type: String
focal_class.var_name: PATH
focal_class.file: karate-core/src/main/java/com/intuit/karate/Script.java
focal_class.identifier: Script
focal_class.class_method_signature: Script.Script()
focal_class.full_signature: private  Script()
focal_class.identifier: Script
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  Script()
focal_class.class_method_signature: Script.isCallSyntax(String text)
focal_class.full_signature: public static final boolean isCallSyntax(String text)
focal_class.identifier: isCallSyntax
focal_class.modifiers: public static final
focal_class.parameters: (String text)
focal_class.return: boolean
focal_class.signature: boolean isCallSyntax(String text)
focal_class.class_method_signature: Script.isCallOnceSyntax(String text)
focal_class.full_signature: public static final boolean isCallOnceSyntax(String text)
focal_class.identifier: isCallOnceSyntax
focal_class.modifiers: public static final
focal_class.parameters: (String text)
focal_class.return: boolean
focal_class.signature: boolean isCallOnceSyntax(String text)
focal_class.class_method_signature: Script.isGetSyntax(String text)
focal_class.full_signature: public static final boolean isGetSyntax(String text)
focal_class.identifier: isGetSyntax
focal_class.modifiers: public static final
focal_class.parameters: (String text)
focal_class.return: boolean
focal_class.signature: boolean isGetSyntax(String text)
focal_class.class_method_signature: Script.isJson(String text)
focal_class.full_signature: public static final boolean isJson(String text)
focal_class.identifier: isJson
focal_class.modifiers: public static final
focal_class.parameters: (String text)
focal_class.return: boolean
focal_class.signature: boolean isJson(String text)
focal_class.class_method_signature: Script.isJsonPath(String text)
focal_class.full_signature: public static final boolean isJsonPath(String text)
focal_class.identifier: isJsonPath
focal_class.modifiers: public static final
focal_class.parameters: (String text)
focal_class.return: boolean
focal_class.signature: boolean isJsonPath(String text)
focal_class.class_method_signature: Script.isXml(String text)
focal_class.full_signature: public static final boolean isXml(String text)
focal_class.identifier: isXml
focal_class.modifiers: public static final
focal_class.parameters: (String text)
focal_class.return: boolean
focal_class.signature: boolean isXml(String text)
focal_class.class_method_signature: Script.isXmlPath(String text)
focal_class.full_signature: public static final boolean isXmlPath(String text)
focal_class.identifier: isXmlPath
focal_class.modifiers: public static final
focal_class.parameters: (String text)
focal_class.return: boolean
focal_class.signature: boolean isXmlPath(String text)
focal_class.class_method_signature: Script.isXmlPathFunction(String text)
focal_class.full_signature: public static final boolean isXmlPathFunction(String text)
focal_class.identifier: isXmlPathFunction
focal_class.modifiers: public static final
focal_class.parameters: (String text)
focal_class.return: boolean
focal_class.signature: boolean isXmlPathFunction(String text)
focal_class.class_method_signature: Script.isEmbeddedExpression(String text)
focal_class.full_signature: public static final boolean isEmbeddedExpression(String text)
focal_class.identifier: isEmbeddedExpression
focal_class.modifiers: public static final
focal_class.parameters: (String text)
focal_class.return: boolean
focal_class.signature: boolean isEmbeddedExpression(String text)
focal_class.class_method_signature: Script.isWithinParentheses(String text)
focal_class.full_signature: public static final boolean isWithinParentheses(String text)
focal_class.identifier: isWithinParentheses
focal_class.modifiers: public static final
focal_class.parameters: (String text)
focal_class.return: boolean
focal_class.signature: boolean isWithinParentheses(String text)
focal_class.class_method_signature: Script.isContainsMacro(String text)
focal_class.full_signature: public static final boolean isContainsMacro(String text)
focal_class.identifier: isContainsMacro
focal_class.modifiers: public static final
focal_class.parameters: (String text)
focal_class.return: boolean
focal_class.signature: boolean isContainsMacro(String text)
focal_class.class_method_signature: Script.isContainsOnlyMacro(String text)
focal_class.full_signature: public static final boolean isContainsOnlyMacro(String text)
focal_class.identifier: isContainsOnlyMacro
focal_class.modifiers: public static final
focal_class.parameters: (String text)
focal_class.return: boolean
focal_class.signature: boolean isContainsOnlyMacro(String text)
focal_class.class_method_signature: Script.isContainsAnyMacro(String text)
focal_class.full_signature: public static final boolean isContainsAnyMacro(String text)
focal_class.identifier: isContainsAnyMacro
focal_class.modifiers: public static final
focal_class.parameters: (String text)
focal_class.return: boolean
focal_class.signature: boolean isContainsAnyMacro(String text)
focal_class.class_method_signature: Script.isNotContainsMacro(String text)
focal_class.full_signature: public static final boolean isNotContainsMacro(String text)
focal_class.identifier: isNotContainsMacro
focal_class.modifiers: public static final
focal_class.parameters: (String text)
focal_class.return: boolean
focal_class.signature: boolean isNotContainsMacro(String text)
focal_class.class_method_signature: Script.isDollarPrefixedJsonPath(String text)
focal_class.full_signature: public static final boolean isDollarPrefixedJsonPath(String text)
focal_class.identifier: isDollarPrefixedJsonPath
focal_class.modifiers: public static final
focal_class.parameters: (String text)
focal_class.return: boolean
focal_class.signature: boolean isDollarPrefixedJsonPath(String text)
focal_class.class_method_signature: Script.isDollarPrefixedParen(String text)
focal_class.full_signature: public static final boolean isDollarPrefixedParen(String text)
focal_class.identifier: isDollarPrefixedParen
focal_class.modifiers: public static final
focal_class.parameters: (String text)
focal_class.return: boolean
focal_class.signature: boolean isDollarPrefixedParen(String text)
focal_class.class_method_signature: Script.isDollarPrefixed(String text)
focal_class.full_signature: public static final boolean isDollarPrefixed(String text)
focal_class.identifier: isDollarPrefixed
focal_class.modifiers: public static final
focal_class.parameters: (String text)
focal_class.return: boolean
focal_class.signature: boolean isDollarPrefixed(String text)
focal_class.class_method_signature: Script.isVariable(String text)
focal_class.full_signature: public static final boolean isVariable(String text)
focal_class.identifier: isVariable
focal_class.modifiers: public static final
focal_class.parameters: (String text)
focal_class.return: boolean
focal_class.signature: boolean isVariable(String text)
focal_class.class_method_signature: Script.isVariableAndSpaceAndPath(String text)
focal_class.full_signature: public static final boolean isVariableAndSpaceAndPath(String text)
focal_class.identifier: isVariableAndSpaceAndPath
focal_class.modifiers: public static final
focal_class.parameters: (String text)
focal_class.return: boolean
focal_class.signature: boolean isVariableAndSpaceAndPath(String text)
focal_class.class_method_signature: Script.parseVariableAndPath(String text)
focal_class.full_signature: public static StringUtils.Pair parseVariableAndPath(String text)
focal_class.identifier: parseVariableAndPath
focal_class.modifiers: public static
focal_class.parameters: (String text)
focal_class.return: StringUtils.Pair
focal_class.signature: StringUtils.Pair parseVariableAndPath(String text)
focal_class.class_method_signature: Script.evalKarateExpressionForMatch(String text, ScenarioContext context)
focal_class.full_signature: public static ScriptValue evalKarateExpressionForMatch(String text, ScenarioContext context)
focal_class.identifier: evalKarateExpressionForMatch
focal_class.modifiers: public static
focal_class.parameters: (String text, ScenarioContext context)
focal_class.return: ScriptValue
focal_class.signature: ScriptValue evalKarateExpressionForMatch(String text, ScenarioContext context)
focal_class.class_method_signature: Script.result(ScriptValue called, CallResult result, boolean reuseParentConfig, ScenarioContext context)
focal_class.full_signature: private static ScriptValue result(ScriptValue called, CallResult result, boolean reuseParentConfig, ScenarioContext context)
focal_class.identifier: result
focal_class.modifiers: private static
focal_class.parameters: (ScriptValue called, CallResult result, boolean reuseParentConfig, ScenarioContext context)
focal_class.return: ScriptValue
focal_class.signature: ScriptValue result(ScriptValue called, CallResult result, boolean reuseParentConfig, ScenarioContext context)
focal_class.class_method_signature: Script.callWithCache(String callKey, ScriptValue called, String arg, ScenarioContext context, boolean reuseParentConfig)
focal_class.full_signature: private static ScriptValue callWithCache(String callKey, ScriptValue called, String arg, ScenarioContext context, boolean reuseParentConfig)
focal_class.identifier: callWithCache
focal_class.modifiers: private static
focal_class.parameters: (String callKey, ScriptValue called, String arg, ScenarioContext context, boolean reuseParentConfig)
focal_class.return: ScriptValue
focal_class.signature: ScriptValue callWithCache(String callKey, ScriptValue called, String arg, ScenarioContext context, boolean reuseParentConfig)
focal_class.class_method_signature: Script.getIfVariableReference(String text, ScenarioContext context)
focal_class.full_signature: public static ScriptValue getIfVariableReference(String text, ScenarioContext context)
focal_class.identifier: getIfVariableReference
focal_class.modifiers: public static
focal_class.parameters: (String text, ScenarioContext context)
focal_class.return: ScriptValue
focal_class.signature: ScriptValue getIfVariableReference(String text, ScenarioContext context)
focal_class.class_method_signature: Script.evalKarateExpression(String text, ScenarioContext context)
focal_class.full_signature: public static ScriptValue evalKarateExpression(String text, ScenarioContext context)
focal_class.identifier: evalKarateExpression
focal_class.modifiers: public static
focal_class.parameters: (String text, ScenarioContext context)
focal_class.return: ScriptValue
focal_class.signature: ScriptValue evalKarateExpression(String text, ScenarioContext context)
focal_class.class_method_signature: Script.getValuebyName(String name, ScenarioContext context)
focal_class.full_signature: private static ScriptValue getValuebyName(String name, ScenarioContext context)
focal_class.identifier: getValuebyName
focal_class.modifiers: private static
focal_class.parameters: (String name, ScenarioContext context)
focal_class.return: ScriptValue
focal_class.signature: ScriptValue getValuebyName(String name, ScenarioContext context)
focal_class.class_method_signature: Script.evalXmlPathOnVarByName(String name, String path, ScenarioContext context)
focal_class.full_signature: public static ScriptValue evalXmlPathOnVarByName(String name, String path, ScenarioContext context)
focal_class.identifier: evalXmlPathOnVarByName
focal_class.modifiers: public static
focal_class.parameters: (String name, String path, ScenarioContext context)
focal_class.return: ScriptValue
focal_class.signature: ScriptValue evalXmlPathOnVarByName(String name, String path, ScenarioContext context)
focal_class.class_method_signature: Script.evalXmlPathOnXmlNode(Node doc, String path)
focal_class.full_signature: public static ScriptValue evalXmlPathOnXmlNode(Node doc, String path)
focal_class.identifier: evalXmlPathOnXmlNode
focal_class.modifiers: public static
focal_class.parameters: (Node doc, String path)
focal_class.return: ScriptValue
focal_class.signature: ScriptValue evalXmlPathOnXmlNode(Node doc, String path)
focal_class.class_method_signature: Script.nodeToValue(Node node)
focal_class.full_signature: private static ScriptValue nodeToValue(Node node)
focal_class.identifier: nodeToValue
focal_class.modifiers: private static
focal_class.parameters: (Node node)
focal_class.return: ScriptValue
focal_class.signature: ScriptValue nodeToValue(Node node)
focal_class.class_method_signature: Script.evalJsonPathOnVarByName(String name, String exp, ScenarioContext context)
focal_class.full_signature: public static ScriptValue evalJsonPathOnVarByName(String name, String exp, ScenarioContext context)
focal_class.identifier: evalJsonPathOnVarByName
focal_class.modifiers: public static
focal_class.parameters: (String name, String exp, ScenarioContext context)
focal_class.return: ScriptValue
focal_class.signature: ScriptValue evalJsonPathOnVarByName(String name, String exp, ScenarioContext context)
focal_class.class_method_signature: Script.evalJsExpression(String exp, ScenarioContext context)
focal_class.full_signature: public static ScriptValue evalJsExpression(String exp, ScenarioContext context)
focal_class.identifier: evalJsExpression
focal_class.modifiers: public static
focal_class.parameters: (String exp, ScenarioContext context)
focal_class.return: ScriptValue
focal_class.signature: ScriptValue evalJsExpression(String exp, ScenarioContext context)
focal_class.class_method_signature: Script.evalJsExpression(String exp, ScenarioContext context, ScriptValue selfValue, Object root, Object parent)
focal_class.full_signature: public static ScriptValue evalJsExpression(String exp, ScenarioContext context, ScriptValue selfValue, Object root, Object parent)
focal_class.identifier: evalJsExpression
focal_class.modifiers: public static
focal_class.parameters: (String exp, ScenarioContext context, ScriptValue selfValue, Object root, Object parent)
focal_class.return: ScriptValue
focal_class.signature: ScriptValue evalJsExpression(String exp, ScenarioContext context, ScriptValue selfValue, Object root, Object parent)
focal_class.class_method_signature: Script.isValidVariableName(String name)
focal_class.full_signature: public static boolean isValidVariableName(String name)
focal_class.identifier: isValidVariableName
focal_class.modifiers: public static
focal_class.parameters: (String name)
focal_class.return: boolean
focal_class.signature: boolean isValidVariableName(String name)
focal_class.class_method_signature: Script.evalJsonEmbeddedExpressions(DocumentContext doc, ScenarioContext context)
focal_class.full_signature: public static void evalJsonEmbeddedExpressions(DocumentContext doc, ScenarioContext context)
focal_class.identifier: evalJsonEmbeddedExpressions
focal_class.modifiers: public static
focal_class.parameters: (DocumentContext doc, ScenarioContext context)
focal_class.return: void
focal_class.signature: void evalJsonEmbeddedExpressions(DocumentContext doc, ScenarioContext context)
focal_class.class_method_signature: Script.evalJsonEmbeddedExpressions(String path, Object o, ScenarioContext context, DocumentContext root)
focal_class.full_signature: private static void evalJsonEmbeddedExpressions(String path, Object o, ScenarioContext context, DocumentContext root)
focal_class.identifier: evalJsonEmbeddedExpressions
focal_class.modifiers: private static
focal_class.parameters: (String path, Object o, ScenarioContext context, DocumentContext root)
focal_class.return: void
focal_class.signature: void evalJsonEmbeddedExpressions(String path, Object o, ScenarioContext context, DocumentContext root)
focal_class.class_method_signature: Script.evalXmlEmbeddedExpressions(Node node, ScenarioContext context)
focal_class.full_signature: public static void evalXmlEmbeddedExpressions(Node node, ScenarioContext context)
focal_class.identifier: evalXmlEmbeddedExpressions
focal_class.modifiers: public static
focal_class.parameters: (Node node, ScenarioContext context)
focal_class.return: void
focal_class.signature: void evalXmlEmbeddedExpressions(Node node, ScenarioContext context)
focal_class.class_method_signature: Script.copy(String name, String exp, ScenarioContext context, boolean validateName)
focal_class.full_signature: public static ScriptValue copy(String name, String exp, ScenarioContext context, boolean validateName)
focal_class.identifier: copy
focal_class.modifiers: public static
focal_class.parameters: (String name, String exp, ScenarioContext context, boolean validateName)
focal_class.return: ScriptValue
focal_class.signature: ScriptValue copy(String name, String exp, ScenarioContext context, boolean validateName)
focal_class.class_method_signature: Script.assign(String name, String exp, ScenarioContext context)
focal_class.full_signature: public static ScriptValue assign(String name, String exp, ScenarioContext context)
focal_class.identifier: assign
focal_class.modifiers: public static
focal_class.parameters: (String name, String exp, ScenarioContext context)
focal_class.return: ScriptValue
focal_class.signature: ScriptValue assign(String name, String exp, ScenarioContext context)
focal_class.class_method_signature: Script.validateVariableName(String name)
focal_class.full_signature: private static void validateVariableName(String name)
focal_class.identifier: validateVariableName
focal_class.modifiers: private static
focal_class.parameters: (String name)
focal_class.return: void
focal_class.signature: void validateVariableName(String name)
focal_class.class_method_signature: Script.assign(AssignType assignType, String name, String exp, ScenarioContext context, boolean validateName)
focal_class.full_signature: public static ScriptValue assign(AssignType assignType, String name, String exp, ScenarioContext context, boolean validateName)
focal_class.identifier: assign
focal_class.modifiers: public static
focal_class.parameters: (AssignType assignType, String name, String exp, ScenarioContext context, boolean validateName)
focal_class.return: ScriptValue
focal_class.signature: ScriptValue assign(AssignType assignType, String name, String exp, ScenarioContext context, boolean validateName)
focal_class.class_method_signature: Script.toJsonDoc(ScriptValue sv, ScenarioContext context)
focal_class.full_signature: public static DocumentContext toJsonDoc(ScriptValue sv, ScenarioContext context)
focal_class.identifier: toJsonDoc
focal_class.modifiers: public static
focal_class.parameters: (ScriptValue sv, ScenarioContext context)
focal_class.return: DocumentContext
focal_class.signature: DocumentContext toJsonDoc(ScriptValue sv, ScenarioContext context)
focal_class.class_method_signature: Script.toXmlDoc(ScriptValue sv, ScenarioContext context)
focal_class.full_signature: private static Node toXmlDoc(ScriptValue sv, ScenarioContext context)
focal_class.identifier: toXmlDoc
focal_class.modifiers: private static
focal_class.parameters: (ScriptValue sv, ScenarioContext context)
focal_class.return: Node
focal_class.signature: Node toXmlDoc(ScriptValue sv, ScenarioContext context)
focal_class.class_method_signature: Script.matchNamed(MatchType matchType, String expression, String path, String expected, ScenarioContext context)
focal_class.full_signature: public static AssertionResult matchNamed(MatchType matchType, String expression, String path, String expected, ScenarioContext context)
focal_class.identifier: matchNamed
focal_class.modifiers: public static
focal_class.parameters: (MatchType matchType, String expression, String path, String expected, ScenarioContext context)
focal_class.return: AssertionResult
focal_class.signature: AssertionResult matchNamed(MatchType matchType, String expression, String path, String expected, ScenarioContext context)
focal_class.class_method_signature: Script.matchScriptValue(MatchType matchType, ScriptValue actual, String path, String expected, ScenarioContext context)
focal_class.full_signature: public static AssertionResult matchScriptValue(MatchType matchType, ScriptValue actual, String path, String expected, ScenarioContext context)
focal_class.identifier: matchScriptValue
focal_class.modifiers: public static
focal_class.parameters: (MatchType matchType, ScriptValue actual, String path, String expected, ScenarioContext context)
focal_class.return: AssertionResult
focal_class.signature: AssertionResult matchScriptValue(MatchType matchType, ScriptValue actual, String path, String expected, ScenarioContext context)
focal_class.class_method_signature: Script.matchString(MatchType matchType, ScriptValue actual, String expected, String path, ScenarioContext context)
focal_class.full_signature: public static AssertionResult matchString(MatchType matchType, ScriptValue actual, String expected, String path, ScenarioContext context)
focal_class.identifier: matchString
focal_class.modifiers: public static
focal_class.parameters: (MatchType matchType, ScriptValue actual, String expected, String path, ScenarioContext context)
focal_class.return: AssertionResult
focal_class.signature: AssertionResult matchString(MatchType matchType, ScriptValue actual, String expected, String path, ScenarioContext context)
focal_class.class_method_signature: Script.isMacro(String text)
focal_class.full_signature: public static boolean isMacro(String text)
focal_class.identifier: isMacro
focal_class.modifiers: public static
focal_class.parameters: (String text)
focal_class.return: boolean
focal_class.signature: boolean isMacro(String text)
focal_class.class_method_signature: Script.isOptionalMacro(String text)
focal_class.full_signature: public static boolean isOptionalMacro(String text)
focal_class.identifier: isOptionalMacro
focal_class.modifiers: public static
focal_class.parameters: (String text)
focal_class.return: boolean
focal_class.signature: boolean isOptionalMacro(String text)
focal_class.class_method_signature: Script.stripParentheses(String s)
focal_class.full_signature: private static String stripParentheses(String s)
focal_class.identifier: stripParentheses
focal_class.modifiers: private static
focal_class.parameters: (String s)
focal_class.return: String
focal_class.signature: String stripParentheses(String s)
focal_class.class_method_signature: Script.matchStringOrPattern(char delimiter, String path, MatchType stringMatchType,
              Object actRoot, Object actParent, ScriptValue actValue, String expected, ScenarioContext context)
focal_class.full_signature: public static AssertionResult matchStringOrPattern(char delimiter, String path, MatchType stringMatchType,
              Object actRoot, Object actParent, ScriptValue actValue, String expected, ScenarioContext context)
focal_class.identifier: matchStringOrPattern
focal_class.modifiers: public static
focal_class.parameters: (char delimiter, String path, MatchType stringMatchType,
              Object actRoot, Object actParent, ScriptValue actValue, String expected, ScenarioContext context)
focal_class.return: AssertionResult
focal_class.signature: AssertionResult matchStringOrPattern(char delimiter, String path, MatchType stringMatchType,
              Object actRoot, Object actParent, ScriptValue actValue, String expected, ScenarioContext context)
focal_class.class_method_signature: Script.matchXml(MatchType matchType, ScriptValue actual, String path, String expression, ScenarioContext context)
focal_class.full_signature: public static AssertionResult matchXml(MatchType matchType, ScriptValue actual, String path, String expression, ScenarioContext context)
focal_class.identifier: matchXml
focal_class.modifiers: public static
focal_class.parameters: (MatchType matchType, ScriptValue actual, String path, String expression, ScenarioContext context)
focal_class.return: AssertionResult
focal_class.signature: AssertionResult matchXml(MatchType matchType, ScriptValue actual, String path, String expression, ScenarioContext context)
focal_class.class_method_signature: Script.getInnerMatchType(MatchType outerMatchType)
focal_class.full_signature: private static MatchType getInnerMatchType(MatchType outerMatchType)
focal_class.identifier: getInnerMatchType
focal_class.modifiers: private static
focal_class.parameters: (MatchType outerMatchType)
focal_class.return: MatchType
focal_class.signature: MatchType getInnerMatchType(MatchType outerMatchType)
focal_class.class_method_signature: Script.matchJsonOrObject(MatchType matchType, ScriptValue actual, String path, String expression, ScenarioContext context)
focal_class.full_signature: public static AssertionResult matchJsonOrObject(MatchType matchType, ScriptValue actual, String path, String expression, ScenarioContext context)
focal_class.identifier: matchJsonOrObject
focal_class.modifiers: public static
focal_class.parameters: (MatchType matchType, ScriptValue actual, String path, String expression, ScenarioContext context)
focal_class.return: AssertionResult
focal_class.signature: AssertionResult matchJsonOrObject(MatchType matchType, ScriptValue actual, String path, String expression, ScenarioContext context)
focal_class.class_method_signature: Script.getLeafNameFromXmlPath(String path)
focal_class.full_signature: private static String getLeafNameFromXmlPath(String path)
focal_class.identifier: getLeafNameFromXmlPath
focal_class.modifiers: private static
focal_class.parameters: (String path)
focal_class.return: String
focal_class.signature: String getLeafNameFromXmlPath(String path)
focal_class.class_method_signature: Script.toXmlString(String elementName, Object o)
focal_class.full_signature: private static Object toXmlString(String elementName, Object o)
focal_class.identifier: toXmlString
focal_class.modifiers: private static
focal_class.parameters: (String elementName, Object o)
focal_class.return: Object
focal_class.signature: Object toXmlString(String elementName, Object o)
focal_class.class_method_signature: Script.quoteIfString(Object o)
focal_class.full_signature: private static Object quoteIfString(Object o)
focal_class.identifier: quoteIfString
focal_class.modifiers: private static
focal_class.parameters: (Object o)
focal_class.return: Object
focal_class.signature: Object quoteIfString(Object o)
focal_class.class_method_signature: Script.isNegation(MatchType type)
focal_class.full_signature: private static boolean isNegation(MatchType type)
focal_class.identifier: isNegation
focal_class.modifiers: private static
focal_class.parameters: (MatchType type)
focal_class.return: boolean
focal_class.signature: boolean isNegation(MatchType type)
focal_class.class_method_signature: Script.matchFailed(MatchType matchType, String path,
              Object actObject, Object expObject, String reason)
focal_class.full_signature: public static AssertionResult matchFailed(MatchType matchType, String path,
              Object actObject, Object expObject, String reason)
focal_class.identifier: matchFailed
focal_class.modifiers: public static
focal_class.parameters: (MatchType matchType, String path,
              Object actObject, Object expObject, String reason)
focal_class.return: AssertionResult
focal_class.signature: AssertionResult matchFailed(MatchType matchType, String path,
              Object actObject, Object expObject, String reason)
focal_class.class_method_signature: Script.matchNestedObject(char delimiter, String path, MatchType matchType,
              Object actRoot, Object actParent, Object actObject, Object expObject, ScenarioContext context)
focal_class.full_signature: public static AssertionResult matchNestedObject(char delimiter, String path, MatchType matchType,
              Object actRoot, Object actParent, Object actObject, Object expObject, ScenarioContext context)
focal_class.identifier: matchNestedObject
focal_class.modifiers: public static
focal_class.parameters: (char delimiter, String path, MatchType matchType,
              Object actRoot, Object actParent, Object actObject, Object expObject, ScenarioContext context)
focal_class.return: AssertionResult
focal_class.signature: AssertionResult matchNestedObject(char delimiter, String path, MatchType matchType,
              Object actRoot, Object actParent, Object actObject, Object expObject, ScenarioContext context)
focal_class.class_method_signature: Script.isPrimitive(Class clazz)
focal_class.full_signature: public static boolean isPrimitive(Class clazz)
focal_class.identifier: isPrimitive
focal_class.modifiers: public static
focal_class.parameters: (Class clazz)
focal_class.return: boolean
focal_class.signature: boolean isPrimitive(Class clazz)
focal_class.class_method_signature: Script.buildListPath(char delimiter, String path, int index)
focal_class.full_signature: private static String buildListPath(char delimiter, String path, int index)
focal_class.identifier: buildListPath
focal_class.modifiers: private static
focal_class.parameters: (char delimiter, String path, int index)
focal_class.return: String
focal_class.signature: String buildListPath(char delimiter, String path, int index)
focal_class.class_method_signature: Script.convertToBigDecimal(Object o)
focal_class.full_signature: private static BigDecimal convertToBigDecimal(Object o)
focal_class.identifier: convertToBigDecimal
focal_class.modifiers: private static
focal_class.parameters: (Object o)
focal_class.return: BigDecimal
focal_class.signature: BigDecimal convertToBigDecimal(Object o)
focal_class.class_method_signature: Script.matchPrimitive(MatchType matchType, String path, Object actObject, Object expObject)
focal_class.full_signature: private static AssertionResult matchPrimitive(MatchType matchType, String path, Object actObject, Object expObject)
focal_class.identifier: matchPrimitive
focal_class.modifiers: private static
focal_class.parameters: (MatchType matchType, String path, Object actObject, Object expObject)
focal_class.return: AssertionResult
focal_class.signature: AssertionResult matchPrimitive(MatchType matchType, String path, Object actObject, Object expObject)
focal_class.class_method_signature: Script.removeValueByPath(String name, String path, ScenarioContext context)
focal_class.full_signature: public static void removeValueByPath(String name, String path, ScenarioContext context)
focal_class.identifier: removeValueByPath
focal_class.modifiers: public static
focal_class.parameters: (String name, String path, ScenarioContext context)
focal_class.return: void
focal_class.signature: void removeValueByPath(String name, String path, ScenarioContext context)
focal_class.class_method_signature: Script.setValueByPath(String name, String path, ScriptValue value, ScenarioContext context)
focal_class.full_signature: public static void setValueByPath(String name, String path, ScriptValue value, ScenarioContext context)
focal_class.identifier: setValueByPath
focal_class.modifiers: public static
focal_class.parameters: (String name, String path, ScriptValue value, ScenarioContext context)
focal_class.return: void
focal_class.signature: void setValueByPath(String name, String path, ScriptValue value, ScenarioContext context)
focal_class.class_method_signature: Script.setValueByPath(String name, String path, String exp, ScenarioContext context)
focal_class.full_signature: public static void setValueByPath(String name, String path, String exp, ScenarioContext context)
focal_class.identifier: setValueByPath
focal_class.modifiers: public static
focal_class.parameters: (String name, String path, String exp, ScenarioContext context)
focal_class.return: void
focal_class.signature: void setValueByPath(String name, String path, String exp, ScenarioContext context)
focal_class.class_method_signature: Script.setValueByPath(String name, String path, String exp, boolean delete, ScenarioContext context, boolean viaTable)
focal_class.full_signature: public static void setValueByPath(String name, String path, String exp, boolean delete, ScenarioContext context, boolean viaTable)
focal_class.identifier: setValueByPath
focal_class.modifiers: public static
focal_class.parameters: (String name, String path, String exp, boolean delete, ScenarioContext context, boolean viaTable)
focal_class.return: void
focal_class.signature: void setValueByPath(String name, String path, String exp, boolean delete, ScenarioContext context, boolean viaTable)
focal_class.class_method_signature: Script.setValueByPath(String name, String path, ScriptValue value, boolean delete, ScenarioContext context, boolean viaTable)
focal_class.full_signature: public static void setValueByPath(String name, String path, ScriptValue value, boolean delete, ScenarioContext context, boolean viaTable)
focal_class.identifier: setValueByPath
focal_class.modifiers: public static
focal_class.parameters: (String name, String path, ScriptValue value, boolean delete, ScenarioContext context, boolean viaTable)
focal_class.return: void
focal_class.signature: void setValueByPath(String name, String path, ScriptValue value, boolean delete, ScenarioContext context, boolean viaTable)
focal_class.class_method_signature: Script.call(ScriptValue called, String argString, ScenarioContext context, boolean reuseParentConfig)
focal_class.full_signature: public static ScriptValue call(ScriptValue called, String argString, ScenarioContext context, boolean reuseParentConfig)
focal_class.identifier: call
focal_class.modifiers: public static
focal_class.parameters: (ScriptValue called, String argString, ScenarioContext context, boolean reuseParentConfig)
focal_class.return: ScriptValue
focal_class.signature: ScriptValue call(ScriptValue called, String argString, ScenarioContext context, boolean reuseParentConfig)
focal_class.class_method_signature: Script.evalJavaFunctionCall(Function function, Object callArg, ScenarioContext context)
focal_class.full_signature: public static ScriptValue evalJavaFunctionCall(Function function, Object callArg, ScenarioContext context)
focal_class.identifier: evalJavaFunctionCall
focal_class.modifiers: public static
focal_class.parameters: (Function function, Object callArg, ScenarioContext context)
focal_class.return: ScriptValue
focal_class.signature: ScriptValue evalJavaFunctionCall(Function function, Object callArg, ScenarioContext context)
focal_class.class_method_signature: Script.evalJsFunctionCall(ScriptObjectMirror som, Object callArg, ScenarioContext context)
focal_class.full_signature: public static ScriptValue evalJsFunctionCall(ScriptObjectMirror som, Object callArg, ScenarioContext context)
focal_class.identifier: evalJsFunctionCall
focal_class.modifiers: public static
focal_class.parameters: (ScriptObjectMirror som, Object callArg, ScenarioContext context)
focal_class.return: ScriptValue
focal_class.signature: ScriptValue evalJsFunctionCall(ScriptObjectMirror som, Object callArg, ScenarioContext context)
focal_class.class_method_signature: Script.evalFeatureCall(Feature feature, Object callArg, ScenarioContext context, boolean reuseParentConfig)
focal_class.full_signature: public static ScriptValue evalFeatureCall(Feature feature, Object callArg, ScenarioContext context, boolean reuseParentConfig)
focal_class.identifier: evalFeatureCall
focal_class.modifiers: public static
focal_class.parameters: (Feature feature, Object callArg, ScenarioContext context, boolean reuseParentConfig)
focal_class.return: ScriptValue
focal_class.signature: ScriptValue evalFeatureCall(Feature feature, Object callArg, ScenarioContext context, boolean reuseParentConfig)
focal_class.class_method_signature: Script.evalFeatureCall(CallContext callContext)
focal_class.full_signature: private static ScriptValue evalFeatureCall(CallContext callContext)
focal_class.identifier: evalFeatureCall
focal_class.modifiers: private static
focal_class.parameters: (CallContext callContext)
focal_class.return: ScriptValue
focal_class.signature: ScriptValue evalFeatureCall(CallContext callContext)
focal_class.class_method_signature: Script.parseCallArgs(String line)
focal_class.full_signature: public static StringUtils.Pair parseCallArgs(String line)
focal_class.identifier: parseCallArgs
focal_class.modifiers: public static
focal_class.parameters: (String line)
focal_class.return: StringUtils.Pair
focal_class.signature: StringUtils.Pair parseCallArgs(String line)
focal_class.class_method_signature: Script.callAndUpdateConfigAndAlsoVarsIfMapReturned(boolean callOnce, String name, String arg, ScenarioContext context)
focal_class.full_signature: public static void callAndUpdateConfigAndAlsoVarsIfMapReturned(boolean callOnce, String name, String arg, ScenarioContext context)
focal_class.identifier: callAndUpdateConfigAndAlsoVarsIfMapReturned
focal_class.modifiers: public static
focal_class.parameters: (boolean callOnce, String name, String arg, ScenarioContext context)
focal_class.return: void
focal_class.signature: void callAndUpdateConfigAndAlsoVarsIfMapReturned(boolean callOnce, String name, String arg, ScenarioContext context)
focal_class.class_method_signature: Script.assertBoolean(String expression, ScenarioContext context)
focal_class.full_signature: public static AssertionResult assertBoolean(String expression, ScenarioContext context)
focal_class.identifier: assertBoolean
focal_class.modifiers: public static
focal_class.parameters: (String expression, ScenarioContext context)
focal_class.return: AssertionResult
focal_class.signature: AssertionResult assertBoolean(String expression, ScenarioContext context)
focal_class.class_method_signature: Script.replacePlaceholderText(String text, String token, String replaceWith, ScenarioContext context)
focal_class.full_signature: public static String replacePlaceholderText(String text, String token, String replaceWith, ScenarioContext context)
focal_class.identifier: replacePlaceholderText
focal_class.modifiers: public static
focal_class.parameters: (String text, String token, String replaceWith, ScenarioContext context)
focal_class.return: String
focal_class.signature: String replacePlaceholderText(String text, String token, String replaceWith, ScenarioContext context)
focal_class.class_method_signature: Script.replacePlaceholders(String text, List<Map<String, String>> list, ScenarioContext context)
focal_class.full_signature: public static String replacePlaceholders(String text, List<Map<String, String>> list, ScenarioContext context)
focal_class.identifier: replacePlaceholders
focal_class.modifiers: public static
focal_class.parameters: (String text, List<Map<String, String>> list, ScenarioContext context)
focal_class.return: String
focal_class.signature: String replacePlaceholders(String text, List<Map<String, String>> list, ScenarioContext context)
focal_class.class_method_signature: Script.evalTable(List<Map<String, String>> list, ScenarioContext context)
focal_class.full_signature: public static List<Map<String, Object>> evalTable(List<Map<String, String>> list, ScenarioContext context)
focal_class.identifier: evalTable
focal_class.modifiers: public static
focal_class.parameters: (List<Map<String, String>> list, ScenarioContext context)
focal_class.return: List<Map<String, Object>>
focal_class.signature: List<Map<String, Object>> evalTable(List<Map<String, String>> list, ScenarioContext context)
focal_class.class_method_signature: Script.setByPathTable(String name, String path, List<Map<String, String>> list, ScenarioContext context)
focal_class.full_signature: public static void setByPathTable(String name, String path, List<Map<String, String>> list, ScenarioContext context)
focal_class.identifier: setByPathTable
focal_class.modifiers: public static
focal_class.parameters: (String name, String path, List<Map<String, String>> list, ScenarioContext context)
focal_class.return: void
focal_class.signature: void setByPathTable(String name, String path, List<Map<String, String>> list, ScenarioContext context)
focal_method.body: public static AssertionResult matchNamed(MatchType matchType, String expression, String path, String expected, ScenarioContext context) {
          String name = StringUtils.trimToEmpty(expression);
          if (isDollarPrefixedJsonPath(name) || isXmlPath(name)) { // short-cut for operating on response
              path = name;
              name = ScriptValueMap.VAR_RESPONSE;
          }
          if (name.startsWith("$")) { // in case someone used the dollar prefix by mistake on the LHS
              name = name.substring(1);
          }
          path = StringUtils.trimToNull(path);
          if (path == null) {
              StringUtils.Pair pair = parseVariableAndPath(name);
              name = pair.left;
              path = pair.right;
          }
          if (VAR_HEADER.equals(name)) { // convenience shortcut for asserting against response header
              return matchNamed(matchType, ScriptValueMap.VAR_RESPONSE_HEADERS, "$['" + path + "'][0]", expected, context);
          }
          ScriptValue actual;
          // karate started out by "defaulting" to JsonPath on the LHS of a match so we have this kludge
          // but we now handle JS expressions of almost any shape on the LHS, if in doubt, wrap in parentheses
          // actually it is not too bad - the XPath function check is the only odd one out
          // rules:
          // if not XPath function, wrapped in parentheses, involves function call
          //      [then] JS eval
          // else if XPath, JsonPath, JsonPath wildcard ".." or "*" or "[?"
          //      [then] eval name, and do a JsonPath or XPath using the parsed path
          if (isXmlPathFunction(path) 
                  || (!name.startsWith("(") && !path.endsWith(")") && !path.contains(")."))
                  && (isDollarPrefixed(path) || isJsonPath(path) || isXmlPath(path))) {
              actual = evalKarateExpression(name, context);
              // edge case: java property getter, e.g. "driver.cookies"
              if (!actual.isJsonLike() && !isXmlPath(path) && !isXmlPathFunction(path)) {
                  // super rare edge case "match $.foo == '#notnull'" for response (which is not json, and will fail match)
                  if (expression.startsWith("$")) {
                      expression = name + expression.substring(1);
                  }
                  actual = evalKarateExpression(expression, context); // fall back to JS eval
                  path = VAR_ROOT;
              }
          } else {
              actual = evalKarateExpression(expression, context);
              path = VAR_ROOT; // we have eval-ed the entire LHS, so match RHS to "$"
          }
          return matchScriptValue(matchType, actual, path, expected, context);
      }
focal_method.class_method_signature: Script.matchNamed(MatchType matchType, String expression, String path, String expected, ScenarioContext context)
focal_method.full_signature: public static AssertionResult matchNamed(MatchType matchType, String expression, String path, String expected, ScenarioContext context)
focal_method.identifier: matchNamed
focal_method.invocations: trimToEmpty isDollarPrefixedJsonPath isXmlPath startsWith substring trimToNull parseVariableAndPath equals matchNamed isXmlPathFunction startsWith endsWith contains isDollarPrefixed isJsonPath isXmlPath evalKarateExpression isJsonLike isXmlPath isXmlPathFunction startsWith substring evalKarateExpression evalKarateExpression matchScriptValue
focal_method.modifiers: public static
focal_method.parameters: (MatchType matchType, String expression, String path, String expected, ScenarioContext context)
focal_method.return: AssertionResult
focal_method.signature: AssertionResult matchNamed(MatchType matchType, String expression, String path, String expected, ScenarioContext context)