Highlighted
Absent Member.. Absent Member..
Absent Member..
373 views

Web (http/htm)l script running in Vugen, however not in Controller

Hello,

 

I have a Web (http/html) script that runs an "external" C function. The scripts looks like this:

 

Init Block

#include "C:\LoadRunnerKit_D6.7SP1\lib\lr_ucf.c"
Init{
...
lr_load_dll("C:\\LoadRunnerKit_D6.7SP1\\bin\\TDfUCFInvokerClient.dll");
...
}

Action Block

...
setUID(); <- Function
...

 

lr_util.c (file in the script)

setUID(char *msg) {
	char buf[50];
	char modified_hostname[256];
	int uid;
	strcpy (buf, "/");
	strcat (buf, lr_eval_string("webtop"));  // Prepend "/" to the Context

	/* This has been removed due to UCF Invoker issues. Currently only HTTP is supported 
	// Overloading the parameter Hostname by prepending the protocol portion of the URL onto 
	// the front to allow for SSL support. */
	strcpy (modified_hostname, lr_eval_string("http"));     
	strcat(modified_hostname,"://");
	strcat(modified_hostname,lr_eval_string("X.X.X.X"));

	
	lr_message( "%s: buf is now: %s", lr_eval_string("{ClientID}"),buf);
	uid = getUID(atoi(lr_eval_string("7338")),"GAIR", lr_eval_string("http"), lr_eval_string("X.X.X.X"), atoi(lr_eval_string("80")), buf, lr_eval_string("{JSess}"), msg);

	sprintf(buf,"%d",uid);
    lr_save_string(buf, "UID");
	if ( atoi(buf) < 0)
	{ 
		lr_message( "%s: Failed! UID is: %s",lr_eval_string("{ClientID}"), buf);
		lr_exit(LR_EXIT_MAIN_ITERATION_AND_CONTINUE ,LR_FAIL);
	} 
	else {
		lr_message( "%s: Success! UID is: %s", lr_eval_string("{ClientID}"), buf);
	}
	//setReload();
}

This is a Documentum (Webtop) script, in Vugen runs perfect, however when i try to run the script in the LR Controller, the Action block doesn't run. No error messages, the transaction where the setUID function runs, just stops, same story with the Action, stops without errors.

 

I ran out of ideas, what could be the problem?.

 

Regards.

 

 

0 Likes
0 Replies
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.