473,503 Members | 12,383 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Multiple Client Simulation


Hi could anyone tell me how to simulate multiple clients for a windows
form without actually me having to copy paste the code. Cause its a
real pain....
The thing is i am working on remoting which u guys must have guessed by
now...
And then this is i have a windows form is which is the client and i
have a listener... Now when i need to have multiple clients basically i
got to copy paste the codes and its actually a pain...
Need Urgent Help!!!1

Thank you

Dec 14 '06 #1
7 2688
If the winform is the client, then can you just not start multiple
copies of the form, perhaps on different threads? and failing that,
just create a pile of processes? Of course, if you are trying to
stress-test it, you may be better off stressing the objects directly,
otherwise you will have to attempt to automate the form to simulate
user actions...

Or did I miss the question?

Marc
Dec 14 '06 #2
You could write athreaded test harness to test there remoting elements,
acting on the remoting inouts and outputs - or you could resort to unti
testing i=using something like mbunit or nunit

--
--
Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
"Chacko" <ja*********@gmail.comwrote in message
news:11*********************@l12g2000cwl.googlegro ups.com...
>
Hi could anyone tell me how to simulate multiple clients for a windows
form without actually me having to copy paste the code. Cause its a
real pain....
The thing is i am working on remoting which u guys must have guessed by
now...
And then this is i have a windows form is which is the client and i
have a listener... Now when i need to have multiple clients basically i
got to copy paste the codes and its actually a pain...
Need Urgent Help!!!1

Thank you

Dec 14 '06 #3
Thanx man...
I guess i forgot to state this...Is it possible through Reflection?

John Timney (MVP) wrote:
You could write athreaded test harness to test there remoting elements,
acting on the remoting inouts and outputs - or you could resort to unti
testing i=using something like mbunit or nunit

--
--
Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
"Chacko" <ja*********@gmail.comwrote in message
news:11*********************@l12g2000cwl.googlegro ups.com...

Hi could anyone tell me how to simulate multiple clients for a windows
form without actually me having to copy paste the code. Cause its a
real pain....
The thing is i am working on remoting which u guys must have guessed by
now...
And then this is i have a windows form is which is the client and i
have a listener... Now when i need to have multiple clients basically i
got to copy paste the codes and its actually a pain...
Need Urgent Help!!!1

Thank you
Dec 15 '06 #4
Hey Marc thanks for the help man.. I am sorry guess i forgot to state
the fact that is there any way to simulate this through Reflections??
Marc Gravell wrote:
If the winform is the client, then can you just not start multiple
copies of the form, perhaps on different threads? and failing that,
just create a pile of processes? Of course, if you are trying to
stress-test it, you may be better off stressing the objects directly,
otherwise you will have to attempt to automate the form to simulate
user actions...

Or did I miss the question?

Marc
Dec 15 '06 #5
Essentially you can write an entire C# app making every call (including
constuctor) via reflection... well, OK, you might need to call the
reflection methods directly...

But the answer is yes, but I'm not going to attempt to illustrate
without a more defined scenario. Reflection is a big area.

Marc

Dec 15 '06 #6
Unit testing tools can test individual methods under loads, they dont care
if your app is doing reflection - they just run the method with its required
inputs as if you were running it and report on success or failure.

--
Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
http://www.johntimney.com/blog
"Chacko" <ja*********@gmail.comwrote in message
news:11**********************@80g2000cwy.googlegro ups.com...
Thanx man...
I guess i forgot to state this...Is it possible through Reflection?

John Timney (MVP) wrote:
>You could write athreaded test harness to test there remoting elements,
acting on the remoting inouts and outputs - or you could resort to unti
testing i=using something like mbunit or nunit

--
--
Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
"Chacko" <ja*********@gmail.comwrote in message
news:11*********************@l12g2000cwl.googlegr oups.com...
>
Hi could anyone tell me how to simulate multiple clients for a windows
form without actually me having to copy paste the code. Cause its a
real pain....
The thing is i am working on remoting which u guys must have guessed by
now...
And then this is i have a windows form is which is the client and i
have a listener... Now when i need to have multiple clients basically i
got to copy paste the codes and its actually a pain...
Need Urgent Help!!!1

Thank you

Dec 15 '06 #7
Guys i finally did the multiple client simulation using Reflections
itself...First what you do is make an assembly of the code u want to
run and then add that as a reference to the program which does this
multiple simulation...
Say U have program A which u want to simulate and then u have program B
which is sort of like Main Program which holds various data and
parameters for ur various instance of Program A.

Compile Program A..
Use the exe as a reference for Program B.
Then using Reflections pass parameters and call Program A....
Its easy and believe me it saves lot of time also...
Will write the code later...

A Little busy now...

Thank you anyways for all your help...

Jacob

John Timney (MVP) wrote:
Unit testing tools can test individual methods under loads, they dont care
if your app is doing reflection - they just run the method with its required
inputs as if you were running it and report on success or failure.

--
Regards

John Timney (MVP)
VISIT MY WEBSITE:
http://www.johntimney.com
http://www.johntimney.com/blog
"Chacko" <ja*********@gmail.comwrote in message
news:11**********************@80g2000cwy.googlegro ups.com...
Thanx man...
I guess i forgot to state this...Is it possible through Reflection?

John Timney (MVP) wrote:
You could write athreaded test harness to test there remoting elements,
acting on the remoting inouts and outputs - or you could resort to unti
testing i=using something like mbunit or nunit

--
--
Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
"Chacko" <ja*********@gmail.comwrote in message
news:11*********************@l12g2000cwl.googlegro ups.com...

Hi could anyone tell me how to simulate multiple clients for a windows
form without actually me having to copy paste the code. Cause its a
real pain....
The thing is i am working on remoting which u guys must have guessed by
now...
And then this is i have a windows form is which is the client and i
have a listener... Now when i need to have multiple clients basically i
got to copy paste the codes and its actually a pain...
Need Urgent Help!!!1

Thank you
Jan 2 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
469
by: Ken Allen | last post by:
I am relatively new to .Net and C#, but I hav ebeen programing in other languages and done some COM work for a number of years. I am attempting to understand how to map an older program...
3
1004
by: User | last post by:
Hi, How can I connect multiple clients to a server using one socket? I just need a link to url or an idea about how to do it! Thank you.
5
4426
by: | last post by:
Hi all, HttpWebRequest, and SoapHttpClientProtocol both expose a ClientCertificates property, which can hold multiple client certificates, but on the service side, it can only receive one client...
3
2275
by: D. Yates | last post by:
Hi, I'm about to embark on a project that will both send and receive information to/from our client computers in the field. The area that I still need to finalize is the method of...
35
9298
by: keerthyragavendran | last post by:
hi i'm downloading a single file using multiple threads... how can i specify a particular range of bytes alone from a single large file... for example say if i need only bytes ranging from...
0
1987
by: pvrsatya | last post by:
Hi How to handle the Multiple clients in TCP server program . can u please send me the example of server program handle the multiple clients
2
1985
by: ShashiGowda | last post by:
Hey there i made a script to download all images from a web site but it runs damn slow though I have a lot of bandwidth waiting to be used please tell me a way to use urllib to open many...
0
1217
by: anny1 | last post by:
i want to do an applcation to know about session. there sould be 2wa connection with client to server(req-reply) .. my criteria is lik ths: one client when connect to server..server should send a...
0
1357
by: anny1 | last post by:
i want to do an applcation to know about session. there sould be a connection with client to server(req-reply) .. my criteria is lik ths: one client when connect to server..server should send a...
0
7212
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7098
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7470
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5604
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3186
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1524
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
405
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.