 |
|
| Importing web pages into JBlitz - step 1 |
|
|
The Web Page Import Wizard allows you to import web page URLs from an
external web server log file. In fact, it doesn't need to be a log file, but
that would be the usual source of pages. Web page URLs imported by the wizard
automatically become part of the Web Page Catalog (discussed below) and are then
available for use in creating your test cases.
The wizard expects to read a space delimited text file such as a server log file. Each column of
data within the file is parsed and presented to you by the wizard so that you can choose the appropriate
column defining the web pages to import. Some processing and transformations on the data set can
be performed before the wizard completes and the web pages become integrated into the Web Page Catalog.
To begin importing URLs, select the File -> Web Page Import Wizard... menu
item from the main menu. This brings up the import wizard. The wizard will guide
you through the steps needed to import the URLs.
|
Below we go through the wizard steps and describe each in some more detail.
-
Introduction: An explanation of what the wizard is going to do.
Skip onto the next screen by clicking the 'Next' button.
-
Step 1: Firstly, specify the file that the web pages should be derived from.
Click the 'Choose...' button to the right of the screen and select the file
that contains your URLs. Normally this would be a web server log file, but
can be any text file that contains the information required in a space
delimited tabular format. Lines that begin with a hash mark (#) are
ignored.
Then, choose the data column that contains the web page URLs to
import.
Normally, for a web server log file, you have two choices - the column that
contains the request line and the column that contains the URL itself.
Choose the column suitable for you by clicking on one of the cells within
the column. The column will become highlighted.
Click the 'Next' button to continue.
-
Step 2: Configure the web pages to be imported. You are presented with a
list of candidate web pages to import. Normally, you will want to process
these a little further before proceeding. Processing options are listed as
follows:
- Exclude static content: Tick this check box to remomve 'static' content such as images,
videos, bitmaps, icons etc.
- Unique URLs by page: Tick this check box to remove duplicated web pages, or web pages that differ
only in the query string they possess.
- Replace portions of the data in bulk: Click the 'Replace' button to perform text conversions on
the entire data set.
- Trim extraneous information from the data: Attempts to remove extraneous information from the beginning
and end of each entry within the dataset. Normally suitable for converting raw URLs and 'request lines' into suitable
web page entries by removing initial request methods, protocols and port numbers, and trimming off trailing portions that
are not part of the web page itself.
- Edit individual entries: Double click on any given entry to edit it as appropriate.
- Remove one or more entries: Select an entry and hit the 'Delete' key or use the right mouse popup menu to remove one
or more entries before moving on.
Note: JBlitz expects imported entries to contain the web page, with its relative path, plus any query string it might have. The entries
should not contain any host, protocol or port details (the host and port are defined in the website combo box on the 'Main Setup' tab).
Click the 'Next' button to continue.
-
Step 3: Complete the import. You can choose whether the imported web
pages should replace those already defined in the web page catalog or just
become amalgamated with them.
Click the 'Finish' button to complete the import.
Once you have completed the wizard, the web pages from your log file will become included
within the Web Page Catalog. This means that they will be listed within the combo boxes
in the test case settings dialog for use within a test case.
|