Telerik Forums
Test Studio Forum
1 answer
82 views
upgraded to v 2011.1.712.0 today
enabled new recording, got to page with combo drop down where the default field entry is 'blank', clicked on open drop down arrow and Test Studio recorded the opening and automatically inserted the blank value selection as a test step, whilst the drop down was open I selected my actual value but this selection is not recorded. I have to pause the test, select my value, take focus away from element then enable recording and reselect the drop down arrow which now again records the opening and the now default selection of that I selected when paused.
This did not happen in the previous version, the opening of the drop down was not recorded only the selection from the combos.
Cody
Telerik team
 answered on 14 Jul 2011
3 answers
140 views
Hi,

I've created this post to avoid confusion with my other post.

We have this test for Log on verification.
Scenario 1 for the normal process(Valid Users) and Scenario 2 for the negative test(Invalid Users).
We've put those scenarios in a datasource to be able to leverage the data-driven capability of the test studio.
After running the test, we noticed that Scenario 2 behaves like Scenario 1. Which is not the expected.
We later on observed that Test Studio doesn't closes the browser on every end of each iteration. So credentials for Iteration2 is actually the credentials for iteration1.  
We tried adding a 'Clear Cached' step but it still behaves the same.
We also tried to set the Behavior Property ClosesBrowser = True but still the same.
We also tried your suggestion on my other post to put the 'Clear Cached' step on the 1st step but still no luck.
And unfortunately, the design of our application page doesn't have a Log-off button.

Any thoughts on this?

Thanks,
Mariko
Anthony
Telerik team
 answered on 14 Jul 2011
5 answers
306 views
Hi,

I've tried using if...else.. logical step. The 'if' part just works fine but when I tried the scenario for negative test and supposed to be the 'else' part will execute, the test failed.

pseudo code goes like this:
Scenario 1
1. Navigate to application URL
2. Handle Log on dialog box (Valid Username and Password)
3. IF (Checks if application page is visible)
4. Navigate to each sections of the page and verifies each controls.
5. ELSE (Checks if page contains '<Error message>') -->> Not Executed

so, this test passed

Scenario 2
1. Navigate to application URL
2. Handle Log on dialog box (Invalid Username and Password)
3. IF (Checks if application page is visible) -->> since the page will not load, the IF part fails.
4. Navigate to each sections of the page and verifies each controls. -->> this will not be executed
5. ELSE (Checks if page contains '<Error message>') -->> this ELSE part also fails.

so for this scenario, the overall test execution fails which is not the expected result. I think the IF part and step 4 should not be executed so that the ELSE part could proceed.

I've attached screenshots of what I am doing.
Scenario1.jpg
Scenario2.jpg

Also, the above scenarios are executed separately. I've noticed that when I try to make the scenarios Data-Driven(Iteration 1 and 2), Iteration 2 being the negative test, it does not behave what is expected. Iteration 2 behaves like the Iteration 1. Invalid user can log on to the page. I think this is because Test Studio do not close Browser on every end of Iteration so even though I've added a 'Clear Cache' step at the end of the test, the credentials for Iteration 1 is still active for Iteration 2. I've also tried to set the Behavior Property ClosesBrowser = True but it has the same result. 

I've attached the Log file with a note inside. (deleted some project releted text).

Thanks!
Mariko
 

Anthony
Telerik team
 answered on 14 Jul 2011
18 answers
362 views
after adding some custom code to a test and building (ctrl-shift-b) successfully, when I attempt to run this test I get the following error:

