Telerik Forums
Test Studio Forum
2 answers
130 views
Hi,

We are using Radexpander control,while loading expander inernally we are adding some controls(Textboxes,Combobx.........).here i want to get the all controls  which are available in the Radexpander .please guide me to resolve this.it's very very urgent for me.


Thanks,
-Sree
Tina Stancheva
Telerik team
 answered on 16 Dec 2011
11 answers
487 views
My application is opened windows in following order:
Window1 opens Window2 which opens Window3
W1 - W2 - W3

After I close Window3 Telerik doesn't "see" Window2.

I have following test steps:
1. Opening W1
// Connect to pop-up window : '/Site/main.aspx?'
Manager.WaitForNewBrowserConnect("/Site/main.aspx?", true, 5000);
Manager.ActiveBrowser.WaitUntilReady();
ActiveBrowser.Window.SetFocus();
2. Opening W2
// Connect to modal pop-up window : Look Up Records -- Webpage Dialog
if ((ActiveBrowser.BrowserType == BrowserType.InternetExplorer))
{
    ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions ieActions = ((ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions)(ActiveBrowser.Actions));
        ieActions.ConnectIEDialog("Look Up Records -- Webpage Dialog", 5000);
}
Manager.WaitForNewBrowserConnect("/Site/_controls/lookup/lookupinfo.aspx?LookupStyle=multi&browse=0&objecttypes" +
                "=4300", true, 5000);
Manager.ActiveBrowser.WaitUntilReady();
3. Opening W3
// Connect to modal pop-up window : Add Marketing Lists to Campaign -- Webpage Dialog
if ((ActiveBrowser.BrowserType == BrowserType.InternetExplorer))
{
        ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions ieActions = ((ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions)(ActiveBrowser.Actions));
        ieActions.ConnectIEDialog("Add Marketing Lists to Campaign -- Webpage Dialog", 5000);
}
Manager.WaitForNewBrowserConnect("/Sitecore/_controls/lookup/lookupinfo.aspx?LookupStyle=multi&browse=0&objecttypes" +
                "=4300", true, 5000);
Manager.ActiveBrowser.WaitUntilReady();
ActiveBrowser.Window.SetFocus();
4. Closing W3
// Close modal pop-up window : Add Marketing Lists to Campaign -- Webpage Dialog
ActiveBrowser.Close();

After closing W3 Window2 get focus but Telerik lost it and can't do following steps.
How I could get my test working?
Anthony
Telerik team
 answered on 16 Dec 2011
3 answers
305 views
Hi,

I am able to trace the details in the log using the 'Log.WriteLine(LogType.Trace,"Testing Log");' . But if I want to print the log location using  'Console.WriteLine("Log Location " + Log.LogLocation);' , its not returning anything.

Can you please tell me how I customize the report on the Log file in Test Studio and how I configure my own path of Log creation?
Plamen
Telerik team
 answered on 16 Dec 2011
2 answers
120 views
Hi,

I have created a test and parametrized the steps using the data binding. Now the loads of data are entered into a database table and I need to check the cycle. For example, I am creating a user from the front end and I want to check the database to ensure that the same data is exists in the DB or not.

I am using SQL server 2008. Please let me know if any built in feature available in the tool or else please provide me the sample C# code to check the same.
Swarnambar
Top achievements
Rank 1
 answered on 16 Dec 2011
1 answer
100 views
I have Javascript control which is initialized when i hover mouse over the link.
http://screencast.com/t/6TWPzjoP
Following steps are generated by Telerik
http://screencast.com/t/TjouyuM9U

But if I run the test, pop-up window doesn't open and test failed with:
"Unable to find the dialog with caption 'Select Values -- Webpage Dialog'"

How this element should be handled?
Anthony
Telerik team
 answered on 16 Dec 2011
1 answer
91 views
I want add text to frames body.
Create step:

Pages.Webmail60Inbox0.FrameFrame1.HtmlTag.Text = "Text for validate";

But the error message appeared:

Line 202: (CS1061) 'TestProject2.Pages.Webmail60Inbox0Page.FrameFrame1Frame' does not contain a definition for 'HtmlTag' and no extension method 'HtmlTag' accepting a first argument of type 'TestProject2.Pages.Webmail60Inbox0Page.FrameFrame1Frame' could be found (are you missing a using directive or an assembly reference?)

Why?
Anthony
Telerik team
 answered on 15 Dec 2011
1 answer
118 views
I am trying to select an item from, what I think, is is a generic RadComboBox. I can use the Open method but an item cannot be selected.

The error I get when trying to select by Index, by Text or by Value is:
ArtOfTest.WebAii.Exceptions.ExecuteCommandException was unhandled by user code
  Message=ExecuteCommand failed!
InError set by the client. Client Error:
System.InvalidOperationException: Javascript call [$find(\'ctl00_ContentPlaceHolder1_EditEvidence1List_OwnerUsers_UserDropDownList1_rcbUsers\').get_items().getItem(\'0\').get_text()] failed! Please make the function exists and the call is using the correct prototype signature. Javascript error: [object Error] 
   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:'$find(\'ctl00_ContentPlaceHolder1_EditEvidence1List_OwnerUsers_UserDropDownList1_rcbUsers\').get_items().getItem(\'0\').get_text()',ClientId:'Client_251e965a-2e85-4cb8-af94-70eba087517c',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.InvalidOperationException: Javascript call [$find(\'ctl00_ContentPlaceHolder1_EditEvidence1List_OwnerUsers_UserDropDownList1_rcbUsers\').get_items().getItem(\'0\').get_text()] failed! Please make the function exists and the call is using the correct prototype signature. Javascript error: [object Error] 
   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.


  Source=ArtOfTest.WebAii
  StackTrace:
       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.HtmlControl.GetValue[T](String propertyName, T defaultValue)
       at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.GetValue[T](String propertyName)
       at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.CallMethod[T](String methodCall)
       at Telerik.WebAii.Controls.Html.RadComboBoxItem.get_Text()
       at vsuiteautomation.TC314CreatenewContentProjects.<TC314__Create_new_Content__Projects_CodedStep2>b__0(RadComboBoxItem x) in C:\Users\David Adams\Documents\Test Studio Projects\vsuiteautomation\prod\regression\TC314 - Create new Content - Projects.tstest.cs:line 92
       at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
       at vsuiteautomation.TC314CreatenewContentProjects.TC314__Create_new_Content__Projects_CodedStep2() in C:\Users\David Adams\Documents\Test Studio Projects\vsuiteautomation\prod\regression\TC314 - Create new Content - Projects.tstest.cs:line 92
  InnerException: 

The id of the dropdown is: ctl00_ContentPlaceHolder1_EditEvidence1List_OwnerUsers_UserDropDownList1_rcbUsers.
Stoich
Telerik team
 answered on 15 Dec 2011
2 answers
103 views
Hi,
I configured one server as schedule server, now i want to use it as an execution server, then i open "Configure as Execution Server" in this server, click register, but only an output path selection window displayed, i need to select a schedule server.
see my attachment.
Kevin
Top achievements
Rank 1
 answered on 15 Dec 2011
2 answers
127 views
Resolved the issue by deleting the config file and re-installing the Test Studio.
Vasu
Top achievements
Rank 1
 answered on 14 Dec 2011
4 answers
161 views
Hi.
My control, radtreeview, doesn’t provide the method FindNode.
Any idea???
Natasha
Top achievements
Rank 1
 answered on 14 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?