Missing something fundamental?

Hello!

Im new to using the test features in Visual Studio.
I tried some simple webtests and loadtests and it works good.

But over to my problem:

Two computers involved:
1. My computer with VS 2005 RC
2. Webserver running web application hooked to a Oracle DB.

I record a new web test:
1. I enter username / password and press login.
2. I am being transfered to a page where I can perform different tasks involving a Oracle database. I do some changes to the database.
3. I log out.

Recording everything works like a charm.
But I cannot play this web test without an error on the login page!
So everything that is recorded after the login is never done when running the test.

Details over the error:

Microsoft.VisualStudio.TestTools.WebTesting.WebTestException: Context parameter '$HIDDEN1.SetMyAction' not found in test context
at Microsoft.VisualStudio.TestTools.WebStress.WebTestInstrumentedTransaction.UpdateBindingSites(String preBoundString)
at Microsoft.VisualStudio.TestTools.WebStress.WebTestInstrumentedTransaction.PerformRequestDataBinding()
at
Microsoft.VisualStudio.TestTools.WebStress.WebTestInstrumentedTransaction.Execute(WebTestCaseContext testCaseContext, AsyncCallback completionCallback, Object callerState)

This is a code related issue.
But I cannot understand why I get the error.

Isn't a recorded web test exactly the same as "surfing" it?

[1480 byte] By [TedStrom] at [2007-12-17]
# 1
Ted-

Your question: Isn't a recorded web test exactly the same as "surfing" it?

The answer is it depends on the site configuration.

To debug this, run another recorded test and see what is set in the context parameter: $HIDDEN1.SetMyAction

I have a feeling that value is either not being set. You can manually set that value by navigating to it and setting the value.

Thanks,
Ben

BenWaldron at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - Web and Load Testing...
# 2
Ted,
Ben is exactly right. That error indicates that $HIDDEN1.SetMyAction was expected to be in the web test context, but it wasn't for some reason. Generally this means the previous page did not contain the same content when the test ran as it did during recording.

Josh

JoshChristieMS at 2007-9-9 > top of Msdn Tech,Visual Studio Team System,Visual Studio Team System - Web and Load Testing...

Visual Studio Team System

Site Classified