{
  "synLogic": "$api($1);",
  "help": "AUTO_MODE - Mode will be decided from scenario settings\nBROWSER_MODE - To execute in Click and Script mode.\nLIGHTHOUSE_MODE - To integrate Lighthouse reporting, it is an open-source, automated tool for improving the quality of web pages\n\n\nThe execution mode (i.e. either browser or lighthouse) can be set from the scenario, but if we need to execute some portion of script executing in rbu mode and some in lighthouse mode. We can control it by using this API.",
  "notes": "1. If this API is not used then mode will be decided from scenario setting. \n2. Handling of Transaction: \n\ta. POST requests and clicks can not be executed in lighthouse mode so such api execution will be skipped.\n\tb. if all the rbu api given in between start/end transaction api are skipped due to above limitation, that transaction will not be logged. \n\tc. If  no rbu api was given between a start/end transaction api pair, it will be logged. ",
  "returns": "",
  "arguments": "int  rbu_mode\nAUTO_MODE\nBROWSER_MODE\nLIGHTHOUSE_MODE\n",
  "parameterization": "",
  "name": "ns_rbu_mode",
  "syntax": "void ns_rbu_mode(int mode)",
  "javaSyntax": "void ns_rbu_mode(int mode)",
  "cEx": "ns_rbu_mode(BROWSER_MODE);\n\n//steps for login using rbu mode \n\nns_rbu_mode(AUTO_MODE);  // switch to auto mode i.e. it will be picked from scenario now. \n\n// apis to be executed in lighthouse mode ",
  "javaEx": "nsApi.ns_rbu_mode(BROWSER_MODE);\n\n//steps for login using rbu mode \n\nnsApi.ns_rbu_mode(AUTO_MODE);  // switch to auto mode i.e. it will be picked from scenario now. \n\n// apis to be executed in lighthouse mode ",
  "insertStrC": "ns_rbu_mode(int mode);",
  "insertStrJava": "ns_rbu_mode(int mode);",
  "description": "The ns_rbu_mode API is used to control execution mode explicitly for some portion of script.",
  "component": [
    {
	 "id":"$1",
	 "type":"Dropdown",
	 "label":"Mode",
	 "labelVarCheckbox":"",
	 "value":"AUTO_MODE",
	 "css":"p-grid p-align-center w-100-p",
	 "title":"Enter Mode",
	 "placeHolder":"Select Mode",
	 "style":"",
	 "isDisabled":"",
	 "list":[
		{
		   "label":"AUTO MODE",
		   "value":"AUTO_MODE"
		},
		{
		   "label":"BROWSER MODE",
		   "value":"BROWSER_MODE"
		},
		{
		   "label":"LIGHTHOUSE MODE",
		   "value":"LIGHTHOUSE_MODE"
		}
	 ],
	 "validate":{
		"required":true
	 }
	}
  ]
}
