KDATFFS Introduction

In KDATFFS, several objects you should be know,  Test Set ,Test Sheet ,Test, Test Step.

         Test Set

  Test Sheet

      Test

          Test Step

           .......

      Test

          ......

      .....

Test Set: mapping excel file

Test Sheet: mapping excel’s sheet

Test:  a collection of Test Step, a Test Sheet contains many Tests.

Test Step: mapping excel’s row ,is means a action command to selenium

 

 Test Step’s  columns as follow:

 

Column Name

Desctription

TestId

Test’s name

TestStep

Test step’s id ,must be number and can’t repeat in the same Test.

CommandType

Test step’s type, now contains three types ,Browser,Element,Validate

Command

Test step execute action

CommandArgs

Command’s argument

FindMethodType

a method of find element ,mapping selenium’s By method

FindArgs

FindMethodType’s argument

ExpectedValue

Test step’s expected value ,usually used to validate

Frame

Iframe or frame’s name

Window

Popup window’name

Comment

custom’s comment

 

 Now , we detail the test step’ s command.

There are 3 basic types of commands: 

  • Browser
  • Element
  • Validate

Many commands need  FindMethod to find element in the web page.

  • FindMethod

 

Browser Commands

Name

Argument

Description

Goto

web page’s url

Navigates to the Url specified in the command arguments in the current window.

Close

 

Close current window

ExecuteScript

Javascript code

Execute javascript in the context of the currently selected frame or window.

GetScreenshot

 A path of save file

Get screenshot int current page,save as a jpeg file.

GetTitle

 

Return title of current page

GetUrl

 

Return url of current  page

SwitchToAlertAccept

 

If appear a  alert or confirm dialog,click “OK” button.

SwitchToAlertDismiss

 

If appear a  alert or confirm dialog,click “Cancel” button.

WaitForPageLoad

Times(millisecond)

Wait for page load in specified times.

Back

 

Page back

Forward

 

Page forward

Refresh

 

Page refresh

 

Element Commands

Name

Argument

FindMethod

Description

Clear

 

required

Clear input box’s text

Click

 

required

Simulates Click element

SendKeys

Input data

required

Simulates typing text into the element.

Submit

 

required

Submits this element to the web server

 

Validate Commands

Name

Argument

ExceptedValue

FindMethod

Description

ValidateBrowserTitle

 

Title of page

 

Validate pag’s title

ValidateBrowserUrl

 

url of page

 

Validate page’s url

ValidateItemValue

element’s attribure name.

The value of element’s attribute

required

Validate value of element’s attribute

ValidateItemText

 

The innerText of element

required

Validate element’s innerText.

ValidateAlertText

 

The text of alert or confirm dialog

 

Validate alert or confirm dialog’s text.

ValidateContainText   String ,you want to Check   Validate whether  Page contains string.

 

FindMethodType

Name

Argument

Description

Id

The id of element

To  find elements by their ID.

Name

The name of element

To  find elements by their Name.

Xpath

The xpath of element

To  find elements by their Xpath.

ClassName

The class name of element

To  find elements by their ClassName.

CssSelector

The css selector of element

To  find elements by their Css Selector.

LinkText

The link text of element

To  find elements by their link text.

PartiaLinkText

The partial link text of element

To  find elements by their partial link text.

TagName

The tagname of element

To  find elements by their TagName.

Last edited Dec 6, 2011 at 4:53 PM by felix_ada, version 3

Comments

No comments yet.