Telerik Forums
Test Studio Forum
6 answers
136 views
Suppose you use a test list to execute a set of scripts where some, but not all of the scripts have dependency on previous scripts succeeding.  You don't want to halt execution on the first failure, but you also don't want to execute a dependent test just to show a failure.  Any suggestions on how to best handle this case?
David
Top achievements
Rank 1
 answered on 19 Jul 2012
1 answer
121 views
Hello,
I just recorded a test including a step with a drop down box. While recording, there were no problems. But as i tried to run the test in order to submit the bug, an error occured and the client was not able to choose the item of the dropdown box. By now, the problem occured several times, bot in Internet Explorer as well in a programm (.exe).
I have already tried to put a break between the steps, but it didn't solve the problem as well.

Here's one Log:
 

Overall Result: Fail

------------------------------------------------------------

'16.07.2012 15:36:42' - Using .Net Runtime version: '4.0.30319.269' for tests execution.

'16.07.2012 15:36:42' - Starting execution....

------------------------------------------------------------

------------------------------------------------------------

'16.07.2012 15:36:47' - Using 'C:\Program Files (x86)\WEBfactory 2010\Smart Editor\WFSmartEditor.exe' application.

'16.07.2012 15:36:48' - 'Pass' : 1. LeftClick on IsOpenIndicatorBorder

'16.07.2012 15:36:49' - 'Pass' : 2. radmenuitem: 'QSSEProjekt1' click action.

'16.07.2012 15:37:29' - 'Pass' : 3. LeftClick on LogbookTextblock

'16.07.2012 15:37:31' - 'Pass' : 4. LeftClick on ExpanderButtonPath

'16.07.2012 15:37:44' - 'Fail' : 5. radcombobox: drop down 'Open' action.

------------------------------------------------------------

Failure Information:

~~~~~~~~~~~~~~~

Unable to locate element. Details: Attempting to find [Wpf] element using

Find logic

(Wpf): [name 'Exact' PART_RootPanel] AND [XamlTag 'Exact' grid][XamlPath 'Exact' /scrollcontentpresenter[name=PART_ScrollContentPresenter]/gridviewvirtualizingpanel[name=PART_GridViewVirtualizingPanel]/gridviewgrouprow[0]/grid[name=PART_GroupExpanderGrid]/border[name=Content]/stackpanel[0]/gridviewvirtualizingpanel[name=PART_GridViewVirtualizingPanel]/gridviewrow[automationid=Row_-1]/border[0]/selectivescrollinggrid[name=grid]/datacellspresenter[name=PART_DataCellsPresenter]/grid[0]/itemspresenter[0]/gridviewcellspanel[0]/gridviewcell[1]/grid[0]/contentpresenter[name=PART_ContentPresenter]/contentcontrol[0]/contentpresenter[0]/fontstretcheditorview[0]/radcombobox[name=uxEditor]]

Unable to locate element. Search failed!

------------------------------------------------------------

'16.07.2012 15:37:44' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.

------------------------------------------------------------

'16.07.2012 15:37:44' - Overall Result: Fail

'16.07.2012 15:37:44' - Duration: [0 min: 56 sec: 328 msec]

------------------------------------------------------------

'16.07.2012 15:37:45' - Test completed!

------------------------------------------------------------------------------------------------------------------

Moreover I got another small problem. If I want to try to record critical errors (xxx.exe) I'm not able to do so, because Telerik prevents the programme from a crash. Is there any possibility to cause the crash in order to record it or not ?

Regards,
Carsten


------------------------------------------------------------------------------------------------------------------Moreover I got another small problem. If I want to try to record critical errors (xxx.exe) I'm not able to do so, because Telerik prevents the programme from a crash. Is there any possibility to cause the crash in order to record it or not ?Regards,Carsten
Stoich
Telerik team
 answered on 19 Jul 2012
6 answers
205 views
Hi,

I tried using the "Browser Capture" step. However, I am not able to locate the said snapshot(s) - both for quick execution and test list execution.

Regards,
Kristine
Stoich
Telerik team
 answered on 19 Jul 2012
2 answers
215 views
Hi All,

I understand how SetExtractedValue and GetExtractedValue work, but I would like to know if it is possible to create a SetExtractedValue in VB Code Behind without first creating a GetExtractedValue in the main script.  For Instance.

I could create a line in the test script such as this:
   Extract input 'DesignRequiredUKText' value into DataBindVariable $(DayNum).
In the Code Behind I could then have something like:
   colValue = TryCast(DirectCast(inputSheet.Cells(rowNum, colNum), Microsoft.Office.Interop.Excel.Range).Text, String)
   SetExtractedValue("DayNum", colValue)
and everything works fine.

