Telerik Forums
Test Studio Forum
2 answers
127 views

I have been having some issues with data driven tests in teststudio. One of the issues I have been having is that there does not appear to be any indication that a step is data driven if I give the step a custom name. I am not 100% sure if this is because of a bug, or because I am doing something wrong, but see screenshots. Does anyone have any advice on this issue?

 

The desired behavior from my perspective is to have the custom name be edited to have -datadriven [data column] when I edit it. It does seem like this sometimes happens, which is another reason I am confused... any advice is appreciated

Plamen Mitrev
Telerik team
 answered on 29 Oct 2019
3 answers
188 views

Hi All,

I have few Data-Driven test cases that I execute in quick execution and there are no problem with them. But when I create a test list that includes the same test cases, the test list execution failed and stopped unexpectedly.

1. The first case might be caused by the test list setting that I set which is UnexpectedDialogAction : HandleAndFailTest but the other iterations for the same test case don't have this problem. Furthermore, from the video and screenshot of the failed step , I don't see any Dialog box appeared. The failed step is after the browser navigate to a url link. You can refer from the picture "Case 1.png".

2. The second case is the execution stops unexpectedly without any specific error in the middle of the second iteration. The test list result came out as no test steps are executed and there is no iteration completed while actually the first iteration is completed. I can confirm the first iteration is completed because I checked with my AUT and the saved data is there from the first iteration. You can refer from the picture "Case 2.png".

Does anyone experienced this before?

Plamen Mitrev
Telerik team
 answered on 28 Oct 2019
1 answer
152 views

Hi,

I have this problem where I have a few test cases interacting with the same dropdown in a same screen.

Case A : The execution was OKAY if the flow is as below :

1. login

2. go to the screen

3. Interact with the elements in the screen ( Textbox, checkbox, dropdown)

4. Verify elements.

5. log out OR click the "Cancel" button which reset all the fields in the screen.

6. Repeat step 1 to 5 if i logout OR repeat step 3 to 5 if i click the "Cancel" button ( with different interaction and verification but mostly with the same elements)

 

Case B : Since i wanted to reduce the execution time with only login once and make sure to reset the screen even after save, i build the execution flow as below :

1. login 

2. go to the screen.

3. Interact with the elements in the screen ( Textbox, checkbox, dropdown)

4. Verify elements.

5. Repeat Step 2 to 4 but with different interaction and verification but mostly with the same elements

I skipped the login part for the next time i go to the same screen because the screen will be refreshed and the changes will not be saved . This is when the execution won't click the item in the dropdown. The steps to handle other elements(textbox,checkbox) are working fine.

The way i handle the dropdown field is I will add the span that represents the dropdown and the list item inside it separately. Then I will use the step builder to click each of the element. I cannot use KendoInput: Toggle Combo because this step is not stable for the AUT i am testing. This AUT is using Kendo UI for jQuery.

For this case(Case B), it seems that it clicks the dropdown span, but it wont click the list item inside. This happens only when i go to the same screen for the second time and onwards. For Case A, the execution will click both of the element no matter how many times it goes to the same screen.

This behaviour happens in test case execution and also test list execution.

Have anyone encountered this kind of problem before?

Thank you.

Plamen Mitrev
Telerik team
 answered on 25 Oct 2019
2 answers
161 views

Several tutorials have mentioned an 'edit in live' option. I assume this was taken out since I don't have such an option, but I can find nothing online about it. 

Currently I am doing this tutorial,

https://www.telerik.com/videos/teststudio/test-studio-tutorial-automated-testing-for-complex-grid-scenarios

and again the option was again mentioned. This is such a regular thing that I wanted to check on this and see if I am supposed to have this option, and why it is no longer available?

 

Plamen Mitrev
Telerik team
 answered on 25 Oct 2019
1 answer
106 views

I am attempting to use a test with stored values to create a table row, search for the table row I created, and delete the table row. To do this, I want to use data-driven find logic. When I did something similar following along with this tutorial, it worked fine and I was able to do it. 

https://www.youtube.com/watch?v=yfXJmj1c0Xc

However, now that I am in my application, it does not seem to be letting me use the data-driven find logic. I have combed through trying to find the answer of why this is, but for the life of me I cannot see what is different. I have the local test data, but it just will not let me use it for this test. Even in other tests I have tried it works fine, but this one it does not. 

Can someone more experienced tell me why this is not working here?

 

Plamen Mitrev
Telerik team
 answered on 25 Oct 2019
1 answer
128 views
I setup the Executive Dashboard for our environment and have been looking at it over the last few days and I have a few thoughts and suggestions.

1. This could be a bug but, if not the documentation should be updated to include that the Scheduling Server Settings needs to be set to Run Remotely for this to work. If you are running locally you set it to Run Remotely and put in the server name of Localhost. I tried for a couple of hours to get it to work while I had it set to Run Locally and did not get anything in the Executive Dashboard, it was only once I changed it to Run Remotely that I started getting information in the Executive Dashboard.

2. It would be nice to have the Executive Dashboard run under Https.

3. On the Test Run List page (Where it lists each of the test runs) it would be nice to have a listing of how many tests ran, How many Passed and How many Failed. I could have a test run of 1000 scripts and 1 failed and another that ran 1000 scripts and 999 failed, from this view I would not see a difference in the 2 runs.

