Telerik Forums
Test Studio Forum
5 answers
141 views
I am currently attempting to launch a test in Safari 5.1. Unfortunately, Safari hangs and I receive the following error from Test Studio:

------------------------------------------------------------
'7/26/2011 4:03:27 PM' - Starting execution....
'7/26/2011 4:03:58 PM' - Failure detected during execution. Details:
------------------------------------------------------------
'7/26/2011 4:03:58 PM' - System.TimeoutException: Wait for condition has timed out
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
   at ArtOfTest.WebAii.Core.Manager.WaitForBrowserToConnect(Int32 browserIndexToWaitFor)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InitializeWeb(ExecutionEngineCreateParams initParams)
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.CreateAndInitializeEngine(Test test, ExecutionEngineCreateParams cp)
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(Test test, Settings settings, String deploymentFolder, String binariesFolder, ExecutionType exeType, Guid firstStepGuid, Guid lastStepGuid, IntPtr existingBrowserHandle, DebuggerOptions debuggerOptions)
------------------------------------------------------------
'7/26/2011 4:03:58 PM' - Test completed!


I have silverlight installed and I have double checked all of the configuration settings for Safari.

Anyone have any thoughts?

Thank you
Anthony
Telerik team
 answered on 28 Jul 2011
1 answer
126 views
Good Morning,

I am testing a web application that opens a new browser window from a launch page. I was just wondering how one would perform a wait on that new browser window to synchronize the script execution to continue.

Any thoughts?

Thank you,
Craig
Anthony
Telerik team
 answered on 27 Jul 2011
2 answers
147 views

Hi,

I was using the logical "loop" button. But there just could be defined a count of iterations on the steps, there is a way I can define a loop infinite?

Thanks
karla
Top achievements
Rank 1
 answered on 26 Jul 2011
1 answer
278 views
Good Afternoon,

I am trying to write a simple test to launch a web page, enter some information and then click Submit, launching another page. I have written these steps as a combination of 1 custom coded step to launch the first web site and input values, then a second recorded step to click the "Submit" button. 

When I execute the test, everything works fine in IE, but as soon as I try Firefox, the click button step hangs/times out and then writes an error. I do not understand why Test Studio cannot find this button in Firefox, but all works well in IE.

I am using IE9 and Firefox 5.

Please advise, we are evaluating the Test Studio tool for use in our organization and need to move forward quickly.

Here is the log message:

Overall Result: Fail
------------------------------------------------------------
'7/26/2011 3:34:46 PM' - Starting execution....
'7/26/2011 3:34:48 PM' - Detected custom code in test. Locating test assembly: CFIA_NextGen.dll.
'7/26/2011 3:34:48 PM' - Assembly Found: C:\Users\n0145732\Documents\Test Studio Projects\CFI_NextGen\bin\CFIA_NextGen.dll
'7/26/2011 3:34:48 PM' - Loading code class: 'TestHarness'.
------------------------------------------------------------
'7/26/2011 3:34:49 PM' - 'Pass' : 1. [TestHarness_CodedStep] : New Coded Step
'7/26/2011 3:35:00 PM' - 'Fail' : 2. Click 'Submit'
------------------------------------------------------------
Failure Information: 
~~~~~~~~~~~~~~~
Unable to locate element. Details: Attempting to find [Html] element using 
Find logic 
 (Html): [tagname 'Contains' input] AND [value 'Contains' Submit Query]


Unable to locate element. Search failed!


------------------------------------------------------------
'7/26/2011 3:35:00 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'7/26/2011 3:35:00 PM' - Overall Result: Fail
'7/26/2011 3:35:00 PM' - Duration: [0 min: 11 sec: 683 msec]
------------------------------------------------------------
'7/26/2011 3:35:01 PM' - Test completed!

and here is the html definition of the button:

<input type="submit" onClick="callNextGen(false)"/>


Anthony
Telerik team
 answered on 26 Jul 2011
5 answers
199 views

Hello Support,

I'm running into this situation (System.NullReferenceException: Object reference not set to an instance of an object
)
 couple of times every day.

We have more than 50 different scripts; every other test has coded steps. All the scripts are working as expected.


