Telerik Forums
Test Studio Forum
4 answers
135 views

I'd like to select a result from a drop down menu that isn't based off it's contents.

So I want to be able to select the First, Second, Third result from a drop down menu that doesn't rely on it's contents.

This is because the results in the drop down menu are date based and I do not want to keep having to reset the dates in the tests.


Attached is the DOM view of the Drop-Down menu

If it requires a coded step please include instructions on how to integrate it into a test as a step, as I have really only been using recorded steps so far.

Dean
Ivaylo
Telerik team
 answered on 06 May 2014
6 answers
149 views
So it looks like all documentation I'm reading states that in order to loop certain steps, you need to drag said steps either into or underneath your Loop step. I'm not sure if I'm just missing how to do this or perhaps there's a bug here, but this doesn't appear to be how this functions. In my attached screenshot I dragged 10 steps below the loop step and what appears to be happening is the loop just runs through ALL steps in the test not just the ones below it.  Could someone provide some info as to maybe what I'm doing incorrectly here??
Konstantin Petkov
Telerik team
 answered on 06 May 2014
8 answers
149 views
Using IE9 and Test Studio version 2013.2.1327.0...

I am trying to automate a tool my company uses to record business contacts. When a new contact is created, it is added to a table that includes all the contacts for that specific user. Each new user is given an ID number, and the link to view that person's details and edit their information includes that ID number (for example, the first contact recorded within the tool would be given an ID of "1" and the URL to view/edit their information would look something like "Contacts/Edit/1"). The table displays all of the information in the appropriate row by reading the ID of the created contact (pretty simple). I have included a screenshot so you can view the layout of the table I am describing.

When automating, since a new user with a new ID will be created every time I run the test, how do I get Test Studio to look for the contact I just created? Ideally, I want to automate (and verify) that information inputted when creating the contact is displayed properly in the Edit and View Details pages (so I would need to click on each of those links that contains the ID of the newest created contact).

For background, I have minimal developer experience. I think this may be solved with a coded step, but I have had very little experience writing code.
Cody
Telerik team
 answered on 05 May 2014
1 answer
84 views
Position:
  Senior Level QA Tester,   Telerik Experience Level:  Beginner,
   Programming experience: Minimum



I would like to 

1) Sign into my
eCommerce account 

2) Click into the
Search field

3) Locate one
product using a product ID number

4) Add that product
to the shopping cart

5) Process the
shopping cart 

4) Return to the
home page

5) then loop back
to step 2   using a datadriven text
file with a list of 50 products



So far, I have been
successful in 

-recording these
steps by manually entering a product ID number into the Search field 

-creating and
attaching the datadriven text file



My difficulty is
accessing one product ID at a time from the Datadriven text file to put into
the shopping car. Currently, the shopping cart does not process until all of
the items are placed into the cart.     Where should the Datadriven
text file be placed within the Test?  What other steps are required to do
this?   (See step #16 on the attached file)



Thank you for your
assistance!
Daniel Djambov
Telerik team
 answered on 05 May 2014
6 answers
116 views

Hello,

I am writing a test to work on a RichTextBox (Silverlight) which has several hundred Text Box elements.  Tasks include both typing in as well as content verification.  I have run into a couple of issues - hoping someone can help.

a) I am trying to type in a string at a specific location (for example, in between two text elements).  I have written a coded step (clicks on one of the text boxes) that gets the cursor to the correct position.  I then have a Type Text statement (tried both recorded as well as a coded step) that types in a string.  I am expecting the string to be typed in at the cursor position - however, the text shows up somewhere above the cursor (on a different line). 

Is there anything I can do to get the test to type in at the desired location?

Here is the relevant code:

// LeftClick on Textblock10
RashOnTheTextblock2.User.Click(ArtOfTest.WebAii.Core.MouseClickType.LeftClick, 73, 43, ArtOfTest.Common.OffsetReference.TopLeftCorner, ArtOfTest.Common.ActionPointUnitType.Percentage, ((System.Windows.Forms.Keys)(0)));
 
// Type 'upperarm' into RichTextEditorClinicalNoteRichtextbox5
RichTextEditorClinicalNoteRichtextbox5.User.TypeText("upperarm", 10, 100, true);



b) Is there a fast way to collect all the text boxes in the RichTextBox into an IList or another collection element and/or to find all TextBlocks matching a certain text or another property?  

Here is my current code:

IList<TextBlock> rtbCurrentPNLines;
 
// Get all lines in the current progress note.
// NOTE:  The array will contain lines that are empty or are not visible to the eye in the Progress Note ("Spelling Suggestions", "Name:", "Url" - these are the last 3 lines in the array).
rtbCurrentPNLines = rtbNote.Find.AllByType<TextBlock>();

 

// Get all instances of multiply occurring text (that this test will use)
// 'PROBLEM '
PROBLEMTextBlocks = PNContents.Where<TextBlock>((a_) => (a_).Text.Equals("PROBLEM ")).ToList<TextBlock>();

The problem with both the above is that it takes several seconds to execute each of the above - the first one takes 20+ seconds for about 600+ Text Blocks.    Further, I have to do this multiple times as the contents are changing during the test and verifications have to be done after those changes.  So, as you can imagine, running time of the test is increasing dramatically as the test is further developed. 

NOTE:  None of the text boxes have x:Names or Automation IDs and there are several duplicates - so simple recorded steps for text block verifications does not work.  Content of the note is dynamically generated (they are not in a xaml file).  GIven current release schedules, it is highly unlikely that devs will have time to modify the code to assign x:Names or Automation IDs for us to reference elements directly.

Any help for the above questions would be greatly appreciated.  By the way, I need solutions that will work with the version of TS that I am using (see my signature below).  We do plan to upgrade to a more recent version- but that won't be for a couple of months (at least). Again, the app is a Silverlight application.

Thanks,
Shashi
Test Studio 2012.2.1420.0

Konstantin Petkov
Telerik team
 answered on 05 May 2014
3 answers
130 views
I'm trying to test kendo ui datepicker using test studio, but I can't click the date.
My scenario is,,
I want to go to 2 years before the default date for the different date.
But it doesn't work when i running my project..
Konstantin Petkov
Telerik team
 answered on 03 May 2014
2 answers
91 views
Hello,
We were in the middle of creating a test with everything functioning as it should.
However, out of the blue a page we frequently use/redirect to seems to turn off recording (Recording Toolbar disappears, no steps will record).  We have tried restarting Test Studio/the computer/as well as try a new test and recreate the steps.  

It has been recording just fine up till now, as well as the other pages.  However once arriving, the toolbar goes away and the browser simply acts as a normal browser.
We are focusing on using IE as well.
Konstantin Petkov
Telerik team
 answered on 02 May 2014
5 answers
134 views
I am very new to this testing tool and am tasked with converting our Excel test scripts to Automated Tests.

The challenge I have is that all the examples on the forum for what I am trying to do seem to be in C# and I work in VB - so there is a bit of a translation process there that seems to make things harder.

I need to find out two things from the Web pages we are testing:

First.  I have a Data Grid (not RadGrid) on a page with a column containing text like 'People', 'Places', 'Items' and so on.  To the right of this column I have an "Update" link.  I would like to select the row that the 'Items' text is in, and click on the "Update" link for that row in my test.

Secondly.  I have a RadMenu with a number of items in it that is generated dynamically from the database depending on the permission set of the user logging in.
User 1 might have 3 items - 'People', 'Places', 'Items' whereas User 2 only gets 'People' and 'Places'.  My test is to ensure that the 'Items' menu does NOT appear for User 2 and does appear for User 1.

The actual system is considerably more complex than what I have outlined here and I can't work off the number of items in the menu as User 2 may have 'People', 'Places' and 'Oranges' so both users would have the same number of items.

I know how to get to create a coded step, and have added a number of coded sql queries to verify data that has been entered in the system but the above two issues have held me up for days.

Help would be appreciated and in as basic (pardon the pun) a format as possible.  Step by Step would be ideal.

Thanks
Doyle
Top achievements
Rank 1
 answered on 29 Apr 2014
1 answer
54 views
Hi
Can I know the Test Studio is able to do the both static and dynamic code analysis...? actually we have a .net 3.5 application integrated with oracle database and now our team wants perform dynamic code analysis of the that application is it possible with that tool?
Cody
Telerik team
 answered on 29 Apr 2014
3 answers
160 views
Hi all,

Can anyone provide me a list of files that are required to be included in my source control software?

Thanks,
Kevin
Cody
Telerik team
 answered on 29 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?