Results for category "Best Practices"

Setting up your Storyboards for best results when Generating Test Cases

When using PowerStory to generate test cases it is important how you use “keywords” within your steps to indicate if the step is a user action or an expected result.  

When you first try to generate test cases from your storyboard the default keywords are <user> and <system>.

If a storyboard step has the keyword <user> within it,  then it will be translated to a “user action” within the test case step generated.

if a storyboard step has the keyword <system>  within it, then that step will be translated to an “expected result” within the test cases step.

For example if you have a storyboard such as this…

  1. <user> types a url into the browser
  2. <system> loads the page associated with the url into the browser window
  3. <user> clicks on the login button
  4. <system> presents the login dialog
  5. <user> provides valid credentials and clicks on the login button
  6. <system> logs the user in and presents the home page

Then the resulting test cases would be as follows

User Action  -> Expected Result

1. types a url into the browser

-> Loads the page associated with the url into the browser

2. clicks on the login dialog

-> presents the login dialog

3. provides valid credentials an clicks on the login button

-> logs the user in and presents the home page

Closed

Moving Steps

Moving steps can be accomplished by selecting the step so that it is not in edit mode and then dragging it to its desired location.  Alternatively you can use the arrow keys in the steps editor panel menu to move the step up and down or convert to/from an alternate flow. 

Closed

Deleting Steps

To delete the selected step, simply hit the DEL key on your keyboard or click on the “X” in the steps editor panel menu.

Closed

Deleting an Entire Alternate Flow

If you want to delete an entire alternate flow select the alternate flow condition step, which is the step defining the condition that causes the alternate flow and hit the DEL key or the “X” key in the steps editor panel menu.  NOTE: THIS WILL DELETE THE ENTIRE ALTERNATE FLOW SO USE WITH CAUTION.

Closed

Copying and Pasting Steps

To copy and paste a step, you can use the context menu by right clicking or use the keyboard shortcut of CTL+C to copy and CTL+V to paste

Closed

Quick Editing Tips for Storyboard Steps Editor

PowerStoryboard  has some built in features that will make it very easy for you to add your steps within the Steps Editor.  These features were built with quick data entry in mind.

Use the ENTER key  to quickly add a new step:

When you are editing an existing step, if you hit the ENTER key this will create a new step below the current step.

If the current step is an alternate flow condition then the step will be added as the first step of the alternate flow.

Use the TAB key to quickly make an alternate flow:

Hitting the TAB key will make the currenlty selected step an alternate flow to the step just before the currenlty selected step.

Use the SHIFT + TAB to move an alternate flow to it’s parent flow.

Hitting the SHIFT+TAB key combination will change the currently selected step from being an alternate flow (if it is an alternate flow) to become a sibling of the stp just before it.

Closed