------------------------------------------------------------
'2012/02/20 03:06:26 PM' - Using .Net Runtime version: '4.0.30319.239' for tests execution.
'2012/02/20 03:06:26 PM' - Starting execution....
'2012/02/20 03:06:26 PM' - Detected a Silverlight Test. Setting EnableSilverlight=True
------------------------------------------------------------
------------------------------------------------------------
'2012/02/20 03:06:33 PM' - Using 'InternetExplorer' version '9.0' as default browser.
'2012/02/20 03:07:18 PM' - 'Fail' : 1. Verify Item0Image's visibility is Visible
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Unable to find the Silverlight plugin on the following page:'about:blank' using the following expression:'[id 'Exact' silverlightControlHost] AND [tagname 'Exact' div][tagname 'Exact' object]'. Exception: ArtOfTest.Common.Exceptions.FindElementException: Element Not found!
at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait)
at ArtOfTest.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
at ArtOfTest.WebAii.Synchronization.Wait.ForCondition(Func`3 condition, Boolean invertCondition, Object custom, Int32 timeout, WaitResultType errorResultType)
at ArtOfTest.WebAii.Synchronization.Wait.ForExists(Int32 timeout, Boolean refreshElement)
at ArtOfTest.WebAii.Synchronization.Wait.ForExists(Int32 timeout)
at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.GetHost(IAutomationHost topBrowser, ElementDescriptor element, Int32 hostFindTimeout, Int32 appConnectTimeout, Boolean cachedSLAppOnly, String& error)
InnerException:
System.Exception: Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Unable to find the Silverlight plugin on the following page:'about:blank' using the following expression:'[id 'Exact' silverlightControlHost] AND [tagname 'Exact' div][tagname 'Exact' object]'. Exception: ArtOfTest.Common.Exceptions.FindElementException: Element Not found!
at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait)
at ArtOfTest.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
at ArtOfTest.WebAii.Synchronization.Wait.ForCondition(Func`3 condition, Boolean invertCondition, Object custom, Int32 timeout, WaitResultType errorResultType)
at ArtOfTest.WebAii.Synchronization.Wait.ForExists(Int32 timeout, Boolean refreshElement)
at ArtOfTest.WebAii.Synchronization.Wait.ForExists(Int32 timeout)
at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.GetHost(IAutomationHost topBrowser, ElementDescriptor element, Int32 hostFindTimeout, Int32 appConnectTimeout, Boolean cachedSLAppOnly, String& error)
at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.WaitForAllElements(IAutomationHost host, AutomationDescriptor descriptor, Int32 timeout)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
------------------------------------------------------------
'2012/02/20 03:07:18 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'2012/02/20 03:07:18 PM' - Overall Result: Fail
'2012/02/20 03:07:18 PM' - Duration: [0 min: 45 sec: 375 msec]
------------------------------------------------------------
'2012/02/20 03:07:20 PM' - Test completed!
Thanks
Lenore
'02/17/12 3:53:48 PM' - System.ApplicationException: Exception thrown attempting to launch Internet Explorer. Please make sure Internet Explorer is properly installed and you are able to launch it. ---> System.Management.ManagementException: Invalid class at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) at System.Management.ManagementObject.Get() at ArtOfTest.Common.Extensions.ProcessExtensions.GetParentProcess(Process process) at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename) --- End of inner exception stack trace --- at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename) at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments) at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InitializeWeb(ExecutionEngineCreateParams initParams) at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.CreateAndInitializeEngine(Test test, ExecutionEngineCreateParams cp) at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(ExecuteTestCommand command)------------------------------------------------------------'02/17/12 3:53:48 PM' - Test completed!
function Login()
{
var iexplore, URL,app,bi,us,pwd,lb;
iexplore =
TestedApps["iexplore"]["Run"]();
URL = "http://xxxxxxxxx/xxx/";
if (!iexplore.WaitPage("*", 10000)["Exists"])
Sys["Keys"]("[Esc]");
iexplore["WaitPage"]("*", 2000)["ToURL"](URL);
iexplore.WaitChild("form1",5000);
app = iexplore["Page"]("http://xxxxxxxxxxxxx/xxx/")["Form"]("form1")["Panel"]("silverlightControlHost")["Object"]("XXXSLApp");
bi = app["SlObject"]("RadBusyIndicator","");
us = bi["SlObject"]("PART_ExtendedTextbox");
us.Keys("username");
pwd = bi["SlObject"]("Password");
pwd.Keys("password");
lb = bi["SlObject"]("LoginButton");
lb.Click();
}
if(Pages.HardCatNextGen.SilverlightApp.FalseTextblock.Wait.ForExists(1000))