Telerik Forums
Test Studio Forum
8 answers
136 views

Hi!

I've been on a trial version for this week.  My initial objectives are to have some regression scripts created to do the following tasks:

1) verify list of values from dropdownlists on web portal pages

2) verify list of values with checklists / checkboxes on web portal pages

I'm working on a web portal app that have lots of dropdownlists with lots of values.  I need some assistance in getting each of the values from the dropdownlist and display it to confirm, then write into the logs or datasource and perform a comparison, returning pass/fail results.  I was able to do the following so far (in VB):

1) get the total count of the dropdownlist

Dim P_Count = Pages.MainPlaceholderDrpdwnPortFolioSelect.ChildNodes.Count.ToString()           
Log.WriteLine ("Total number of Portfolios is " +P_Count)

2) get the default selected value

Log.WriteLine (Pages.MainPlaceholderDrpdwnPortFolioSelect.SelectedOption.Text.ToString())

3) perform the comparison (only with innertex, which is pulls the whole text of combined values together)

 Dim PortfoliosRuntime = Pages.MainPlaceholderDrpdwnPortFolioSelect.InnerText 
 Dim PortfoliosList = Data("PortfoliosList").ToString() 'same as Data(0).ToString()

 If PortfoliosRuntime = PortfoliosList Then
        Log.WriteLine (PortfoliosRuntime)
        Log.Writeline ("Portfolios lists matched!")
 Else
       Throw New Exception("Portfolios lists didn't matched!")
 End If

 

I need help in the following and getting it work:

1) For-Next loop to loop through each value of the dropdownlist and confirmed in MessageBox or log

Dim i
For i=0 to P_Count-1
Log.WriteLine ("Loop count = " + i.ToString())
Next

2) get MessageBox to work and display message box for each value

Dim MsgBox As New NativeWindow()
MsgBox.AssignHandle(ActiveBrowser.Window.Handle)
MessageBox.Show(MsgBox, "This is a message!" 

I appreciate it and thanks in advance for your assistance.

Thanks,

Stephen

Cody
Telerik team
 answered on 28 Sep 2015
7 answers
120 views

I have an application that has a loading div called PleaseWaitGrid. I want to create a step that waits for this element to disappear inorder to move on to the next step. I have tried Wait for not exists with no luck. I've attached a screen show of what I am talking about. Can anyone help me out with this? Thank you in advance.

 

Cody
Telerik team
 answered on 28 Sep 2015
3 answers
304 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
147 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
93 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
35 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
251 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
88 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
286 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
89 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
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?