I have a Web service protocol script, in which I am using the function lr_xml_get_values to capture few parameters.
The script is running fine in VUGen, but when run in PC, I am getting the following error - "CCI security error:You are running under secure mode and the function lr_xml_get_values is not allowed in this mode".
Can anyone please let me know, how can we overcome this.
I am using Performance Center 9.52 version.
Searched the forum for possible solutions but couldn't find.
Re: Error : CCI Security Error for lr_xml_get_values
I got the same error when we went from LoadRunner to Performance Centre. Below is the response from the job ticket I raised with HP at the time.
In order to prevent the error message from happening, add the function [in your case it'd be lr_xml_get_values] to the relevant .asl file under \merc_asl.
In order to prevent misuse of LoadRunner by outside sources, LoadRunner keeps a list of allowed functions on the Load Generator machine. The lists are stored in *.asl files under <LoadRunner>\merc_asl\*.asl
(* signifies the relevant protocol). For general LoadRunner (lr) of C functions, you can simply append the function with an equal sign to the end of the lrun_api.asl.
In other words, any command you need to run on the load injector machines needs to be included in the list of authorised commands in the directory for each of the protocols you're going to use.
I took a dump of pretty much all the command in the LR help and made sure they were in that directory en masse, so I wouldn't be adding stuff one-by-one when they failed.
You'll need to do this for each of the injector machine you're going to run on.