JGuiGen Lead Script

From lightwiki
Revision as of 03:22, 11 May 2006 by 10.1.1.1 (Talk) (Running the Lead GUI)

Jump to: navigation, search

Back to JGuiGen Demo

The demo pre-script

  1. ./rec.sh
    1. rm -rf ~vds/.java/
    2. cd ~vds/downloads
    3. rm -rf jguigen
  2. enter password
  3. cd ~vds/downloads
  4. If you have not checked out the code then:
    1. svn checkout https://svn.sourceforge.net/svnroot/jguigen/JGuiGen/trunk/ jguigen
    2. cd jguigen
    3. unzip JGuiGenMisc.zip
    4. time ./build.sh
  5. hide the panel
  6. xview JGuiGen_Screenshot.jpg & - Elegant CRUD
  7. maximize it
  8. rec -c 1 -d /dev/dsp -t wav -r 44100 - | lame -h - junk.mp3
  9. F8 start recording swf

Create the Lead table

  1. sh ./runUtil.sh DatabaseManager
    1. type: "... Standalone"
    2. driver: JGuiGenDb
    3. Ok
  2. cut and paste new table "Lead"
  3. cut and paste the index
  4. discuss the table columns
    1. lead_ID integer identity
    2. lead_DATE timestamp
    3. lead_PHONE char(20)
    4. isremoved smallint - the deleted flag
    5. lastchangedby char(20) - for sanity and multi user functionality
    6. lastchangeddate timestamp default null - for validation and multi user functionality
  5. File -> Exit

Mark, Check, Describe, and Generate

  1. ./run.sh JGuiGen
  2. Starting in the Data Dictionary Menu
    1. Mark Tables
      1. choose Lead table
      2. check "Mark table to be processed"
      3. information about our leads
      4. Save
      5. Exit
    2. Check Data Dictionary
      1. Leave Flags
      2. Run Now
      3. Browse
      4. search for "Table: Lead"
    3. Edit Class Desc
      1. Select the Lead table
      2. change number of rows to 6 or 10
      3. mention coffee cup to my.gif
      4. Save
      5. Exit
    4. Edit Column Desc
      1. change laf to metal
      2. show primary key
      3. show defaults for lead_DATE
      4. select lead_PHONE
      5. component -> Telephone
      6. required field
      7. the phone number of our lead
      8. Save
      9. Exit
    5. Generate Application
      1. Model
      2. Order
      3. Create Java
        1. i18n - y for yes in english can become an S in Spanish for Si Senor
        2. All code generated by JGuiGen can run from within a jar, or as part of a Java Web Start application
        3. testcase generation
          1. pops up Lead gui
          2. saves a new lead
          3. close Lead gui
          4. relaunches Lead gui
          5. finds the row it add
          6. checks that the values selected are identical to those saved
  3. time ./build.sh

Running the Lead GUI

  1. ./run.sh com.halepringle.src.Lead
  2. Compile and run the new gui
  3. time ./build.sh
  4. ./run.sh com.halepringle.src.Lead &
  5. Read errors and messaged about add mode
  6. introduce the id, date, and phone
  7. show the phone tool tip
  8. note the red-dashed line around the required field
  9. Add a lead
  10. right click duplicate
  11. right click duplicate
  12. right click duplicate
  13. right click duplicate
  14. delete number 4
  15. add a different lead
  16. sort a column
  17. right click freq_cnt
  18. resize a column
  19. drag a colummn
  20. resize the Lead window
  21. Drag the Lead window
  22. close the window
  23. relaunch the window
  24. mention your suprise at the saved preferences
  25. wash, rinse, repeat ?, ?, ?, and ? showing features

Adding a Column to the Lead table and GUI

  1. Quickly adding a column, such as: ssn, phone, address
  2. Internationalization
  3. Hot keys
  4. Change validation error message and Test
  5. blast the coffee cup
  6. run test scripts against the gui
  7. show test script output
  8. launch eclipse