Telerik Forums
Test Studio Forum
5 answers
106 views
Hi,

In my test recording project, there are two Silverlight elements, SilverlightApp and SilverlightApp0. 
But in fact there should only be one, all recorded from the same process. 

I don't know why the same page get recorded into two elements, but keeping them both instead of one will have negative impact on the maintenanceIs there any way for me to consolidate them into one? 

Thanks
Ohsha
Top achievements
Rank 1
 answered on 27 Mar 2012
4 answers
135 views
Hi,
I am trying to figure out a way in which i can use data driven from an excel sheet to repeat a sequence of steps.
Attached is the html view and below code which i am using. The RED tick in the attachment is the text (Product -Gain/Loss) which i would like to enter and pick from an excel sheet. Similarly for each repeat sequence different text will be picked up from an excel sheet.

The below code helps me get the correct text value and perform a click event some times and sometimes it gives an error . But even if it works for the first iteration it gives an error when it moves to the second iteration to pick the second text value from the excel sheet.


HtmlDiv e = Find.ByExpression<HtmlDiv>("id=ReadyToUse_Reports");
string SelectedReport = Convert.ToString(Data["B"].ToString()).Trim();
HtmlAnchor a = e.Find.ByContent<HtmlAnchor>(SelectedReport, FindContentType.InnerText);
              or
HtmlAnchor a= e.Find.ByContent<HtmlAnchor>(SelectedReport, FindContentType.TextContent);
Assert.IsNotNull(a);
a.Click();


Can you guys help me on this please?
Thanks,
Santosh
Ohsha
Top achievements
Rank 1
 answered on 27 Mar 2012
1 answer
81 views
Hi Guys,

     I am evaluating the Test Studio Software vs. others and have a question.   Is it possible to access Javascript variables that are located in the "<script></script>" section of a page.

ex.

<script>
 var myVariable = "test string";
<script>

how would i access myVariable from the Javascript in a coded step?

Thanx in advance.
Pete
Top achievements
Rank 1
 answered on 26 Mar 2012
1 answer
80 views
Im recording a Web Test. I am having an issue recording confirmation dialog boxes that pop up from our software. Whenever I open a file in another application for example Word, Excel and Powerpoint I'm having an issue recording those as well. Are there any settings that I can use that will allow me to open these in the Recording screen just like when a new browser is opened?
Anthony
Telerik team
 answered on 23 Mar 2012
4 answers
79 views
What i need is to check if there is a generic dialog to tell if there is a failure , if so i need to call OnFailure() method else i need to proceed with the test. from the forum here i managed to trap the generic dialog...help i would require is:
how would i check if the Dialog has been triggered and based on that branch to another code :

The code which has helped me so far :

Manager.DialogMonitor.AddDialog(

new AlertDialog(ActiveBrowser, DialogButton.OK));

 

Manager.DialogMonitor.Start();

What i would need help in :

an if statement which checks if the generic dialog has been fired and based on which logic branching can take place.

Thanks
Sen

Anthony
Telerik team
 answered on 23 Mar 2012
1 answer
77 views
Hi

when executing a test-sometimes it passes and other times it fails.
For example, It wont go past step number 4 sometimes and when I Execute it again, it goes past step 4.

Thanks
Parsh :)
Ivaylo
Telerik team
 answered on 23 Mar 2012
3 answers
158 views
I executed a (web) test list in which 34 of my 35 tests passed and one failed.  The failed test bombed on initial execution; I included the test log details below.  This was executed on my PC (vs. a remote/virtual machine).  I've not encountered any .Net Framework compatibility issues before.  Anyone recognize what's going on here?

Thanks in advance!

------------------------------------------------------------
'3/22/2012 1:29:17 PM' - Using .Net Runtime version: '4.0.30319.239' for tests execution.
'3/22/2012 1:29:17 PM' - Starting execution....
'3/22/2012 1:29:18 PM' - Detected custom code in test. Locating test assembly: irth_Solutions_Web_Site_Redesign.dll.
'3/22/2012 1:29:18 PM' - Failure detected during execution. Details:
------------------------------------------------------------
'3/22/2012 1:29:18 PM' - System.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
   at System.Reflection.RuntimeAssembly.nLoadFile(String path, Evidence evidence)
   at System.Reflection.Assembly.LoadFile(String path)
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.EnsureAssemblyExists(String assembly, String folder)
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.CreateCodedTestInstance(Test test, TestResult result, String binariesFolder)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTest(Test test, TestResult initializationResult)
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(ExecuteTestCommand command)
------------------------------------------------------------
'3/22/2012 1:29:19 PM' - Test completed!

Richard
Top achievements
Rank 1
 answered on 23 Mar 2012
3 answers
135 views
Hi,

I am using Test Studio for Performance Testing the XBAP Application.

Our Application works like this:

XBAP application resides in the server on accessing the application through web browser with url having extension .xbap

Through HTTP communication, web browser loads all the dll from web server in a temproary file.

And Application starts working through browser.


When I record using Test Studio(using Recording Web Test), it captures only the first XBAP call, later any transaction in the application is not able to record.

When I used Recording As WPF Test.The Test studio is not able to connect Recorder to the application which is running in the browser.

Please suggest how to do performance testing for these kind off applications using Test studio.

