Telerik Forums
Test Studio Forum
3 answers
116 views
Hi,

We have two select inputs on a page. The second is populated when something in the first select changes (using jQuery .change() to listen for that).

We are trying to write tests for this page. In IE9, when we select something from the first list using "Select 'ByText' Option '<element in first select>' on '<name of first select>'", the .change() function never fires (even though the element does get selected), and the second select never gets populated with elements, which causes our test to fail.

This works perfectly in all browsers when we test them by hand. When we run the test in Chrome it works fine. Below is the javascript.

Any suggestions?

$("#firstSelectObject").change(function () {    
    $("#secondSelectObject").empty();
        var parms = { ... };
        var serverUrl = ...;
        $.ajax({ url: serverUrl, traditional: true, type: "POST", dataType: "json", data: parms,
            success: function (result) {    
   
                            $.each(result, function(val, text) {
                                addToSelectList(text);
			    });
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                alert( ... );
            }
        });
    }
});
Plamen
Telerik team
 answered on 18 Jan 2013
3 answers
61 views
I have created data driven test case with XML, in my XML file i have multiple rows when i execute this test case it was executing the test n times (equal to the no of rows in XML) but i want this test case to execute only once by taking one set of data randomly from XML File for each time.
 can you help me on the same?



Boyan Boev
Telerik team
 answered on 18 Jan 2013
4 answers
108 views
Hi,all
    When I have multiple test environments in which to execute my test scripts.I found that the operating system of the server was English. But I record my web test in Chinese operating system.So your can see the difference between it from the picture I upload.In these circumstances, I need to modify a lot of places to meet the changes of the operating system.How can I use one step to solve all the problems.
    Thank you for your help
Boyan Boev
Telerik team
 answered on 18 Jan 2013
5 answers
424 views
Hi Telerik Team,
      I created multiple tests for each page of a web application. 

My Test now looks like this
Navigate to : 'http://policyadmindev/ascendantOne/'
Check 'ChoicesRadio' to be 'True'
Click 'BtnContinueButton'
Connect to pop-up window : 'http://policyadmindev/ascendantOne/AORuntime/AORuntime.aspx?SessionId='
Execute test 'QuoteAccess'
Execute test 'GeneralQuoteInfo'
Execute test 'PolicyInfo'
Execute test 'ActuarialExclusion_Form'

Each of the tests "QuoteAccess", "GeneralQuoteInfo", "PolicyInfo", "ActuarialExclusion_Form" are bound to different tables in a database. I need to run one complete iteration for all the steps for a particular policy but currently my test tries to finish all the iterations in "QuoteAccess" before going to the next test. Is there any way i can pass a parameter between these tests and use T-SQL to define the records to use from the database for each iteration?

Any help is appreciated!!

Thank you,
Nithin
Plamen
Telerik team
 answered on 17 Jan 2013
1 answer
51 views
Hi,
    

        Once the test modules are in place,I add them to high-level tests with the Test as Step function. Next I open the AddToCart test and add the  test to the beginning of it.There was so many Test as Step function there and their name was so resemble.

How can I know the path of My web test. 


My Telerik Test Studion version is 2011.2.1413.
Boyan Boev
Telerik team
 answered on 16 Jan 2013
2 answers
33 views
Hi,

Im looking into having some c# coded tests that do some automation for silverlight. The tests run ok when run through visual studio - there are mouse clicks in the tests, when I log off the machine while the tests are running then the tests fail as I assume that the mouse clicks are not working.

How do I work around this as our build sever will have its screen locked...

thanks
Mario
Telerik team
 answered on 15 Jan 2013
1 answer
70 views
Is there a way to set up checkpoints or expected results?  For example if I go through the test and change a value, is there a way to make sure the correct value was saved? 
Mario
Telerik team
 answered on 14 Jan 2013
1 answer
78 views
How can test studio help me to test the EDI files. Can you derive me some general guidline?

Boyan Boev
Telerik team
 answered on 14 Jan 2013
3 answers
280 views
Hi,

We are struggling to copy tests with coded steps in them.  After copying and pasting a test with a coded step it fails to compile due to "The namespace 'TestProject' already contains a definition for 'TestX'"

The reason why we are using copy and paste rather than execute test as step in Test Studio is due to the fact that our workflows require many variable test data columns ( some consist of over a thousand ) therefore we are splitting the test data up into smaller more manageable tables in the database, creating a test for this data and binding it to all rows, then when the QA staff copies this test they will open the data bind and select only the rows they want to use.

Is there any way around this or will I have to workaround it by either changing the namespace in the code each time or renaming the step and code behind the step making it impossible for QA ( who have no technical knowledge ) to re-use?

Thanks
Shane

EDIT: At the moment I have created a single test containing just the coded step to workaround the issue.  Although this works it seems strange to have to create tests every time I want to add a coded step. Please let me know if I have missed something.
Stoich
Telerik team
 answered on 11 Jan 2013
2 answers
87 views
I recently created a test where we have a HTML pop-up that has a session based URL. So in order to keep this step correct we changed the pop-up connection to Modal Pop-Up and put the title of the Web Page is a caption. I recently wrote another script using the same HTML pop up and the same Modal Method and now I can not get TestStudio to connect to it? The User Documentation is limited on how to work around this or as to why this occurs. Any advice would be nice.

The one thing I did notice is if I toggle the "Continue on Failure" the other recorded steps are executed on the pop-up window without error.
Josh
Top achievements
Rank 2
 answered on 10 Jan 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?