Telerik Forums
Testing Framework Forum
3 answers
79 views
Hi,
I update to Telerik_Testing_Framework_2011_1_502_FREE_EDITION version, and find out the DeskTop simulation broken for mouse hoverover and mouse move ..
So I roll back to WebAii_Testing_Framework_2010_3_1421_FREE_EDITION now working fine.

Did any one has same problem , if you have solution , pls let me know.

Thanks,

Allan
Stoich
Telerik team
 answered on 08 Jun 2011
2 answers
83 views
Hello

To reproduce use this page:

test.html
<!DOCTYPE html>
 
<style>
#div1
{
    background:blue;
    position:absolute;
    top:40px; left:40px;
    width: 300px; height:299px;
}
</style>
 
<div id=div1></div>


and this code:
var rect = Manager.Current.ActiveBrowser.Find.ById("div1").GetRectangle();
 
Form form = null;
 
form = new Form();               
form.BackColor = Color.Red;
form.FormBorderStyle = FormBorderStyle.None;
form.Opacity = 0.7;
 
form.Show();
form.Location = rect.Location;
form.Size = rect.Size;
 
 
for(var i = 0; i < 10; i++) {               
    form.Activate();
    form.Refresh();
 
    Thread.Sleep(500);
}
 
form.Dispose();

In IE8 and Firefox the created window will match the blue div exactly.
In IE9 it will be positioned with 2px offset (to the right-bottom)

In some scenarios it causes wrong desktop actions.
Alexey Ivanov
Top achievements
Rank 1
 answered on 08 Jun 2011
1 answer
106 views

hi,

i am getting the following error while installing the HP Quality Center in PC  for my project requirement.i am getting this error when i am trying to do installation by using the link  http://qat.nissan-ix.com/qcbin/start_a.htm 

Even though i had closed all connections to server and tried for many times as it shows , i am getting the same error

please guide me how to resolve this issue.


the below is the error :


Following client components were not downloaded successfully:

1 . vcredist_x86.exe :
Cannot download.Check this file is present on server.

Close all connections to Server and try again.

regards,
venkata siva kumar





Stoich
Telerik team
 answered on 06 Jun 2011
3 answers
80 views
Test As Step is this option available for Free Telerik Testing Framework?
if so please give me an example code how can I use that feature. I am not using Test Studio
I want to code using c#.

Anthony
Telerik team
 answered on 03 Jun 2011
7 answers
141 views
In our setup we use tfs, teambuild 2010 and Webaii testframework together with nunit.
We can test in safari without problems, but our baseline browser is chrome.
Also we want to be able to test using safari and chrome in one test.

When we run nunit manually to drive our tests, everything works fine in Chrome.
But when we run the same tests in our build Chrome hangs. Chrome opens the url: http://localhost:<random number>/webui?<random number>.
30 Chrome windows are open like this until we stop the build, in our test we only open 2 browser instances.

We really can use some help, because we are tryining to fix this issue for a long time now, without any luck.

Thanks in advance,
Henry

By the way, the WebUi extension is installed.
Daniel Djambov
Telerik team
 answered on 03 Jun 2011
6 answers
178 views
Hey all,

I just tried installing build 2011.1.502 & .511 but when I attempt to debug in VS, I'm plagued with "Function evaluation disabled because a previous function evaluation timed out. You must continue execution to reenable function evaluation." errors.  This was a rare occurrence in previous builds.  Is there any sort of work around to this issue, as I really need to debug some issues with upgrading to this version.

Thanks.
Cody
Telerik team
 answered on 01 Jun 2011
4 answers
81 views
Hi,

I have an issue with the FindExpressionCollection<HtmlFindExpression>.Load(string filename)

if it try loading a file that has XPaths with sub functions such as

<?xml version.....

<FindExpressionICollectionOfHtmlFindExpression>

<FindExpressionItem key="a">XPath="//a[contains(@href,'myownvalue')]"</FindExpressionItem>

</FindExpressionICollectionOfHtmlFindExpression>


