Telerik Forums
Test Studio Forum
3 answers
211 views

Hi ppl,

I am currently evaluating the Test Studio including its VS plugin. The usability is very good and the element Mapping (WPF) is awesome. Everyone who has done WPF testing with the MS Framework knows what I am talking about...

However, I ran into some critical issues this morning:

Preconditions

Here is what I need to to:
1) Start IIS Server
2) Load a default Dataset XML into my MSSQL Server
3) Wait for the Process to be finished (Processmonitor)
4) Start my Application
5) Run my Tests

So, I need to ensure that steps 1) - 3) are executed BEFORE EACH test. In NUnit when writing Unittests I solved this problem simply by creating an abstract class, containing all preconditions. This also works using the MS UITesting Framework.

Test Studio always starts with step 4).

Is there...
....any possibility to execute code BEFORE EACH test using Test Studio (plugin)?
....any possibility to execute code BEFORE EACH test using only the pure framework?

This is crucial for my Application Tests, because if I do not reset the Database before a test runs again, it might fail because (for example) it tries to add an element to a list which is already in the list (unique attributes).

"Application"-class

When I am working in Visual Studio, it does not recognize the "Application"-class. It seems to only be available during run-time. So far so good, but how can I address a UI Element via C# code? (Writing "Application." [there is a dot] does not show me any suggestions, which seems absolutely logical, because Application is not recognized)
I don't need a complete tutorial here, but I would be very thankful for any link to a documentation about PURELY coded Tests using the Telerik Testframework.

 

Thank you a lot in advance!

Stephan

Cody
Telerik team
 answered on 28 Sep 2015
3 answers
118 views
Running the tests on Chrome/Firefox browsers on VM slaves are VERY slow, but when run on local computer, the tests runs normal. Any contributions that is causing the issue?
Cody
Telerik team
 answered on 28 Sep 2015
1 answer
72 views

Recently TS start crashing after performance test has ben run and performance test results are been loading. Unexpected error is happening and that's all what i got. No additional info/log is provided, so I have no idea what to tell more to open the support ticket.

I'm running Windows Server 2998 R2, TS version 2015.2.723.0. Tests were ran on IE11 and Chrome 45.0.2454.99 m. Crashes on both as well. Fortunately, no data is lost, and after restarting TS i can get access to results.

Restarting the studio and opening the results takes a long time as well, the results may be loading about 20 minutes or more. Performance is very poor.

 

Any ideas how to solve this?

Ivaylo
Telerik team
 answered on 28 Sep 2015
1 answer
29 views
Ever since I upgraded to the newest build, Test Studio has been lagging. Also, every time I click on "My Account", this is how it appears. Screen shot attached.
Ivaylo
Telerik team
 answered on 25 Sep 2015
3 answers
186 views

So I have something like this:

 

<div class="X">

     <div class="pK">

     <div class = "Z">

           <i class="Target">

pK is what identifies the whole element, this is the only unique thing and I know it going in but that's all I know except that I want to click on i="Target", child of sibling of parent with div class="pK"

So...

Find.ByExpression("class=X", "with child of", "class=pK", "|", "class=Z", "|", "class=Target" )

I think that's where the piece I am missing would go.  Or could I nest them web elements somehow?



Thanks,
Derek


Ivaylo
Telerik team
 answered on 25 Sep 2015
5 answers
68 views

Hello,

I have a couple of questions in regards to scheduling tests and I could not find the answers in other discussions.

I have 4 tests scheduled to run at 8, 9, 10 & 11. If a test starts to run at 8am but isn't finished at 9am, will the test abort and the test scheduled for 9am begin? Or, will it finish running the test and then start the 9am test right after that regardless of time?

Thanks,

Misty

Cody
Telerik team
 answered on 24 Sep 2015
9 answers
269 views
Hi,

I've been encountering an issue for a few weeks now, that I have not been able to 100% solve. Originally, I created a test list which contained 22 tests for a smoke test, which includes over a few hundred steps. Tests range anywhere from 12 steps to 75 at the most. The reason some tests contain upwards of 75 steps is mainly due to the following issue.

100% of the time, one or more tests fails within the test list, however 99.9% of the time, these test pass when I run a Quick Execution. Many of the failed steps within the tests of the list are due to Navigate steps and sometimes an unable to find element click event. To try and eliminate these issues I added a Wait - to exist and have played around with the wait times. While this helps, it consistently does not help during a Test List run and was unnecessary for a Quick Execution.

So after running a Test List of 22 tests, I spread the tests out to 4-5 Dynamic Test Lists. While this definitely helped, I can no longer run a scheduled test without having to account for the execution wait time of between 1-5 seconds (depending on my setting), as well as extra padding to account for the Test List to properly finish before executing the next Test List. So now, while my smoke test takes 15 minutes to execute a Test List of 22 tests, I now have to span these smaller Lists through out an hour to be 100% sure all tests will run. I have voted on the ticket to allow multiple Test Lists to be scheduled at one time.

So now the problem I am running into, is that even when one of these Dynamic Tests fails, I will Quick Execute the test and it will pass with flying colors. I have messed with the mouse clicks, wait times, and even IF/ELSE statements for such steps as Navigate as mentioned earlier. However (and this may be for another ticket), when I Quick Execute a test containing an IF/ELSE, it runs, but when I run the same test inside a test list, it fails on the IF/ELSE 100% of the time.

What, if anything can I do so that I may run my scheduled smoke test everyday in a Test List that will not fail on a step that passes during a Quick Execution? I have also run these tests at different hours of the day to try and account for server performance.


Thanks

Cody
Telerik team
 answered on 24 Sep 2015
1 answer
70 views

Hi,

I am developing automation Test scripts for a Web Application.Here I need to click on Tab button after entering value in a textbox (HtmlInputText type) .But , I have tried to record the step,but failed.It is not recorded.Can you please guide me that what I need to do , for performing this above operation?Please give me updates , as it is very urgent.

Ivaylo
Telerik team
 answered on 24 Sep 2015
1 answer
58 views
Hi,
  I have to automate the following on a web page:
1. The page has days and times to run a scheduled job ie. Mon 02 etc.
2. The user has to select a checkbox on the day and specific hour the job needs to be run
3. I need to tie this page to an Excel file that allows the user to check a box in the sheet and when the automation script is running it automatically selects the corresponding day and time on the web page.
4. The issue is that the Excel sheet needs to act as an input form so thus when the automation script is running it takes the selection and checks the right checkbox on the web page.
Is there a way to do this Telerik, I'm familiar with data binding, but to data bind would mean the script will iterate through the test multiple times. I just need the Excel sheet to act as an input form only.
I will attach a screenshot of the web page
Ivaylo
Telerik team
 answered on 24 Sep 2015
8 answers
239 views

I am trying to set up WebUII on our server and I have the Project Files set up. When I clicking Connect under Scheduling and click the Test Connection button - it says the "Unable to open communication channel Error: Either the scheduling service is not running or the URL is incorrect"

The Scheduling service shows as running in the Windows Task manager. Thanks
Ivaylo
Telerik team
 answered on 23 Sep 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?