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

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 HERE13. 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 HERE45. 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 *******
------------------------------------------------------------
'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!
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.
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.
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
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
Hi there,
I was wondering if there is a way to get more information from the email that is sent out by the scheduler? Currently it gives very little output as to what the steps where leading up to the failure. For the person having access to Test Studio, you get to see the log files, and you can view the log files of a particular step that failed.
Surely there must be a way of attaching the log file, of a particular test step, to the excel document? Or maybe even a way of sending an email with the log file information via email? Not all persons involved will have access to Test Studio, and will not understand where tests are failing.
Any further info will be very much appreciated.
Thanks
New to Test Studio and we're trying to record a specific keyboard combination of Ctrl + Alt + Shift + P.
How would I go about creating a test step?
Thanks