I have an automated test that runs against a Silverlight application. At some points I connect to the database to verify that the data persisted correctly. In these cases, I write code in a test step to connect to the database. I use a hard coded connection string in my coded step. The only problem is that my Silverlight application may be using different databases depending on the environment. (i.e. QA, Dev, Production) I do not want to change my connection string (in every coded step) every time I go against a different database. Is there a better way to easily change my connection string when I am running my automated test? Maybe there is a global setting or configuration file that I may use to put these values. What is the best way to handle this situation? Please let me know.
4658 | 4/11/2012 10:38:52 AM | Information | The TestList run prepartion failed and execution cannot continue! Error message: Object reference not set to an instance of an object. StackTrace: at ArtOfTest.WebAii.Design.ProjectModel.Test.NeedToCompile() at Telerik.TestStudio.Scheduling.WindowsService.ExecutionEngineRunner.ExecuteList(TestList list, Project project, Settings settings, String binaryFolder, String projectPath, String resultName) at Telerik.TestStudio.Scheduling.WindowsService.ExecutionEngineRunner.StartRun(Object runArg) |
All of my previously working FireFox based tests are now failing about 25% of the time with the following error. The only solution I have found is to add a 2 second delay before each action and setting the steps to 'FireFox' only. Even this doesn't always work.
Suggestions?
Overall Result: Fail
------------------------------------------------------------
'3/23/2012 3:20:06 PM' - Using .Net Runtime version: '4.0.30319.239' for tests execution.
'3/23/2012 3:20:06 PM' - Starting execution....
------------------------------------------------------------
------------------------------------------------------------
'3/23/2012 3:20:09 PM' - Using 'FireFox' version '11.0' as default browser.
'3/23/2012 3:20:27 PM' - 'Fail' : 1. Execute test 'FireFox & IE - Login - Nav to Main'
>>> Test-as-Step 'Fragments\FireFox & IE - Login - Nav to Main.tstest' log starts:
Overall Result: Fail
------------------------------------------------------------
'3/23/2012 3:20:09 PM' - Using 'FireFox' version '11.0' as default browser.
'3/23/2012 3:20:10 PM' - 'Pass' : 1. Navigate to : '/'
'3/23/2012 3:20:11 PM' - 'Pass' : 2. Click 'LoginToPBISLink'
'3/23/2012 3:20:13 PM' - 'Pass' : 3. Click 'CoordinatorTab'
'3/23/2012 3:20:18 PM' - 'Pass' : 4. Enter text 'X' in 'UserNameField'
'3/23/2012 3:20:20 PM' - 'Pass' : 5. Keyboard (KeyPress) - Tab (1 times) on 'PasswordField'
'3/23/2012 3:20:23 PM' - 'Pass' : 6. Enter text '123456' in 'PasswordField'
'3/23/2012 3:20:24 PM' - 'Pass' : 7. Click 'OtherBlueLoginButton'
'3/23/2012 3:20:26 PM' - 'Pass' : 8. Wait for '2000' msec.
'3/23/2012 3:20:27 PM' - 'Fail' : 9. Verify element 'WhiteLoginButton' 'is' visible.
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
ExecuteCommand failed!
InError set by the client. Client Error:
mozCommandProcessor: ProcessInformationCommand(): Document is not ready to retrieve its markup.
BrowserCommand (Type:'Information',Info:'DocumentMarkup',Action:'NotSet',Target:'null',Data:'',ClientId:'edfba8f1-05b9-49db-b989-af663bd68d67',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'mozCommandProcessor: ProcessInformationCommand(): Document is not ready to retrieve its markup.')
InnerException: none.
Couldn't access frameId in BuildFramenfo; skipping frame
Hearbeat state not found
Attempted to use a disconnected port object