Telerik Forums
Test Studio Forum
3 answers
103 views
Hello Telerik Team,

I need to find an element by using the Find.ByType method. If the element is not found, I want my test to proceed without the Find method throwing an exception. Please see this code:

foreach(Telerik.WebAii.Controls.Xaml.GridViewRow row in Rows)
{
        Telerik.WebAii.Controls.Xaml.RadGridView childgrid = row.Find.ByType<Telerik.WebAii.Controls.Xaml.RadGridView>();
}

I want my test to proceed even if childgrid is null. However, the test is stopping because row.Find.ByType is throwing a timeout exception. Any suggestions?

Regards,
Kristine
Kristine
Top achievements
Rank 2
 answered on 14 Jun 2011
5 answers
219 views
Running: QA test studio 2010.3.1421.0 on XP Pro SP3


Verbose log attached as well as a screen shot of the test that failed, the error message and the directory where the test files are kept.

Test purpose: To shut down a main browser window a pop-up was launched from and verify the pop-up did not shut down as well.

So I recorded:
Launch browser
Navigate to test URL
Launch pop-up
Then I added in a scripted step:
ActiveBrowser.Close()
Then I recorded:
Navigate to test URL again

I also copied this as a template to three other test which increased in complexity.

I verified each one ran without issues as I added more recording.

Then, on the third test script one of the test steps failed as I forgot to put the correct expression in the scripted step. I fixed it but the test would still not run (See error.jpeg attached for details) and all the steps were flagged with yellow warning symbols.

I went back to the first script (which had run without error earlier on) and it failed with an error too. Despite saving the projects and tests. re-starting Test Studio and re-booting the machine ALL tests are now failing. If I delete all the tests steps after the manual step, the tests will pass but I need the manual step as it is required functionality for the product and I cannot move on to the other tests on the pop-up menu without it working.

So why did all the earlier tests fail after they had run sucessfully and what can I do to stop it happening again?

The contents of the logging from the help  screen say:
[21:16] - LogMessage: [21:16:49] - WebUI Test Studio (version:2010.3.1421.0) started.
    ======  ======
    Title: Initiate log
    Message:
    Title: Initiate InternalManager
    Message: Trying to Validate License
    Title: Requesting EVT
    Message: EVTP
    Title: Requesting Validation
    Message: ILMValidate
    Title: ILMValidate action
    Message: Set PC
    Title: ILMValidate action
    Message: Check for VL
    Title: LICENSER
    Message: TRL MODE
    Title: LICENSER
    Message: DS LEFT18
    Title: LICENSER
    Message: DT MARK PASSED18.00:00:00
    Title: ILMValidate action
    Message: ITM TRUE
    Title: MLW action
    Message: MLW  CNSTR: True
    Title: MLW action
    Message: MLW  IC SUCCESS
    Title: MLW action
    Message: MLW LITS REQ
    Title: MLW action
    Message: MLW LITS REQ SUCCESS
    Title: ILMValidate action
    Message: ITM SHD
    Title: ILMValidate action
    Message: ITM TRUE
    Title: Requesting Validation
    Message: ILMValidate True
    Title: Requesting Validation
    Message: ILMValidate True Trial
    [21:21] - LogMessage: [21:21:39] - Active Project is : 'CONTACTS_1'
    [21:21] - LogMessage: [21:21:39] - Project 'CONTACTS_1' Ready.
    [21:21] - LogMessage: [21:21:53] - Test '00.' selected.
    [21:22] - LogMessage: [21:22:37] - Test '00.' selected.
    [21:22] - ------- Function Start 'StandaloneHost.EditControlledFiles' -------
    [21:22] - Project is offline or uncontrolled; making files writeable
    [21:22] - ------- Function End 'StandaloneHost.EditControlledFiles' -------
    [21:22] - ------- Function Start 'StandaloneHost.EditControlledFiles' -------
    [21:22] - Project is offline or uncontrolled; making files writeable
    [21:22] - ------- Function End 'StandaloneHost.EditControlledFiles' -------
    [21:22] - ------- Function Start 'StandaloneHost.EditControlledFiles' -------
    [21:22] - Project is offline or uncontrolled; making files writeable
    [21:22] - ------- Function End 'StandaloneHost.EditControlledFiles' -------
    [21:22] - ------- Function Start 'StandaloneHost.EditControlledFiles' -------
    [21:22] - Project is offline or uncontrolled; making files writeable
    [21:22] - ------- Function End 'StandaloneHost.EditControlledFiles' -------
    [21:23] - ------- Function Start 'StandaloneHost.EditControlledFiles' -------
    [21:23] - Project is offline or uncontrolled; making files writeable
    [21:23] - ------- Function End 'StandaloneHost.EditControlledFiles' -------


