Telerik Forums
Testing Framework Forum
2 answers
103 views
What are the terms of use around this file? Since WebAii isn't allowed in the production code, we have a seperate project to use WebAii. But, this file needs to live inside production code... if this is allowed, could you please email me the licence?

If it's not allowed in production code, I'll just write my own logger. We need some kind of string communication between the javascript and C# unit tests. Our unit tests need a way to read return values that can't be implicitly read as strings.

edit: I mean WebAii_Logging.js (got C# on the brain)
Christopher
Telerik team
 answered on 23 Apr 2010
3 answers
94 views

Seems the server isn't accepting posts?
Atanas
Telerik team
 answered on 22 Apr 2010
2 answers
114 views
Hi
I like your Test studio alot, but Ive run into a problem in an advanced scenario.
I have a popup window where the user can upload images, but when the submit button is clicked I use jquery to refresh the parent window and close the popup window. During automated testing, however, this does not work.
I have attached the error message IE gives me.
I know this is kind of a special scenario, but do you know of any workaround?

jquery code: communication-between-browser-windows-with-jquery

 
// triggers an event in the parent window. Returns true if the  
// message was succesfully sent, otherwise false.  
$.triggerParentEvent = function(event, msg) { 
  $.triggerWindowEvent(window.opener, event, msg); 
}; 
 
// triggers an event in a window that was opened by the current window 
$.triggerWindowEvent = function(otherWindow, event, msg) { 
  if (typeof otherWindow == "object") { 
    form = otherWindow.document.forms["windowComm"]; 
    if (form) { 
      form.windowCommEvent.value = event; 
      form.windowCommData.value = msg; 
      form.windowCommButton.click(); 
      return true
    } 
  }  
  return false

Morten Røgenes
Top achievements
Rank 1
 answered on 21 Apr 2010
0 answers
84 views
Hi
I like your Test studio alot, but Ive run into a problem in an advanced scenario.
I have a popup window where the user can upload images, but when the submit button is clicked I use jquery to refresh the parent window and close the popup window. During automated testing, however, this does not work.
I have attached the error message IE gives me.
I know this is kind of a special scenario, but do you know of any workaround?

jquery code: communication-between-browser-windows-with-jquery
Morten Røgenes
Top achievements
Rank 1
 asked on 21 Apr 2010
4 answers
139 views

I have a SilverlightApp inside an iframe. I never had any trouble clicking on the items, but I recently added some content to the SilverlightApp's parent frame -- and now the clicks 'look' like they're off by that amount. Any ideas?

While I've got you here, I also had a ComboBox question. I found the only way to get comboBox.Items to contain the full list of items was to click on it. Are there any easier ways? Refresh didn't work...

int oldIndex = comboBox.SelectedIndex;  
 
// Populate the Combobox, just to make sure everything is up to date.  
comboBox.User.Click();  
comboBox.SelectedIndex = 1;  
comboBox.Refresh();  
comboBox.User.Click();  
 
if (oldIndex == -1)  
{  
  // -1 index no longer exists  
  oldIndex = 0;  
}  
 
for (int index = 0; index < comboBox.Items.Count(); ++index)  
{  
  ...  
Rob Lange
Top achievements
Rank 1
 answered on 20 Apr 2010
1 answer
168 views

Hi,

I'm getting this exception pretty regularly running my test :(

It doesn't happen every time, but enough to make the tests unreliable and, well, kinda counterproductive really.

Here is the callstack:

ArtOfTest.WebAii.dll!ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(ArtOfTest.WebAii.Messaging.Process.BrowserCommand request = {BrowserCommand (Type:'Information',Info:'DocumentMarkup',Action:'NotSet',Target:'null',Data:'',ClientId:'Client_0678d0ed-37cb-4923-a273-7529c9ca8061',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'False',Response:'')}) + 0xe3 bytes
  ArtOfTest.WebAii.dll!ArtOfTest.WebAii.Core.Browser.ExecuteCommand(ArtOfTest.WebAii.Messaging.Process.BrowserCommand request = {BrowserCommand (Type:'Information',Info:'DocumentMarkup',Action:'NotSet',Target:'null',Data:'',ClientId:'Client_0678d0ed-37cb-4923-a273-7529c9ca8061',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'False',Response:'')}, bool performDomRefresh = false, bool waitUntilReady = false) + 0x42 bytes
  ArtOfTest.WebAii.dll!ArtOfTest.WebAii.Core.Browser.RefreshDomTree() + 0x113 bytes
  ArtOfTest.WebAii.dll!ArtOfTest.WebAii.ObjectModel.Element.Refresh(bool forceDomTreeRefresh = true) + 0x33 bytes
  [Native to Managed Transition]
  [Managed to Native Transition]
  ArtOfTest.Common.dll!ArtOfTest.Common.WaitAsync.CallRefreshIfNeeded<ArtOfTest.WebAii.ObjectModel.Element>(ArtOfTest.WebAii.ObjectModel.Element target = {[Element: 'div:213' (id=ctl00_ctl00_Fcph_Mcph_portalBody_portalTabStrip)]}) + 0x261 bytes
  ArtOfTest.Common.dll!ArtOfTest.Common.WaitAsync._worker_DoWork<ArtOfTest.WebAii.ObjectModel.Element,object>(object waitParam = {ArtOfTest.Common.WaitAsync.WaitParams<ArtOfTest.WebAii.ObjectModel.Element,object>}) + 0x228 bytes
  mscorlib.dll!System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(object state) + 0x2f bytes
  mscorlib.dll!System.Threading.ExecutionContext.runTryCode(object userData) + 0x51 bytes
  [Native to Managed Transition]
  [Managed to Native Transition]
  mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x67 bytes
  mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x45 bytes
mscorlib.dll!System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(System.Threading._ThreadPoolWaitCallback tpWaitCallBack) + 0x53 bytes
  mscorlib.dll!System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(object state) + 0x59 bytes
  [Appdomain Transition]

You can see that it is transitioning into native code a couple of times, most likely where the memory corruption is coming from... 

Has anyone else seen this also? I am using the BETA so maybe I should upgrade. I hope it goes away, could be very nasty to track down...

Thanks!
Scott

Cody
Telerik team
 answered on 20 Apr 2010
14 answers
244 views
Hi

With the new merger, what is the status of the previous free WebAii Automation Library.  Will that still be available for free or do we now need to purchase it as part of a WebUI Test Studio Edition?  I'm not referring to the screen recorder, only to the automation library.

Thanks
Ivo
Telerik team
 answered on 20 Apr 2010
1 answer
126 views
Does WEB UI Testing framework support functional tests running on a hidden mode?
By hidden mode i mean , simulating the browser actions but not displaying them (and i do aware of load tests which are a sequence of http requests). and i do aware of the idea behind UI testing. from automation perspective i am looking for the fastest runtime solution which will still be simulating the true actions done by a user/browser.

Konstantin Petkov
Telerik team
 answered on 19 Apr 2010
1 answer
169 views
Does WEB UI Automation test framework support command line execution of a batch of functional tests?
Konstantin Petkov
Telerik team
 answered on 19 Apr 2010
1 answer
78 views
Hi

Is there a way to launch Firefox tests using separate Firefox profile (similar to -firefoxProfileTemplate switch in Selenium RC)?
Having to save my session and close Firefox before running Firefox-specific tests is quite annoying...

Thanks,
Missing User
 answered on 16 Apr 2010
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?