So the problem here is while loading due to comma between @href and the value Load method is considering this to be two clauses, where it is only one clause, is there any way to instruct the load method to consider this to be one comma?????

PS: What I am explaining here is just an example but I have a large number of such XPaths to be taken care of so, please do not tell me a different way to find the anchor with href myownvalue.

Thanks,
Koti Reddy. S

*Telerik Admin edited this post because of innapropriate language
Stoich
Telerik team
 answered on 31 May 2011
1 answer
107 views
Hi,
I am trying to use .settings file to take care of my web objects. Like, i have a web page where i have a  text box.

Please see the file that i attached to have a look at my settings file in VS.

I have given name for my object as "MyTextBoxHere", type as "ArtOfTest.WebAii.Controls.HtmlControls.HtmlInpuTextbox", scope as "user" and i am not sure of the format of passing the value....

However, i tried to pass html tag name, ID etc..but, when i tried to save the same , i was getting an error pop up like, cannot convert to an instance of type "ArtOfTest.WebAii.Controls.HtmlControls.HtmlInpuTextbox"
Stoich
Telerik team
 answered on 31 May 2011
7 answers
168 views
Hello

In Firefox 4 with the latest release Browser.ContentWindow coordinates are incorrect.
Run this code:

var point = Manager.Current.ActiveBrowser.ContentWindow.Location;
Manager.Current.Desktop.Mouse.HoverOver(point);


The mouse cursor will point at the left top corner of the main browser window.
Several of my tests are dependant on the location of the document window and they fail in FF4.

Cody
Telerik team
 answered on 31 May 2011
8 answers
202 views
I am trying to write  automation scrip to verify the silverlight UI .
I have menu Home when I expand that it will list two items this one works good when i do manually but i use to get the following error when I try to automate using code or  teststudio at this particular step i get the error.

below is the code and error message.Thanks in advacne for the help
Note : I have attached the screenshot of the TestStudio.

 

public void

menuHome_UIvalidation()

 

 

 

{

 

 

FrameworkElement a = this.App.Find.ByTextContent("Home" ); 

 

a.User.HoverOver();

a.User.Click();

 

var menuSubItem_Approvals = this.App.Find.ByTextContent("Approvals");
Assert.IsTrue(menuSubItem_Approvals.TextContent == "Approvals");

 

ClassLibrary2.Homepage_Navigation.menuHome_UIvalidation:
System.ApplicationException : Exception thrown during the wait for a condition. Error: Unexpected error while waiting on condition. Error: ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
InError set by the client. Client Error:
System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
   at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args)
   at ArtOfTest.InternetExplorer.JsObjectWrapper.GetProperty(String property)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessSilverlightCommand(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
BrowserCommand (Type:'Silverlight',Info:'NotSet',Action:'NotSet',Target:'ElementId (tagName: 'object',occurrenceIndex: '0')',Data:'{"Method":null,"Property":null,"Reference":null,"Reference2":null,"Type":12,"Value":null}',ClientId:'Client_6405d7ad-8b7b-4492-add5-0cd10e0c8eed',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
   at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
   at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args)
   at ArtOfTest.InternetExplorer.JsObjectWrapper.GetProperty(String property)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessSilverlightCommand(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
InnerException: none.

 

    at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
   at ArtOfTest.WebAii.Silverlight.SilverlightProxy.ExecuteSLCommand(SilverlightCommand cmd)
   at ArtOfTest.WebAii.Silverlight.SilverlightProxy.GetAllVisualTrees()
   at ArtOfTest.WebAii.Silverlight.SilverlightApp.RefreshVisualTrees()
   at ArtOfTest.WebAii.Silverlight.VisualFind.RefreshRoot()
   at ArtOfTest.WebAii.Silverlight.VisualWait.WaitForExistsByFindInfo(VisualFindInfo findInfo)
   at ArtOfTest.Common.WaitAsync._worker_DoWork[T,V](Object waitParam)

 

 

 

Vladislav
Telerik team
 answered on 31 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?