Telerik Forums
Test Studio Forum
3 answers
170 views
Dears,

I want to ask how can i connect my project to SVN source control,, and what is the steps.
I find how to connect to tfs version control only...!!!


Regards,
Emad
Boyan Boev
Telerik team
 answered on 02 Mar 2016
4 answers
141 views

Hi Team,

 

Any advice on below issue :

 

Requirement : In Coded Step, I want to write a code such that string should split into two halves based on delimiter and save it in two diff variables

Any Code/Functionality available in Telerik Test Studio to achieve this ?

  

Please find the snapshot for example

 

Regards

Abdul

 

Ivaylo
Telerik team
 answered on 26 Feb 2016
20 answers
102 views

This is another of many issues I have had with Test Studio communicating with TFS. For whatever reason, Test Studio is consistently deleting an entire folder of tests when they have not been deleted by the client and it does not show the user that the delete is part of the check in. This is extremely frustrating. Why is Test Studio doing this and I can I make it stop?

NOTE: I have already rolled back the delete multiple times, deleted and re-created the local workspace with a fresh instance of the project from source control.

Ivaylo
Telerik team
 answered on 24 Feb 2016
6 answers
227 views

I have created if/else condition, if part is working OK, but else if failing. I have attached execution log...

 

'19.2.2016 13:27:18' - 'Pass' : 1. Navigate to : '/'
'19.2.2016 13:27:18' - 'NotRun' : 2. Wait for 'TextContent' 'Contains' 'Sign in to start your session' on 'SignInToPTag'
'19.2.2016 13:27:33' - 'Fail' : 3. IF (Wait for 'TextContent' 'Contains' 'Sign in to start your session' on 'SignInToPTag')
'19.2.2016 13:27:33' - Unable to determine logical branch to go into. Unable to execute verification.
------------------------------------------------------------
Failure Information: 
~~~~~~~~~~~~~~~
Unable to locate element. Details: Attempting to find [Html] element using 
Find logic 
 (Html): [tagname 'Exact' p] AND [TextContent 'Exact' Sign in to start your session]

Unable to locate element. Search failed!

Ivaylo
Telerik team
 answered on 24 Feb 2016
4 answers
149 views

Hello All,

 

I have an application on which a random text will be generated dynamically during run time.

Note : This text changes every time I navigate to this page. Even on refreshing page, I get new new text.

 

My concern is :

(1) How do I extract this dynamic text from application ?

(2) After extracting it, how can I split this text based on delimiter ? (There is a delimiter " : " which separates the text into two halves).

(3) How can I get these two halves and save it an excel file ?

 

Thanks

Abdul

Abdul Khader
Top achievements
Rank 1
 answered on 23 Feb 2016
1 answer
97 views
Like the title says, I enable RecycleBrowser in the Test List settings, and it continues to close the web browser upon test execution. Anyone else getting this problem? Is there a fix? Am I missing a setting? Please help, thanks in advance.
Elena
Telerik team
 answered on 22 Feb 2016
7 answers
78 views

Hi, i hope someone is able to guide me in the right direction.

 I am currently trying to export a SQL list and a HTML Table list into excel, then run a comparison on the results.

 I can export the SQL list into excel and the data shows correctly, but when i try to do the same on the HTML list, it is only showing 1 item.

 Here is the code that i am using below with the HTML code at the top, and the working SQL code below (have masked some parts with ????)

 Many thanks in advance!

 

