Telerik Forums
Test Studio Forum
9 answers
134 views

I have two automated tests that run against a SL Out of Browser application.  Both these tests are running correctly.  The problem occurs when I add both tests to a test list.   In (Test List) Edit Settings (for the Browser Option), I select Silverlight Out of Browser.  When I select Run List, it looks like Test Studio is about to run my tests.  But, the OOB Silverlight application never opens.  Then, Test Studio is on the Results tab with the timeline on the screen.  How do I get my automated scripts to run in the Test List?  

Sometimes I see Internet Explorer open.  And then it closes.

Stoich
Telerik team
 answered on 20 Jul 2012
6 answers
138 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
122 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
207 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
218 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
130 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
131 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
147 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
159 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
132 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?