Telerik Forums
Test Studio Forum
1 answer
115 views

Hello,

I am trying to print out the name of the test executing another test as a test as step and was wondering if this can be done? For example lets say i have two tests "A" and "B". They are both Wpf tests and "B" just contains a coded step. Test "A" has a step where it executes "B" as a Test As Step. Is it possible to get the name of Test "A" through the code?

 

The closest thing I've found was this 

http://www.telerik.com/forums/how-to-get-the-test-name-which-i-am-executing-during-run-time

but would only get me the name of "B".

 

Thanks,

Elena
Telerik team
 answered on 21 Mar 2017
8 answers
272 views
Hi,

    In my form I have two drop-downs. When i Select a value from first drop-down the second one should get enabled.

While playback the first drop-down selection is done but it is throwing a exception.

Below are the Exception Details :
ExecuteCommand failed!
InError set by the client. Client Error:
System.InvalidOperationException: Javascript call [function fireChanged(){var el=document.getElementsByTagName(\'select\')[0]; if(el._events == null || el._events.change == null){return;} var hndlr = el._events.change.length;for(i=0; i<hndlr;i++){el._events.change[i].handler();}}fireChanged()] failed! Please make the function exists and the call is using the correct prototype signature. Javascript error: TypeError: Unable to get value of the property 'target': object is null or undefined 
   at ArtOfTest.InternetExplorer.IECommandProcessor.InvokeFunction(String functionCall, Boolean useEval, Boolean returnJSON)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
BrowserCommand (Type:'Action',Info:'NotSet',Action:'InvokeJsFunction',Target:'ElementId (tagName: '',occurrenceIndex: '-1')',Data:'function fireChanged(){var el=document.getElementsByTagName(\'select\')[0]; if(el._events == null || el._events.change == null){return;} var hndlr = el._events.change.length;for(i=0; i<hndlr;i++){el._events.change[i].handler();}}fireChanged()',ClientId:'Client_4296c26d-43a3-4f94-aca4-9e154a7ca4db',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'0',InError:'True',Response:'System.InvalidOperationException: Javascript call [function fireChanged(){var el=document.getElementsByTagName(\'select\')[0]; if(el._events == null || el._events.change == null){return;} var hndlr = el._events.change.length;for(i=0; i<hndlr;i++){el._events.change[i].handler();}}fireChanged()] failed! Please make the function exists and the call is using the correct prototype signature. Javascript error: TypeError: Unable to get value of the property 'target': object is null or undefined 
   at ArtOfTest.InternetExplorer.IECommandProcessor.InvokeFunction(String functionCall, Boolean useEval, Boolean returnJSON)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
   at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
InnerException: none.


 I tried to fire Javascript/jquery events using coded step but nothing solved my problem.

Can you please help me with this issue?

Thanks
Bhaskar

Elena
Telerik team
 answered on 20 Mar 2017
1 answer
135 views

Hello,

we want to verify that a certain dynamic price is in a certain price range. How can we test situations like this?

 

Example:     153,12 Dollar  -> We want to verify that the price is between 150 to 160 Dollar. Otherwise we want to receive an error message.

 

Thank you very much.

Nikolay Petrov
Telerik team
 answered on 20 Mar 2017
5 answers
391 views

Is it possible to set a timeout on a test case while executing test list ? if a test has not finished executing in defined time period, we should kill the test and active browser (if there is one) and move to next test.

We run our test lists on Jenkins over night, some times due to in stability of tests, test cases are getting stuck on some screens and and execution sits there all night ( ex: open an upload file dialogue but provide in-valid file name) . I know we need to make our tests better, which we are doing. To avoid these kind of issues we are thinking to set a TimeOut on testcase so that if a test case is not finished in that time time period, we should kill that test and kill the active browser session( if there is) and move on to next test. is that possible ? if so how can we achieve this ? any information is appreciated. 

we are using Test Studio Version 2016.3.928.0. 

Nikolay Petrov
Telerik team
 answered on 20 Mar 2017
10 answers
371 views
I have been trying to explore the integrating Test Studio with our current CI (Team City 7.x).

I have been reviewing the existing documentation here.

The type of testing we are wanting to perform would be automated testing of a WPF application.

My question is, is there a way I can set this up to run headless. i.e. Not have a user logged in/remoted in to the machine with the build runner on it?

Thanks in advance for any help.

Josh
Elena
Telerik team
 answered on 17 Mar 2017
1 answer
170 views

Hi Team,

 

I am using Telerik Test Studio 2017.1 and having an issue, whenever I update an element's properties(which is already saved in repository and used by multiple scripts, now I am updating its property) and save it it gives me attached screen. Telerik gets crashed everytime, I have to restart it everytime I am forced to add new element for same verifications.

 

Please look into this.

 

Thanks,

Nishant

Elena
Telerik team
 answered on 16 Mar 2017
1 answer
152 views

Goal: We want to load test our application (url: https://myhealth.alberta.ca/). For now, we just want to do it for 10,000 users. We already have one Test Studio Ultimate Licence with 100 users and also there is one other order under process for 10,000 VUs.

As per my understanding because we need 10,000 users, it wont be possible to support that many users using one machine. So I think we need more run-time licenses to create network of machines (see attachment, I got to know from one of the webinars i attended). Without this, having just 10,000 users wont give us I guess. Please confirm if I am thinking the right way or not.

Also please elaborate a bit on how ultimate and run-time licenses work together. How many users one machine can support. Is it going to be concurrent execution of scripts on different machines ?? Is it only one script per machine we can have or it could be more?

 

Thanks and Regards

Satpreet Birah

Nikolay Petrov
Telerik team
 answered on 16 Mar 2017
5 answers
119 views

When trying to verify the text values of both input and selection controls in Edge, it seems to consistently fail/crash. These steps work in Chrome/IE. What's causing these errors?

 

INPUT:

ExecuteCommand failed!
InError set by the client. Client Error:
Expected ')'
BrowserCommand (Type:'Action',Info:'NotSet',Action:'InvokeJsFunction',Target:'ElementId (tagName: '',occurrenceIndex: '-1')',Data:'document.getElementsByTagName('input')[1].value',ClientId:'8b8a34c7-0309-491e-8aeb-3eee5c6ae6a9',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'Expected ')'')
InnerException: none.

 

SELECTION:

ArtOfTest.Common.Design.Exceptions.ExecutionException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.SelectVerificationDescriptor.ExtractData(IAutomationHost targetBrowser, DescriptorValueStore dataStore)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
   --- End of inner exception stack trace ---

Nikolay Petrov
Telerik team
 answered on 16 Mar 2017
3 answers
89 views

Hi,

I am trying to automate tests for an android hybrid app using Telerik and Ripple Emulator, since Telerik mobile misses many functions we need.

I managed to record a small test, but when I open the test again using 'run to here', the recorder does not open, even though Telerik does say recorder is connected. Just before opening the emulator, it gives a warning.

I have added screenshots an logfile in attachment.

Thank you,

Emine

Elena
Telerik team
 answered on 15 Mar 2017
3 answers
105 views

I'm trialing Test Studio and want to connect to TFS, however that doesn't seem to be an option in the Manage Bug Tracking window.  Only TeamPulse Server and Jira are available.  How can I add this?

Also any plans on bug tracking integration into any JetBrains suites?

Elena
Telerik team
 answered on 14 Mar 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?