Telerik Forums
Test Studio Forum
1 answer
47 views
Hi Test Studio Team,

i am using the current version of Telerik Test Studio with the Release-Number : "2012.2.1204".
Note: This is the new current version, that i can Downlaod and Install. A student-Employee has a test project with the version "2012.2.1220" created. And i can't open this project with my Licence (not with Standalone Version and not with VS-Plugin). 

What should i do?  to use the automated tests of this project and to implement further??

I need your Help!!!

Sincerely yours
Mostafa
Plamen
Telerik team
 answered on 25 Jan 2013
1 answer
68 views
Hi,

I have used the code example in test studio online documentation

I changed the line 

Log.WriteLine(cookie.Name);

as 
Log.WriteLine(cookie.Name + " expires " + cookie.Expires);

but it always print 01.01.0001 00:00:00 as expire time, indeed it is not.

Thanks

Ercan
Plamen
Telerik team
 answered on 25 Jan 2013
3 answers
121 views
I have a scenario in which I have three browsers instances are active i.e i have main browser then i have clicked on a button to open a popup(lets name it as "popup1") and created a record in the popup then i clicked on a button to open another popup(lets name it as "popup2"), Now i have three browser instances one is main browser and two popups(popup1 and popup2). 

Now i have connected to popup2 then created a record and closed popup2 here my active window will be popup1, this is  the scenario i am trying to execute. While replaying on IE it is able to connect to popup2 and able to write in the text boxes of popup then record was created but while closing the popup2 it is closing the popup1. To rectify this problem i have customized the closing step like below:

Manger.Browsers[2].Close();

Now popup2 is closed and popup1 became active then i am able to perform some actions in popup1.
So this test case is working fine in IE But my problem is with chrome and FF. While replaying in FF or Chrome, popup2 connection step executed successfully but when it is trying to type some thing in popup2 text box then focus is going popup1, it is searching text box in popup1 so the test case was failing. So i have added a script step before the step which typing some text in to the text box. Code for the script step is:

Browser br= Manager.Browsers[2];
br.Window.SetFocus();

Can you please guide me this problem so that i can make this test case pass?
Plamen
Telerik team
 answered on 25 Jan 2013
1 answer
87 views
Hi,
  I tried using executioncontext.params.loadfromxmlfile to load the testlist setting file dynamically but to no avail as it is always returning false.
  then i saw the code of loadfromxmlfile and found that it is expecting WebAii.Settings and WebAii.Settings.Web section in the xml file.
  Can somebody please share the format xml so that we can have a xml file with testlist setting params and custom params.

Thanks,
Ravi
Konstantin Petkov
Telerik team
 answered on 25 Jan 2013
3 answers
81 views
Im trying to install a Runtime Version of TestStudio on a 32-Bit Windows Vista (WM) with administrator privlages. I keep encountering an error at the end of the installation where it trys to start up the Scheduling service and tells me I do not have sufficient provlages and can not do so and therefore makes the install invalid. Is this a known issue and also does anyone have a work around on this. I have tried elevated privlages, cmd line as admin, I have run out of options i have attached a screen shot
Konstantin Petkov
Telerik team
 answered on 24 Jan 2013
9 answers
110 views
Hi,
      My application has an Effective Date field and and Expiration Date field. The Expiration Date field is set to the Effective Date plus one year by an AJAX call which invokes a custom servlet. When i navigate manually through the webpage, the AJAX call is invoked but the AJAX call does not get invoked through Test Studio and the expiration date is not being calculated. How do i invoke the AJAX call to invoke the expiration date?

Thanks
Stoich
Telerik team
 answered on 23 Jan 2013
8 answers
384 views
I am using the trial edition of TeleikTest Studio 2012.2.1204.0 with Firefox 17.0.1 in windows 7. There is a key Iframe and tabbed target iframes. The error log is as follows.