01.IList<HtmlTableCell> myList = ActiveBrowser.Find.AllByTagName<HtmlTableCell>("td");   
02.     
03.     foreach (HtmlTableCell item in myList)  
04.     {
05.         string csv2 = item.InnerText.ToString().Trim();
06.         string[] parts2 = csv2.Split(',');
07.         List<string> cellList = new List<string>(parts2);
08.         cellList.Add(csv2);
09. 
10.             foreach (var tableitems in cellList)
11.             {
12.                 // WRITE EXCEL CODE HERE
13.                    Log.WriteLine("SHOW CSV2: " + csv2);
14.                    int row = 2;
15.                    int col = 2;
16.                    excelApp.Cells[row, col] = tableitems;
17.                    row++;
18.                    if (cellList.IndexOf(tableitems) == cellList.Count - 1)
19.                             
20.                    col = 2;
21.             }
22.     }
23.     
24. 
25.// ********** SQL DATA CODE START **********
26.List<string>LicenseeList=new List<string>();
27.using(SqlConnection Conn = new SqlConnection(@"" + myVar2))
28.{
29.    string qry = @"SELECT Name FROM ?????? WHERE ?????? = '????'";
30.    var cmd = new SqlCommand(qry,Conn);
31.    cmd.CommandType = dt.CommandType.Text;
32.    Conn.Open();
33.        using (SqlDataReader reader = cmd.ExecuteReader())
34.        {
35.            if (reader.HasRows)
36.            {
37.                while (reader.Read())
38.                {
39.                    string item = reader.GetString(reader.GetOrdinal("?????"));
40.                    LicenseeList.Add(item);
41.                     
42.                }
43.                 
44.                // DO THE EXCEL STUFF HERE
45.                Log.WriteLine("THIS MANY IN LIST(SQL DATA): " + LicenseeList.Count.ToString());
46.                int row = 2;
47.                int col = 1;
48.                foreach (var LicenseeItem in LicenseeList)
49.                {
50. 
51.                    excelApp.Cells[row, col] = LicenseeItem;
52.                    row++;
53.                    if (LicenseeList.IndexOf(LicenseeItem) == LicenseeList.Count - 1)
54.                             
55.                    col = 1;
56.                }
57.            }
58.        // Close the Reader   
59.        reader.Close();
60.        }
61.    // Close the connection   
62.    Conn.Close();
63.}
64.// ******** SQL DATA CODE END *******

 

Boyan Boev
Telerik team
 answered on 19 Feb 2016
7 answers
128 views
Test Studio version is 2012.2.1204.0
I have a test created in IE10 which is basically a simple test to navigate to URL which works fine when running using IE10. When trying to run the same test using Firefox , browser opens up saying "preparing for automation" and it does not do anything. I have to manually abort the test run. The website is built around using HTML5 and java script and there is just one single line of code in the test to navigate to a website. Firefox  has been configured as per the instructions in the documentation
The failed view log has following text:

------------------------------------------------------------
'6/6/2013 3:17:24 PM' - Using .Net Runtime version: '4.0.30319.296' for tests execution.
'6/6/2013 3:17:24 PM' - Starting execution....
'6/6/2013 3:17:54 PM' - Failure detected during execution. Details:
------------------------------------------------------------
'6/6/2013 3:17:54 PM' - System.TimeoutException: Wait for condition has timed out
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
   at ArtOfTest.WebAii.Core.Manager.WaitForBrowserToConnect(Int32 browserIndexToWaitFor)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InitializeWeb(ExecutionEngineCreateParams initParams)
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.CreateAndInitializeEngine(Test test, ExecutionEngineCreateParams cp)
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(ExecuteTestCommand command)
------------------------------------------------------------
'6/6/2013 3:17:54 PM' - Test completed!

 

Boyan Boev
Telerik team
 answered on 18 Feb 2016
3 answers
119 views

Hi

Starting out with Test Studio. My first "stop" was some javascript code using the Keyup event.

In the docs I found that "FireKeyEvents" should be turned on, but I could not find that option.

It turned out that uncheck off "Unicode Support" was the way forward.

Regards.

 

Boyan Boev
Telerik team
 answered on 17 Feb 2016
6 answers
171 views

hello again,

today I have to test if a textarea of an application has been populated with information and, if so, give some feedback to the tester.

the point is:

I need to build a verification which checks if the value of a textarea is still the empty string ("") or if it has been written upon.

I tried many ways looking in the documentation, in examples and so on, and I have come up trying to use a simple regular expression to do this check. I've built an if-else condition which bears a verification that works somewhat like this (see screenshot):

"if this element's text-attribute's value is != ".+" (which should mean "one or more any character" in regex), prompt a windows that says so, if not, prompt another window that says the opposite"

if I run this test on two elements, one with the desired textarea full of text and the other empty, in both cases my verification seems to give positive feedback.

I am missing something, or maybe the regex is not validated.

coul you give me a hand on this?

thanks in advance to anyone who could teach me how this works.

Ivaylo
Telerik team
 answered on 17 Feb 2016
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?