Telerik Forums
Test Studio Forum
2 answers
99 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.
darren
Top achievements
Rank 1
 answered on 15 Jul 2011
4 answers
121 views
During quick execute, about half the time I'm experiencing startup delays (~10 mins) at the start of my scripts.  So execution simply stays at say line 2 or 3, for ten minutes, before progressing onto the next step.  And the first 6 lines of my scripts are, in fact, all comments.  Btw, I recently upgraded Telerik to version .621.  Also I've never encountered this problem until recently.

Any idea as to what could be going on?  Or what to look into/verify?   

--AJ (aka Joel) 
Daniel Djambov
Telerik team
 answered on 15 Jul 2011
1 answer
113 views


Hi,

I have a question, I had configured a BAse URL in WebUI,   and I recorded the steps using this URL. But actually the team change the server and the URL to test ( the site is the same, just change the url), so, I just change the Base URL in WebUI for the new one.

Now, every time that try running a test case, is taking a lot of time loading the homepage. And if I change the URL for the old one, I do not have time issues.

I tried also to record new steps using new url, and the time issue persist.
When I start recording first step, ie. Entering to https://xxxxxx.xxx/xx 
Then on the recording page appears a message that looks is part of silverlight that said:   "Detected Silverlight"  and takes at least 2 minutes to load the page.

With the old URL this happening but takes seconds.


Any idea of what could be happening?

Thanks,


Anthony
Telerik team
 answered on 14 Jul 2011
1 answer
74 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
1 answer
80 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
1 answer
80 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
138 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
302 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
354 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
152 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
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?