Telerik Forums
Test Studio Forum
3 answers
74 views

I have a test that does the following:

1. Navigates to a login page.
2. Clicks a link that opens another window with a login recovery page.
3. Connects to the login recovery page window.
4. Validates items on the login recovery page.
5. Closes the login recovery page window and returns to the original login page.

Running the test reports a failure on #3, even though it is still able to perform #4 and #5.  So it isn't actually failing, but it is reporting a failure.

Is there something I can do so it either doesn't report this false failure, or so that it doesn't report the overall test as a failure because of this false failure?

Thank you,
Mike

Ivaylo
Telerik team
 answered on 09 Jul 2013
7 answers
298 views
Hi,

I am very new to test Studio and hence would like to get clarifications on few issues that I am facing.

Issue 1:
I am using a trial version of telerik RadControls for WPF. Hence when i launch my application, the telerik dialog box opens. I am not able to handle that using the generic handler and my following tests are failing.

Issue 2:

I am recording a real mouse click on RadOutlookBarButton and checking the corresponding controls populated. But while I am playing back, the real mouse click is not happening and the corresponding Radtabcontrol ( which should be visible on mouse click)
is not visible  and hence my tests are failing.

I have attached the Generic Dialog box that pops up herewith. Please let me know what needs to be done to resolve these two issues.

Thanks
Velin Koychev
Telerik team
 answered on 08 Jul 2013
2 answers
110 views
I have a verification step in the attached image where basically it verifies if attribute has a height of 136.31.  I need to tweak it so that this verification makes sure if element has a height >0 ? Is it possible to do this? It would be great if you could show me with some coded scripting or any other example.

Thanks,
Mamata
Mamata
Top achievements
Rank 1
 answered on 06 Jul 2013
2 answers
88 views
Hi Telerik Team,

I have a test that was created and stored in TFS awhile ago (prior to me joining the company). This test is part of a test list that also exists in TFS. There are two changes that need to be done to this test:

1. Change a date from 01/01/10 to 01/01/13 (this is a different test step than the below item).
2. Remove two steps that interact with an object that is being removed from the application (radcombobox).

I am able to perform the first change no problem. Updating that data without committing the test to TFS & running the test works as-expected. If I uncheck the two test steps however and run the test, the steps are still executed which does not seem correct. I then committed the test to TFS with both changes and the test continues to execute those two steps even though it should not (right?).

Next I deleted the test list and re-created it and ran the test list and it still executes those two unchecked steps. I know I will eventually simply delete those two steps and commit the change but nevertheless, shouldn't TS skip any unchecked steps?

Please see the attachment for screenshots. Pic1 is the first step and Pic2 is the second step, both which should not run.

Thank you for any help.

James
James
Top achievements
Rank 1
 answered on 03 Jul 2013
3 answers
78 views
Hi Telerik Team,

I have a test that is selecting a radio button (male/female). A separate step exists for both actions (click male/click female). Each step is data-driven. I currently have the data stored in a .csv file. The step to click the male option is marked TRUE and the step to click female is marked FALSE.

When this test is run in IE 10 (compatability mode on), the test works as-expected (male option is selected, female option is not). However, when this same test is run in either Firefox 20.0.1 or Chrome 27, the male option will be selected then the female option will be selected immediately after. It seems no matter the data, since each step is marked to be run, it does so no matter the data.

Pic1 is the two steps in question. Pic2 is of the step details (same for both steps). Pic3 is the data from my .csv file.

Is this a known issue or perhaps I am missing something? My version of TS is: 2012.2.1527.0

Thank you for any help.
James
Top achievements
Rank 1
 answered on 03 Jul 2013
3 answers
135 views
Hi team,
i tried to invoke wait.ForVisible method for some element, but found it is not stable, maybe caused by the bad network condition. i want to know if there are some solutions to make it better, i need the scirpts keep waiting for the element diplay on the page, is there a default setting  like timeout in this method so i can redefine it?
Velin Koychev
Telerik team
 answered on 03 Jul 2013
5 answers
235 views
Hello,

how can I change the recording browser from Internet Explorer to Mozilla Firefox. I have set up Mozilla as my default browser and I have checked the test to run using it in the execution tab but when I try to record a test, a window of IE opens.

Thank you
Velin Koychev
Telerik team
 answered on 02 Jul 2013
1 answer
91 views
I have come across what I believe to be an IE10 related issue with the way Test Studio interacts with IE10 using XPath.  Our application uses elements with dynamic ids.  In order to find these elements during a playback, XPath was used.  It appears that after interacting with several elements which are located via their XPath, IE10 will stop responding and display the "Internet Explorer has stopped responding" message box.  At this point, the browser needs to be closed and the automated test stopped.  Initally, we used a long XPath to get to the desired elements.  After the Telerik training class yesterday (thanks Todd!), it was advised that we use a short XPath such as //*[@Id = ""].  I applied this change to one of the dynamic elements and it appeared to work correctly.  After applying the XPath modification to the 6 other dynamic elements, IE again stopped responding halfway through the test.  The problem is predictible, as the test fails at the same point every time - which is after the constant XPath calls.  After struggling with the test for several more hours, I decided to run it in IE10 using IE8 browser and document mode.  The test is not displaying the error any longer and is running through to completion.  Has anyone else experienced this issue?  Any suggestions on a cause other than IE10?  Again, it runs if IE10 is in IE8 browser and IE8 document modes.  I have not yet been able to run the test on a true IE8 or IE9 machine.  I welcome any suggestions!  Thanks!!
Ivaylo
Telerik team
 answered on 01 Jul 2013
1 answer
537 views
Nunit Template - "System.NullReferenceException:Object reference not set to an instance of an object"  is displayed when calling method from one class to other

Error is displayed when Iam calling method from class 2 to class 1.

Please find below sample code

namespace UnitTestProject4

{

public class Class1: BaseTest

[Test]

    { public void Testmethod1()

        {

            Manager.LaunchNewBrowser(BrowserType.InternetExplorer);

            ActiveBrowser.NavigateTo("http://www.wikipedia.org/");

            Class2. Testmethod2 ("Telerik Test Studio");

            Find.ByName<HtmlInputSubmit>("go").Click();

        }

  public partial class Class2

        {

           static Settings setting = new Settings();

            static Manager Manager = new Manager(setting);

            public static void Testmethod2 (string A)

            {

             Manager.ActiveBrowser.Find.ById<HtmlInputSearch>("searchInput").Text = A;

            }

        }

    }


Velin Koychev
Telerik team
 answered on 28 Jun 2013
1 answer
57 views
Hi,

we encounter problems with tests executed in a test list. For some unknown reason the application crashes sometimes when the execution of a test list ends. A window to "Save/Restart", "Save" or "Exit" Test Studio is displayed. I attached the exception from the log file. Maybe the issue is related with our high result count (which is 851).
Ivaylo
Telerik team
 answered on 28 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?