Overall Result: Fail
------------------------------------------------------------
'03-01-2013 12:48:39' - Using .Net Runtime version: '4.0.30319.269' for tests execution.
'03-01-2013 12:48:39' - Starting execution....
'03-01-2013 12:49:02' - Detected custom code in test. Locating test assembly: SubjectLookup.dll.
'03-01-2013 12:49:02' - Assembly Found: C:\Users\avvenn\Desktop\SubjectLookup_Old\bin\SubjectLookup.dll
'03-01-2013 12:49:02' - Loading code class: 'SubjectLookup.Subject_Test_2'.
------------------------------------------------------------
------------------------------------------------------------
'03-01-2013 12:49:02' - Enabling Html Popup Tracker. Test expecting Popups.
'03-01-2013 12:49:02' - Using 'FireFox' version '17.0.1' as default browser. 
'03-01-2013 12:49:11' - LOG: Unexpected dialog encountered. Taking no action.
'03-01-2013 12:49:11' - LOG: Unexpected dialog encountered. Taking no action.
'03-01-2013 12:49:14' - 'Pass' : 1. Navigate to : 'http://mytestapp/'
'03-01-2013 12:49:14' - 'Pass' : 2. Handle 'Logon' dialog.
'03-01-2013 12:49:16' - 'Pass' : 3. Navigate to : 'http://mytestapp/'
'03-01-2013 12:49:21' - 'Pass' : 4. Navigate to : 'http://mytestapp/Contoso/main.aspx'
'03-01-2013 12:49:21' - 'NotRun' : 5. Navigate to : 'http://mytestapp/Contoso/main.aspx'
'03-01-2013 12:49:21' - 'NotRun' : 6. Navigate to : 'http://mytestapp/Contoso/main.aspx'
'03-01-2013 12:49:26' - 'Pass' : 7. Wait for '5000' msec.
'03-01-2013 12:49:31' - 'Pass' : 8. Wait for '5000' msec.
'03-01-2013 12:49:36' - 'Pass' : 9. Wait for '5000' msec.
'03-01-2013 12:49:37' - 'Pass' : 10. Click 'SettingsNobrTag'
'03-01-2013 12:49:38' - 'Pass' : 11. Click 'BusinessNobrTag'
'03-01-2013 12:49:39' - 'Pass' : 12. Click 'A10Link'
'03-01-2013 12:50:10' - 'Fail' : 13. Click 'AddASubjectLink'
------------------------------------------------------------
Failure Information: 
~~~~~~~~~~~~~~~
Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Waiting for frame '[Frame:id=ViewArea,name=ViewArea,src=http://mytestapp/subjectmanager/subjecteditor.aspx,UseQuery:False]' timed out. Error: Wait for condition has timed out
InnerException:
System.Exception: Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Waiting for frame '[Frame:id=ViewArea,name=ViewArea,src=http://mytestapp/subjectmanager/subjecteditor.aspx,UseQuery:False]' timed out. Error: Wait for condition has timed out
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.WaitForAllElements(IAutomationHost host, AutomationDescriptor descriptor, Int32 timeout)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
------------------------------------------------------------
'03-01-2013 12:50:10' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'03-01-2013 12:50:10' - Overall Result: Fail
'03-01-2013 12:50:10' - Duration: [1 min: 8 sec: 337 msec]
------------------------------------------------------------
'03-01-2013 12:50:12' - Test completed!

this is working fine IE9 but failing in Firefox and Chrome(version 23.0.1271.97).

Then i worked on this problem,

Click on "AddASubjectLink " will open a model popup, now i removed the base url (according to one of the telerik solution which i find in this forum link for that solution is "http://www.telerik.com/automated-testing-tools/ClientsFiles/197551_framesettings.jpg") from the Frame in which AddASubjectLink is there, then this step passed but model popup was not opened. So now next step connecting to the popup is failing because popup was not opened on click of "AddASubjectLink".

.
Boyan Boev
Telerik team
 answered on 23 Jan 2013
1 answer
111 views
I have a drop down while selecting the drop down i am facing below java script exception, i could not find what was the reason behind this test case failure.

