Telerik Forums
Test Studio Forum
2 answers
171 views

We use Jenkins to run Test Studio tests against our API following publishes and I'm getting the following error:

1/27/2020 11:04:29 AM' - System.TimeoutException: Wait for condition has timed out\r\n   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)\r\n   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)\r\n   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)\r\n   at ArtOfTest.WebAii.Core.Manager.WaitForBrowserToConnect(Int32 browserIndexToWaitFor)\r\n   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)\r\n   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InitializeWeb(ExecutionEngineCreateParams initParams)\r\n   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.CreateAndInitializeEngine(Test test, ExecutionEngineCreateParams cp)\r\n   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(ExecuteTestCommand command)\r\n------------------------------------------------------------\r\n'1/27/2020 11:04:29 AM' - Test completed!\r\n

I don't think the tests are running at all. We have logging on the API and it's not logging any attempts that would have been generated by this process. The API is fine when I access it directly and with our applications. This is happening in multiple environments so it's not confined to one API server. I've tried shutting down and restarting the agent, but that didn't help. How can I go about troubleshooting this further?

 

Elena
Telerik team
 answered on 28 Jan 2020
5 answers
118 views

Hello

I'm trying to find documentation around  how to use ArtOfTest.Runner to execute tests remotely distributed across machines.

We're planning to use Azure Devops which I've setup the agents. 

I've been unable though to find using CLI how to have tests execute distributed in a remote fashion.

We have 4 remote servers (1 controller, 3 runtimes)

I'm hoping to be able to distribute execution of a test list across those machines using ArtOfTest.Runner.

Plamen Mitrev
Telerik team
 answered on 27 Jan 2020
1 answer
68 views
Hi, I am a trainee. I have been working on this website https://www.stephendurbinandassociates.com/. I changed the font of some content. But it looks different while viewing it on Windows 10. What is the issue here? Is it something with the website or the system? Kindly help me with your suggestions.
Elena
Telerik team
 answered on 16 Jan 2020
3 answers
121 views

We've encountered quite a frustrating issue.

One of our testers using Test Studio was testing some changes with an existing test.  They were prompted to "push to the scheduling server" and accidentally clicked yes.

Now despite the fact we've removed those changes from his file, and not been prompted to push to scheduling server.  The changes never made it to source control either.  Our remote servers continue to run these changes the user put in.

 

How can I get our tests on remote servers back to not using that test the user pushed?

Plamen Mitrev
Telerik team
 answered on 13 Jan 2020
1 answer
112 views

Hi,

I recently downloaded the free trial for Telerik test Studio and created several tests for our Silverlight application.

When the tests are run individually they are working fine. However, when I run the tests consecutively in a Test List some of the elements are not found and an 'Element not found' exception is thrown. In particular this is the case with a checkbox and a textbox element.

Is there a way to solve this issue?

Thanks

Plamen Mitrev
Telerik team
 answered on 07 Jan 2020
8 answers
109 views

I wanted to see if there's any feasible way to get the name of the currently executing test list name from an execution client?

Basically I want to obtain the testlist name and store it in a local variable within the method OnBeforeTestStarted

 

From the Article below

This feature allows only one machine to have a running scheduling server and multiple machines to be connected to it and serve as execution clients. In this case the complete set of execution extension methods will be executed on the scheduling server machine only.
All execution machines will not execute OnBeforeTestListStarted() and OnAfterTestListCompleted() and will only recognize the OnBeforeTestStarted() and OnAfterTestCompleted().

https://docs.telerik.com/teststudio/advanced-topics/coded-samples/general/execution-extensions

 

Plamen Mitrev
Telerik team
 answered on 03 Jan 2020
3 answers
180 views

When trying to test my computed font size, Test Studio is failing my step on a paragraph tag, even though the F12 dev tools show it being the right value. The html is set to 14px and the body is set to 1rem.  When I look at the computed value, it shows 14px, but expanding it out, it'll also show the 1rem value kicking in from a css value, but that doesn't change the fact the computed value is still 14px.

This <p> at 14 px step passes in every browser EXCEPT Internet Explorer.

I've created this scratch pad (http://scratchpad.io/mean-color-1243) to showcase the issue. If you test on the <p> tag of "This is an example of the 1rem issue" for a computed font size of exact/same 14px, you'll see it'll pass in the other browsers but fail in IE.  If you look in your F12 dev tools in IE, you'll see it showing the computed value as 14px.

Is there something I'm doing wrong?

Elena
Telerik team
 answered on 20 Dec 2019
3 answers
222 views

Part of our software uses a lot of API calls. I have tests build for these API calls to test them in the API side of Telerik. I have a Web project built for testing the UI side of things and I have web tests built that import API tests as a step so that I can include my API tests in test lists and have them run on a normal schedule. What I am needing to do is run my API tests against multiple environments. I have done this in the past just by duplicating the API tests and the web tests to have a test for each environment. As you can imagine this makes it a bit of a pain to maintain the tests. 

I already have variables set in the API tests that I am using. What I would like to do is be able to pass a variable for baseURL, Username and Password from the web test to the API test. Is this possible? If so what is the best way to go about it? I read on this link https://docs.telerik.com/teststudio/knowledge-base/test-execution-kb/run-api-test-in-web-test#advanced-passing-a-variable-from-an-api-test-to-a-web-test about passing a variable from the API test back to a web test by basically writing the variable in the Variables folder then pulling that from the web test. Can I do that just in reverse, Write the variable from the web test for the API test to use? Is that my only option? I would love to hear any and all of your thoughts!! Thanks!!

Plamen Mitrev
Telerik team
 answered on 19 Dec 2019
6 answers
152 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
839 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?