Telerik Forums
Test Studio Forum
1 answer
158 views
Please HELP!!! The test script was ready for execution. I run this script for a several times today and I didn't receive any errors. But the last 5 times when I was trying to execute it I got this error:
------------------------------------------------------------
'2/17/2011 3:33:56 PM' - Starting execution....
'2/17/2011 3:34:49 PM' - Failure detected during execution. Details:
------------------------------------------------------------
'2/17/2011 3:34:49 PM' - System.NullReferenceException: Object reference not set to an instance of an object.
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.GetHostState(IAutomationHost host)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteSteps(AutomationStepList stepList, TestResult testResult, Object codeBehindInstance)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTestIteration(Object codeBehindInstance)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTest(Test test, TestResult initializationResult)
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(Test test, Settings settings, String deploymentFolder, ExecutionType exeType, Int32 lastStepIndex, DebuggerOptions debuggerOptions)
------------------------------------------------------------
'2/17/2011 3:34:49 PM' - Test completed!


Note1: the status of the test is "Fail - 0 passed out of total 0 executed" but I could see the progress of this test during execution and all steps were passed.

Note2: I get this error only when I add "Close IE window" step in the end of the test
Cody
Telerik team
 answered on 17 Feb 2011
1 answer
77 views
Hello!

I have a Silverlight application with Telerik RadControls Q3.

The user chooses a date interval, then information for that certain interval displays on a map. All the information related to the interval is shown at the same time.

I would like for the user to be able to choose a date interval and then print it day-by-day (and not as shown in the application).
E.g. print information for the first date in the chosen interval on one page (just as if the user had chosen only that one day), and then info for the 2nd date on the next page and so forth..

I guess I need to create an automated workflow? Does anyone have an idea about how I should do this?


Thanks!
George
Telerik team
 answered on 17 Feb 2011
1 answer
87 views
When I access the spell checker it is showing an error alert and writing error log as,
A potentially dangerous Request.Form value was detected from the client (CommandArgument="<controlSeparator><b...")

Can any one help me to resolve this.
Thank you
Rumen
Telerik team
 answered on 17 Feb 2011
8 answers
133 views
I have a step that clicks on a radtabitem. It flags this error:

Failure Summary
Was not able to match a segment within the path. Expected:border , Found:FrameworkElement , Path:/shell:-1:54976006/grid:0:46959463/border:1:53739988/grid:0:65623433/grid:1:52030735/border:0:13237733/radtabcontrol:0:53666642


Best Regards,
Kristine
Vladislav
Telerik team
 answered on 17 Feb 2011
5 answers
77 views
Hi

i have a test case where i need to set a date and time in a DateTime field (Rad control)

when i try to run the test it fails with the Log message (added to the end of this post).

what i can gather from the log is that something in get_culture() fails for some reason.
the object in the test states that culture is da-DK
and the Selected time format is DD-MM-YYY HH:MM

also the Element find logic is: "[id 'Contains' ctl18_timeView] AND [id 'Contains' ctl00] AND [tagname 'Exact' div]"

the Client and webpage is set to da-DK as culture or system language.


