Manual tests for Visual Flow Editor

Guidelines for documenting the manual tests:

  • Summarize the elements covered in the test
  • Enumerate the steps (ordered list)
  • Call out test points with a TEST bullet
  • Include screenshots as appropriate; many of the manual tests will be visual, so screenshots are helpful

BEFORE YOU START TESTING...

Refer to the DevToolsIdeTests and complete:
  1. Install and run the App Builder
  2. Create the new application named FlowTest
  3. Open the FlowTest

Create simple feed flow

  1. Click New File and select Flow in /public
  2. Type test.flow after /public/ and click Create
  3. TEST verify you get a "Do you want to enable the flow component?" prompt, and click "Add".
  4. TEST verify the path (including filename) is displayed in the right side of the editor toolbar.
  5. Click the "Dependencies" tab
  6. TEST verify the ivy.xml now contains zero.assemble.flow.
  7. Back to "File Editor" tab.Drag a feed activity from the palette and drop on to canvas.
  8. TEST verify the feed activity is created successfully.
  9. Drag and drop feed,aggregateFeeds,sortFeed,replyGET to create a flow as below.feedFlow.jpg
  10. TEST verify the flow diagram is created successfully.
  11. Move the mouse to "feed_0" and click the "feed_0" text.Change the name to "YahooNews".
    feedChangeName.jpg
  12. TEST verify the name is changed successfully.
  13. Click the Property icon on the right top of the figure.Set the 'url' attribute to http://rss.news.yahoo.com/rss/topstories. Click "OK".
    setFeedAttributeInProperty.jpg
  14. Change the "feed_1" to "YahooSports" and set the 'url' attribute to http://rss.news.yahoo.com/rss/sports as above step.Click "OK".setFeedAttributeInPropertySecond.jpg
  15. Open the "sortFeed" activity's properties dialog.Set 'sortBy' attribute to 'atom:title'.Click "OK" to close properties dialog.
    sortProperties.jpg
  16. Click the "Start" to start the application,point your browser to http://localhost:8080/test.flow.
  17. TEST verify a feed is shown and feed is ordered by title.
    feedresult.jpg
  18. Back to "File Editor" tab.Click on the "Source" tab at the bottom of the editor.
  19. TEST verify the flow XML is saved.
    activitySource.jpg
  20. Modify the "title" in aggregateFeeds activity to "My favorite News"
    activitySourceModified.jpg
  21. Save it and Click on the "Design" tab.
  22. Open the properties dialog of aggregateFeeds.
  23. TEST verify the "title" attribute is filled with the value "My favorite News".
    activityUpdate.jpg
  24. TEST Refresh the http://localhost:8080/test.flow, verify the feed title is changed to "My favorite News".
  25. TEST Undo a few actions; verify changes
  26. TEST Redo the same number of actions; verify changes and result should match the file before the undo test
  27. TEST "checkpoint" the file, add another activity, then "restore" the file; Verify the contents match the checkpointed contents
  28. TEST Rename the file (double click it in the "All Files" view), verify name is updated in toolbar correctly (in Design and Source views)
  29. TEST Delete the open file (hover over, then click the X icon in the "All Files" view), verify editor is closed when deleted