However, could I execute the SetExtractedValue line in the Code Behind window without first having created the DataBindVariable in the test script? And then could I still use the "DayNum" variable later in the test script?  If so, would I still use it via the data driven binding $(DayNum)?

Hope the question makes sense!

Thanks,
Nigel Edwards, Transition Computing.


Nigel
Top achievements
Rank 2
 answered on 18 Jul 2012
2 answers
129 views

I have created a simple automated test.  The test just opens Internet Explorer.  Navigates to www.google.com.  In the Google searchbox, it enters Telerik. Then it selects the Telerik result link and the Telerik website appears.  The Test runs fine (On its own).  The problem occurs when I run the test in a Test List.  When I run the Test List, it navigates to the Google  website.  But it fails to type in Telerik.  Error Message: ArtOfTest.Common.Design.Exceptions.ExecutionException: Unexpected dialog:  My test runs just fine on its own but it does not run in a Test List.  It is the only test in my Test List.  Please let me know what I am doing wrong.

Top Gun
Top achievements
Rank 1
 answered on 18 Jul 2012
9 answers
129 views
We are evaluting the Telerik scheduler component for a possible implementation within our health service to allow patients to schedule a timeslot for an onsite screening appointment.  We have dozens of clients and each client could have screenings running multiple days, with each day consisting of 6 timeslots per hour per lab technician (ie., from 7:00am to 7:10am we may allow 3 patients at a time - meaning we have 3 lab techs assigned), for several hours per day.  The patient UI would only see the available timeslots (with one of more openings), but the admin would see who is in each timeslot, plus any open timeslots.   Furthermore, the patient will not be able to select a lab tech, simply an open timeslot.
It's not readily apparent that the Telerik scheduler will accomodate this implementation, but would love to hear your feedback.

Thanks,
John
Cody
Telerik team
 answered on 17 Jul 2012
1 answer
142 views
Hello,

    I have a dynamic kendo input list box in my project which i have to access. Can you help me with sample code??

Thanks in advance,
Naga.
Plamen
Telerik team
 answered on 17 Jul 2012
3 answers
155 views
Hi 
I record
- Select 1 value in combobox
- After that I verify this value

When running
- Although , value is selected but it is not displayed
So that, Verify step is fail

I attach log file
Plamen
Telerik team
 answered on 17 Jul 2012
1 answer
124 views
Hi
I customized code for step delete language ọbject.
But it is not successfully. Only delete object 1,3,5,7
Could you help me?
*******************************
 public void DeleteAllLanguages_CodedStep1()
        {
               
            ActiveBrowser.RefreshDomTree();            
            
            HtmlDiv htmlDiv = Find.ById<HtmlDiv>("dnn_ctr438_EditRegionLanguage_UP");  
            List<HtmlListItem> listItemsCollection = htmlDiv.Find.AllByAttributes<HtmlListItem>("class=inline").ToList();
            System.Threading.Thread.Sleep(1000);
            Log.WriteLine("Number of language object:"+listItemsCollection.Count);
            System.Threading.Thread.Sleep(1000);
            foreach(HtmlListItem listItem in listItemsCollection)
            {
                Log.WriteLine("1111111111111Item");
                listItem.MouseHover();
                System.Threading.Thread.Sleep(1000);
                Log.WriteLine(string.Format("BBBBBBBBBBBMouseover"));
                
                IList<HtmlControl> delete_div = listItem.Find.AllByAttributes<HtmlControl>("class=body-component-menu-delete");
                if((delete_div != null) && (delete_div.Count > 0))
                    {
                        Log.WriteLine(string.Format("language tile object deleted"));
                        delete_div[0].MouseClick();
                        System.Threading.Thread.Sleep(1000);
                        
                    }
            }
        }
Please refer to attachment

Thanks
Stoich
Telerik team
 answered on 17 Jul 2012
3 answers
119 views

I am using Test Studio to run automated tests against a Silverlight Out of Browser application.  My SL OOB application has been installed on my computer with elevated trust.  When I launch the application, it opens in Full Screen.

However, when Test Studio launches the application, it (SL application) opens and ignores the Full Screen option.  Any code in the OOB application that requires elevated trust is ignored.  This creates a problem.  My Silverlight OOB application no longer runs exactly the way it is intended when launched by Test Studio.  How do I configure Test Studio to record and run my out of browser application with elevated trust?  (Allow Full Screen Option, File IO, plus other elevated trust options)

Also, Test Studio changes certain files in the Silverlight application (See Attached).  When these files change the application continues to run with elevated trust ignored.  Attached you will see the files that have changed after Test Studio opened my application.  I suspect these file changes may be causing the application to ignore elevated trust.  Please let me know.

Byron
Telerik team
 answered on 16 Jul 2012
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?