Telerik Forums
Test Studio Forum
6 answers
371 views
(Silverlight)

Anyone have experience using EXTRACT to pull a data vlaue into a variable and then writing code to compare that extacted value against data in another field?

Ex.
Field A
Field B

I need to compare Field B value to what was entered in Field A. If Field B > than Field A, I need to verify that an error message is thrown back on Field A. Silverlight uses a control that outlines the field in red and then presents the error on hover over the upper left corner of the input box.

Telerik Support suggested using Extract during recording and then writing code to compare the values as intergers in  a coded step. I'm still not able to verify that an error message is thrown if Field B > Field A.



Plamen
Telerik team
 answered on 22 Jan 2013
12 answers
564 views

I have a Silverlight application the outputs “Hello, World!!” when run.  I successfully wrote a test and used the “Quick verification” to verify the text “Hello, World!!” Success.  It worked.

 

The problem is, let’s say the application is recompiled to display “Hello, Telerik!!”  In Test Studio, I go to my test step and modify the value expected to be “Hello, Telerik!!”  I run the test.   The Silverlight application opens up with “Hello, Telerik!!”.  The problem is the test fails.

 

This is a simple example.  Throughout my application at work, I need to verify data in textboxes or labels where the values are dynamic.  Based on the environment/scenario that the application is run, the textbox will have a different value.  Therefore, I convert the verification step into a coded step.  In this case, Test Studio recognizes the label as
Pages.PracticeTextBox.SilverlightApp.HelloWorldTextblock.Text

 

The problem is that this label should not be called a HelloWorldTextBlock.  Since, it may not have the value Hello World all the time.  I need to be able to verify text and data dynamically.  Please help! Code Attached.

Top Gun
Top achievements
Rank 1
 answered on 18 Jan 2013
2 answers
78 views
I am having a problem with the test studio run time where the test studio run time will stop & hang on server 2012 (IE10) when I Clear Browser Cookies. The screen capture attached has been sitting there for more then an hour.
Jon
Top achievements
Rank 1
 answered on 18 Jan 2013
3 answers
132 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
68 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
128 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
472 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
68 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
41 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
84 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?