Hi,
I am working on Webtop 6.7 SP2(Load runner version 11)
I have created the script for Import and Export(correlation part is taken care using .cor file in kit and manually correlated required dynamic values).
While importing the files i am having problem at UID function as i am receiving UID as -1 even after increasing the buffer size of the "GETUID_SEND_BUFFER_SIZE" and started "startInvoker.bat" file as well.
Below is the error i am getting while executing the script.
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) Client VM (build 20.45-b01, mixed mode, sharing)
Thu Jun 12 13:50:50 IST 2014 Starting TDfUCFInvoker and waiting for connections
at port: 7338
Thu Jun 12 13:56:44 IST 2014 Received UID request: Importing | cookies: JSESSION
ID=5GgDTZjXrL6yD9TR2597LB83MCSrKdn0MWP7cypYKF8m7t88W0Tn!1658293473
Exception in thread "Thread-2" com.documentum.ucf.common.transport.TransportErro
r: com.documentum.ucf.common.transport.TransportException: java.net.SocketTimeou
tException: Read timed out
at com.documentum.ucf.client.transport.impl.ClientSession.run(ClientSess
ion.java:473)
Caused by: com.documentum.ucf.common.transport.TransportException: java.net.Sock
etTimeoutException: Read timed out
at com.documentum.ucf.client.transport.impl.ClientSession.handshake(Clie
ntSession.java:717)
at com.documentum.ucf.client.transport.impl.ClientSession.handshake(Clie
ntSession.java:653)
at com.documentum.ucf.client.transport.impl.ClientSession.run(ClientSess
ion.java:270)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
urce)
at com.documentum.ucf.client.transport.impl.ClientNativeGAIRConnector.ge
tInputStream(ClientNativeGAIRConnector.java:64)
at com.documentum.ucf.client.transport.impl.ClientSession.sendAndGetRece
iver(ClientSession.java:591)
at com.documentum.ucf.client.transport.impl.ClientSession.handshake(Clie
ntSession.java:675)
... 2 more
Thu Jun 12 13:58:49 IST 2014
com.emc.cma.perf.tools.ucf.TDfUCFInvokerException: Unable to obtain new UID
at com.emc.cma.perf.tools.ucf.TDfUCFInvokerThread.getNewUcfSessionUidLoc
al(TDfUCFInvokerThread.java:101)
at com.emc.cma.perf.tools.ucf.TDfUCFInvokerThread.getNewUcfSessionUid(TD
fUCFInvokerThread.java:75)
at com.emc.cma.perf.tools.ucf.TDfUCFInvokerThread.run(TDfUCFInvokerThrea
d.java:45)
set uid function used.
typedef long time_t;
struct _timeb {
time_t time;
unsigned short millitm;
short timezone;
short dstflag;
} ;
// This function defines the UCF invoker port for content transfer.
// The "UCFport" parameter is defined in the parameter list.
setUID(char *msg) {
char buf[50];
char modified_hostname[256];
int uid;
lr_message( "msg is: %s", msg);
strcpy (buf, "/");
strcat (buf, lr_eval_string("{context}")); // Prepend "/" to the Context
/* This has been removed due to UCF Invoker issues. Currently only {protocol} 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("{protocol}"));
strcat(modified_hostname,"://");
strcat(modified_hostname,lr_eval_string("{hostname}"));
lr_message( "%s: buf is now: %s", lr_eval_string("{Timestamp}"),buf);
// uid = getUID(atoi(lr_eval_string("{UCFPort}")),"GAIR", lr_eval_string("{Hostname}"), atoi(lr_eval_string("{Port}")), buf, lr_eval_string("{jsess}"), msg);
//uid = getUID(atoi(lr_eval_string("{UcfPort}")),"GAIR", lr_eval_string("{protocol}"), lr_eval_string("{hostname}"), atoi(lr_eval_string("{port}")), buf, lr_eval_string("{JSessID}"), msg);
uid = getUID(7338, "GAIR","http","131.177.238.198", 7061, "/tscc",lr_eval_string("{JSessID}"), "Importing");
sprintf(buf,"%d",uid);
lr_save_string(buf, "UID");
if ( atoi(buf) < 0)
{
lr_message( "%s: Failed! UID is: %s",lr_eval_string("{Timestamp}"), buf);
lr_exit(LR_EXIT_MAIN_ITERATION_AND_CONTINUE ,LR_FAIL);
}
else {
lr_message( "%s: Success! UID is: %s", lr_eval_string("{Timestamp}"), buf);
}
setReload();
}
Please find attached lr_ucf.c
Please help me in getting resolve of UID issue.
Thanks you in advance.