[prev in list] [next in list] [prev in thread] [next in thread] 

List:       grinder-use
Subject:    [Grinder-use] How to use Grinder to test Client-server app with
From:       maplemaple <dhui3 () learn ! senecac ! on ! ca>
Date:       2007-07-25 14:02:33
Message-ID: 11783281.post () talk ! nabble ! com
[Download RAW message or body]


HI, all:

I want to use Grinder to test aa client-server application, the problem is :
we use thin client ( which is started using cmd.exe program, not using
Browser)at the Client side.

This is a websever---application server---DB server 
I know the IP address of application server and port

I can use web/winsocket protocol to record the process in LoadRunner. But in
Grinder, I do not know how to record the same process. The following is the
scripts I recorded in LoadRunnner. Anyone has good advice of how to record
or rewrite it in Grinder using  scripts?


//PRE LOGIN TRANSACTION
#define URLshort  	"https://www2.my.com:1009"
lr_save_string (URLshort, "pURLshort");

	web_reg_save_param("message",
		"LB=",
		"RB=",
		LAST);

	web_reg_save_param("stackversion",
		"LB=<clientVersion>",
		"RB=</clientVersion>",
		"Notfound=warning",
		LAST);

	lr_start_transaction((char*)strcat(lr_eval_string("{pTxNamePrefix}"),
"_T_PreLogin"));
    	web_custom_request("EontecServlet",

"URL={pURLshort}/versionservice/versionCheck?VC_REQUEST=<versionTransferObject%20xmlns \
=\"http://versionservice.my.com/dto\"%20xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-i \
nstance\"><versionRequest%20xmlns=\"\"><application>TTT</application><Transit>{pCode}</Transit>%20</versionRequest></versionTransferObject>",
  LAST);

		if (strlen(lr_eval_string("{stackversion}")) == 0)
	{
		lr_error_message((char*)strcat(lr_eval_string("{pTxNamePrefix}"),
"_T_PreLogin Error: %s"),lr_eval_string("{message}"));
		lr_end_transaction((char*)strcat(lr_eval_string("{pTxNamePrefix}"),
"_T_PreLogin"), LR_FAIL);
		return -1;
	}

	lr_end_transaction((char*)strcat(lr_eval_string("{pTxNamePrefix}"),
"_T_PreLogin"), LR_PASS);

	lr_think_time(1);

Thanks

meteor 

-- 
View this message in context: \
http://www.nabble.com/How-to-use-Grinder-to-test-Client-server-app-with-cmd.exe-thin-client-tf4142391.html#a11783281
 Sent from the Grinder - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
grinder-use mailing list
grinder-use@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/grinder-use


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic