Telerik Forums
Test Studio Forum
1 answer
74 views
Hello,

I am evaluating Test studio for our application which is partly web-based and partly desktop-based(WCF control).

The initial login is via web and the desktop based part is launched via the web interface. The other option to launch the desktop app is via command line.

I tried to launch the desktop part by configuring to run the exe, but that is not possible since some values are passed while invoking the desktop part (via web or command line).

I wanted to know whether this is possible in Test-studio.
Ivaylo
Telerik team
 answered on 08 May 2014
1 answer
101 views
My question is about nested data-driven tests. I have a testing scenario that involves using a data set that iterates a test where each iteration will have different sets of data to iterate through in turn.  I’ve gotten the tests to run, but with some unexpected behavior.  The middle test will run more iterations than there are entries in the data, and only the first set of data is used (repeatedly) in the inner test.  Is there some way to do this that I’m missing?  Would I be able to accomplish this using if…else in the inner test?  Thanks.

See attached doc for details.


Boyan Boev
Telerik team
 answered on 08 May 2014
2 answers
52 views
Hi,

***I am looking for a log (if it exists) that is created when my project is upgraded from an older version of Test Studio to a new one***

I just performed a test upgrade from Test Studio 2012.2.1420.0 to 2013.2.1327.0.  When I double click on a test the prompt to upgrade my project is displayed.  I click OK and Test Studio begins converting my project.  Once it is done, it opens up the test and that's it.  Unfortunately, there are a number of tests that are not checked out and do not get upgraded.  Three of those tests are listed in the Output window as being corrupted and the others are not mentioned anywhere.  I want to find out what's going on, but i cannot find a log file to help me troubleshoot the issue.

Does anyone know where I can find the log file (if it exists) that is created during my project upgrade?

***The only message displayed in the Output window***
Error loading c:\...\testname1.aii: File 'c:\...\TestName1.aii' is corrupted
Error loading c:\...\testname2.aii: File 'c:\...\TestName2.aii' is corrupted
Error loading c:\...\testname3.aii: File 'c:\...\TestName3.aii' is corrupted

Thank you,
JT Bhatt
JT
Top achievements
Rank 1
 answered on 07 May 2014
3 answers
162 views
It looks like when using special characters such as [, ], (, ), the execution will fail:

InnerException:

System.ArgumentException: The path is not of a legal form.

   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength)

   at System.IO.Path.GetFullPathInternal(String path)

   at System.IO.FileInfo.Init(String fileName, Boolean checkHost)

   at System.IO.FileInfo..ctor(String fileName)

   at ArtOfTest.WebAii.Design.ProjectModel.TestFileHandler.LoadFromDisk(String pathToFile, Boolean autoLoadTypes, FileOpenResult& result)

   at ArtOfTest.WebAii.Design.ProjectModel.Project.LoadTest(String filePath)

   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteTestInCurrentContext(String relativeTestPath)

   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.ExecuteTestActionDescriptor.Execute(IAutomationHost autoHost, TestAsStepResult result)

   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

------------------------------------------------------------

Ivaylo
Telerik team
 answered on 07 May 2014
1 answer
49 views
Hi All,
Is it possible to automate Mumps Cache application using Telerik Test Studio. Thanks.

Regards
Priya
Boyan Boev
Telerik team
 answered on 07 May 2014
4 answers
130 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
141 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
143 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
81 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
114 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
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?