Difference between revisions of "JGuiGen Lead Script"

From lightwiki
Jump to: navigation, search
(The Lead Demo)
(Generating a screen for the Lead table)
Line 46: Line 46:
 
### Order
 
### Order
 
### Create Java
 
### Create Java
 +
#### i18n
 +
#### testcase generation
 +
##### pops up Lead gui
 +
##### saves a new lead
 +
##### close Lead gui
 +
##### relaunches Lead gui
 +
##### finds the row it add
 +
##### checks that the values selected are identical to those saved
 
# time ./build.sh
 
# time ./build.sh
 
# ./run.sh com.halepringle.src.Lead
 
# ./run.sh com.halepringle.src.Lead

Revision as of 03:41, 30 April 2006

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

Generating a screen for the Lead table

  1. sh ./runUtil.sh DatabaseManager
    1. type: "... Standalone"
    2. driver: JGuiGenDb
    3. Ok
    4. select * from jguigen_i18n where upper(CLASSNAME ) = 'LEAD'
    5. and make sure that no Lead.properties file is in conf
  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. ./run.sh JGuiGen
  6. Starting in the Data Dictionary Menu
    1. Mark Tables - place a check mark on the "Process Table" field for your new Lead Table
    2. Check Data Dictionary, Leave Flags, Run Now
    3. Edit Data Dict ... Select the Lead table
    4. Generate Application
      1. Model
      2. Order
      3. Create Java
        1. i18n
        2. 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
  7. time ./build.sh
  8. ./run.sh com.halepringle.src.Lead

The Lead Demo

  1. Compile and run the new gui
  2. time ./build.sh
    1. show out-of-the-box features of the gui
    2. View, Add, Edit, Delete ... right click duplicate
    3. resize a column
    4. drag a colummn
    5. resize the Lead window
    6. Drag the Lead window
    7. close the window
    8. relaunch the window
    9. mention your suprise at the saved preferences
  3. wash, rinse, repeat ?, ?, ?, and ? showing features
    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
  4. launch eclipse