----- Log Message -----
ArtOfTest.Common.Design.Exceptions.ExecutionException: ExecuteCommand failed!
InError set by the client. Client Error:
System.InvalidOperationException: Javascript call [$find(\'ctl00_m_g_0a5cf375_559d_4468_867e_757ee28215ec_ctl18_timeView_wrapper\').get_culture()] failed! Please make the function exists and the call is using the correct prototype signature. Javascript error: TypeError: 'null' is null or not an object
   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_m_g_0a5cf375_559d_4468_867e_757ee28215ec_ctl18_timeView_wrapper\').get_culture()',ClientId:'Client_a4d5e5d3-5f23-44cc-94ee-a67dc39369a1',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.InvalidOperationException: Javascript call [$find(\'ctl00_m_g_0a5cf375_559d_4468_867e_757ee28215ec_ctl18_timeView_wrapper\').get_culture()] failed! Please make the function exists and the call is using the correct prototype signature. Javascript error: TypeError: 'null' is null or not an object
   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.
 ---> 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.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.CallMethod[T](String methodCall, T defaultValue)
   at Telerik.WebAii.Controls.Html.RadTimeView.get_Culture()
   at Telerik.WebAii.Controls.Html.RadTimeView.SelectTime(DateTime selectedTime)
   at Telerik.WebAii.Design.Translators.Html.Calendar.TimeViewSelectionDescriptor.Execute(Browser browser)
   at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()
   --- End of inner exception stack trace ---
Benjamin
Top achievements
Rank 1
 answered on 17 Feb 2011
3 answers
220 views
Hi Telerik Team,

I have sceanrio where the controls in page are dynamic & those controls are in table of the Web page. I have used the below code snippet for identfying objects. But  i am having a problem of identfying object because the "id" we are using for identifying object is changing dynamically. For Example id is "attribute_2_3003_3128" when we scripted, but it is change now to atrribute_4_3003_3128. Every time the single digit number in between is changed. Rest of the ID remains same. Please let me know how can we solve this issue.

Browser

 

 

ie = Manager.ActiveBrowser;
FramesCollection f = ie.Frames;
Browser b = f.ById("RAD_SPLITTER_PANE_EXT_CONTENT_ContentRadPane");
HtmlTable mainTable = b.Find.ById<HtmlTable>("tblContainer");
HtmlTableRow tablerow = mainTable.Find.ById<HtmlTableRow>("tblRel");
HtmlTable table = tablerow.Find.ById<HtmlTable>("tblmain");
int count = table.BodyRows.Count;
string proddes = ((string)(System.Convert.ChangeType(Data["ProductDesc"], typeof(string))));
string enabled = ((string)System.Convert.ChangeType(Data["Enabled"], typeof(string)));
for (int i=1; i < count - 1; i++){
HtmlTableRow row = table.BodyRows[i];
HtmlTableCell cell = row.Cells[1];
if (cell.InnerText.Equals("Product Description")){
HtmlTableCell cell1 = row.Cells[3];
/
/Regex regex = new Regex("""[?0-9]{1}");
//Console.WriteLine(regex.ToString());
//Console.ReadLine();
HtmlInputText text = cell1.Find.ById<HtmlInputText>("attribute_2_3003_3128"

);
text.Text = proddes;
}

 

 



Regards,
Kalyan Uppalapati
Riversand Technologies.
Stoich
Telerik team
 answered on 14 Feb 2011
1 answer
108 views
Hi

I have problem when i add updatecontrol into page

Server Error in '/' Application.

A control with ID 'g_b8df8590_3aee_4380_801b_65cf48a32c75$Search' could not be found for the trigger in UpdatePanel 'g_b8df8590_3aee_4380_801b_65cf48a32c75$tblLayoutPanel'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: A control with ID 'g_b8df8590_3aee_4380_801b_65cf48a32c75$Search' could not be found for the trigger in UpdatePanel 'g_b8df8590_3aee_4380_801b_65cf48a32c75$tblLayoutPanel'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidOperationException: A control with ID 'g_b8df8590_3aee_4380_801b_65cf48a32c75$Search' could not be found for the trigger in UpdatePanel 'g_b8df8590_3aee_4380_801b_65cf48a32c75$tblLayoutPanel'.]
   System.Web.UI.UpdatePanelControlTrigger.FindTargetControl(Boolean searchNamingContainers) +315
   System.Web.UI.AsyncPostBackTrigger.Initialize() +26
   System.Web.UI.UpdatePanelTriggerCollection.Initialize() +65
   System.Web.UI.UpdatePanel.Initialize() +37
   System.Web.UI.UpdatePanel.OnLoad(EventArgs e) +51
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Control.AddedControl(Control control, Int32 index) +318
   System.Web.UI.ControlCollection.Add(Control child) +146
   Telerik.Web.UI.RadAjaxControl.CreateUpdatePanel(Control initiator, String eventName, Control updated, UpdatePanelRenderMode panelRenderMode) +1161
   Telerik.Web.UI.RadAjaxControl.OnPagePreRender(Object sender, EventArgs e) +1526
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnPreRender(EventArgs e) +2117788
   System.Web.UI.Control.PreRenderRecursiveInternal() +86
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041
Pavlina
Telerik team
 answered on 14 Feb 2011
1 answer
63 views

Friends,

When you post a new thread please write relevant title, so that we all can easily find out what was the issue and we can relate to our scenarios.

Thanks,

Madhu.

ME
Top achievements
Rank 1
 answered on 11 Feb 2011
3 answers
119 views
Hi,

I have problem, i create RadGrid by code and registry event ItemDataBound,

 void dataGrid_ItemDataBound(object sender, GridItemEventArgs e)
        {
           if (e.Item is GridFooterItem)
            {
                GridFooterItem footer = (GridFooterItem)e.Item;
              
                    string interName = "name";
                    footer[interName].Controls.Add(new LiteralControl("<b>" + GetLabel("Goto", "Go to") + " </b>"));
                    LinkButton lbtIndex = new LinkButton();
                    lbtIndex .Text ="1";
                    lbtIndex .ID = "lbl1";
                    lbtIndex .Click += new EventHandler(lbtIndex _click);
                    footer[interName].Controls.Add(lbtIndex );
              
            }
        }
        void lbtIndex _click(object obj, EventArgs e)
        {
         //to do
       }

But when i click LinkButton 1 (lbtIndex _click), the event of button dont fire.


 
Daniel
Telerik team
 answered on 11 Feb 2011
6 answers
124 views

Hi,

I'm using QA Edition Q3 release. I have a problem with If...ELSE condition. If you see attached video file you will get an idea.

I'm expecting to work atleast ELSE part after I modified navigate URL?

Any ideas please?

Thanks,

Madhu Tekmal

Madhu
Top achievements
Rank 1
 answered on 10 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?