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.
$("#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( ... );
}
});
}
});
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.