4. On the Test Run Details (Where it lists the actual tests) this needs to be configurable as to how many items are view able at a time. 5 is not sufficient for our needs, it just adds a whole bunch of pages that no one is going to click through. A selection to view 5, 10, 25, All would be handy.

5. On the Test Run Details (Where it lists the actual tests) a filter would be nice to be able to filter to see only the failed, only the tests that rerun, only passed, etc... would be nice. That way you do not have to weed through everything to find the failures or reruns to see what the problem was.

Overall this is a great addition to be able to show our testing effort. With a few tweaks this would knock it out of the park!
Plamen Mitrev
Telerik team
 answered on 25 Oct 2019
1 answer
157 views

Hello,

I have gotten to the point where it would be useful to create a custom element. However, I can not perform edits on custom elements I create, such as setting the find logic. I have read the documentation and I can see no reason why this would be. Please see screenshots for my issue.

 

I really need this to be working to quickly create elements such as nested objects that are part of a row. 

Plamen Mitrev
Telerik team
 answered on 25 Oct 2019
1 answer
221 views

Is there a functionality or way to write/execute a test that can compare data returned to a baseline data?  If this isn't a possibility is there a way to query a database?  I am trying to have automated test check for data changes when we make updates to ensure calculations are correct; the calculations comeback versus html.

If this is not a possibility what would be the best way to set up an automated test where I would be able to verify data returned is within range?

 

Regards!

Elena
Telerik team
 answered on 24 Oct 2019
1 answer
193 views

Hello, I am new to testStudio, and somewhat new to C#, so this may have an obvious answer, but it seems pretty straightforward...

 

[CodedStep(@"Verify 'logged in' status")]
        public void Verify_logged_in_status()
        {
            Pages.KDHERadon2.SignOutRibbonButton.Wait.ForExists(7000);
            if (Pages.KDHERadon2.SignOutRibbonButton.IsVisible() == false)
            {
                this.ExecuteTest("Login to Radon.tstest");
               
            }
               
        }

 

What I want to happen is if the log out button is not visible, I want the application to execute the log-in 'test' to get logged in. It waits for the element to be visible for 7 seconds, and if it is not visible, it executes the log in test. 

 

But instead of this, this coded step simply 'fails'. I do not understand why this is happening, can someone please enlighten me. 

Plamen Mitrev
Telerik team
 answered on 23 Oct 2019
1 answer
302 views

hi im new to this community :) why im getting this error when im trying build and execute a radtextbox for store text in variable from input in textbox?

its like same error for days i fix code everytime using bug submit but useless

 

can someone help :) appreciated

the error :

[ Compiler ]
18:27:31 'ERROR' > c:\Users\Administrator\Documents\Test Studio Projects\TestProject4\WebTest.tstest.cs(55,43) : error CS1061: 'Telerik.WebAii.Controls.Html.RadTextBox' does not contain a definition for 'Text' and no extension method 'Text' accepting a first argument of type 'Telerik.WebAii.Controls.Html.RadTextBox' could be found (are you missing a using directive or an assembly reference?)
18:27:31 'ERROR' > c:\Users\Administrator\Documents\Test Studio Projects\TestProject4\WebTest.tstest.cs(56,14) : error CS1061: 'Telerik.WebAii.Controls.Html.RadTextBox' does not contain a definition for 'Text' and no extension method 'Text' accepting a first argument of type 'Telerik.WebAii.Controls.Html.RadTextBox' could be found (are you missing a using directive or an assembly reference?)
18:27:31 'INFO' > Build Failed

 

codedstep code:

 

using Telerik.TestStudio.Translators.Common;
using Telerik.TestingFramework.Controls.TelerikUI.Blazor;
using Telerik.TestingFramework.Controls.KendoUI.Angular;
using Telerik.TestingFramework.Controls.KendoUI;
using Telerik.WebAii.Controls.Html;
using Telerik.WebAii.Controls.Xaml;
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;

using ArtOfTest.Common.UnitTesting;
using ArtOfTest.WebAii.Core;
using ArtOfTest.WebAii.Controls.HtmlControls;
using ArtOfTest.WebAii.Controls.HtmlControls.HtmlAsserts;
using ArtOfTest.WebAii.Design;
using ArtOfTest.WebAii.Design.Execution;
using ArtOfTest.WebAii.ObjectModel;
using ArtOfTest.WebAii.Silverlight;
using ArtOfTest.WebAii.Silverlight.UI;

namespace TestProject4
{

    public class WebTest : BaseWebAiiTest
    {
        #region [ Dynamic Pages Reference ]

        private Pages _pages;

        /// <summary>
        /// Gets the Pages object that has references
        /// to all the elements, frames or regions
        /// in this project.
        /// </summary>
        public Pages Pages
        {
            get
            {
                if (_pages == null)
                {
                    _pages = new Pages(Manager.Current);
                }
                return _pages;
            }
        }

        #endregion
        
        // Add your test methods here...
    
        [CodedStep(@"New Coded Step")]
        private void CompleteWithZeros(RadTextBox textbox, int length)
 {
     var text = CompleteWithZeros(textbox.Text, length);
     textbox.Text = text;
 }
            
        }
    
}

 

Plamen Mitrev
Telerik team
 answered on 22 Oct 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?