ADFS web test

Hi all, I am new to Visual Studio Web Test. Does anyone have any experience with ADFS web testing I encounter a problem when the test case (recorded test case) expected result is different from what is being produced by the system.

I setup my ADFS system based on "Step-by-Step Guide for Active Directory Federation Services" . It works well via manual testing.

When I recorded the test case using Visual Studio Team Edition and run it, the expected result is always different from the actual result. (I set pre-authentication to "true", and put in the correct username and password). What might be the possible mistake that I made




Answer this question

ADFS web test

  • Magda42514

    See this article for more information about Web Tests that contain javascript.

    http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnvs05/html/WTAuthDebug.asp


  • rc1

    How does the hidden field wa get set. Is it set when the page is submitted in a javascript handler If so that is the problem. You will need to hardcode the value in the webtest to whatever the javascript set it to. If this is not the case the html code would help.

  • Ravi Kumar Patel

    sorry for not detailing the problem. When I was recording the test case, IE didn't show me a html page which has a form in it (this form has a select option where you can choose which federation server you want to authenticate with), instead, it pre-selected the federation server from the form for me and submitted the request.

    When I did the test, it failed because it showed the form and waiting for my input to select the federation server that I want. This is what I meant by "the expected results is different from the actual result".

    The error I got is as follow:

    Request failed: Context parameter ‘$HIDDEN1.wa’ not found in test context.

    I will post the form html code if it will help to solve the problem.

  • Amit V

    Could you clarify what you mean when you say "the expected results is always different from the actual result"

    Be aware that when a web test is run and displayed in the Web Test Result Viewer, that javascript is not executed. This is intentional because the load test engine does not execute javascript when retrieving web pages and we want the Web Test Result Viewer to give you an acturate picture of what's going to happen during the load test.

    Thanks,
    Rick


  • RELJR

    This might have the answer to my problem.. Thanks for the link ! :)

  • ADFS web test