Syntax is:-
SystemUtil.CloseProcessByName ("iexplore.exe")
Two benefits of Failure. First it makes us to Learn what does not work and second it gives us the opportunity to try a new approach.
2. Action have a object repository, Data table etc associated with it while a function can't.
3. A function is just lines of code with some/none parameters and a single return value while
an action can have more than one input/output parameters. 4. Inside of Action we can declare lot of Function , incase Function can’t declare more Action
" cmd/K is one of the switches avaliable with the cmd.exe"
For Example:
/C Switch : This switch loads a session of ‘cmd.exe’ into
memory, executes the command specified after /C and
terminates the cmd session.
/K Switch : This creates a new command session and
executes the date command, the session is not terminated
after completion of the command.
TC-ID | Description | Expected Result |
TC-001 | Check for the display of the report screen | The Report screen should be displayed without any interruption |
TC-002 | Check for the Title of the screen | The Title of the screen should be displayed as |
TC-003 | Check for the title bar of the browser is consistent with the Screen Title | the title bar of the browser should be consistent with the Screen title |
TC-004 | Check for the address displayed in the address bar of the browser. | The screen path should be displayed with screen name. |
TC-005 | Check for the contents displayed in the Report Screen | The following contents should be displayed in the From Fortnight Start Date* (Text Box with Calendar Look up), To Fortnight End Date* (Text Box with Calendar Look up) , FEDRO Code (Text Box with Look up), AD Code (Text Box with Look up). Report Format (Combo Box) and Report (Button), Reset (Button) & Close (Button) |
TC-006 | Check for the enable and disable nature of buttons and fields when the screen is loaded. | The buttons enabled and disabled should be proper as per the specifications. |
TC-007 | Check display of mandatory fields. | The mandatory fields should contain the red color asterisk (*) symbol on the top right side of the field. |
TC-008 | Check for the screen layout | The screen layout should be proper as per the specifications. |
TC-009 | Check for the Font style, Font Size and Font color of the Screen objects | All the fields should have same Font style, Font Size and Font color as per the requirement specifications. |
TC-010 | Check for the proper alignment of the Screen objects on screen load | The fields and buttons should be aligned properly without overlapping. |
TC-011 | Check for the spelling mistakes of the Screen objects | The Screen objects should be devoid from the spelling mistakes |
TC-012 | Check for the back ground color and the logos used are consistent throughout the application. | The back ground color and the logos used should be consistent throughout the application. |
TC-013 | Check for the tab movement | The tab movement should be proper as the requirement specifications. |
TC-014 | Check for the Tool Tips displayed in the screen | Appropriate Tool Tips should be displayed in the screen. |
TC-015 | Check for the default values displayed on form load | All default values should be displayed properly while loading a page |
TC-016 | Check for mandatory nature of the From Fortnight Start Date* | Should be displayed Based on the System date, the Text Fields From Fortnight |
TC-017 | Calendar textbox fields. | Start Date* and To Fortnight Start Date* should display either First or Second Fortnight and 'PDF' should be selected in Report Format Combo box. |
TC-018 | Calendar lookup window. | The From Fortnight Start Date* calendar should be opened and Cursor should be focused on the Current date and User should be allowed to select required date. |
msgbox Browser("Google").GetCookies("http://www.google.com")
strCookie = Browser("Google").Page("Google").Object.cookie
msgbox strCookie
Dim xlApp, xlBook, xlSheet Dim iRow, sUserName, sPassword CONST iUserNameCol = 1 'UserName is in Column A CONST iPasswordCol = 2 'Password is in Column B Set xlApp = CreateObject("Excel.Application") Set xlBook = xlApp.WorkBooks.Open("C:\TestFile.xls") Set xlSheet = xlBook.WorkSheets("Sheet1") 'iRow = 2 because data to be driven starts from Row #2 For iRow = 2 to xlSheet.UsedRange.Rows.Count 'Retrieve UserName and Password from "iRow" rows and columns A & B sUserName = xlSheet.Rows(iRow).Columns(iUserNameCol).Value sPassword = xlSheet.Rows(iRow).Columns(iPasswordCol).Value 'Parameterization Block: With Browser("title:=Welcome: Mercury Tours", "index:=0") 'Step 2 .WebEdit("name:=userName").Set sUserName 'Parameter 1: UserName .WebEdit("name:=password").Set sPassword 'Parameter 2: Password .Image("name:=login").Click End With 'Step 3: If Find a Flight page appears, go back to Home If Browser("title:=Find a Flight: Mercury Tours:", "index:=0").Exist(10) Then Browser("title:=Find a Flight: Mercury Tours:", "index:=0").Link("text:=Home").Click 'Step 4: Pass the iteration Reporter.ReportEvent micPass, "Iteration " & iRow-1, "UserName: " &sUserName& " is valid" Else 'Step 5: Fail the iteration and return to the Home page Reporter.ReportEvent micFail, "Iteration " & iRow-1, "UserName: " &sUserName& " is invalid" Browser("title:=Sign-on: Mercury Tours", "index:=0").Link("text:=Home").Click End If Next xlBook.Close xlApp.Quit Set xlSheet = Nothing Set xlBook = Nothing Set xlApp = Nothing