Telerik Forums
Test Studio Forum
3 answers
235 views
Hi all,

I'm writing on behalf of our test team that's getting started with WebIO Test Studio QA Edition and have run into a few challenges in setting up tests. Together we weren't able to find samples to do what we're hoping to get done but I assume it's possible in some way.
We have several tests created in the test studio that are running great but are seeing failures usually due to unreliable element IDs. The test team is less technical than a typical QA department so are relying heavily on the test recorder.

1) One of our pages contains an arbitrary number of textboxes (HTML INPUT fields). Our test script adds a new textbox by triggering a postback using other controls on the page. After that, we want to verify that there exists a textbox on the page containing the text we entered.
Using the recorder, the textbox is always identified by ID which fails on subsequent runs.
I suppose the short form of the question is "how do I verify that there exists on the page (or within a particular div) an INPUT with value X?". Can this be done using the GUI tools without (or using minimal) code?

2) How do we verify that a list (HTML SELECT) contains (not necessarily selected) a particular value? The IDs of the items are also unreliable, but we know the value we're looking for. The ID of the SELECT element is known.

3) How do we verify that a list (HTML SELECT) does NOT contain a particular value? I suspect a GUI-created solution isn't possible for a case like this.

4) How do we verify that a list (HTML SELECT) contains no items (OPTIONs)?

The test recorder is great for static pages but dynamic IDs have proven challenging to them. We went through a getting started guide together and didn't find anything that went into the areas we're having troubled with. If there is some supplemental documentation that points us in the right direction that would be super.

Thanks!
Keaegan
Telerik team
 answered on 27 Dec 2010
5 answers
159 views
I'm using WebUI Test Studio 2010.2 to test an application that deals with orders for temporary workers.  When a new temp order is created, a new guid is generated by the application and comes back to the web browser in a session variable.  That value is then used in multiple places - links on the page, the url in the address bar, etc.  Each time a new temp order is created it has a new guid. Note that the actual creation of the new guid and the new temp order record in the DB occurs upon the submission of form 1 in a 5-form process.  So on page 1 there is no temp order and thus no guid.  On pages, 2-5 - and all attendant lookups/popups - the guid hangs around to ensure all the actions are performed against that exact order and no other.

At the moment, the recorder does a fine job of recording all of these values but of course running the test fails since it's looking for the guids found when it was recorded, and now they're all 'wrong'.  The guids are not sequential, they are totally random in the form of "8-4-4-4-12" , a hexidecimal string.  I can't imagine the idea of dynamic values - that are not pre-recorded in a file - hasn't occurred to anyone at  Telerik.  I'm sure it's my own ignorance of the test suite, but I can't find any information about this in the docs.  How do I get this done?

Thanks,
Todd B.
Keaegan
Telerik team
 answered on 27 Dec 2010
3 answers
159 views
Hi,

I have an scenario where I need to find all the HyperLinks in Row which is having only one cell. I am Using WebUI Studio 2010.3 QA Edition(Trail One). Please find the screenshot attached. In the attached screen-shot page no's are displayed in the last Row of a table where our automation scenario requires to navigate through the all Page's by clicking on each page link & check the contents in the page.  The Screen Shot Contains only to couple of pages to navigate, but in some sceanrios we may require to navigate through 9-10 pages based on Data. I am struck at this point where i am not able to find any dynamic code to traverse through all pages.Please help me in resolving this problem.

Waiting for your reply.

Thanks,
Kalyan
Cody
Telerik team
 answered on 27 Dec 2010
1 answer
129 views
The project I am automating with my collegues is based on an application where each client has their own URL (and database instance).
That application also has a requirement that only one session is "tolerated" for a given client.
So, when client1.CrazyApp.com logs in and there is already a session for client1.CrazyApp.com then the existing session is terminated by the server.

I want to work on the same project with my co-workers using more than one URL to automate testing of the same application without having to worry about being bumped off.

Telerik enables me to change the base URL on the TestList level but not on the Test level, so we keep bumping each other off.

If anyone had to deal with a similar situation and solved the issue - please help.

I would hate to keep the automation completely separate then merge the two parts of the same project as i expect lots of issues and problems.

Much appreciated,
Cody
Telerik team
 answered on 27 Dec 2010
5 answers
71 views
Hi
I have a column in a grid view which contains values like '1234****345'
I am not able to use filters property on this column
please help me!
Julian Benkov
Telerik team
 answered on 27 Dec 2010
0 answers
76 views
Hi ,
I am new in rad control.
I am using rad upload control in our asp.net page and try to store the file in our project folder by TargetFolder property of rad upload.
Here is my page code is.
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <div class="fromContainer">
        <h1>
            <asp:Label runat="server" ID="lblHeader" Text="Why I love Kiwanis" />
        </h1>
        <img src="Images/btnAdd.jpg" class="btnAdd" id="Add" />
        <div style="clear: both;">
        </div>
        <div id="panleText" class="tabPanel">
            <h2>
                Add your story and photo here!
            </h2>
        </div>
        <div id="panelMain">
            <asp:UpdatePanel runat="server" ID="UP">
                <ContentTemplate>
                    <div class="bottomBgBox">
                        <table cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    <table class="tblBasicForm">
                                        <tr>
                                            <td>
                                                First Name
                                            </td>
                                            <td>
                                                <asp:TextBox runat="server" ID="txtFirstName" CssClass="input" />
                                            </td>
                                            <td>
                                                <asp:RequiredFieldValidator ID="rfvFirstName" runat="server" ControlToValidate="txtFirstName"
                                                    ErrorMessage="*" ValidationGroup="Submit" ForeColor="Red"></asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Last Name
                                            </td>
                                            <td>
                                                <asp:TextBox runat="server" ID="txtLastName" CssClass="input" />
                                            </td>
                                            <td>
                                                <asp:RequiredFieldValidator ID="rfvLastName" runat="server" ControlToValidate="txtLastName"
                                                    ErrorMessage="*" ValidationGroup="Submit" ForeColor="Red"></asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Club Name
                                            </td>
                                            <td>
                                                <asp:TextBox runat="server" ID="txtClub" CssClass="input" />
                                            </td>
                                            <td>
                                                <asp:RequiredFieldValidator ID="rfvClub" runat="server" ControlToValidate="txtClub"
                                                    ErrorMessage="*" ValidationGroup="Submit" ForeColor="Red"></asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td>
                                    <table class="tblOptionalForm">
                                        <tr>
                                            <td rowspan="3">
                                                <img src="Images/tagOptional.jpg" />
                                            </td>
                                            <td>
                                                Country
                                            </td>
                                            <td>
                                                <asp:DropDownList runat="server" ID="ddlCountry" AutoPostBack="true" OnSelectedIndexChanged="ddlCountry_OnSelectedIndexChanged"
                                                    CssClass="input" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                State
                                            </td>
                                            <td>
                                                <asp:DropDownList runat="server" ID="ddlState" CssClass="input" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                City
                                            </td>
                                            <td>
                                                <asp:DropDownList runat="server" ID="ddlCity" CssClass="input" OnSelectedIndexChanged="ddlCity_OnSelectedIndexChanged" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="discriptionBox">
                        Discription
                        <br />
                        <asp:TextBox CssClass="input" runat="server" ID="txtDiscription" TextMode="MultiLine" />
                        <asp:RequiredFieldValidator ID="rfvDescription" ControlToValidate="txtDiscription" ErrorMessage="*" ForeColor="Red"
                            runat="server" ValidationGroup="Submit"></asp:RequiredFieldValidator>
                        <br />
                        <div>
                            <telerik:RadCaptcha ID="RadCaptcha1" runat="server" ErrorMessage="The code you entered is not valid."
                                ValidationGroup="Submit">
                            </telerik:RadCaptcha>
                        </div>
                        <br />
                        Photo Upload
                        <br />
                        <telerik:RadUpload ID="flPhoto" runat="server" CssClass="fileUpload"  AllowedFileExtensions=".jpeg,.png,.gif"
                            ControlObjectsVisibility="None" TargetFolder="~/Record/"></telerik:RadUpload>
                        <asp:ImageButton runat="server" ID="btnUpload" CssClass="btnAdd" ImageUrl="~/Images/btnUpload.jpg"
                            OnClick="btnUpload_OnClick" ValidationGroup="Submit" />
                    </div>
                </ContentTemplate>
            </asp:UpdatePanel>
       
</asp:Content>
In our code i am using <asp:update panel> plz provide me help by example
1. How to use rad ajax in that particular page.
2. why the uploaded file does not store in folder.
Thankx
Deepak
Top achievements
Rank 2
 asked on 27 Dec 2010
4 answers
126 views
I have a TXT file,I want put the TXT file's content into a RadBook control,let it like an E-Book.Someone help me please!
Bennet
Top achievements
Rank 1
 answered on 22 Dec 2010
8 answers
166 views
Hello. I have a scope of tests in QA edition. I downloaded WebAii Testing Framework Free Edition. I connect it to Visual Studio 2010. Then I export all my tests from QA edition to visual studio 2010. How can i launch them?
Cody
Telerik team
 answered on 22 Dec 2010
3 answers
134 views
Hi,

This is similar to Data Driven Testing - Combo Boxes, I tried the similar approach but I got the following error:

" (CS0030) Cannot convert type 'Telerik.WebAii.Controls.Xaml.RadComboBoxItem' to 'ArtOfTest.WebAii.Silverlight.UI.ComboBoxItem'"

I would like to ask what approach shall I use to fix the error I am getting.

Or are there other alternative how I can use the Data Driven approach when selecting combo box since the combo box that I will be used for testing is very dynamic.

Thank you
Nikolai
Telerik team
 answered on 21 Dec 2010
2 answers
134 views
Hi. I have next code
var table=Csv.GetDataSet("C:\\Documents and Settings\\Administrator\\Desktop\\SFT\\Data\\Units.csv").Tables[0];
var tableRow=table.Rows[0][1];
table.Rows[0][1]= scuId;
Csv.SaveTable(table,"C:\\Documents and Settings\\Administrator\\Desktop\\SFT\\Data\\Units.csv");

I launch test and it fails because of values is separated by comma.

Failure Information:
~~~~~~~~~~~~~~~
Exception thrown executing coded step: '[UnitGroupCreation_CodedStep2] : Write group name in file'.
InnerException:
System.IndexOutOfRangeException: Cannot find column 1.
   at System.Data.DataColumnCollection.get_Item(Int32 index)
   at System.Data.DataRow.set_Item(Int32 columnIndex, Object value)
   at SFT.UnitGroupCreation.UnitGroupCreation_CodedStep2() in c:\Documents and Settings\Administrator\Desktop\SFT\UnitGroupCreation.aii.cs:line 75

If I modify Units.csv manually and change separator from ',' to ';' the test will be passed successfully.

The problem is not resolved if I change list separator in the regional configurations in my system. Could anybody help?
Cody
Telerik team
 answered on 21 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?