But, while running scripts for some reason (say after 20 scripts) we closed browser
 forcefully it throws below exception. Now, we are using QA SP2; but I see same issue since long time. I’m expecting to see Failed -15 Passed Out of Total 20 executed.


Finally, we are ending up with Failed - 0 passed out of Total 0 executed.


Screenshot attached.


Is there any way to solve this issue?


Your help is really appreciated.


Thanks,

Madhu.




------------------------------------------------------------
'7/12/2011 5:11:35 PM' - Starting execution....
'7/12/2011 5:11:39 PM' - Detected a Silverlight Test. Setting EnableSilverlight=True
'7/12/2011 5:12:03 PM' - Failure detected during execution. Details:
------------------------------------------------------------
'7/12/2011 5:12:03 PM' - System.NullReferenceException: Object reference not set to an instance of an object.
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.CanRunAgainstBrowser(Browser activeBrowser, AutomationStep step, TestResult activeResult)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteSteps(AutomationStepList stepList, TestResult testResult, Object codeBehindInstance, Boolean& stopExecution)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTestIteration(Object codeBehindInstance)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTest(Test test, TestResult initializationResult)
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(Test test, Settings settings, String deploymentFolder, String binariesFolder, ExecutionType exeType, Guid firstStepGuid, Guid lastStepGuid, IntPtr existingBrowserHandle, DebuggerOptions debuggerOptions)
------------------------------------------------------------
'7/12/2011 5:12:03 PM' - Test completed!
Cody
Telerik team
 answered on 26 Jul 2011
2 answers
95 views
I have a test to log in to our application.  I have another test that adds a new record into the app.  When I combine these 2 tests in a list, the first one logs in sucessfully, but then the second test then opens a new browser window.  This second window obviously doesn't have the app loaded and so I get a failure for the run.  I will get a successful run if I call the login script from within the second one, but my goal was to have a bunch of small tests that I could string together however I wanted.  I don't want to have to login, do one test, and log out.  Then log back in, do another test, and log out.
How do I make sequential test scripts recognize the browser instance that's currently open/running?

Thanks,
Steve
Steven
Top achievements
Rank 1
 answered on 26 Jul 2011
3 answers
210 views

Question...

I have a search page that returns rows displayed on the web page by a default filter…  I want to verify the number of results on the page is the same number of results returned when I query the database.  How is this done using your tool?

Plamen
Telerik team
 answered on 26 Jul 2011
5 answers
146 views
On older versions of Tests Studio / Web UI, when using "run to here", it would put me in record mode after the step I was running to.
Now it wont record anything unless I go back and click, "record next step" or it will record the step in a random location in my test.
THis drives me nuts.
I like the way it was before.
I would click, "run to here", and then I could just start recording and the step(s) would be inserted after the step I ran to.
Plamen
Telerik team
 answered on 26 Jul 2011
1 answer
141 views
We have a good number of tests that we are looking to automate which require that the test uploads a .txt or .csv file to our system.  This is easy to accomplish on my laptop - but my question is what would be the best way to set this up if we plan on running these same tests on different workstations or using the Runtime Edition on a Rackspace server?  In other words, how we can ensure that the files to be uploaded can be found by the tests regardless of which machine the tests are being executed on?  Is there a way to add these files as attachments to the project or individual tests?
Anthony
Telerik team
 answered on 25 Jul 2011
2 answers
162 views
I performed the following steps:
1. Recorded a script.
2. Checked element identification logic to ensure that the identification logic did not include any dynamically created ID's & that elements were unique.
3. Ran the script.
4. Script failed because several elements that had been recorded could no longer be found on screen.
5. Used Find Element - Live Action to review element definitons and validate those definitons. The identification logic was fine, but validation failed
6. Opened the page where the elements were located, clicked on the elements to find out more info about them - changed identification information in Telerik.
7. Attempted to validate elements with new definitions - failed again.


Note: all of the elements that I am having this issue with are found on 1 frame.  I've tried identifying the item with the default frame inforamtion given to me by Telerik and I've tried changing the frame definition, but nothing I'm doing seems to be working.  Other frames are identified exactly the same as the problem frame and the system is having no problem identifying elements on those frames, so at this point I'm out of ideas.  Suggestions would be appreciated.

Mark
Top achievements
Rank 1
 answered on 22 Jul 2011
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?