Telerik Forums
Test Studio Forum
4 answers
132 views

I have an automated test that runs against a Silverlight application.  At some points I connect to the database to verify that the data persisted correctly.  In these cases, I write code in a test step to connect to the database.  I use a hard coded connection string in my coded step.  The only problem is that my Silverlight application may be using different databases depending on the environment.  (i.e.  QA, Dev, Production)  I do not want to change my connection string (in every coded step) every time I go against a different database.  Is there a better way to easily change my connection string when I am running my automated test? Maybe there is a global setting or configuration file that I may use to put these values.  What is the best way to handle this situation?  Please let me know.

Top Gun
Top achievements
Rank 1
 answered on 11 Jul 2012
5 answers
674 views
Test Studio: 2012.1.518.0
Windows Server 2008 R2 Datacenter Service Pack 1
Internet Explorer: 9.0.8112.16421
Firefox: 12.0
Safari: 5.1.7 (7534.57.2)
Chrome: 19.0.1084.52

I've been debugging a failing test against our internal CMS where a step couldn't connect to a modal pop-up dialog. In the end I stripped the test right down and eventually tested a public facing website.

My test contains 4 steps:
- Navigate to http://www.codestore.net/store.nsf/unid/DOMM-4R5MDQ
- Click 'ThisLinkLink'
- Connect to modal pop-up window : A Modal Pop-Up -- Webpage Dialog
- Close modal pop-up window : A Modal Pop-up -- Webpage Dialog

I'm testing each browser individually using Quick Execution.

Both Firefox and Safari fail on step 3 and the test stops, even if I set the PopupWaitTimeout property to 60 secs.

If possible I'd like a solution which doesn't involve writing code because non-developers will be writing most of our tests.

Cheers,
Steve
Plamen
Telerik team
 answered on 11 Jul 2012
14 answers
293 views
I just upgraded to the latest build this morning and I am running into an issue compiling a project on my remote execution box,  I am seeing the following error in the log:

4658 4/11/2012 10:38:52 AM Information The TestList run prepartion failed and execution cannot continue! Error message: Object reference not set to an instance of an object. StackTrace: at ArtOfTest.WebAii.Design.ProjectModel.Test.NeedToCompile() at Telerik.TestStudio.Scheduling.WindowsService.ExecutionEngineRunner.ExecuteList(TestList list, Project project, Settings settings, String binaryFolder, String projectPath, String resultName) at Telerik.TestStudio.Scheduling.WindowsService.ExecutionEngineRunner.StartRun(Object runArg)

I was able to execute projects fine prior to upgrading this morning.  I have not changed any settings or configuration other than what may have been done by the installer.
John
Top achievements
Rank 1
 answered on 11 Jul 2012
5 answers
102 views

All of my previously working FireFox based tests are now failing about 25% of the time with the following error. The only solution I have found is to add a 2 second delay before each action and setting the steps to 'FireFox' only. Even this doesn't always work.

Suggestions?

Overall Result: Fail
------------------------------------------------------------
'3/23/2012 3:20:06 PM' - Using .Net Runtime version: '4.0.30319.239' for tests execution.
'3/23/2012 3:20:06 PM' - Starting execution....
------------------------------------------------------------
------------------------------------------------------------
'3/23/2012 3:20:09 PM' - Using 'FireFox' version '11.0' as default browser.
'3/23/2012 3:20:27 PM' - 'Fail' : 1. Execute test 'FireFox & IE - Login - Nav to Main'
 
>>> Test-as-Step 'Fragments\FireFox & IE - Login - Nav to Main.tstest' log starts:
 
Overall Result: Fail
------------------------------------------------------------
'3/23/2012 3:20:09 PM' - Using 'FireFox' version '11.0' as default browser.
'3/23/2012 3:20:10 PM' - 'Pass' : 1. Navigate to : '/'
'3/23/2012 3:20:11 PM' - 'Pass' : 2. Click 'LoginToPBISLink'
'3/23/2012 3:20:13 PM' - 'Pass' : 3. Click 'CoordinatorTab'
'3/23/2012 3:20:18 PM' - 'Pass' : 4. Enter text 'X' in 'UserNameField'
'3/23/2012 3:20:20 PM' - 'Pass' : 5. Keyboard (KeyPress) - Tab (1 times) on 'PasswordField'
'3/23/2012 3:20:23 PM' - 'Pass' : 6. Enter text '123456' in 'PasswordField'
'3/23/2012 3:20:24 PM' - 'Pass' : 7. Click 'OtherBlueLoginButton'
'3/23/2012 3:20:26 PM' - 'Pass' : 8. Wait for '2000' msec.
'3/23/2012 3:20:27 PM' - 'Fail' : 9. Verify element 'WhiteLoginButton' 'is' visible.
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
ExecuteCommand failed!
InError set by the client. Client Error:
mozCommandProcessor: ProcessInformationCommand(): Document is not ready to retrieve its markup.
BrowserCommand (Type:'Information',Info:'DocumentMarkup',Action:'NotSet',Target:'null',Data:'',ClientId:'edfba8f1-05b9-49db-b989-af663bd68d67',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'mozCommandProcessor: ProcessInformationCommand(): Document is not ready to retrieve its markup.')
InnerException: none.
Stoich
Telerik team
 answered on 11 Jul 2012
