Telerik Forums
Test Studio Forum
6 answers
167 views

Hello, there is a problem.
Code:
HtmlSpan span = row.Cells[5].Find.ByTagIndex<HtmlSpan>("span", 0);
if (span != null)
{
    try
    {
        Utility.LogMessageToFile("color = " + span.GetComputedStyle("color").Value);
        Utility.LogMessageToFile("cursor = " + span.GetComputedStyle("cursor").Value);
        Utility.LogMessageToFile("font-size = " + span.GetComputedStyle("font-size").Value);
        Utility.LogMessageToFile("text-align = " + span.GetComputedStyle("text-align").Value);
        Utility.LogMessageToFile("background-color = " + span.GetComputedStyle("background-color").Value);
    }
    catch (ExecuteCommandException ex)
    {
        Utility.LogMessageToFile(ex.Message);
    }
}

the row variable is KendoGridDataItem

And the result below:
28-MAY-2019, 10:30:29.245: color = rgb(255, 255, 255)
28-MAY-2019, 10:30:29.266: cursor = default
28-MAY-2019, 10:30:29.286: ExecuteCommand failed!
BrowserCommand (Type:'Information',Info:'ComputedStyle',Action:'NotSet',Target:'ElementId (tagName: 'span',occurrenceIndex: '12')',Data:'font-size',ClientId:'05eb9dc2-082a-46e6-abdc-18f196ca3092',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'False',Response:'')
InnerException: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at ArtOfTest.WebAii.Messaging.Process.WebDriverCommandProcessor.GetComputedStyle(BrowserCommand command)
   at ArtOfTest.WebAii.Messaging.Process.WebDriverCommandProcessor.ProcessInformationCommands(BrowserCommand request)
   at ArtOfTest.WebAii.Messaging.Process.WebDriverCommandProcessor.ProcessCommand(BrowserCommand request)
   at ArtOfTest.WebAii.Messaging.Process.BrowserWebDriverRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
   
As you see styles without '-' is got successfully but with it "The given key was not present in the dictionary."
I tried all styles are contained in the code.
IE, Chrome, Firefox get this successfully.

Plamen Mitrev
Telerik team
 answered on 17 Dec 2019
13 answers
867 views

Hi ,

I have encountered the error below while executing my test case:

ExecuteCommand failed!
InError set by the client. Client Error:
Cannot read property 'focus' of undefined
BrowserCommand (Type:'Action',Info:'NotSet',Action:'InvokeJsFunction',Target:'ElementId (tagName: '',occurrenceIndex: '-1')',Data:'((window.top.Telerik && window.top.Telerik.TestStudio && window.top.Telerik.TestStudio.Common && window.top.Telerik.TestStudio.Common.DomProviders && window.top.Telerik.TestStudio.Common.DomProviders.DomProvideFactory && window.top.Telerik.TestStudio.Common.DomProviders.DomProvideFactory.getProvider().getElementByTagNameAndIndex(document, 'input', 37)) || document.getElementsByTagName('input')[37]).focus()',ClientId:'6a813d93-0d92-428b-a0df-9d073a8fb393',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'Cannot read property 'focus' of undefined')
InnerException: none.

Is this a problem caused by me or is it the same issue as in the link below :

https://feedback.telerik.com/teststudio/1422837-kendo-grid-filter-menu-cannot-execute-filter-menu-open-step

Thank you.

Plamen Mitrev
Telerik team
 answered on 17 Dec 2019
5 answers
130 views
I have an issue where my initial URL is not loading at all but cannot handle it as the next steps are not being triggered until the page loads.  I have tried to add a While loop which delays for 5 seconds and then tries a Browser Refresh, but as I TS can't even get to the while step the page cannot be refreshed.  Is there a code snippet which can identify when the page does not even start to load?
Plamen Mitrev
Telerik team
 answered on 16 Dec 2019
1 answer
212 views
Is there a alternative to having to manually uninstall runtime then install the new version of runtime to ensure it is in sync with our controller server?
Elena
Telerik team
 answered on 16 Dec 2019
5 answers
105 views

I've seen this issue in a multiple forum posts and feature requests, but I'm not seeing a good solution for the RadSearchBox.  Maybe I'm missing something.