'12/6/2010 10:02:14 AM' - Execution Stage:PreInit , unexpected error during test execution. Error: System.ArgumentException: Unable to find the test class type 'garbage.TPC' in your test assembly. Please make sure your test code behind is compiled with your latest changes.
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.EnsureTypeExists(Assembly assm, String typeName)
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(Test test, Settings settings, String deploymentFolder, ExecutionType exeType)
'12/6/2010 10:02:14 AM' - Execution Stage:PreInit , unexpected error during test execution. Error: System.ArgumentException: Unable to find the test class type 'garbage.TPC' in your test assembly. Please make sure your test code behind is compiled with your latest changes.
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.EnsureTypeExists(Assembly assm, String typeName)
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(Test test, Settings settings, String deploymentFolder, ExecutionType exeType)
'12/6/2010 10:02:14 AM' - Execution Stage:PreInit , unexpected error during test execution. Error: System.ArgumentException: Unable to find the test class type 'garbage.TPC' in your test assembly. Please make sure your test code behind is compiled with your latest changes.
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.EnsureTypeExists(Assembly assm, String typeName)
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(Test test, Settings settings, String deploymentFolder, ExecutionType exeType)
'12/6/2010 10:02:14 AM' - Execution Stage:PreInit , unexpected error during test execution. Error: System.ArgumentException: Unable to find the test class type 'garbage.TPC' in your test assembly. Please make sure your test code behind is compiled with your latest changes.
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.EnsureTypeExists(Assembly assm, String typeName)
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(Test test, Settings settings, String deploymentFolder, ExecutionType exeType)
Execution Stage:PreInit , unexpected error during test execution, Error: System.ArgumentException: Unable to find the test class type 'garbage.TPC' in your test assembly.  Please make sure your test code behind is compiled with your latest changes.

Like I said, this happens immediately after I compile the code and then attempt to run the test.  Any ideas as to what is going on or how to fix this problem?

Thanks.
Cody
Telerik team
 answered on 14 Jul 2011
7 answers
155 views

I have a While Loop step that runs just fine.
It verifies that an item is visible and then runs the loop steps if it is true.
It shows an error after the test is over even when I see it run correctly.
The error message says Unable to find element.
Everything inside the loop runs just fine but after the test is done all the steps in the loop show triangles on them as if they never ran.
I'm thinking the While Loop step is showing an error  when the verify element is false.
This is expected to happen after one to five or how even many loops are needed to get the desired results.
I want the verify element step to be false at some point when the expected result is achieved.
I would think that the while loop would at some point end without an error???

 

I'm running Test Studio version 2011.1.624.0 on Windows 7 Ultimate 64bit

with IE8 version 8.0.7601.17514

Anthony
Telerik team
 answered on 14 Jul 2011
9 answers
173 views
Hi Team,

We are  able to execute our test scripts against IE 8 but are stuck with IE 6.0.
Please refer the link: "http://www.telerik.com/automated-testing-tools/community/forums/webui-test-studio-developer-edition/webaii-automation-framework/ie-6-webaii-problems.aspx"

Please let me know if there is any MSI available for IE 6.0 support.

FYI: The AUT includes sliver light, AJax, Java controls etc.

Thanks
Tapan
tapangandhi@yahoo.com
Cody
Telerik team
 answered on 13 Jul 2011
7 answers
181 views
Hi,

Is Radrichtextbox control have UI automation support? I'm using the Coded Step and trying to find the control and gets this error
"The type or namespace name 'RadRichTextBox' could not be found (are you missing a using directive or an assembly reference?)"

How can i instantiate the radrichtextbox control? and try entering some text on it.

Thanks.
Stoich
Telerik team
 answered on 13 Jul 2011
3 answers
74 views
Recording appears to be working fine for the majority of the time. When I left click an element or area, a new step is generated with code to capture that event. This is normal behavior.

However, there are certain elements and areas that do not allow themselves to be recorded. I may left click on an element and no new step will be generated. This behavior is consistent in that an area that will allow recording will always allow it, the ones that will not allow recording never allow it.

The real kicker is that elements that do not generate a new step upon 'left clicking' will generate a new step upon 'right clicking'.

I would appreciate help in understanding why some elements and areas will allow recording and new step generation while others will not.

I'm using the Telerik Test Studio version 2011.1.609.0.

I can provide more details upon request. Thank you very much.
Cody
Telerik team
 answered on 12 Jul 2011
1 answer
60 views
If I just installed the Express Edition

Can I then go back and Install the Standalone version or do I need to uninstall Express first?
Cody
Telerik team
 answered on 12 Jul 2011
1 answer
128 views
Hi,

I develop a WPF application and host it within Microsoft Word 2010 app.
Is it possible to test (using Telerik Test Studio) the functionality of my application?
Before I have an access to my control I need to jump on the Ribbon Pane in Word and do some actions to create/initialize it.
Does Test Studio support this case?

Regards,

Dariusz
Anthony
Telerik team
 answered on 11 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?