8 answers
151 views
Hi,

I have created an utility class to capture HTTP Traffic (to get some querystring key/value pair) by using Telerik HTTP PROXY class, triggered by launching a URL. This part is more complicated but it's done.

I need to capture the same traffic by clicking on any link on a page; all I know is the link element user clicked, but I won't know the exact URL. This test has to be done from Test Studio as the QA tester is not as technical, most likely with data binding to a set of link elements.

I am new to Test Studio, thought this should be pretty straightforward. Can anyone help? 

Thanks,
Terri
Terri
Top achievements
Rank 1
 answered on 10 Jul 2012
2 answers
116 views
Hi,
I have a page that has a Date field and a Chart.
Depending on the date entered, the values in the Chart change.

My requirement is to verify how many variables exist on x-axis of the chart.

When the page loads, the default date is 12/31/2001 and the corresponding Chart for this date is generated.
If I record my test with the default date values, the verification step is a success.
Verification step is - "chartarea(ChAErrorTypesAreaGvchartarea): Chart series item label count 'Equal' '5'."  

If I record my test entering a different date (say, 03/31/2002), the verification step fails.
Below error is logged:
I have also attached the Images captured for the failed step.

Unable to find the specified element: Unable to find the element of type: textblock
InnerException:
   ArtOfTest.Common.Exceptions.FindElementException: Unable to find the specified element: Unable to find the element of type: textblock
   at ArtOfTest.WebAii.Silverlight.SilverlightProxy.ExecuteSLCommand(SilverlightCommand cmd)
   at ArtOfTest.WebAii.Silverlight.SilverlightProxy.GetProperty(AutomationProperty property, IAutomationPeer peer)
   at ArtOfTest.WebAii.Silverlight.AutomationObject`1.GetProperty(AutomationProperty property)
   at ArtOfTest.WebAii.Silverlight.UI.TextBlock.get_Foreground()
   at Telerik.WebAii.Controls.Xaml.ChartSeriesItemLabel.AssignReference(AutomationReference reference)
   at ArtOfTest.WebAii.Silverlight.FrameworkElement.As[T]()
   at Telerik.WebAii.Controls.Xaml.ChartArea.get_SeriesItemLabels()
   at Telerik.WebAii.Design.Translators.Xaml.Charting.SeriesItemLabelCountVerification.GetValueByProperty(String name)
   at Telerik.WebAii.Design.Translators.Xaml.Common.RadControlPropertyVerificationDescriptor.ExtractData(IApplication hostApp, DescriptorValueStore dataStore)
   at ArtOfTest.WebAii.Design.Extensibility.XamlVerificationDescriptor.ExtractData(IAutomationHost targetHost, DescriptorValueStore dataStore)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

My Test Studio version - 2012.1.528
RadControls version - 2012.1.215.1050 

Could you please help in resolving this problem? 

Thank you,
Kiran

Kiran
Top achievements
Rank 1
 answered on 10 Jul 2012
1 answer
85 views
Due to some specific reasons, we have to generate a lot of Div tags with same id and class in a table or UL LI . I need help in writing code to find all the occurences of these div elements inside a parent table or UL LI ( parent table ID is known).

Find.ById pattern i guess simply returns me the first occurrence of the div , How can I get the collection of all such elements, traverse through them and verify the inner text of the div elements.

Anthony
Telerik team
 answered on 09 Jul 2012
5 answers
49 views
Hi, 
i sometimes get these messages in chrome's console:

Couldn't access frameId in BuildFramenfo; skipping frame
Hearbeat state not found

The two messages are repeated a few times.

Sometimes (not always!) they are followed by a

Attempted to use a disconnected port object

and the browser stops reacting.

I cannot really reproduce the problem but it looks like it happens when i change the page
(navigate to a new url).

What is it and is there anything I can do to avoid it?

thanks.
Anthony
Telerik team
 answered on 06 Jul 2012
3 answers
43 views
Hello,

I have script error when open my site in IE8 and the page is loaded partially (RadGrid is absent):

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C)
Timestamp: Thu, 19 Aug 2010 12:01:27 UTC


Message: Invalid argument.
Line: 1718
Char: 1
Code: 0
URI: http://...../Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScScriptMng_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-GB%3a0d787d5c-3903-4814-ad72-296cea810318%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2010.1.309.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-GB%3a30afb63f-e6ac-41db-9851-11879733de0a%3a16e4e7cd%3aed16cbdc%3af7645509%3a11a04f7e%3a24ee1bba%3a1e771326%3aaa288e2d%3a58366029%3ab7778d6c%3ae085fe68

Could you please help me?

Thank you in advance
Anthony
Telerik team
 answered on 06 Jul 2012
3 answers
97 views
Hi Telerik Team,
                         I had tried with the trial version of the Telerik Test Studio but i am failing to do the functional testing,HTML testing and the other stuff also,i had got success with Load Testing not fully got some what result can you help me to go forward on this probably i think because of trial version i had not get the results is it correct or not i dnt know if you ca provide me the help i will be pretty much thankful about it.
                      Please also tell me the that up to which testing the trial test studio support i.e Functional Testing,HTML testing etc.



Thanks 

Prasad

Byron
Telerik team
 answered on 05 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?