473,587 Members | 2,533 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to test performance using the ACT

Hello,
I have developted a webservice application. The application has a few
webservices each webservice with their own webmethods of course.
I want to measure the performance of my site. I look at the Application
Center Test of Visual Studio Enterprice edition, but can not make it to work
with the web services. I can't figure out how to call the web services from
an ACT test. It seems it only can work with aspx pages not web services asmx
(where you have to call the web method)
Eventhought you can create you own ACT projects from Visual Studio the only
laguages supported are vbscript and javascript.
Help!!!
Does any of you have tested performance on webservices?
/Alexis
Nov 23 '05 #1
3 2403
Hello

There are two ways you can do it.

Case 1:

1. Create a proxy class DLL in C# or any .NET or COM.
2. If its C# or .NET regiter (gacutil.exe )it in GAC, by make it as interop
using regasm.exe.
3. Now write a script in ACT to instansite the object and call the method.

Case 2:

1. In ACT create a web request.
2. Build the soap request ( you can lauch the .asmx is IE and get the SOAP
request format"
3. now post the request e.g like below


Set oConnection = Test.CreateConn ection(serviceS erver, servicePort, false)
If (oConnection is Nothing) Then
Test.Trace "Error: Unable to create connection to " & serviceServer & ":" &
servicePort
Test.StopTest
Else
Set oRequest = Test.CreateRequ est
oRequest.Path = serviceUrl
oRequest.Verb = "POST"
oRequest.HTTPVe rsion = "HTTP/1.1"
oRequest.Encode Body = false
Set oHeaders = oRequest.Header s
'-------------------------------------------------------------------------
' Add Request header information
'-------------------------------------------------------------------------
oHeaders.Remove All
oHeaders.Add "Accept", "image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, */*"
oHeaders.Add "Accept-Language", "en-us"
oHeaders.Add "Content-Type", "text/xml; charset=utf-8"
oHeaders.Add "User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0;
Windows NT 5.2; H010818; .NET CLR 1.0.3705; .NET CLR 1.1.4322)"
oHeaders.Add "Host", "(automatic )"
oHeaders.Add "Pragma", "no-cache"
oHeaders.Add "Cookie", "(automatic )"
oHeaders.Add "Content-Length", "(automatic )"
oHeaders.Add "SOAPAction ", soapAction
'------------------------------------------------------------------------------------------------------------
' Create the Request in memory
'------------------------------------------------------------------------------------------------------------
Dim ReqStr
ReqStr = ""
ReqStr = ReqStr + "<?xml version=""1.0"" encoding=""utf-8""?>"
ReqStr = ReqStr + "<soap:Enve lope
xmlns:xsi=""htt p://www.w3.org/2001/XMLSchema-instance""
xmlns:xsd=""htt p://www.w3.org/2001/XMLSchema""
xmlns:soap=""ht tp://schemas.xmlsoap .org/soap/envelope/"">
<soap:Body>
<HugeText2500 xmlns=""http://tempuri.org/"" />
</soap:Body>
</soap:Envelope>"
Set oResponse = oConnection.Sen d(oRequest)

If (oResponse is Nothing) Then
............... ..............

Cheers :)
Geoman
"Alexis" wrote:
Hello,
I have developted a webservice application. The application has a few
webservices each webservice with their own webmethods of course.
I want to measure the performance of my site. I look at the Application
Center Test of Visual Studio Enterprice edition, but can not make it to work
with the web services. I can't figure out how to call the web services from
an ACT test. It seems it only can work with aspx pages not web services asmx
(where you have to call the web method)
Eventhought you can create you own ACT projects from Visual Studio the only
laguages supported are vbscript and javascript.
Help!!!
Does any of you have tested performance on webservices?
/Alexis

Nov 23 '05 #2
Hello and Thank you.
One question thought.
in your samle code is ReqStr the Body of the Request?

"Geoman" wrote:
Hello

There are two ways you can do it.

Case 1:

1. Create a proxy class DLL in C# or any .NET or COM.
2. If its C# or .NET regiter (gacutil.exe )it in GAC, by make it as interop
using regasm.exe.
3. Now write a script in ACT to instansite the object and call the method.

Case 2:

1. In ACT create a web request.
2. Build the soap request ( you can lauch the .asmx is IE and get the SOAP
request format"
3. now post the request e.g like below


Set oConnection = Test.CreateConn ection(serviceS erver, servicePort, false)
If (oConnection is Nothing) Then
Test.Trace "Error: Unable to create connection to " & serviceServer & ":" &
servicePort
Test.StopTest
Else
Set oRequest = Test.CreateRequ est
oRequest.Path = serviceUrl
oRequest.Verb = "POST"
oRequest.HTTPVe rsion = "HTTP/1.1"
oRequest.Encode Body = false
Set oHeaders = oRequest.Header s
'-------------------------------------------------------------------------
' Add Request header information
'-------------------------------------------------------------------------
oHeaders.Remove All
oHeaders.Add "Accept", "image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, */*"
oHeaders.Add "Accept-Language", "en-us"
oHeaders.Add "Content-Type", "text/xml; charset=utf-8"
oHeaders.Add "User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0;
Windows NT 5.2; H010818; .NET CLR 1.0.3705; .NET CLR 1.1.4322)"
oHeaders.Add "Host", "(automatic )"
oHeaders.Add "Pragma", "no-cache"
oHeaders.Add "Cookie", "(automatic )"
oHeaders.Add "Content-Length", "(automatic )"
oHeaders.Add "SOAPAction ", soapAction
'------------------------------------------------------------------------------------------------------------
' Create the Request in memory
'------------------------------------------------------------------------------------------------------------
Dim ReqStr
ReqStr = ""
ReqStr = ReqStr + "<?xml version=""1.0"" encoding=""utf-8""?>"
ReqStr = ReqStr + "<soap:Enve lope
xmlns:xsi=""htt p://www.w3.org/2001/XMLSchema-instance""
xmlns:xsd=""htt p://www.w3.org/2001/XMLSchema""
xmlns:soap=""ht tp://schemas.xmlsoap .org/soap/envelope/"">
<soap:Body>
<HugeText2500 xmlns=""http://tempuri.org/"" />
</soap:Body>
</soap:Envelope>"
Set oResponse = oConnection.Sen d(oRequest)

If (oResponse is Nothing) Then
............... .............

Cheers :)
Geoman
"Alexis" wrote:
Hello,
I have developted a webservice application. The application has a few
webservices each webservice with their own webmethods of course.
I want to measure the performance of my site. I look at the Application
Center Test of Visual Studio Enterprice edition, but can not make it to work
with the web services. I can't figure out how to call the web services from
an ACT test. It seems it only can work with aspx pages not web services asmx
(where you have to call the web method)
Eventhought you can create you own ACT projects from Visual Studio the only
laguages supported are vbscript and javascript.
Help!!!
Does any of you have tested performance on webservices?
/Alexis

Nov 23 '05 #3
Its the whole request which would be send to the server. if you look closely
you can see the body.......

<soap:Body>
<HugeText2500 xmlns=""http://tempuri.org/"" />
</soap:Body>
</soap:Envelope>"

thanks
Geo

"Alexis" wrote:
Hello and Thank you.
One question thought.
in your samle code is ReqStr the Body of the Request?

"Geoman" wrote:
Hello

There are two ways you can do it.

Case 1:

1. Create a proxy class DLL in C# or any .NET or COM.
2. If its C# or .NET regiter (gacutil.exe )it in GAC, by make it as interop
using regasm.exe.
3. Now write a script in ACT to instansite the object and call the method.

Case 2:

1. In ACT create a web request.
2. Build the soap request ( you can lauch the .asmx is IE and get the SOAP
request format"
3. now post the request e.g like below


Set oConnection = Test.CreateConn ection(serviceS erver, servicePort, false)
If (oConnection is Nothing) Then
Test.Trace "Error: Unable to create connection to " & serviceServer & ":" &
servicePort
Test.StopTest
Else
Set oRequest = Test.CreateRequ est
oRequest.Path = serviceUrl
oRequest.Verb = "POST"
oRequest.HTTPVe rsion = "HTTP/1.1"
oRequest.Encode Body = false
Set oHeaders = oRequest.Header s
'-------------------------------------------------------------------------
' Add Request header information
'-------------------------------------------------------------------------
oHeaders.Remove All
oHeaders.Add "Accept", "image/gif, image/x-xbitmap, image/jpeg,
image/pjpeg, */*"
oHeaders.Add "Accept-Language", "en-us"
oHeaders.Add "Content-Type", "text/xml; charset=utf-8"
oHeaders.Add "User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0;
Windows NT 5.2; H010818; .NET CLR 1.0.3705; .NET CLR 1.1.4322)"
oHeaders.Add "Host", "(automatic )"
oHeaders.Add "Pragma", "no-cache"
oHeaders.Add "Cookie", "(automatic )"
oHeaders.Add "Content-Length", "(automatic )"
oHeaders.Add "SOAPAction ", soapAction
'------------------------------------------------------------------------------------------------------------
' Create the Request in memory
'------------------------------------------------------------------------------------------------------------
Dim ReqStr
ReqStr = ""
ReqStr = ReqStr + "<?xml version=""1.0"" encoding=""utf-8""?>"
ReqStr = ReqStr + "<soap:Enve lope
xmlns:xsi=""htt p://www.w3.org/2001/XMLSchema-instance""
xmlns:xsd=""htt p://www.w3.org/2001/XMLSchema""
xmlns:soap=""ht tp://schemas.xmlsoap .org/soap/envelope/"">
<soap:Body>
<HugeText2500 xmlns=""http://tempuri.org/"" />
</soap:Body>
</soap:Envelope>"
Set oResponse = oConnection.Sen d(oRequest)

If (oResponse is Nothing) Then
............... .............

Cheers :)
Geoman
"Alexis" wrote:
Hello,
I have developted a webservice application. The application has a few
webservices each webservice with their own webmethods of course.
I want to measure the performance of my site. I look at the Application
Center Test of Visual Studio Enterprice edition, but can not make it to work
with the web services. I can't figure out how to call the web services from
an ACT test. It seems it only can work with aspx pages not web services asmx
(where you have to call the web method)
Eventhought you can create you own ACT projects from Visual Studio the only
laguages supported are vbscript and javascript.
Help!!!
Does any of you have tested performance on webservices?
/Alexis

Nov 23 '05 #4

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

Similar topics

0
4294
by: Randell D. | last post by:
Folks, Ever since reading an interesting article in Linux Format on PHP whereby suggested code writing was made that could enhance performance on a server, I've started testing various bits of code everytime I found more than one method to perform a single task. I timed each method to find which would complete faster. I thought I'd share my...
1
2310
by: Bob | last post by:
Are there any known applications out there used to test the performance of the .NET garbage collector over a long period of time? Basically I need an application that creates objects, uses them, and then throws them away and then monitors the garbage collection and store statistics on it, preferably in C#. I want to know what is the longest...
11
9231
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in C++. I find my self sometimes, trying Object app = Object(); Object *app = Object(); Object app = new Object();
22
1945
by: Alex Martelli | last post by:
I have fixed almost all of the outstanding bugreports and feature request for gmpy: divm doesn't leak memory any more, truediv and floordiv are implemented for all types, etc -- in the current CVS version (one thing I must still look at is divm's behavior when its args are not mutually prime). It currently compiles w/o warnings, and passes...
5
2576
by: Dmitry Martynov | last post by:
Consider I have the following construction "if(x is T) ...". How much this test cost? And I wonder how it is implemented. Can I gain in performace if I introduce virtual methods like "bool isIt...()" in my base class and then call them instead of using is-operator?
9
2852
by: Steve Sargent | last post by:
Hi: I'm trying to debug the following code, and it keeps looping on the if statement: public static bool operator == (OnlineMemberNode first, OnlineMemberNode second) { if(first == null) {
6
7190
by: SevDer | last post by:
Is there a way to test guid string? I want to do it without try catch block to save on performance. Thanks in advance. -- SevDer
6
5679
by: Vyacheslav Maslov | last post by:
Hi all! I have many many many python unit test, which are used for testing some remote web service. The most important issue here is logging of test execution process and result. I strongly need following: 1. start/end timestamp for each test case (most important) 2. immediate report about exceptions (stacktrace) 3. it will be nice to...
0
1213
by: H - Recruiter - Testing | last post by:
Dear Candidate, Hope you are doing well. One of our CMM level 5 clients, SATYAM has urgent requirement for SR. PERFORMANCE TEST ENGG. Please mail your resume across ASAP with following details: Relevant experience in PERFORMANCE TESTING: Current CTC: Exp CTC: Notice Period: Location:
0
7923
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8216
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8221
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6629
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5395
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3845
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3882
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2364
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 we have to send another system
0
1192
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.