TS 69 JavaFX Project

(Difference between revisions)
(Test suite: File)
Line 9: Line 9:
__TOC__
__TOC__
        
        
-
====Test suite: Project====
+
==Test suite: Project==
Purpose:  <br>
Purpose:  <br>
Setup:  <br>
Setup:  <br>
      
      
-
# {{testcase|Create Empty JavaFX Script Application}}  
+
=== {{testcase|Create Empty JavaFX Script Application}} === 
## Invoke 'Tools | New Project...' from the main menu bar.         
## Invoke 'Tools | New Project...' from the main menu bar.         
## Under Categories, select JavaFX.         
## Under Categories, select JavaFX.         
Line 23: Line 23:
#* {{result|EXPECTED RESULT: JavaFX Editor should be opened. }}             
#* {{result|EXPECTED RESULT: JavaFX Editor should be opened. }}             
-
# {{testcase|Create JavaFX Script Application From Sources}}  
+
=== {{testcase|Create JavaFX Script Application From Sources}} === 
## Invoke 'Tools | New Project...' from the main menu bar.           
## Invoke 'Tools | New Project...' from the main menu bar.           
## Under Categories, select JavaFX.         
## Under Categories, select JavaFX.         
Line 36: Line 36:
#* {{result|EXPECTED RESULT: . }}  
#* {{result|EXPECTED RESULT: . }}  
            
            
-
# {{testcase|Set as Main Project}}
+
=== {{testcase|Set as Main Project}} ===
      
      
-
# {{testcase|Rename Project}}
+
=== {{testcase|Rename Project}} ===
      
      
-
# {{testcase|Move Project}}
+
=== {{testcase|Move Project}} ===
      
      
-
# {{testcase|Delete Project}}
+
=== {{testcase|Delete Project}} ===
      
      
<br>
<br>
    
    
-
====Test suite: Build====
+
==Test suite: Build==
Purpose:  <br>
Purpose:  <br>
Setup:  <br>
Setup:  <br>
      
      
-
# {{testcase|Clean Project}}
+
=== {{testcase|Clean Project}} ===
      
      
-
# {{testcase|Build Project}}
+
=== {{testcase|Build Project}} ===
      
      
-
# {{testcase|Build and Clean Project}}
+
=== {{testcase|Build and Clean Project}} ===
      
      
-
# {{testcase|Run Project}}
+
=== {{testcase|Run Project}}   ===
      
      
<br>
<br>
    
    
-
====Test suite: File====
+
==Test suite: File==
-
# {{testcase|Create Empty JavaFX File}}
+
=== {{testcase|Create Empty JavaFX File}} ===
## Select ''javafxapp'' package under the project.  
## Select ''javafxapp'' package under the project.  
## Right-click and invoke ''New|Empty JavaFX File...''.  
## Right-click and invoke ''New|Empty JavaFX File...''.  
Line 69: Line 69:
#* {{result|EXPECTED RESULT: Empty ''MyFile'' JavaFX Script file should be created. }}  
#* {{result|EXPECTED RESULT: Empty ''MyFile'' JavaFX Script file should be created. }}  
#* {{result|EXPECTED RESULT: The file should contain ''javafxapp'' package. }}  
#* {{result|EXPECTED RESULT: The file should contain ''javafxapp'' package. }}  
-
# {{testcase|Create Package}}
+
=== {{testcase|Create Package}} ===
## Select ''Source Packages'' node under the project.  
## Select ''Source Packages'' node under the project.  
## Right-click and invoke ''New|Java Package...''.  
## Right-click and invoke ''New|Java Package...''.  
Line 75: Line 75:
## Press ''Finish''.  
## Press ''Finish''.  
#* {{result|EXPECTED RESULT: ''test'' package should be created. }}  
#* {{result|EXPECTED RESULT: ''test'' package should be created. }}  
-
# {{testcase|Create JavaFX Class}}
+
=== {{testcase|Create JavaFX Class}} ===
## Select ''test'' package under the project.  
## Select ''test'' package under the project.  
## Right-click and invoke ''New|JavaFX Class...''.  
## Right-click and invoke ''New|JavaFX Class...''.  
Line 88: Line 88:
  </pre>
  </pre>
              
              
-
# {{testcase|Create Nested Package}}
+
=== {{testcase|Create Nested Package}} ===
## Select ''test'' package under the project.  
## Select ''test'' package under the project.  
## Right-click and invoke ''New|Java Package...''.  
## Right-click and invoke ''New|Java Package...''.  
Line 94: Line 94:
## Press ''Finish''.  
## Press ''Finish''.  
#* {{result|EXPECTED RESULT: ''test.nested'' package should be created. }}  
#* {{result|EXPECTED RESULT: ''test.nested'' package should be created. }}  
-
# {{testcase|Create JavaFX Stage}}
+
=== {{testcase|Create JavaFX Stage}} ===
## Select ''test.nested'' package under the project.  
## Select ''test.nested'' package under the project.  
## Right-click and invoke ''New|JavaFX Stage...''.  
## Right-click and invoke ''New|JavaFX Stage...''.  
Line 128: Line 128:
} </pre>
} </pre>
              
              
-
# {{testcase|Create Java Class}}
+
=== {{testcase|Create Java Class}} ===
## Select ''test.nested'' package under the project.  
## Select ''test.nested'' package under the project.  
## Right-click and invoke ''New|Java Class...''.  
## Right-click and invoke ''New|Java Class...''.  
Line 141: Line 141:
  </pre>
  </pre>
              
              