Please reply me soon.
you can reach me(Pavan) in:+91-9742732701
or Mugil(Pavan's Manager) in: +91-9700421801 or +91-8903142282

Cody
Telerik team
 answered on 22 Mar 2012
1 answer
59 views
Hi, 

I'm trying to turn on the 'Prompt for element name before adding’ option "in the General tab of Project Settings".  
But I'm not able to find where it is. 
Nor can I find it in the online help. 
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/search-results.aspx?start=0&q=Prompt%2bfor%2belement%2bname 

Please help. 
Thanks
Ohsha
Top achievements
Rank 1
 answered on 22 Mar 2012
1 answer
109 views
Hello,

I'm trying to get info when test list fails on some test.
Email is send to configured account but email is not readable. It look like it's formated badly and email client can't handle this.
Below example what kind of message I get (using :Telerik Test Studio version 2011.2.928.0 with licence)

h t m l >  h e a d >  M E T A  h t t p - e q u i v = " C o n t e n t - T y p e "  c o n t e n t = " t e x t / h t m l ;  c h a r s e t = u t f - 1 6 " >  t i t l e >  T a b l e  / t i t l e >  s t y l e  t y p e = " t e x t / c s s " >  h t m l ,  b o d y  {  m a r g i n :  0 ;  p a d d i n g :  3 0 p x ;  t o p :  0 ;  l e f t :  0 ;  t e x t - a l i g n :  c e n t e r ;  }  b o d y  {  f o n t - f a m i l y :  A r i a l ,  H e l v e t i c a ,  s a n s - s e r i f ;  c o l o r :  # 5 0 5 0 5 0 ;  }  d i v # M a i n  {  w i d t h :  7 0 0 p x ;  b a c k g r o u n d :  # d c e 9 f 1  u r l ( ' c i d : r e s o u r c e s / m a i n _ b a c k . p n g ' )  r e p e a t - x  l e f t  t o p ;  p a d d i n g :  3 0 p x ;  m a r g i n :  0  a u t o ;  t e x t - a l i g n :  l e f t ;  }  # l o g o  {  f l o a t :  r i g h t ;  c l e a r :  b o t h ;  m a r g i n :  0 ;  p a d d i n g :  0 ;  w i d t h :  1 4 8 p x ;  h e i g h t :  2 8 p x ;  b a c k g r o u n d :  u r l ( ' c i d : r e s o u r c e s / w e b u i _ m i n i _ l o g o . g i f ' )  n o - r e p e a t  l e f t  t o p ;  }  # l o g o  s p a n  {  d i s p l a y :  n o n e ;  }  h 2  {  c l e a r :  b o t h ...
And message source:
<   h   t   m   l   >  
    
           <   h   e   a   d   >  
    
                   <   M   E   T   A       h   t   t   p   -   e   q   u   i   v   =   "   C   o   n   t   e   n   t   -   T   y   p   e   "       c   o   n   t   e   n   t   =   "   t   e   x   t   /   h   t   m   l   ;       c   h   a   r   s   e   t   =   u   t   f   -   1   6   "   >  
    
                   <   t   i   t   l   e   >  
    
                                           T   a   b   l   e  
    
                                   <   /   t   i   t   l   e   >  
    
                   <   s   t   y   l   e       t   y   p   e   =   "   t   e   x   t   /   c   s   s   "   >  
    
                                           h   t   m   l   ,       b   o   d   y  
    
                                           {  
    
                                           m   a   r   g   i   n   :       0   ;  
    
                                           p   a   d   d   i   n   g   :       3   0   p   x   ;  
    
                                           t   o   p   :       0   ;  
    
                                           l   e   f   t   :       0   ;  
    
                                           t   e   x   t   -   a   l   i   g   n   :       c   e   n   t   e   r   ;  
    
                                           }  
    
                                           b   o   d   y  
    
                                           {  
    
                                           f   o   n   t   -   f   a   m   i   l   y   :       A   r   i   a   l   ,       H   e   l   v   e   t   i   c   a   ,       s   a   n   s   -   s   e   r   i   f   ;  
    
                                           c   o   l   o   r   :       #   5   0   5   0   5   0   ;  
    
                                           }  
    
                                           d   i   v   #   M   a   i   n  
    
                                           {  
    
                                           w   i   d   t   h   :       7   0   0   p   x   ;  
    
                                           b   a   c   k   g   r   o   u   n   d   :       #   d   c   e   9   f   1       u   r   l   (   '   c   i   d   :   r   e   s   o   u   r   c   e   s   /   m   a   i   n   _   b   a   c   k   .   p   n   g   '   )       r   e   p   e   a   t   -   x       l   e   f   t       t   o   p   ;  
    
                                           p   a   d   d   i   n   g   :       3   0   p   x   ;  
    
                                           m   a   r   g   i   n   :       0       a   u   t   o   ;  
    
                                           t   e   x   t   -   a   l   i   g   n   :       l   e   f   t   ;  
    
                                           }  
    
                                           #   l   o   g   o  
    
                                           {  
    
                                           f   l   o   a   t   :       r   i   g   h   t   ;  
    
                                           c   l   e   a   r   :       b   o   t   h   ;  
    
                                           m   a   r   g   i   n   :       0   ;  
    
                                           p   a   d   d   i   n   g   :       0   ;  
    
                                           w   i   d   t   h   :       1   4   8   p   x   ;  
    
                                           h   e   i   g   h   t   :       2   8   p   x   ;  
    
                                           b   a   c   k   g   r   o   u   n   d   :       u   r   l   (   '   c   i   d   :   r   e   s   o   u   r   c   e   s   /   w   e   b   u   i   _   m   i   n   i   _   l   o   g   o   .   g   i   f   '   )       n   o   -   r   e   p   e   a   t       l   e   f   t       t   o   p   ;  
    
                                           }  
    
                                           #   l   o

Any idea why ??
----------------------------------------------
<SOLVED>

I found a workaround solution for this, another email accounts (send and recive account)  on the other host seem to have no problem with sending and reciving messages. Everything is visible fine.
Strange.. but I can use it too so no problem anymore.

Anthony
Telerik team
 answered on 22 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?