|
|
SQA4.Net.Tester (SNT) dramatically speeds up the testing process.
|
You can create test scripts that check all aspects of your application, and then run these tests on each new build. With SQA4.Net.Tester you can save time and resources.
| Benefits of testing with SQA4.Net.Tester |
| Fast | SNT runs tests significantly faster than human users. |
| Reliable | Tests perform precisely the same operations each time they are run, thereby eliminating human error. |
| Repeatable | You can test how the software reacts under repeated execution of the same operations. |
| Comprehensive | You can build a suite of tests that covers every feature in your application. |
| Reusable | You can reuse tests on different version of an application, even if the user-interface changes. |
Before you begin creating tests, you should familiarize yourself with SQA4.Net.Tester.
Open SQA4.Net.Tester
Choose Programs >SQA4.Net > Tester on the Start menu.
Explore SQA4.Net.Tester
- Open SQA4.Net.Tester.
If SQA4.Net.Tester is not already open, choose Programs > SQA4.Net > Tester on the Start menu
- Create a new test suite.
If the Start Page is open, click the Create New Test Suite link. Otherwise, choose File > New Test Suite. The test suite save dialog will be shown. Specify a path and a file name to save the test suite. The Test Suite Explorer opens in SQA4.Net.Tester.

- Specify the Application Under Test (AUT)
Double click or press enter on Application Under Tester from the Test Suite Explorer, specify the application to test, command line arguments, application’s working directory and the time to wait for the application to launch.

- Open/New test script.
In the Test Suite Explorer, select an existing test script under Test Scripts or right click on Test Scripts and select New to create a new test script.

- Record events from the AUT.
Click on the Record button from the bottom test script toolbar or select the TestScript > Record menu option. Wait for the recorder to start, then test the AUT as you would do normally. After the test is over, close the AUT or press the Stop button from the test script toolbar. While the test is being performed SNT will generate test scripts equivalent to the action that is being performed.
The Action Editor can be used to modify the actions in the Script editor.

- Execute the test script.
Click on the Execute button from the test script toolbar or select the TestScript > Execute menu option. SQA4.Net.Tester executes the test script on the AUT and displays the test report. The test result also gets updated in the Reports list on the TestSuite Explorer window.
- Analyze the Test Report.
Once a test run is completed, you can immediately review the test report. The report displays the status of each action that is performed.

- Export the test report to DOC/XLS/HTM format or Print the result or Email the Report.
Right click on the report window and select Save As or Print or Send via Mail option.
- GUI Map Editor.
In the Test Suite Explorer, select GUI Map under GUI Maps to open the GUI Map Editor. The GUI Map Editor lists the controls recorded earlier. The user can add other control to the GUI map by placing the mouse over the required control in the AUT and then pressing the CTRL key.

