Thursday, September 4, 2008

Google Chrome crashed

Google Chrome crashed


Today morning, my friend "SP" gave a ring, to my cubicle and the conversation was as below:

SP: Maaga, coffee'ge barthya...? (Do you come for coffee ?).
Me: Yes, 5 minutes.

* when I went to cafeteria, I did not see him. Walked towards the smoke zone. He was sitting quietly.

Me: Yeno Maaga.. (What man?)
SP: Hi! Sit.

* we had a few chat regarding the Ganesha festival celebration and the tasks that he and me was doing.

SP: Did you work on Google Chrome web browser?
Me: No, not yet. How it is tested ?
SP: Don't you have any other words that comes from your mouth? Same words always, how?
Me: Come, let us have a coffee.


Topic Google Chrome crashed begins

After having coffee, came back to my cubicle and started downloading the Google Chrome and installed it.

The two tabs were displayed below a opened Window's application title bar (below snap), when I launched the Google Chrome. Maximized the Google Chrome, and saw no title bar. Instead the tab's header displayed a opened website information as a title on tab header; when mouse was moved over tab header, a screen tool tip was displayed with the same information that was on tab's header. Similarly, the progress bar appeared at left bottom of console on moving mouse to URL bar while loading the web page of a site or for any other browsed content.

snap showing Google Chrome being displayed below a standard Windows title bar.

Started to look for the features that Google Chrome provides apart from the other available browsers. Found few things, among them were 'Task manager', the useful one along with "Report bug or broken website..." and "New incognito window" (which will have a gray ash color being different from normal Google Chrome window) . Entering a web address at URL bar, browser displays the option of typed words for a search using selected Search Engine.

Searching for a phrase or a word in Google Chrome, it highlights all the words/phrases/letters that matches, by giving total number of matched. Moving the up & down arrows, it traverses the matched search item, by giving that particular word/phrase/letter position count in the total numbers of matched item present. Apart from this, the vertical scroll bar of the browser will have the yellow-brownish color lines, where all the matched words present. Which makes easy to look into the line where the phrase/letters/words are present.

Now, started to download few applications from the web. Without asking the user, that do you want to download, it began the download operation (should have been asked like, whether to continue or begin the download operation).

Google has listed the other search engine along with itself. The other search engines listed are Yahoo!, Live Search, AOL and Ask (which gives a feel & kind of message, 'Live and let us Live'). Any one of the five search engine option can be chosen. Yet another feature was, drag and drop of tab to a new browser and a browser window to a tab.Noticed that Google Chrome had good speed when compared to other browsers, but during few operations the speed was dropped down. More than one Image Name i.e., "chrome.exe" was displayed and this depended on the number of tabs that were opened in the Google Chrome browsers (noticed this, when the performance of Google Chrome was slow.) Look and feel was simple, but not to the mark what Google provides and known for. No doubt, all the issues of Look and feel will get fixed in final beta release (I saw only few of them today; testers performing web testing using Google Chrome, can find many more which can be more complicated).


Few basic features and bugs should be sorted out in Google Chrome:

  • Clicking on 'New tab' which is available on the left hand side of the browser, does not open a new tab.
  • Closing all the tabs that are opened in the browser, makes the Google Chrome to get terminated.
  • In a new tab, entering keys 'CTRL + B', makes the bookmarks to get detached from the URL. Say, in the same browser you have a tab which is showing some browsed web information.; entering 'CTRL + B' does not even show the detached bookmarks. This creates void confused thinking in the user. As all the users of Google Chrome are not technical persons and will have same level of thinking and understanding always.
  • Before starting to download any contents from web, Google Chrome should prompt the user whether to continue downloading or not. This may save user from various threats by today's web world.
  • Home button is not displayed by default. User should try to find where the 'Home' button is located in the browser; later she/he should enabled the option to display the 'Home' button.
  • In the below snap shot, observe how the two Google Chrome windows look. The top most tabs displayed are of one Google Chrome window and the second row tabs are of the other Google Chrome window. The top most window's row as taken off word 'Google' from display, as the window being maximized. The second row displays the 'Google' word near the minimizer of the window. Taking off the of product vendor name from display when maximized, is not a good admiralty of the product. In other view, taking off word 'Google' from view in the window on maximizing the browser, can be interpreted as, Google cares for service rather than making up its advertisement (don't know how far this holds good i.e., 'advertisement'. No doubt in its services, which is a good one and that makes Google a unique.).


snap showing tabs of two Google Chrome windows.
  • In the above snap, notice the tab header and its contents. It will be difficult to know, what the tab contains, unless the mouse is moved over the tab or by clicking on the tab.
  • Many more issues were noticed; while collecting those snaps and writing up those data into my observation book, got a shocking warning message dialog after 4 hours of work with Google Chrome, "Whoa! Google Chrome has crashed. Restart now?".


Google Chrome crash message


I said this news to my friend "MSH" who sits quiet near to me. He showed me the another way of doing it which he read from a web just then, and I was surprised to see it; and all the feel what I had when I saw the CRASHED word on my machine, evaporated like a dew on a lotus leaves. Still, I am happy, that my testing for nearly 4 hours, gave me "Whao! Google Chrome has crashed. Restart now?".

Thanks, SP and MSH for sparing 10 minutes for me.


Sunday, August 31, 2008

TestComplete's Data Driven Test

TestComplete is a test automation tool from AutomatedQA. It provides several features as other automation tool does provide and supports for various technologies on Windows platform. Let us see a code snippet which is in VBScript, used for a Data Driven Test using Microsoft Excel sheet.

TestComplete's Data Driven Test


Below written is a VBScript for Data Driven Test using automation tool, TestComplete 6. The script automates for booking a flight ticket using Mercury/HP's QTP sample flight application. The excel file will have the data, which is used during Data Driven Test.


' The script starts from here.

Option Explicit

Sub openForm(w1)
Call w1.MainMenu.Click("File|New Order")
End Sub

Sub insertOrder(p1,w1,w2,Driver)
Call w2.Window("MSMaskWndClass").Keys(Driver.Value(0))
Set w3 = w2.Window("ComboBox", "", 1)
Call w3.ClickItem(Driver.Value(1))
Set w3 = w2.Window("ComboBox", "", 2)
Call w3.ClickItem(Driver.Value(2))
w2.Window("Button", "FLIGHT").ClickButton
Set w3 = p1.Window("#32770", "Flights Table")
Call w3.Window("ListBox").ClickItem(Driver.Value(5))
w3.Window("Button", "OK").ClickButton
Set w3 = w2.Window("Edit", "", 1)
Call w3.Click(55, 11)
Call w3.Keys(Driver.Value(3))
w2.Window("Button", Driver.Value(4)).ClickButton
Call clickInsert(w2)
End Sub

Sub closeApplication(w1)
Call w1.MainMenu.Click("File|Exit")
End Sub

Sub clickInsert(w2)
w2.Window("Button", "&Insert Order").ClickButton
End Sub


Sub Main ' point of starting the script execution.
Dim p1
Dim w1
Dim w2
Dim w3
' creating a Excel driver object.
Set Driver =
DDT.ExcelDriver("G:\RAVI\TESTING\testComplete\sampleProject\flightDDT.xls","flightDDT",false)
Call TestedApps.flight4a.Run ' Application Under Test (AUT/SUT).
Set p1 = Sys.Process("flight4a")
Set w1 = p1.Window("#32770", "Login")
Call w1.Click(55, 6)
Set w2 = w1.Window("Edit", "", 1)
Call w2.Click(24, 8)
Call w2.Keys("mercury")
Set w2 = w1.Window("Edit", "", 2)
Call w2.Click(16, 11)
Call w2.Keys("mercury")
w1.Window("Button", "OK").ClickButton
Set w1 = p1.Window("Afx:400000:b*", "Flight Reservation")
Call w1.Click(50, 7)

While Not Driver.EOF
Call openForm(w1)
Set w2 = w1.Window("#32770")
If Driver.EOF Then
Call DDT.CloseDriver(Driver) ' closing the Excel Driver object created.
Call closeApplication(w1) ' closing the AUT/SUT.
End If
Call insertOrder(p1,w1,w2,Driver) ' call to a procedure to insert the data from excel sheet.
Call Driver.Next ' moving to the next row in the excel sheet.
Wend
Call closeApplication(w1)
End Sub ' End of a "Main" procedure.
' The script ends here.
*************************************************************************************


Learning's:

  • To begin, Data Driven Test from the above script, makes use of Excel Driver, which creates a object for an Excel sheet.
  • Syntax or declaration of driver:
DDT.ExcelDriver(Filename, Sheet, UseAceDriver)
  • Filename: is the name of excel file being used.
  • Sheet: is the excel sheet which has the data, that will be used for test.
  • UseAceDriver: a Boolean value. If True, TestComplete makes use of ACE driver to connect an excel sheet. If it is False, TestComplete connects to the excel sheet via the Microsoft Excel ODBC driver. ACE driver lets us to connect Excel 2007 sheets together with earlier version of Microsoft Excel.
  • Driver.Value(n), carries the data from excel sheet. The first column of the excel sheet is read as zeroth column.

The GUI which takes data from the user, can be fed with the relevant or irrelevant data which we want to test with, for 'n' number of times or for the desired iterations of tests run. The content format of the excel file is as below:


DATE FLY FROM FLY TO NAME CLASS FLIGHT
091108 Denver London Testing Garage First 20263 DEN 11:12 AM LON 06:23 PM AA $112.20
010109 Frankfurt Los Angeles Ravisuriya Business 20324 FRA 09:12 AM LAX 04:23 PM AA $112.20

End of topic "TestComplete's Data Driven Test"


Off-Topic note learning:

Finally to conclude, the automation is not a solution for busy and challenging test execution process. It provides the supporting hand to repeat the tests for test conditions which needs to be executed repeatedly. But, the 'Manual Testing' or a Tester testing sitting in front of the SUT/AUT is much result oriented and provides information regarding the quality measure of AUT/SUT; because tool only does the task scripted but the tester (human) has the intelligence & capability to identify the risks from doing things repeatedly with her/his thinking capability, which are uncovered by test tools.


Love Testing !