Telerik Forums
Test Studio Forum
1 answer
177 views
Test Studio Team/ Experts/ Advanced Users:

Greetings! I work as a Software Tester and new to "Test Studio". I need some help with automating a "Email Address" field which requires a new data input each time I execute the Test Studio Script. For example:

1) The Business Rule for the application I am currently working is: When creating new users, each user should have a unique "Email Address".

2) So I am recording the steps in "Test Studio" for creating a new user using the email address: Tester1@test.com

3) However when I execute/ replay the same script it fails because an user with <Tester1@test.com> email already exists.

Now here are my questions:

* Question 1:  Is there any way to increment the value in "Email Address" field? So that each time I run the script it automatically increment the email address as: <Tester1@test.com>, <Tester2@test.com>, <Tester3@test.com>. Please advise.

* Question 2: Is there any way to add a new value to a specific "Text Field" each time I execute my script?

* Question 3: If there is a solution for the problem mentioned above could you please send me the details steps as I am totally new to this "Test Studio" tool?

Thanks so much for your help.
Elena
Telerik team
 answered on 14 Sep 2017
10 answers
207 views

Hi.  I am experiencing trouble with connecting to a frame element.  Attached is a log with a comparison to the definition of the frame element.  As you will see, the frame has a unique id so I would think that would be used to find the frame element.  I did not have the UseQuery option checked, yet the log indicates that it is.  

When I run this script "live", stopping execution just before connecting to the frame, and re-record, the first step inside the frame is recorded against the correct element inside the frame element.  But if I just execute the script, it fails when attempting the first step inside the frame, as denoted in the log above.

Any help you can provide would be much appreciated!  Thanks.

Briar

Briar
Top achievements
Rank 1
 answered on 14 Sep 2017
3 answers
153 views

Hi Team,

I need to verify whether the hand effect is displayed when hovering over the mouse on a HtmlListItem. I tried below code piece but it's not capturing the hand effect of the mouse.

System.Windows.Forms.Cursor.Current == System.Windows.Forms.Cursors.Hand

Regards,
Harsha

Elena
Telerik team
 answered on 13 Sep 2017
17 answers
1.2K+ views
Hello - I am unable to get a registration key for the license key (trial version ) of WebUI Studio. Please see the attached gif file for the registration key that was generated? Please help.

Elena
Telerik team
 answered on 13 Sep 2017
5 answers
126 views
Hello, I just have a quick suggestion...instead of closing Test Studio after receiving the "invalid license" error message, would it be possible to direct the user to the license activation screen?  We have a need to shuffle licenses around at this time between machines and this usability request would be greatly appreciated.

Of course I understand it would be easier to purchase more licenses and/or reduce our machine count, but we have temporary solutions in place due to budget constraints.

Thanks!
Elena
Telerik team
 answered on 12 Sep 2017
7 answers
265 views

Using Test Studio Ultimate, I am testing an application that sends a variety of emails that require user interaction with the Email contents (clicking links, for example). Unfortunately Gmail is an absolute mess in the DOM, and trying to find anything by ID/Class is virtually useless. At this point, the best solution I have come to is using XPath to locate elements.

When running through a bunch of iterations of my test (user setup, email notification + interaction, back to web app) the Gmail part will fail about 1/10 times on the XPath lookup. The main issue seems to be with how Test Studio reads and converts the HTML to XML, then parses it to try and find the specified XPath query. In the test failure log, I don't get a full log dump. It seems to be several hundred lines of logs from existing tests, then it dumps a HUGE (~2000-8000 lines) XML content from the Gmail page into the log, and then it fails out each level of testing.

The 2 primary functions I'm trying to handle are:

- Get email contents based on the subject

- Click the link generated, which is stored in an email message

First off, is there a way to work around the error in Test Studio? Most of the time it works properly, so I'm not sure how to troubleshoot the intermittent failure.

Secondly, is there a better way than XPath to try and locate page elements in Gmail? (Eventually the dev team will implement other ways of handling the email contents, but that will be months down the road.)

I don't have logs at the moment; I will save them the next time I see a failure.

Elena
Telerik team
 answered on 12 Sep 2017
3 answers
156 views

Hello, 

I try to use your code in the tutorial , which is :

int length = 8;
//Define the included characters
string charSet = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";

Random random = new Random();
string randomText = new String(Enumerable.Repeat(charSet, length).Select(set => set[random.Next(set.Length)]).ToArray());

Find.ById<HtmlInputText>("search-cif").Text = randomText;
Find.ById<HtmlInputSubmit>("img-search-cif").Click();

 

But there's no random text generated and it keep failed.

Error :

Object reference not set to an instance of an object.

 

Can i know why or how im supposed to use the code ?

Elena
Telerik team
 answered on 07 Sep 2017
1 answer
164 views
hi, how i make multiple test at the same time in 1 machine?
Nikolay Petrov
Telerik team
 answered on 04 Sep 2017
3 answers
116 views

Hello ,

I have a little bit problem over here, since my test need to call a new browser and go to a second URL which is the tests would run in that active browser (2nd broswer) then have the browser close once the tests are done in that one and continue on in the old browser (1st browser). The question here, is it Test Studio have the function to call the 2nd browser ? if have, please make a tutorial step by step since im the beginner in using this test studio. 

Thanks, 
Kay Azlan

Elena
Telerik team
 answered on 30 Aug 2017
2 answers
882 views

On one of our webpage, on clicking the button we display the list of records. We have a loading screen with a text in <p> that is displayed until the records are fetched from DB.

I need to set some wait time using the text in <p> such that it waits until text is displayed before proceeding to the next steps. Once the text is replaced with the list items, want it to resume playback. What should I be using in this case?

 

Thanks

Satpreet

Elena
Telerik team
 answered on 28 Aug 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?