{
  "synLogic": "int $ret \u003d $api();",
  "help": "The ns_get_auto_cookie_mode is use to get the cookie mode used in your test ",
  "notes": "Manytimes for debugging purpose , it is required to check how scripts are sending cookie while replay . In such cases we can use this api . It returns the auto cookie mode value which can be \n0  -  Auto cookie is disabled i.e Not using auto cookie\n1  -  Used auto cookie with name, path and domain\n2  -  Used auto cookie with name only\n3  -  Used auto cookie with name and path only\n4  -  Used auto cookie with name and domain only",
  "returns": "int",
  "arguments": "",
  "parameterization": "Parameterization is not applicable to this Api",
  "name": "ns_get_auto_cookie_mode",
  "syntax": "int ns_get_auto_cookie_mode()",
  "javaSyntax": "int ns_get_auto_cookie_mode()",
  "jsSyntax": "ns_get_auto_cookie_mode()",
  "cEx": "flow()\n{\n  ckmode \u003d ns_get_auto_cookie_mode();\n  if(ckmode \u003d\u003d 1)\n  {\n    printf(\"Cookies are sent with name ,domain and path \");\n  }\n  else if(ckmode \u003d\u003d 2)\n  {\n    printf(\"Cookies are sent with name only \")\n  }\n  else if(ckmode \u003d\u003d 3)\n  {\n    printf(\"Cookies are sent with name and path only \")\n  }\n  else if(ckmode \u003d\u003d 4)\n  {\n    printf(\"Cookies are sent with name and domain only \")\n  }\n}",
  "javaEx": "flow()\n{\n  ckmode \u003d nsApi.ns_get_auto_cookie_mode();\n  if (ckmode \u003d\u003d 1)\n  {\n    printf(\"Cookies are sent with name ,domain and path \");\n  }\n  else if{ckmode \u003d\u003d 2)\n  {\n  printf(\"Cookies are sent with name only \")\n  }\n else if{ckmode \u003d\u003d 3)\n  {\n    printf(\"Cookies are sent with name and path only \")\n  }\n else if{ckmode \u003d\u003d 4)\n {\n printf(\"Cookies are sent with name and domain only \")\n }\n}",
  "jsEx": "let ckmode \u003d nsApi.ns_get_auto_cookie_mode();\n  if (ckmode \u003d\u003d 1)\n  {\n    console.log(\"Cookies are sent with name ,domain and path \");\n  }\n  else if{ckmode \u003d\u003d 2)\n  {\n  console.log(\"Cookies are sent with name only \")\n  }\n else if{ckmode \u003d\u003d 3)\n  {\n    console.log(\"Cookies are sent with name and path only \")\n  }\n else if{ckmode \u003d\u003d 4)\n {\n console.log(\"Cookies are sent with name and domain only \")\n }\n}",
  "insertStrC": "ns_get_auto_cookie_mode();",
  "insertStrJava": "ns_get_auto_cookie_mode();",
  "insertStrJs": "ns_get_auto_cookie_mode();",
  "description": "The ns_get_auto_cookie_mode API is use to get the cookie mode used in your test ",
  "component": [
    {
      "id": "$ret",
      "type": "TextField",
      "label": "Return Value",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter Return Value",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "Text",
        "required": true,
        "method": "isValidVar(arg)"
      }
    }
 ]
}
