Telerik Forums
Test Studio Forum
10 answers
239 views
I am getting the following error while trying to click on a link:

ArtOfTest.Common.Design.Exceptions.ExecutionException: ExecuteCommand failed!
InError set by the client. Client Error:
System.ArgumentNullException: Value cannot be null.
Parameter name: SetCurrentDocumentMarkup. The document object is null. Unable to get markup.
   at ArtOfTest.InternetExplorer.IECommandProcessor.SetCurrentDocumentMarkup(BrowserCommand& response)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessInformationCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
BrowserCommand (Type:'Information',Info:'DocumentMarkup',Action:'NotSet',Target:'null',Data:'',ClientId:'Client_edc9b035-4116-44ce-9062-e322cd06eb14',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.ArgumentNullException: Value cannot be null.
Parameter name: SetCurrentDocumentMarkup. The document object is null. Unable to get markup.
   at ArtOfTest.InternetExplorer.IECommandProcessor.SetCurrentDocumentMarkup(BrowserCommand& response)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessInformationCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
InnerException: none.
 ---> ArtOfTest.WebAii.Exceptions.ExecuteCommandException
   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.RefreshDomTree()
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.WaitForAllElements(Browser browser, AutomationDescriptor descriptor)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()
   --- End of inner exception stack trace ---



This page that I am testing uses a table design where the "links" are simply the table cells that have been assigned the 'onlick' method that runs a javascript. Example:
<table border="0" cellpadding="0" cellspacing="0" align="center" style="width:85px; height:;" onclick="javascript:Click1('Admin.aspx?')">

In order to record this I have tried both clicking on the link and assigning "left click" from the blue bubble menu. While record it works but when playing back the recording I get the above error.
Stoich
Telerik team
 answered on 30 Jan 2013
1 answer
91 views
Hi,

I am actually testing a web app that performs search based on entered search criteria and also displays the search parameters label exactly as you entered after the search right next to its search text boxes. Now I have made searching data driven so that each time new search parameter is entered in the text field. I also created validation check point of "text contains" so that i could verify that web app is displaying the same search parameter label that was entered for searching. When I make the validation check point data driven by passing the variable that i created in local datasheet for searching, my test cases fail to validate the checkpoint. Is there a right way to accomplish what i am trying to do?

Regards
Salman
Boyan Boev
Telerik team
 answered on 29 Jan 2013
4 answers
180 views
Connecting to the Model Popup failing in my Test Case.

My scenario is I have to create a new record and i have to edit that record. While creating the record i am able connect Modal popup successfully with the below code.

Manager.SetNewBrowserTracking(true);
Manager.WaitForNewBrowserConnect("http://mytestapp/Tools/Subject/dialogs/edit.aspx", true, 5000);
Manager.ActiveBrowser.WaitUntilReady();
Manager.SetNewBrowserTracking(false);

But while editing the same record it can't able to connect to Modal popup, because the URL is having query string .

After removing the query string it is working in IE but failing in FireFox and Chrome

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

Log for the failure is:

'21-01-2013 17:40:52' - 'Fail' : 25. [Sub_Test_CodedStep7] : Connect to modal pop-up window : Edit Subject - Microsoft Dynamics CRM -- Webpage Dialog, ConnectToPopup=True
------------------------------------------------------------
Failure Information: 
~~~~~~~~~~~~~~~
Exception thrown executing coded step: '[Sub_Test_CodedStep7] : Connect to modal pop-up window : Edit Subject - Microsoft Dynamics CRM -- Webpage Dialog, ConnectToPopup=True'.
InnerException:
System.OperationCanceledException: Exception occured waiting for the new browser to connect. ---> System.TimeoutException: Wait for condition has timed out
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
   at ArtOfTest.WebAii.Core.Manager.WaitForNewBrowserConnect(String url, Boolean isPartial, Int32 timeout)


Ivaylo
Telerik team
 answered on 29 Jan 2013
3 answers
56 views
My application is having a datagrid. It contains records with different coulmn values and each record has a button "Edit"(same name and properties). How to click a particular Edit button? Please help
Plamen
Telerik team
 answered on 28 Jan 2013
7 answers
99 views
I already have my elements in the element explorer and I would like to add a Hover step to one of them, similar to how I can use the Step Suggestions to add a Click step (BTW, I really like the Step Suggestions feature) without having to re-record.

Can I do this for a Hover?

Thank you for your time and assistance.

Donna
Alan
Top achievements
Rank 2
 answered on 28 Jan 2013
1 answer
42 views
Hi,

I am using an updated version 2012.2.1317.0
OS: Win 7 64 sp1
IE 8.0.760

I record a typing into silverlight(5.1) text box. and I can "Run" the testing successfuly from begining to ending.

but it can not type the whole string by "Run - From here". Only one letter of the string can be entered.

I searched the forums but seems no answer. and old versions in XP do not have this issue.

Could you guys help? thanks in advance.


Boyan Boev
Telerik team
 answered on 28 Jan 2013
4 answers
117 views
Hi,

I have this issue with generating Dialogs in tests where I use only Steps (not coded steps).

My problem is when Dialog window is detected and I'm trying to click upload button in dialog window, so Telerik always generate "generic' dialog step. I think there is a problem with language in my windows (Czech), because Telerik can work only with English version of Windows.

Although I can edit 'generic' dialog step and change 'DialogTitle' to my language, but I can't edit FileUpload path.

Another possible way is to generate Dialog step in Telerik Test Studio and choose Upload dialog, but there I can't change 'HandleButton' and automatic test can't find your predefined buttons. 

Of course I could to change the step in coded step, but coded step are banned in my tests.

So my questions are.
Is there any possible way, how to correctly detect right button for me?
Are you going to implement some updates in next version?

Best regards



Plamen
Telerik team
 answered on 28 Jan 2013
1 answer
40 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
54 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
98 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?