I am wondering why all the tests failed after that one mistake I made and what can I do to get them running normally again?

Thanks for reading -
E.
Eliza
Top achievements
Rank 1
 answered on 13 Jun 2011
1 answer
90 views
Hello!
Can u please help me to know how can i can make a rad control treeview selection or a treeview checkbox selection data driven?
Suppose I clicked one node in a RAD tree view selection control. It was recorded like this
RadTreeNode('RegionCountry_i0_ctl00'):'Amercas' action > Click
What I want is to read the data "Amercas" to be read from a excel. I tried by giving column reference in data driven field by $(country), but did not work. The text field of behavior of this step is disabled here.

The excel and binding is fine because I verified that it worked on a text field.
Helen
Telerik team
 answered on 10 Jun 2011
1 answer
152 views
Hi,

Using the free testing framework and its API, how can I expand and select a value on a dropdown box?


Thanks    
Anthony
Telerik team
 answered on 10 Jun 2011
2 answers
101 views

Hi Support/All,

I have a scenario where i need to run simulator which is desktop application and web application simultaneously. Below is the brief description of scenario:

Set a value in simulator and then send it across to web based application via simulator. Based on the value which I send from simulator, I then need to perform some validation on web based application.

Clarification: Can we call WPF test as ‘Test as Step’ with in Webtest. Is there any alternative which you can suggest?

(Note: Test List option will not be appropriate as I have lots of validation which needs to be tested one after another based on different value which i send across from simulator)

Cheers

Akbar

Akbar
Top achievements
Rank 1
 answered on 10 Jun 2011
1 answer
86 views
Hello!
I installed TestStudio build 2011.1.609, trial licence.

The problem is that after starting vs2010 and apply/submit trial licence dialog - project loaded in vs but i get error that recorder will not be available.
If try record steps- ie browser started but there is no telerik popup with controls, so nothing is recorded.

pls see attach
p.s
1. i run vs under local administrator and onnected to tfs under domain user who is local admins group
2. if i create new project from TestStudio - recording goes fine.
Anthony
Telerik team
 answered on 09 Jun 2011
1 answer
72 views
I haven't been able to figure out how to move test cases to a new folder within the test tool.  Thus far I have been going to windows explorer, navigating to the file path, moving the test cases and then refreshing the tool.  Am I not able to simply drag and drop within the testing tool or perform some other method without having to got outside of the test tool to manage my test cases?


UPDATE:

Nevermind.  I can cut and paste the test cases.  I thought I tried this and it didn't work.  I tried it again and it did.
Konstantin Petkov
Telerik team
 answered on 09 Jun 2011
1 answer
64 views
Hello All,

When i run the automation test case with VS2010, It threw the exception saying as below:

'6/8/2011 10:56:36 AM' - Starting execution....
'6/8/2011 10:56:36 AM' - Detected a Silverlight Test. Setting EnableSilverlight=True
'6/8/2011 10:56:43 AM' - Failure detected during execution. Details:
------------------------------------------------------------
'6/8/2011 10:56:43 AM' - System.Exception: Unexpected dialog: Set Up Windows Internet Explorer 8
   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)
------------------------------------------------------------
'6/8/2011 10:56:44 AM' - Test completed!



Could anyone help with this?


Best,
Cherry

Stoich
Telerik team
 answered on 09 Jun 2011
4 answers
168 views
I am currently trying evaluate Test Studio for my company. I am not able to record certain buttons such as login, checkout, continuecheck. Please advise. The website is www.mouser.com

Sung
Anthony
Telerik team
 answered on 09 Jun 2011
10 answers
218 views
We record tests using multiple environments.  Two URLs could be http://server1/app1/ and http://server2/app2/.  We set the BaseUrl in the project settings and this works really great for the navigation steps.  But, I am seeing lots of duplication in the Element Tree.  I set the page Compare Mode to RelativeOnly hoping this would ignore the BaseUrl, but it doesn't.  If I am recording against server1, the page logic uses a BaseUrl of http://server1 and a Path of /app1/etc.  I expect that it would use a BaseUrl of http://server1/app1 (matches the project settings) and a Path of /etc.  

This is causing a ton of duplication in the Element Tree. After the page is duplicated, each element on that page ends up getting duplicated.  Is there any way to avoid this?
Jeff
Top achievements
Rank 1
 answered on 09 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?