Create simple collaboration flow

  1. Click New File and select Zero Resource Model in /app/models
  2. Type TravelRequest.json after /app/models/ and click Create
  3. Create the ZRM as following
    TravelRequestModel.PNG
    Or simple copy below model to Model Editor's source.
    {
        "fields": {
            "name": {
                "label": "", 
                "required": false, 
                "type": "string", 
                "description": "", 
                "default_value": "", 
                "max_length": 50
            }, 
            "email": {
                "label": "", 
                "required": true, 
                "type": "string", 
                "description": "", 
                "default_value": "", 
                "max_length": 50
            }, 
            "manager": {
                "label": "", 
                "required": false, 
                "type": "string", 
                "description": "", 
                "default_value": "", 
                "max_length": 50
            }, 
            "purpose": {
                "label": "", 
                "required": false, 
                "type": "string", 
                "description": "", 
                "default_value": "", 
                "max_length": 50
            }, 
            "destination": {
                "label": "", 
                "required": false, 
                "type": "string", 
                "description": "", 
                "default_value": "", 
                "max_length": 50
            }, 
            "departure": {
                "label": "", 
                "required": false, 
                "type": "date", 
                "description": "", 
                "default_value": ""
            }, 
            "approve": {
                "label": "", 
                "required": false, 
                "type": "boolean", 
                "description": "", 
                "default_value": ""
            }
        }
    }
       
  4. Click New File and select Flow in /public
  5. Type TravelRequest.flow after /public/ and click Create
  6. Click the Collaboration in the right palette
  7. Drag and drop webUI,sendMail activities and connect the link to create the flow as below.
    collaborationFlowDraft.PNG
  8. Rename activities' name to travelRequest, travelApprove, sendApproval, sendRejection as below.
    collaborationFlowRenamed.PNG
  9. Double click travelRequest activity to pop up the property dialog.
  10. Click the Create UI beside the view input box.
  11. TEST verify the WebUI Editor pop up as below.
    WebUIEditorStart.PNG.
  12. Select TravelRequest in "Outgoing Data for travelRequest" section.
  13. Move mouse over approve row and click webUIDel.png to remove approve row.
  14. TEST verify the WebUI Editor now like below.
    collaborationFlowRequest.png
  15. Click OK to close the WebUI Editor.
  16. TEST verify the view attribute now is filled with /travelRequest.gt.
    collaborationFlowRequestView.png
  17. Click OK to close the property dialog.
  18. Double click travelApprove activity to pop up the property dialog.
  19. Click the Create UI beside the view input box.
  20. Select TravelRequest in two selections.
  21. Remove approve row in Incoming Data for travelApprove section.
  22. Only keep approve in Outgoing Data for travelApprove section.
  23. TEST verify the WebUI Editor now like below.
    collaborationFlowApprove.PNG
  24. Click the Edit in approve row and select the ElementType to radio.Then click save to apply the change.
    collaborationFlowApproveRadio.PNG
  25. Click OK to close the WebUI Editor.
  26. TEST verify the view attribute now is filled with /travelApprove.gt.
  27. Click Advanced checkbox to show the optional attributes.
  28. Fill the attribute assignTo as ${travelRequest.manager}
  29. Fill the attribute title as Please approve the travel request
  30. Select the input data from drop down box as ${travelRequest}.
    collaborationFlowApproveView.PNG
  31. Open sendApproval activity properties dialog and fill the attributes and inputs as below. subject --> Your travel request has been approved address --> ${travelRequest.email} body --> Your travel request has been approved .
    collaborationFlowSendAppoval.PNG
  32. Click OK to close the property dialog.
  33. Open sendRejection activity properties dialog and fill the attributes and inputs as below. subject --> Your travel request has been rejected address --> ${travelRequest.email} body --> Your travel request has been rejected .
    collaborationFlowSendRejection.PNG
  34. Click OK to close the property dialog.
  35. Click link between travelApprove and sendApproval.
    collaborationFlowApproveLink.PNG.
  36. Click the property icon and fill the condition with travelApprove.approve.
    collaborationFlowApproveLinkEdit.PNG.
  37. Click OK to close the property dialog.
  38. Click link between travelApprove and sendRejection.
  39. Click the property icon and fill the condition with !travelApprove.approve.
  40. Click Ok to close the property dialog.
  41. Open zero.config
  42. Add follow config to zero.config
     /config/connection/defaults/smtp/hostname = "smtp.hursley.ibm.com"
     
  43. Click the "Start" to start the application(restart if it's running), point your browser to http://localhost:8080/TravelRequest.flow.
  44. TEST verify the UI like below.
    collaborationFlowRequestUI.PNG.
  45. Fill the form.Make sure fill the email and manager with your email so that you can receive the notification mail.
    collaborationFlowRequestUIFill.PNG.
  46. Check your mail(Actually the mail address filled in manager field in above step).
  47. TEST verify you get the notification mail.
    collaborationFlowNotifApprove.PNG.
  48. Click the *Click here to open the web page * link to open the approve page.
  49. TEST verify the UI like below.
    collaborationFlowApproveUI.PNG.
  50. Click yes in approve and click Submit
  51. Check your mail(Actually the mail address filled in email field).
  52. TEST verify you get the travel request approved notification mail.
    collaborationFlowNotifDONE.PNG.

Add extension activity

  1. Open zero.config in the project
  2. Add follow config to zero.config.
          /config/activity/metadata/myActivity = {
                 "attributes" : [
                     {"name":"message"},
                     {"name":"url", "required":false}
                  ],
                 "inputs" : [        
                     {"name": "body", "occurrence": "0..1"}
               ]
          }
  3. Swith Tab from File Editor to Explorer
  4. Upload file myActivity-icon.png to /public/tooling/icon-activity/myActivity.png.
    (Note:Need create empty directory /public/tooling/icon-activity before upload. The file name should be "myActivity.png", you may need to rename the image to "myActivity.png" when you save the manual test image to your computer)
    uploadMyActivity-icon.jpg
  5. Upload file myActivity-figure.png to /public/tooling/figure-activity/myActivity.png.
    (Note:Need create empty directory /public/tooling/figure-activity before upload. The file name should be "myActivity.png", you may need to rename the image to "myActivity.png" when you save the manual test image to your computer)
     uploadMyActivityFigure.jpg
  6. Create a new file /public/tooling/categories/myactivities.json
  7. Input following JSON into it:
    {
       "name" : "My activities",
       "description" : "My activities",
       "item" : [
          {
             "name" : "myActivity",         
             "type": "myActivity"
          }
       ]
    }
  8. Create a new flow file /public/testextension.flow
  9. TEST verify a new category 'My activities' is shown in the palette
  10. TEST verify myActivity is shown in the palette and the icon is the one added in step 4.
    myActivityInCategory.jpg
  11. Drag the myActivity to the canvas.
  12. TEST verify a myActivity is created in the canvas and the figure is the one added in step 5.
    myActivityCreated.jpg
  13. TEST Hover the mouse on warning icon , a tip will be shown up.
    warningInActivity.jpg
  14. Double click the figure to pop up the property dialog
  15. TEST verify the attribute and input are shown as below.
    myActivityPropertyUnAdvanced.jpg
  16. Click the Advanced check box
  17. TEST verify the optional attribute ‘url’ is shown.
    myActivityPropertyAdvanced.jpg

  Attachment Action Size Date Who Comment
png TravelRequestModel.PNG props, move 23.1 K 10 Nov 2008 - 12:07 liwenb  
png WebUIEditorStart.PNG props, move 9.9 K 10 Nov 2008 - 12:08 liwenb  
jpg activitySource.jpg props, move 99.5 K 26 Oct 2008 - 10:20 liwenb  
jpg activitySourceModified.jpg props, move 69.3 K 26 Oct 2008 - 10:21 liwenb Changed flow source
jpg activityUpdate.jpg props, move 38.7 K 10 Sep 2008 - 03:09 liwenb activity after source changed
jpg addFlowDependency.jpg props, move 19.3 K 31 Jul 2008 - 15:55 liwenb Add flow dependency
jpg categoryAdded.jpg props, move 4.9 K 28 Oct 2008 - 06:05 liwenb Category added
jpg changeAttributeInProperty.jpg props, move 29.1 K 31 Jul 2008 - 16:00 liwenb property dialog
png collaborationFlowApprove.PNG props, move 16.2 K 10 Nov 2008 - 11:59 liwenb Approve View editing
png collaborationFlowApproveLink.PNG props, move 18.8 K 10 Nov 2008 - 12:00 liwenb Select link to edit
png collaborationFlowApproveLinkEdit.PNG props, move 6.9 K 10 Nov 2008 - 12:02 liwenb Edit link
png collaborationFlowApproveRadio.PNG props, move 19.1 K 10 Nov 2008 - 12:02 liwenb Edit boolean using radio
png collaborationFlowApproveUI.PNG props, move 9.3 K 10 Nov 2008 - 12:03 liwenb Approve UI
png collaborationFlowApproveView.PNG props, move 11.8 K 10 Nov 2008 - 12:03 liwenb  
png collaborationFlowDraft.PNG props, move 36.1 K 10 Nov 2008 - 12:04 liwenb  
png collaborationFlowNotifApprove.PNG props, move 10.5 K 10 Nov 2008 - 12:04 liwenb  
png collaborationFlowNotifDONE.PNG props, move 8.7 K 10 Nov 2008 - 12:04 liwenb  
png collaborationFlowRenamed.PNG props, move 18.9 K 10 Nov 2008 - 12:05 liwenb  
png collaborationFlowRequest.PNG props, move 15.3 K 10 Nov 2008 - 12:05 liwenb  
png collaborationFlowRequestUI.PNG props, move 6.3 K 10 Nov 2008 - 12:05 liwenb  
png collaborationFlowRequestUIFill.PNG props, move 7.8 K 10 Nov 2008 - 12:06 liwenb  
png collaborationFlowRequestView.PNG props, move 8.7 K 10 Nov 2008 - 12:06 liwenb  
png collaborationFlowSendAppoval.PNG props, move 14.1 K 10 Nov 2008 - 12:24 liwenb  
png collaborationFlowSendRejection.PNG props, move 13.8 K 10 Nov 2008 - 12:07 liwenb  
jpg feedChangeName.jpg props, move 6.6 K 10 Sep 2008 - 02:32 liwenb Change actiivty's name
jpg feedFlow.jpg props, move 20.3 K 10 Sep 2008 - 02:29 liwenb Feed flow
jpg feedresult.jpg props, move 106.1 K 10 Sep 2008 - 02:50 liwenb Flow result
jpg flowDependencies.jpg props, move 31.0 K 10 Sep 2008 - 01:51 liwenb Dependencies with zero.assemble.flow
jpg fullflow.jpg props, move 31.0 K 31 Jul 2008 - 15:59 liwenb flow with get and replyget
png myActivity-figure.png props, move 3.0 K 28 Oct 2008 - 05:59 liwenb The figure of myActivity
png myActivity-icon.png props, move 0.2 K 28 Oct 2008 - 05:52 liwenb Custom activity icon
jpg myActivityCreated.jpg props, move 5.7 K 28 Oct 2008 - 06:22 liwenb myActivity is created
jpg myActivityInCategory.jpg props, move 3.9 K 28 Oct 2008 - 06:20 liwenb myActivity in custom category
jpg myActivityPropertyAdvanced.jpg props, move 25.4 K 28 Oct 2008 - 06:31 liwenb property dialog with advanced checked
jpg myActivityPropertyUnAdvanced.jpg props, move 22.7 K 28 Oct 2008 - 06:29 liwenb Activity property without advaned
jpg setFeedAttributeInProperty.jpg props, move 18.2 K 10 Sep 2008 - 02:36 liwenb Set activity attribute
jpg setFeedAttributeInPropertySecond.jpg props, move 19.4 K 10 Sep 2008 - 02:38 liwenb  
jpg sortProperties.jpg props, move 27.6 K 10 Sep 2008 - 02:42 liwenb sortFeed properties
jpg uploadMyActivity-icon.jpg props, move 17.0 K 28 Oct 2008 - 05:55 liwenb Upload myactivity icon
jpg uploadMyActivityFigure.jpg props, move 17.6 K 28 Oct 2008 - 06:00 liwenb Upload myactivity figure
jpg warningInActivity.jpg props, move 8.9 K 28 Oct 2008 - 06:23 liwenb Warning message in myActivity
png webUIDel.png props, move 1.2 K 10 Nov 2008 - 12:07 liwenb  
r13 - 05 Dec 2008 - 06:24:26 - liwenb
Syndicate this site RSS ATOM
Copyright 2007 © IBM Corporation | Privacy | Terms of Use | About this site