-
# {{testcase|Rename JavaFX Class}}
+
=== {{testcase|Rename JavaFX Class}} ===
## Select ''test.MyClass'' JavaFX class under the project.  
## Select ''test.MyClass'' JavaFX class under the project.  
## Right-click and invoke ''Rename...''.  
## Right-click and invoke ''Rename...''.  
Line 147: Line 147:
## Press ''OK''.  
## Press ''OK''.  
#* {{result|EXPECTED RESULT: The class should be renamed to ''RenamedClass''. }}  
#* {{result|EXPECTED RESULT: The class should be renamed to ''RenamedClass''. }}  
-
# {{testcase|Delete JavaFX Class}}
+
=== {{testcase|Delete JavaFX Class}} ===
## Select ''test.RenamedClass'' JavaFX class under the project.  
## Select ''test.RenamedClass'' JavaFX class under the project.  
## Right-click and invoke ''Delete...''.  
## Right-click and invoke ''Delete...''.  
Line 156: Line 156:
      
      
-
# {{testcase|Copy File}}
+
=== {{testcase|Copy File}} ===
      
      
-
# {{testcase|Move File}}
+
=== {{testcase|Move File}}===
      
      
-
# {{testcase|Cut and Paste File}}
+
=== {{testcase|Cut and Paste File}}===
-
====Test suite: Properties====
 
-
Purpose:  <br>
 
-
Setup:  <br>
 
      
      
<br>
<br>

Revision as of 07:49, 6 August 2010

Project Tests Specification

Author: Alexandr Scherbatiy
Version: 1.2
Last update: 03 August 2010
Introduction:
Comments:


Contents


Test suite: Project

Purpose:
Setup:

Create Empty JavaFX Script Application

    1. Invoke 'Tools | New Project...' from the main menu bar.
    2. Under Categories, select JavaFX.
    3. Under Projects, select JavaFX Application.
    4. Click Next.
    5. In the Project Name field, type JavaFXSmokeApp.
    6. Click Finish.
    • EXPECTED RESULT: JavaFXSmokeApp should be created in the Projects window.
    • EXPECTED RESULT: JavaFX Editor should be opened.

Create JavaFX Script Application From Sources

    1. Invoke 'Tools | New Project...' from the main menu bar.
    2. Under Categories, select JavaFX.
    3. Under Projects, select JavaFX Application.
    4. Click Next.
    5. In the Project Name field, type JavaFXAppFromSources.
    6. Select From Sources radio button.
    7. Press Add Folder... button.
    8. Browse to the JavaFX source folder.
    9. Click Finish.
    • EXPECTED RESULT: JavaFXAppFromSources should be created in the Projects window.
    • EXPECTED RESULT: .

Set as Main Project

Rename Project

Move Project

Delete Project


Test suite: Build

Purpose:
Setup:

Clean Project

Build Project

Build and Clean Project

Run Project


Test suite: File

Create Empty JavaFX File

    1. Select javafxapp package under the project.
    2. Right-click and invoke New|Empty JavaFX File....
    3. Type MyFile for name.
    4. Press Finish.
    • EXPECTED RESULT: Empty MyFile JavaFX Script file should be created.
    • EXPECTED RESULT: The file should contain javafxapp package.

Create Package

    1. Select Source Packages node under the project.
    2. Right-click and invoke New|Java Package....
    3. Type test for name.
    4. Press Finish.
    • EXPECTED RESULT: test package should be created.

Create JavaFX Class

    1. Select test package under the project.
    2. Right-click and invoke New|JavaFX Class....
    3. Type MyClass for name.
    4. Press Finish.
    • EXPECTED RESULT: JavaFX Class MyClass should be created
   
package test;

public class MyClass {
}
 		 

Create Nested Package

    1. Select test package under the project.
    2. Right-click and invoke New|Java Package....
    3. Type nested for name.
    4. Press Finish.
    • EXPECTED RESULT: test.nested package should be created.

Create JavaFX Stage

    1. Select test.nested package under the project.
    2. Right-click and invoke New|JavaFX Stage....
    3. Type MyStage for name.
    4. Press Finish.
    • EXPECTED RESULT: MyStage JavaFX Script file should be created
   
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.text.Text;
import javafx.scene.text.Font;

/**
 * @author author
 */

Stage {
    title: "Application title"
    width: 250
    height: 80
    scene: Scene {
        content: [
            Text {
                font : Font {
                    size : 16
                }
                x: 10
                y: 30
                content: "Application content"
            }
        ]
    }
} 		 

Create Java Class

    1. Select test.nested package under the project.
    2. Right-click and invoke New|Java Class....
    3. Type MyClass for name.
    4. Press Finish.
    • EXPECTED RESULT: MyClass Java classshould be created
   
package test.nested;

public class MyClass {
}
 		 

Rename JavaFX Class

    1. Select test.MyClass JavaFX class under the project.
    2. Right-click and invoke Rename....
    3. Type RenamedClass for new name.
    4. Press OK.
    • EXPECTED RESULT: The class should be renamed to RenamedClass.

Delete JavaFX Class

    1. Select test.RenamedClass JavaFX class under the project.
    2. Right-click and invoke Delete....
    3. Press Yes on Confirm Object Deletion dialog.
    • EXPECTED RESULT: The class should be deleted from the project.



Copy File

Move File

Cut and Paste File


Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo