Telerik Forums
Test Studio Forum
1 answer
153 views
Hi,

             Is there any Help document available to handle the logical events and Handlers in the test steps?.

thanks,
Cody
Telerik team
 answered on 24 Nov 2010
1 answer
132 views
Hi,

              Popup is not get opened on right click with the following steps using the Telerik WebUI QA tool.
1.Created a reservation in the Calendar.
2.Right click on the Calendar, it opened the popup.
3.I have selected the date in the calendar and other options to create recurrence reservation and saved it.
4.Saved the test.
5.While executing the test, it is failed in right click step itself.
   

Give me a solution to open the popup window on right click using mouse.

thanks,
Cody
Telerik team
 answered on 24 Nov 2010
1 answer
151 views
hello!

i am using radeditor control. i just given setfocus in js while clicking the button.
it works in ie but it doen't works in chrome.
function setfocus()
{
var edt1=$find("<%=txtmessage.ClientID%>");
//alert(edt1);
edt1.setFocus();
var edt1=$find("<%=txtmessage.ClientID%>");
edt1.setFocus();
var val=$find("<%=RadEditor1.ClientID%>");
val.setFocus();
}

<asp:button id="send_btn" runat="server" OnClientClick="setfocus()"/>

thanks.
priya.
 function setfocus()
{
//alert("fun");
Rumen
Telerik team
 answered on 24 Nov 2010
1 answer
91 views
hello!

i am using radeditor control. i just given setfocus in js while clicking the button.
it works in ie but it doen't works in chrome.
function setfocus()
{
var edt1=$find("<%=txtmessage.ClientID%>");
//alert(edt1);
edt1.setFocus();
var edt1=$find("<%=txtmessage.ClientID%>");
edt1.setFocus();
var val=$find("<%=RadEditor1.ClientID%>");
val.setFocus();
}

<asp:button id="send_btn" runat="server" OnClientClick="setfocus()"/>

thanks.
priya.
 function setfocus()
{
//alert("fun");
var edt1=$find("<%=txtmessage.ClientID%>");
//alert(edt1);
edt1.setFocus();



}
 function setfocus()
{
//alert("fun");
var edt1=$find("<%=txtmessage.ClientID%>");
//alert(edt1);
edt1.setFocus();



}
 function setfocus()
{
//alert("fun");
var edt1=$find("<%=txtmessage.ClientID%>");
//alert(edt1);
edt1.setFocus();



}
 function setfocus()
{
//alert("fun");
var edt1=$find("<%=txtmessage.ClientID%>");
//alert(edt1);
edt1.setFocus();



}
 function setfocus()
{
//alert("fun");
var edt1=$find("<%=txtmessage.ClientID%>");
//alert(edt1);
edt1.setFocus();


 function setfocus()
{
//alert("fun");
var edt1=$find("<%=txtmessage.ClientID%>");
//alert(edt1);
edt1.setFocus();



}
 function setfocus()
{
//alert("fun");
var edt1=$find("<%=txtmessage.ClientID%>");
//alert(edt1);
edt1.setFocus();



}
 function setfocus()
{
//alert("fun");
var edt1=$find("<%=txtmessage.ClientID%>");
//alert(edt1);
edt1.setFocus();



}
 function setfocus()
{
//alert("fun");
var edt1=$find("<%=txtmessage.ClientID%>");
//alert(edt1);
edt1.setFocus();



}
 function setfocus()
{
//alert("fun");
var edt1=$find("<%=txtmessage.ClientID%>");
//alert(edt1);
edt1.setFocus();



}
 function setfocus()
{
//alert("fun");
var edt1=$find("<%=txtmessage.ClientID%>");
//alert(edt1);
edt1.setFocus();



}
 function setfocus()
{
//alert("fun");
var edt1=$find("<%=txtmessage.ClientID%>");
//alert(edt1);
edt1.setFocus();



}
 function setfocus()
{
//alert("fun");
var edt1=$find("<%=txtmessage.ClientID%>");
//alert(edt1);
edt1.setFocus();



}
Rumen
Telerik team
 answered on 23 Nov 2010
1 answer
132 views
Hi,

              I want to change the time for my calendar reservation of my recorded step. When I edited the step through the Inline editor, it shows only the date which is recorded in the step, time is not showing in the Inline editor to change.

Is there any other way to change the time in the existing step itself?..Attached the screenshot.

Konstantin Petkov
Telerik team
 answered on 23 Nov 2010
1 answer
146 views
I am using Rad tab strip control, I am using 2 tabs in my aspx page. Tab1 I am loading 1.aspx file, Tab2 I am loading 2.aspx file
I am trying to use server side Tab_Click Event for switching tabs which is not firing.
1. Please provide the solution how to use the server side tab_click event.
2. By switching between two tabs , unsaved data on forms should be notified and saved. Is there  any solution for that 
 
Dimitar Terziev
Telerik team
 answered on 23 Nov 2010
1 answer
72 views
Hi guys,

I'm trying to build a custom sitemap but having some difficulties.
The sitemap used to work, but now I have pages that require a user to be logged-in first.

If I use the SiteMap.RootNode and the loop through all the children I dont see the "protected" pages.
So then I used the CmsManager.GetPages() which returns all the pages and thats all good, BUT I need the sitemap to display as it displays in the CMS, in that order.

Now it seems like the "Ordinal" value only applies for a group and the pages in the group or something, I have found a thread where it will sort the pages with the ordinal but the menu is still messed-up and not in the order as it is in the cms.

Can anyone help me on how to sort the items so that they will display as in the admin area?

Here is the code I'm using but does not seem to do exactly what I want( I have just added some custom code that will check if a user may see the page, and only then add it to the List ) :


internal class CmsPageComarer : IComparer<ICmsPage>
    {
        #region IComparer<ICmsPage> Members
 
        public int Compare( ICmsPage x, ICmsPage y )
        {
            return x.Ordinal.CompareTo( y.Ordinal );
        }
        #endregion
    }


private List<ICmsPage> GetSource()
        {
            CmsManager manager = new CmsManager();
            IList pages = manager.GetPages();
 
            List<ICmsPage> source = new List<ICmsPage>();
 
            foreach( ICmsPage page in pages )
            {
                string lang = "en";
                if( Request.Url.ToString().ToLower().Contains( "/af/" ) ) lang = "af";
                int langCode = 0;
 
                if( lang.Equals( "en" ) ) langCode = 127;
                if( lang.Equals( "af" ) ) langCode = 54;
 
                if( IsPageVisibleToUser( page ) && page.Navigable && page.LangID == langCode )
                {
                    //show in menu
                    source.Add( page );
                }
            }
 
            CmsPageComarer comparer = new CmsPageComarer();
            source.Sort( comparer );
 
            return source;
        }


internal class CmsPageComarer : IComparer<ICmsPage>
{
#region IComparer<ICmsPage> Members

public int Compare( ICmsPage x, ICmsPage y )
{
return x.Ordinal.CompareTo( y.Ordinal );
}
#endregion



private List<ICmsPage> GetSource()
{
CmsManager manager = new CmsManager();
IList pages = manager.GetPages();

List<ICmsPage> source = new List<ICmsPage>();

foreach( ICmsPage page in pages )
{
string lang = "en";
if( Request.Url.ToString().ToLower().Contains( "/af/" ) ) lang = "af";
int langCode = 0;

if( lang.Equals( "en" ) ) langCode = 127;
if( lang.Equals( "af" ) ) langCode = 54;

if( IsPageVisibleToUser( page ) && page.Navigable && page.LangID == langCode )
{
//show in menu
source.Add( page );
}
}

CmsPageComarer comparer = new CmsPageComarer();
source.Sort( comparer );

return source;
Ivan Dimitrov
Telerik team
 answered on 18 Nov 2010
1 answer
59 views
Hi guys,

I'm trying to build a custom sitemap but having some difficulties.
The sitemap used to work, but now I have pages that require a user to be logged-in first.

If I use the SiteMap.RootNode and the loop through all the children I dont see the "protected" pages.
So then I used the CmsManager.GetPages() which returns all the pages and thats all good, BUT I need the sitemap to display as it displays in the CMS, in that order.

Now it seems like the "Ordinal" value only applies for a group and the pages in the group or something, I have found a thread where it will sort the pages with the ordinal but the menu is still messed-up and not in the order as it is in the cms.

Can anyone help me on how to sort the items so that they will display as in the admin area?

Here is the code I'm using but does not seem to do exactly what I want( I have just added some custom code that will check if a user may see the page, and only then add it to the List ) :


internal class CmsPageComarer : IComparer<ICmsPage>
    {
        #region IComparer<ICmsPage> Members
 
        public int Compare( ICmsPage x, ICmsPage y )
        {
            return x.Ordinal.CompareTo( y.Ordinal );
        }
        #endregion
    }


private List<ICmsPage> GetSource()
        {
            CmsManager manager = new CmsManager();
            IList pages = manager.GetPages();
 
            List<ICmsPage> source = new List<ICmsPage>();
 
            foreach( ICmsPage page in pages )
            {
                string lang = "en";
                if( Request.Url.ToString().ToLower().Contains( "/af/" ) ) lang = "af";
                int langCode = 0;
 
                if( lang.Equals( "en" ) ) langCode = 127;
                if( lang.Equals( "af" ) ) langCode = 54;
 
                if( IsPageVisibleToUser( page ) && page.Navigable && page.LangID == langCode )
                {
                    //show in menu
                    source.Add( page );
                }
            }
 
            CmsPageComarer comparer = new CmsPageComarer();
            source.Sort( comparer );
 
            return source;
        }


internal class CmsPageComarer : IComparer<ICmsPage>
{
#region IComparer<ICmsPage> Members

public int Compare( ICmsPage x, ICmsPage y )
{
return x.Ordinal.CompareTo( y.Ordinal );
}
#endregion



private List<ICmsPage> GetSource()
{
CmsManager manager = new CmsManager();
IList pages = manager.GetPages();

List<ICmsPage> source = new List<ICmsPage>();

foreach( ICmsPage page in pages )
{
string lang = "en";
if( Request.Url.ToString().ToLower().Contains( "/af/" ) ) lang = "af";
int langCode = 0;

if( lang.Equals( "en" ) ) langCode = 127;
if( lang.Equals( "af" ) ) langCode = 54;

if( IsPageVisibleToUser( page ) && page.Navigable && page.LangID == langCode )
{
//show in menu
source.Add( page );
}
}

CmsPageComarer comparer = new CmsPageComarer();
source.Sort( comparer );

return source;
Ivan Dimitrov
Telerik team
 answered on 18 Nov 2010
4 answers
135 views
When I try to open my solution in Visual Studio, I get errors for each test within the solution:

Error loading C:\[filepath]\test.aii: Object reference not set to an instance of an object.

Any ideas what might cause that?
Cody
Telerik team
 answered on 18 Nov 2010
1 answer
148 views
I have recorded some tests and created a test list based on this. When I run this list on my virtual server by logging in via RDC everything is good untill I close my RDC window (not kill the session) just close the RDC window, the tests seem to stop immediately.

I am running these tests on IE browser. What should I do to avoid this problem?  

Keaegan
Telerik team
 answered on 18 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?