Supported Actions.
- TestScript
- Delay: Suspends the execution of the current test script for a specified interval.
- Value: Specifies the time, in milliseconds.
Example: 500.
- SaveScreenshot: Saves a screenshot of the current desktop’s in JPG/PNG/BMP format.
- Value: Specifies the filename.
Example: screenshot.jpg / <fullpath>
- Loop: Repeats the actions a specified number of times.
- Value: Specifies the Loop count.
Example: 2
- RunScript: Executes actions from the specified test script.
- Value: Specifies the test script name.
Example: TestScript2
- Pause: Pause the test script execution and wait for user interaction.
- Window / Dialog
- SetFocus: Activate the window.
- Restore: Changes the window’s visual state to normal (restored).
- Maximize: Changes the window’s visual state to maximized.
- Minimize: Changes the window’s visual state to minimized.
- Move: Aligns the upper-left corner of the application’s window to the specified coordinates.
- Value: Specify left and top coordinates (Left, Top).
Example: 10, 70.
- Resize: Resizes the window.
- Value: Specify the width and height (Width, Height).
Example: 500,600.
- Close: Closes the window.
- Button
- Invoke: Invoke the button.
- Check Box
- Toggle: Sets the toggle state of the checkbox.
- Value: Specify the toggle state (On/Off)
Example: On
- Combo Box
- Expand: Displays the contents of the combo box.
- Collapse: Hides the contents of the combo box.
- SetValue: Sets the value in the edit area of the combo box.
- Value: Specify the value.
Example: Male
- SelectItem: Selects the specified item from the combo box’s list.
- Value: Specify the item name.
Example: Female
- List Box
- SelectItem: Selects the specified item from the list.
- Value: Specify the item’s name
Example: Arial
- AddItemToSelection: Adds the specified item to the selection (multiple selections).
- Value: Specify the item’s name
- RemoveItemFromSelection: Removes the specified item from the selection (multiple selections).
- Value: Specify the item’s name
- InvokeItem: Invoke the specified item from the list.
- Value: Specify the item’s name
- CheckItem: Sets the toggle state of the specified item to on, if the item has a checkbox.
- Value: Specify the item’s name
- UnCheckItem: Sets the toggle state of the specified item to off, if the item has a checkbox.
- Value: Specify the item’s name
- ScrollVertical: Sets the vertical scroll position as a percentage of the total content area within the list box.
- Value: Specify the percentage.
Example: 100
- ScrollHorizontal: Sets the horizontal scroll position as a percentage of the total content area within the list box.
- Value: Specify the percentage.
Example: 100
- Edit Box / Text Box
- SetValue: Sets the value of the edit box.
- Value: Specify the text.
Example: abcd
- SelectText: Highlights specified text in the edit box.
- Value: Specify the text to select.
Example: bc
- Spinner / Numeric Up Down Control
- SetRangeValue: Sets the value associated with the Spinner.
- Value: Specify the numeric value to set.
Example: 50
- Menu Bar
- InvokeMenu: Invokes the menu item from the menu bar.
- Value: Specify the menu.
Example: View;Toolbar;Standard (Invokes the View > Toolbar > Standard menu item.)
- Radio Button
- Select: Deselects any other selected radio button and then selects this radio button.
- Document / Text Area
- SetText: Sets the value of the edit box.
- Value: Specify the text.
Example: abcd
- SelectText: Highlights specified text in the edit box.
- Value: Specify the text to select.
Example: bc
- ScrollVertical: Sets the vertical scroll position as a percentage of the total content area within the list box.
- Value: Specify the percentage.
Example: 100
- ScrollHorizontal: Sets the horizontal scroll position as a percentage of the total content area within the list box.
- Value: Specify the percentage.
Example: 100
- Tab Control
- SelectTab: Selects the specified tab in the tab control.
- Value: Specify the tab’s name.
Example: Security
- Tree Control
- ExpandTree: Displays all child nodes of the specified tree node.
- Value: Specify the node name.
Example: HTTP 1.1 settings
- CollapseTree: Hides all child nodes of the specified tree node.
- Value: Specify the node name.
Example: HTTP 1.1 settings
- SelectItem: Selects the specified node from visible nodes in the tree control.
- Value: Specify the node name.
Example: HTTP 1.1 settings
- AddItemToSelection: Adds the specified node to the selection (multiple selections).
- Value: Specify the node name.
- RemoveItemFromSelection: Removes the specified node from the selection (multiple selections).
- Value: Specify the node name.
- CheckItem: Sets the toggle state of the specified node to on, if the node has a checkbox.
- Value: Specify the node’s name.
- UnCheckItem: Sets the toggle state of the specified node to off. If the node has a checkbox.
- Value: Specify the node’s name.
- ScrollVertical: Sets the vertical scroll position as a percentage of the total content area within the tree control.
- Value: Specify the percentage.
Example: 100
- ScrollHorizontal: Sets the horizontal scroll position as a percentage of the total content area within the tree control.
- Value: Specify the percentage.
Example: 100
- Slider
- SetRangeValue: Sets the value associated with the Slider.
- Value: Specify the numeric value to set.
Example: 50
- Checking
- CheckEnabled: Checks whether the object is enabled or not.
- CheckBoundingRectangle: Checks whether the object’s bounding rectangle is equal to the specified value.
- Value: Specify the bounding rectangle (Left, Top, Width, Height)
Example: 10,10,50,30
- CheckHeight: Checks whether the object’s height is equal to the specified value.
- Value: Specify the height.
Example: 30
- CheckWidth: Checks whether the object’s width is equal to the specified value.
- Value: Specify the width.
Example: 50
- CheckTop: Checks whether the y-axis position of the top of the object is equal to the specified value.
- Value: Specify the y-axis
Example:10
- CheckLeft: Checks whether the x-axis value of the left side of the object is equal to the specified value.
- Value: Specify the x-axis
Example: 10
- CheckName: Checks whether the object’s name is equal to the specified value.
- Value: Specify the name to compare.
Example: OK
- CheckWindowState: Checks whether the window’s state is equal to the specified state.
- Value: Specify the window state (Normal / Maximized / Minimized).
Example: Maximized.
- CheckOffScreen: Checks whether the object is visible on the screen.
- CheckKeyboardFocus: Checks whether the object has keyboard focus.
- CheckHelpText: Checks whether the help text associated with object is equal to the specified value.
- Value: Specify the help text.
- CheckAcceleratorKey: Checks whether the accelerator key combinations for the object are equal to the specified value.
- Value: Specify the key combination.
- CheckValue: Checks whether the value of the object is equal to the specified value.
- Value: Specify the value.
Example: 5 / <username>.
- CheckSubItem: Checks whether the specified subitem exists in the object.
- Value: Specify the item’s name.
|