The following feature request has a post from 2019 saying a ScrollToVisibleType was added, but it doesn't seem to have made it to the RadSearchBox.  The RadSearchBox requires simulated real typing (no option to view or disable, and I've been told it is required to be this way in another issue).  I have pages with a fixed header at the top, and depending on the size of the browser and number of items on the page it ends up scrolling to the bottom of the page and obscuring the control under the header.  Ideally it should do nothing as the control is at the top of the page and visible before this step runs.

https://feedback.telerik.com/teststudio/1378898-only-scroll-to-visible-the-target-element-when-necessary#

 

 

Plamen Mitrev
Telerik team
 answered on 16 Dec 2019
3 answers
125 views

Hey guys,

I am using the Free 30-day Trial Version from Test Studio.

I would like to create items that can have multiple references. This means that I can use the same element or the same step in several tests. If I change something about the element, the modification should change for all other uses of the references of this element.

Does anyone know if this is possible in the Test Studio?
In addition, how can I create such references?

So far, all I know is that you can copy items, but only the element and the last copied Version apply the modification.

 

Thank you for your help.

Elena
Telerik team
 answered on 11 Dec 2019
2 answers
147 views

I've been working on trying to get Test Studio's Bug Tracker configured for a new product/team my company has put together.  I've been following the Telerik Bug Tracking Configuration documentation provided.  And it works... kind of.  Instead of sending the bug to my team, it's sending it to the entire company where it will either a) be seen by all teams and clutter up their backlogs or b) be seen by no one as it's not assigned to any team; I'm not sure which, but neither is a desirable outcome.

Azure DevOps is set for the URL in such a manner: https://dev.azure.com/[unique_identifier]/[Company]/_backlogs/backlog/[Team_Or_Product_Name]

Following the default configuration instructions previously mentioned, it desires the URL up through the unique_identifier. With this, I'm given the chance to login and it'll connect. I then get a dropdown for my "project" which correlates to the Company tag in the URL schema.  And then that's it.  I get no option to choose my team or product at all.  Thus the bug goes to the selected "project" - the entire company.

I've tried including the /[company] portion of the URL when setting things up, but Test Studio doesn't see it as a valid URL and won't connect at all with it.

So, is there a way to configure Test Studio to submit bugs to a team or product, or at the very least alter the "Area Path" field on the bug on submission so as to keep it from going to the entire company?  

Plamen Mitrev
Telerik team
 answered on 28 Nov 2019
4 answers
244 views

     Hello,

 

we have a problem binding a column from Excel file to a dynamic target. Although the file is bound to the test correctly and other requests and user profiles are bound to other columns in the file properly we have trouble adding 1 column as data source (there are 3 columns and 1000 rows of data in total). Test Studio can identify the column, we can select it from the list when adding data source to dynamic target, bind the target to the column (see attached screenshot) but when we click save, save the entire test and then reopen the profile the binding disappears. Binding is once again set to get data from preceding GET request where target is originally identified (step 0). After a few tries to add the binding and save it Test Studio crashes with "unknown exception" stated as cause.

 

Can you please provide some help with this issue? I've also attached a fresh log file from Test Runner after trying to bind the column, I am not sure how useful it is.

Thanks,

Aleksandar

Plamen Mitrev
Telerik team
 answered on 26 Nov 2019
1 answer
197 views

So I have a attribute verification step that looks like this:

 

AttributeName: readonly

AttributeName: <blank>

 

my markup looks something like this

<input type=text readonly id="text1">

<input type=text id="text2">

 

running the step against text1 produces a passed test

running the step against text2 also produces a passed test, even though the input textbox does not contain the readonly attribute.

 

Is there a better way to verify the existence of a particular attribute?

I know how to do this in code, but I'd always avoid code and use the builtin mechanisms first and foremost. :)

 

running test studio ultimate 2019.2.619.0

Plamen Mitrev
Telerik team
 answered on 26 Nov 2019
2 answers
130 views

www.telerik.com

How do you capture clicks on the dropdown menus here?  

Company / Technology / Services

Plamen Mitrev
Telerik team
 answered on 26 Nov 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?