I need some help with some problems that's been preventing me from using the test studio.
Very often when I add a coded step in newly created test, the compilation fails and gives me this error:
'01/01/2015 14:09:53' - System.ArgumentException: Unable to find the test class type 'TestProject2.WebTest' in your test assembly. Please make sure your test code behind is compiled with your latest changes.
at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.EnsureTypeExists(Assembly assm, String typeName)
at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.CreateCodedTestInstance(Test test, TestResult result, String binariesFolder)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTest(Test test, TestResult initializationResult)
at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(ExecuteTestCommand command)
The test has only a single test step and it's a coded step without any code written.
If I were to delete the step and clear the script file, then add any steps that aren't coded step, it will have no problem compiling.
All the other tests that existed before this test runs perfectly fine.
This problem cannot be resolved by creating new tests, but only by creating a new project.
There's another error besides the mentioned one that's been occurring just as often, it's also caused by adding a coded step.
This time the codes compiles without error, but throws an exception when the coded step was hit:
Exception thrown executing coded step: '[TEST_001_Inbox_Actions_CodedStep] : New Coded Step'.
The coded step method 'TEST_001_Inbox_Actions_CodedStep' does not exist.
The step hasn't have any code written to it and the method name is the one that was generated by the test studio.
There's another version to this problem, sometimes it doesn't throw the exception unless the name of the method is changed.
Even if I stick to the method name that was originally generated for, the test will compile and run,
but the codes I've written in that method would have no effect whatsoever.
My guess is that the code behind did not get updated and the changed code wasn't compiled.
Product Version: 2014.4.1211.0
Unfortunately there are no logs to be found. Does anyone know where the log in question is?
I have noticed that the confirm dialogue is not working properly in Chrome (v60), what worked in the previous versions.
Data from result viewer...
------------------------------------------------------------
'13.8.2017 13:37:56' - Using 'Chrome' version '60.0.3112.90' as default browser.
'13.8.2017 13:37:56' - Using 'http://sw-fitnes/BAP/' as base url.
'13.8.2017 13:38:17' - 'Fail' : 4. Click 'DeleteImage'
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
ExecuteCommand failed!
BrowserCommand (Type:'Information',Info:'IsReady',Action:'NotSet',Target:'null',Data:'',ClientId:'aeb9ed43-376e-44ca-94b3-355dba153faf',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'False',Response:'')
InnerException: System.TimeoutException: Timed out waiting for command to be handled
at ArtOfTest.WebAii.Messaging.Process.BrowserHostsProxyRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId, Int32 timeout)
at ArtOfTest.WebAii.Messaging.Process.BrowserHostsProxyRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
InnerException:
ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
BrowserCommand (Type:'Information',Info:'IsReady',Action:'NotSet',Target:'null',Data:'',ClientId:'aeb9ed43-376e-44ca-94b3-355dba153faf',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'False',Response:'')
InnerException: System.TimeoutException: Timed out waiting for command to be handled
at ArtOfTest.WebAii.Messaging.Process.BrowserHostsProxyRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId, Int32 timeout)
at ArtOfTest.WebAii.Messaging.Process.BrowserHostsProxyRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
---> System.TimeoutException: Timed out waiting for command to be handled
at ArtOfTest.WebAii.Messaging.Process.BrowserHostsProxyRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId, Int32 timeout)
at ArtOfTest.WebAii.Messaging.Process.BrowserHostsProxyRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
--- End of inner exception stack trace ---
at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
at ArtOfTest.WebAii.Core.Browser.IsReady()
at ArtOfTest.WebAii.Core.Browser.WaitUntilReady()
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)
at ArtOfTest.WebAii.Core.Actions.Click(Element targetElement)
at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.Click()
at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.Click(Boolean isClosing)
at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.ClickActionDescriptor.Execute(Browser browser)
at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
------------------------------------------------------------
'13.8.2017 13:38:17' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
I have Test Studio ver. 2015.2. All of a sudden, it started crashing on startup. In the Event Log, I got the following error:
Application: Telerik.TestStudio.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
at Telerik.Licensing.BuildsNotificationManager.IsNewerVersion()
at Telerik.Licensing.LicenseManager+<>c__DisplayClass6.<CheckForUpdatesAsync>b__2()
at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart()
This is a test-authoring question about how to organize tests. I have a dozen examples of places where I want to go through a data-creation process (users, forms, etc.) but I want to test and validate 3 things:
- Successful creation
- Failed creation (expecting certain blocks/failures)
- Random data input (conditionally reacting to success or failures)
Should I be creating different tests for every single kind of scenario, so that each test has only one particular purpose, or is it good practice to have a single test that has IF/ELSE blocks to handle successes and failures based on data-driven input? My programming instincts are telling me to stick with single-purpose cohesive tests, nesting them with "Test As Step" when needed, but my ease-of-use side is making me think it's a reasonable solution to have fairly conditional tests rather than creating a vast number of tests handling every unique situation.
...or maybe it's a hybrid case-by-case thing that I have to evaluate based on the application's testing needs?
Any advice is welcome!
-Steve
Could u tell me if telerik test studio support java-based technology web applications or not?
Thanks in advance
Hi All,
How to implement Dialog and popups in telerik. I am new to Telerik.
Thanks in advance.
This does not happen in IE
Only happens while using Test Studio
Load up Test Studio in Chrome
Click Record Test
Select Web Test
Enter http://www.google.com/ as the URL
Click Record
This opens up the following page - http://www.testing-whiz.com/?utm_campaign=Pratik&utm_medium=QnA&utm_source=Quora and fails to open the Test Recorder.
This works correctly in IE, no I cannot just use IE as the product needs to be tested in Chrome.