HighTechTalks DotNet Forums  

Re: ACT Authentication errors

Dotnet Framework (Performance) microsoft.public.dotnet.framework.performance


Discuss Re: ACT Authentication errors in the Dotnet Framework (Performance) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Sathya
 
Posts: n/a

Default Re: ACT Authentication errors - 03-28-2006 , 03:17 AM






Hi,
Hope this may solve your problem..

To record by using an application that uses Windows authentication

1. Enable basic authentication, in addition to
Integrated Windows authentication, on your IIS server.

2. Record the ACT test script for testing your
application. Provide the appropriate domain, user name, and passwords
for your Web application when prompted by the tool.

3. Change the Web application configuration back to
Integrated Windows authentication.

4. Comment out or delete the following line of each
request in the test script, which was recorded in Step 2.

5. oHeaders.Add "Authorization", "Basic XYZ"

6. Set up the ACT users (using a separate user group
if needed) with the proper domains, user names, and passwords that you
want to simulate.

7. For each request, change the following line in the
script:

8. oRequest.HTTPVersion = "HTTP/1.0"

9. to:

10. oRequest.HTTPVersion = "HTTP/1.1"

11. Run the ACT test script.

Check this URL for more information:

URL :
http://msdn.microsoft.com/library/de...nethowto10.asp

Regards,
Sathyajith V K [Bangalore,India]
Sr. Performance Analyst


Reply With Quote
  #2  
Old   
chen
 
Posts: n/a

Default Re: ACT Authentication errors - 03-28-2006 , 10:46 AM






Infact based on the url, i did create a simple ACT script to test the
web method like so...


' VBScript source code
Option Explicit
On Error Resume Next

Dim connection
Dim body
Dim oRequest
Dim oResponse


set connection = Test.CreateConnection("<machine_name>", 80, false)

if ( connection is nothing ) then
Test.Trace("Error: Unable to create connection")
end if


set oRequest = Test.CreateRequest

' Depending on which one you are interested in stress testing, change
the Path
oRequest.Path = "/SecurityTest/Test.asmx"
oRequest.Verb = "POST"
oRequest.HTTPVersion = "HTTP/1.1"

oRequest.Headers.RemoveAll
oRequest.Headers.Add "Host", "(automatic)"
oRequest.Headers.Add "SOAPAction", "Security.Test/TestFunction"
oRequest.Headers.Add "Content-Type", "text/xml; charset=utf-8"
oRequest.Headers.Add "Content-Length", "(automatic)"



body = "<?xml version=" & chr(34) & "1.0" & chr(34) & " encoding=" &
chr(34) & "utf-8" & chr(34) & "?>"
body = body & "<soap:Envelope xmlns:xsi=" & chr(34) &
"http://www.w3.org/2001/XMLSchema-instance"& chr(34) & " xmlns:xsd="&
chr(34) & "http://www.w3.org/2001/XMLSchema"& chr(34) & " xmlns:soap="&
chr(34) & "http://schemas.xmlsoap.org/soap/envelope/"& chr(34) & ">"
body = body & " <soap:Body>"
body = body & " <TestFunction xmlns=" & chr(34) & "Security.Test" &
chr(34) & " />"
body = body & " </soap:Body>"
body = body & "</soap:Envelope>"


oRequest.Body = body

set oResponse = connection.Send(oRequest)

If (oResponse Is Nothing) Then
Call Test.Trace("Error: invalid request or host not found ")
Else
Call Test.Trace("Status code:" & oResponse.ResultCode & " Body: " &
oResponse.Body)
End If


And the script does work... if i enable Anonymous access, this works
quite well. Infact the perf difference is significantly lower with
Integrated Windows. What is still don't understand is why is every 3rd
attempt failing?? [i've tried this simple script on multiple m/cs and i
get similar results]

Btw, the web service is running on Win2003 Server with IIS 6.0.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.