Telerik Forums
Test Studio Forum
20 answers
84 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
163 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
123 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
74 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
57 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
106 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
95 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
144 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
1 answer
51 views

Hi,

 

Hope you can help.

We have a create accounts test that needs to be run on different browsers and with different data.  We have created the following 4 tests and set the browser type in the properties on each test.

Created Test 1, properties for the test has browser type set as Chrome

Created Test 2, properties for the test has browser type set as Firefox

Created Test 3, properties for the test has browser type set as Internet Explorer

Created Test 4, properties for the test has browser type set as Safari

All above test are identicle, except the data it calls and the browser property

 

We then created test A which calls each of the above tests as a test as step as we want to have just the 1 test rather than 4.  Test A was created with no browser set in the properties.

When we try and run test A from the normal test repository(i.e not in a schedule list), it just runs on the browser you choose to execute on rather than the one set on the test as step and when you add it to Test List and run from there it asks for a default browser again rather than using the ones set on the test as step.

What is the best practice to achieve the above,? do we just have the 4 individual tests and if so how do we get it to run on the browser we set?

 

Kind regards,

Tracy

 

 

 

Ivaylo
Telerik team
 answered on 16 Feb 2016
2 answers
70 views

Hi,

I am using the Telerik test studio for the first time. The problem I have with the Test studio tool is how can I customize the Username and Password fields available on the Logon dialog to be driven out of a configuration file ?

 

Suppose we have a web application which can deployed on multiple servers and the authentication to each of these is done using the Logon dialog,  For eg. http://Server1 has login creds AAA/BBB and http://Server2 has login creds CCC/DDD. Is it possible to customize the logon dialog such that the username and password fields are driven out of a config file which stores the username and password for the respective server.

 Regards,

Venkat

Boyan Boev
Telerik team
 answered on 12 Feb 2016
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?