See the below log for the reference:
'23-01-2013 15:27:35' - 'Pass' : 11. Wait for '3000' msec.
'23-01-2013 15:27:36' - 'Fail' : 12. Select 'ByText' option 'Main Phone' on 'Selector11Select'
------------------------------------------------------------
Failure Information: 
~~~~~~~~~~~~~~~
ExecuteCommand failed!
InError set by the client. Client Error:
System.InvalidOperationException: Javascript call [function fireChanged(){var el=document.getElementsByTagName(\'select\')[0]; if(el._events == null || el._events.change == null){return;} var hndlr = el._events.change.length;for(i=0; i<hndlr;i++){el._events.change[i].handler();}}fireChanged()] failed! Please make the function exists and the call is using the correct prototype signature. Javascript error: TypeError: Unable to get value of the property 'target': object is null or undefined 
   at ArtOfTest.InternetExplorer.IECommandProcessor.InvokeFunction(String functionCall, Boolean useEval, Boolean returnJSON)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
BrowserCommand (Type:'Action',Info:'NotSet',Action:'InvokeJsFunction',Target:'ElementId (tagName: '',occurrenceIndex: '-1')',Data:'function fireChanged(){var el=document.getElementsByTagName(\'select\')[0]; if(el._events == null || el._events.change == null){return;} var hndlr = el._events.change.length;for(i=0; i<hndlr;i++){el._events.change[i].handler();}}fireChanged()',ClientId:'Client_1c6001b8-7745-4671-bcbb-ce305fcb41e3',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'0',InError:'True',Response:'System.InvalidOperationException: Javascript call [function fireChanged(){var el=document.getElementsByTagName(\'select\')[0]; if(el._events == null || el._events.change == null){return;} var hndlr = el._events.change.length;for(i=0; i<hndlr;i++){el._events.change[i].handler();}}fireChanged()] failed! Please make the function exists and the call is using the correct prototype signature. Javascript error: TypeError: Unable to get value of the property 'target': object is null or undefined 
   at ArtOfTest.InternetExplorer.IECommandProcessor.InvokeFunction(String functionCall, Boolean useEval, Boolean returnJSON)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
InnerException: none.

InnerException:
ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
InError set by the client. Client Error:
System.InvalidOperationException: Javascript call [function fireChanged(){var el=document.getElementsByTagName(\'select\')[0]; if(el._events == null || el._events.change == null){return;} var hndlr = el._events.change.length;for(i=0; i<hndlr;i++){el._events.change[i].handler();}}fireChanged()] failed! Please make the function exists and the call is using the correct prototype signature. Javascript error: TypeError: Unable to get value of the property 'target': object is null or undefined 
   at ArtOfTest.InternetExplorer.IECommandProcessor.InvokeFunction(String functionCall, Boolean useEval, Boolean returnJSON)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
BrowserCommand (Type:'Action',Info:'NotSet',Action:'InvokeJsFunction',Target:'ElementId (tagName: '',occurrenceIndex: '-1')',Data:'function fireChanged(){var el=document.getElementsByTagName(\'select\')[0]; if(el._events == null || el._events.change == null){return;} var hndlr = el._events.change.length;for(i=0; i<hndlr;i++){el._events.change[i].handler();}}fireChanged()',ClientId:'Client_1c6001b8-7745-4671-bcbb-ce305fcb41e3',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'0',InError:'True',Response:'System.InvalidOperationException: Javascript call [function fireChanged(){var el=document.getElementsByTagName(\'select\')[0]; if(el._events == null || el._events.change == null){return;} var hndlr = el._events.change.length;for(i=0; i<hndlr;i++){el._events.change[i].handler();}}fireChanged()] failed! Please make the function exists and the call is using the correct prototype signature. Javascript error: TypeError: Unable to get value of the property 'target': object is null or undefined 
   at ArtOfTest.InternetExplorer.IECommandProcessor.InvokeFunction(String functionCall, Boolean useEval, Boolean returnJSON)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(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.Core.Browser.ExecuteCommand(BrowserCommand request)
   at ArtOfTest.WebAii.Core.Actions.InvokeScript(String script)
   at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.InvokeScript(String script)
   at ArtOfTest.WebAii.Controls.HtmlControls.HtmlSelect.InvokeOnChange()
   at ArtOfTest.WebAii.Controls.HtmlControls.HtmlSelect.SelectByText(String text, Boolean invokeOnChangeEvent)
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.SelectDropDownActionDescriptor.Execute(Browser browser)
   at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

Can you please guide me what can be done to make the test case work?


Plamen
Telerik team
 answered on 23 Jan 2013
1 answer
126 views
I'm trying to find a way to record mouse movements and be able to play them back in the Web testing tool. Is such a thing possible?
Boyan Boev
Telerik team
 answered on 22 Jan 2013
1 answer
137 views
Hi,

  In my form I have a mandatory field. I am entering the text into the field and saving my form while recording.

But while playback, text is being entered into the text box but  on-click of "save" an validation message is shown saying field shouldn't be empty.

But if I set "SimulateRealTyping" to true then it is working. Is there any way or work around where we can execute without simulating real typing?

Here is the code :
I used both the codes but none is working.
1. Actions.SetText(Pages.FaxNewMicrosoft0.FrameContentIFrame.SubjectText, "Test Fax");
2.Pages.FaxNewMicrosoft0.FrameContentIFrame.SubjectText.Text="Test Fax";


Thanks
Bhaskar
Plamen
Telerik team
 answered on 22 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?