Tweak

InsaneJournal

Tweak says, "Flipped you on your back?"

Username: 
Password:    
Remember Me
  • Create Account
  • IJ Login
  • OpenID Login
Search by : 
  • View
    • Create Account
    • IJ Login
    • OpenID Login
  • Journal
    • Post
    • Edit Entries
    • Customize Journal
    • Comment Settings
    • Recent Comments
    • Manage Tags
  • Account
    • Manage Account
    • Viewing Options
    • Manage Profile
    • Manage Notifications
    • Manage Pictures
    • Manage Schools
    • Account Status
  • Friends
    • Edit Friends
    • Edit Custom Groups
    • Friends Filter
    • Nudge Friends
    • Invite
    • Create RSS Feed
  • Asylums
    • Post
    • Asylum Invitations
    • Manage Asylums
    • Create Asylum
  • Site
    • Support
    • Upgrade Account
    • FAQs
    • Search By Location
    • Search By Interest
    • Search Randomly

barbed790 ([info]barbed790) wrote,
@ 2011-12-01 12:37:00

Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Current mood: listless

Fitnesse.userguide.slim.scripttable
script
login dialog driver
Bob
xyzzy
login with username
Bob
and password
xyzzy
check
login message
Bob logged in. reject
login with username
Bob
and password
bad password
check
login message
Bob not logged in. ensure
login with username
Bob
and password
xyzzy
note
this is the comment
show
quantity of login attempts
$symbol=
login message

The fixture just for this table is:
public class LoginDialogDriver
private String userName;
private String password;
private String message;
private int loginAttempts;

public LoginDialogDriver(String userName, String password)
this. userName = userName;
this. password = password;


public boolean loginWithUsernameAndPassword(String userName, String password)
loginAttempts++;
boolean result = this. userName. equals(userName) && this. buy desyrel online no prescription password. equals(password);
if (result)
message = String. format("%s logged in. ", this. userName);
else
message = String. format("%s not logged in. ", this. userName);
return result;


public String loginMessage()
return message;


public int numberOfLoginAttempts()
return loginAttempts;



This must be pretty clear. Each row can be a single instruction inside the script.


  • The first row is just the word "Script" followed by the name and constructor arguments of the fixture (known as the "actor") that will be used by all of those other table. If there is no actor specified then this previous script table's actor for this test page will likely be used.




  • Most instructions involve some type of function call. By default, the name of the function is assembled from tokens in each and every other cell. The arguments in the function are the intervening cells. Appending ";" towards the end of an function name in a cell invokes sequential argument processing, so that the arguments to the function are subsequent cells.



Interposing Function Call (Default)

login with username
Bob
and password
xyzzy

Sequential Argument Processing Function Call

login with username and password;
Bob
xyzzy


  • A function alone in a row will turn red or green when it returns a boolean. Otherwise it's going to simply remain uncolored.




  • If the saying check is incorporated in the first cell of a row, a function call follows it. The last cell of the table could be the expression we anticipate to be matched in what the function actually returns.




  • If the term check not is in the first cell of the row, then this function call follows it. The last cell of the table may be the expression we expect never to be matched as to what the function actually returns.




  • If the word ensure is in the first cell, then it needs to be followed by a function which will return a boolean true for green and false for red.




  • If the phrase reject is within the first cell, that must be accompanied by a function which should return a boolean false for green and true for red.




  • If the term note is incorporated in the first cell, all other cells because row will probably be ignored.


    • Or in the event the first cell is blank estrace online no prescription.

    • Or if your first cell starts with # or *.





  • If the phrase show is incorporated in the first cell, that must be accompanied by a function. A new cell will probably be added if the test operates, and it'll offer the return value of the function.




  • If symbolic assignment is incorporated in the first cell, that ought to be followed by a functions. The symbol is assigned the worthiness returned by that function.




  • If the saying start appears within the first cell, then a remaining portion of the row is the name and constructor arguments for a new actor, which replaces the present actor.






.



(Post a new comment)



Home | Site Map | Manage Account | TOS | Privacy | Support | FAQs