Use the Windows command line deletion results

Use the Windows command line to delete the results
using the Windows command line may indicate that the test results removal tool to remove the test results according to specified criteria. For example, you can always delete older than a specific date or test results exceed the minimum file size.
Test results from the command line Removal Tool:
Open the Windows command prompt and type <QuickTest installation path> \ bin \ TestResultsDeletionTool.exe, type a space and then type the command-line options you want to use. For more information, see the command line options.
Note: If you use the command-line options -Silent removal tool to run test results, all test results that meet the specified criteria will be deleted. Otherwise, the "Delete Test Results" window opens.
Command Line Options
command-line option to specify the conditions for the test results to be deleted. The following is a description of each command-line options.
NOTE: If you add command line options that contain spaces, you must specify this option in quotation marks, for example:
TestResultsDeletionTool.exe -Test "F: \ Tests \ the Keep \ Web Objects"
-Domain Quality_Center_domain_name
you want to connect to the Quality Center domain name. This option should -Server, -Project,
in combination -User and -Password options.
-FromDate results_creation_date
test results created after deleting the specified date. The results are not deleted before this date or created. The date format is MM / DD / YYYY.
The following example deletes all results created after November 1, 2002.
-Silent -Test TestResultsDeletionTool.exe "C: \ Tests \ test1" -FromDate "11/1/2002"
-Log log_file_path
create a log file in which the specified folder or the results of each test file test contains an entry . Log files indicate which results have been removed, and there is no reason to delete other results. For example, if the result is less than the specified minimum file size, it will not remove them.
You can specify the path and file name, or use the default path and name. If you do not specify a file name, the default log file named TestResultsDeletionTool.log, located on the test results the tool to delete files in the same folder.
The following example creates a C: \ temp \ Log.txt log file.
: "\ Tests \ test1 C" : TestResultsDeletionTool.exe -Silent -Log "C \ temp \ Log.txt" -Test
creates a log file named TestResultsDeletionTool.log following example deletes a folder tool is located in the test results file.
-Silent -Log -Test TestResultsDeletionTool.exe "C: \ Tests \ test1"
-MinSize minimum_file_size
delete greater than or equal to the specified minimum file size of the test results. Specifies the size in bytes.
Note: -MinSize option applies only to test results file system. The check box is not supported when using the test in Quality Center.
The following example deletes all results equal to greater than 10000 bytes. Do not delete the result is less than 10000 bytes.
-Silent -Test TestResultsDeletionTool.exe "C: \ Tests \ test1" -MinSize "10000"
-Name result_file_name
specify the name of the file you want to delete the results. The results will only delete the specified name.
Using regular expressions to specify the conditions for the result files to be deleted. Regular expression and regular expression syntax details, see Understanding and using regular expressions.
The following example deletes the results of Res1 named.
TestResultsDeletionTool.exe -Silent -Test "C: \ tests \ test1" -Name "Res1"
The following example deletes name starts with Res and add all the results of another character. (For example, delete Res1 and ResD, but does not delete ResDD.)
TestResultsDeletionTool.exe -Silent -Test "C: \ Tests \ test1" -Name "Res."
-Password Quality_Center_password
specify the password Quality Center user name. Use this option should be combined with -Domain, -Server, -Project and -User options.
The following example uses the [url] HTTP: // QCServer / qcbin [/ url ] on the server project called Quality Center_Demo, and PassAdmin Admin user name and password to connect to the Default Quality Center domain.
-Domain TestResultsDeletionTool.exe "the Default" -Server "[url] HTTP: // QCServer / qcbin [/ url ]" -Project "at Quality Center_Demo" -User "Admin" -Password "PassAdmin"
-Project Quality_Center_project_name
you want to connect to the name Quality Center project. This option should -Domain,
used in conjunction -Server, -User and -Password options.
-Recursive
all tests from the specified folder and its subfolders to delete the test results. (Path rather than a specific test) files when using -Recursive option, -Test option should contain the test results you want to delete the folder where the path.
The following example deletes F: \ Tests folder all the results and all of its sub-folders.
TestResultsDeletionTool.exe -Test "F: \ Tests"
-Recursive Note: -Recursive option is only available in the file system folder. The check box is not supported when using the test in Quality Center.
-Server Quality_Center_server_path
specify the full path to connect to Quality Center server. This option should
be used in conjunction -Domain, -Project, -User and -Password options.
-Silent
The test results indicate removal tool runs in the background, without displaying the user interface.
The following example indicates that the test results removal tool runs in the background and delete the C: \ result of all tests \ test1 in.
-Silent -Test TestResultsDeletionTool.exe "C: \ Tests \ test1"
-Test test_or_folder_path
set up a test result delete tool to delete the test or the test results from the test path. You can specify the test name and path, or a full file system path Quality Center path.
This option must be used in conjunction with -Silent options.
Note: You must use -Domain, -Server, -Project, -User and -Password option to connect to Quality Center.
The following example deletes F: \ Tests \ Keep \ All results webobjects test.
TestResultsDeletionTool.exe -Test "F: \ Tests \ Keep \ webobjects"
The following example deletes Quality Center Tests \ All results webobjects test:
TestResultsDeletionTool.exe -Domain "the Default" -Server " HTTP: // QCServer / qcbin " -Project "Quality Center_Demo592" -User "Admin" -Password "PassAdmin" -Test "
Note: -Test option can be used to delete all test results to a specified folder and its subfolders in conjunction with -Recursive options.
-UntilDate results_creation_date
test results before deleting the specified date created. The results are not deleted after this date or created. The date format is MM / DD / YYYY.
This option must be used in conjunction with -Silent options.
The following example deletes all results created before November 1, 2002.
-Silent -Test TestResultsDeletionTool.exe "C: \ Tests \ test1" -UntilDate "11/1/2002"
-User Quality_Center_user_name
specified user name to connect to Quality Center project. This option should -Domain,
used in conjunction -Server, -Project and -Password options.
This option must be used in conjunction with -Silent options.

Guess you like

Origin blog.51cto.com/14622097/2452836