/*
 * Copyright 2002-2007 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.suren.autotest.web.framework.settings;

import com.beust.jcommander.Parameter;

/**
 * 启动参数
 * @author <a href="http://surenpi.com">suren</a>
 * @since 2.1.0
 */
public class PhoenixParam
{
    @Parameter(names = "-browser", description = "指定要运行的浏览器类型，包括："
            + DriverConstants.DRIVER_CHROME + ","
            + DriverConstants.DRIVER_FIREFOX + ","
            + DriverConstants.DRIVER_IE + ","
            + DriverConstants.DRIVER_HTML_UNIT + ","
            + DriverConstants.DRIVER_OPERA + ","
            + DriverConstants.DRIVER_PHANTOM_JS,
            validateWith = {BrowserParamValidator.class})
    public String browser;
    
    @Parameter(names = "-browser-max", description = "最大化浏览器")
    public boolean browserMax;
    
    @Parameter(names = "-browser-version", description = "浏览器版本")
    public String browserVersion;
    
    @Parameter(names = "-remote", description = "远程服务器地址，例如：http://192.168.1.1:1234/wb/hub")
    public String remote;

    @Parameter(names = "-report-store", description = "测试报告输出目录，只适用于有文件输出的报告类型",
            validateWith = {FolderValidator.class})
    public String reportStore;

    @Parameter(names = "-printUsage", description = "打印帮助信息并退出程序")
    public boolean printUsage;
}

@@ -1639,16 +1639,719 @@
 remote;%0D
+%0A    %0D%0A    @Parameter(names = %7B%22-remote-ws%22, %22-remote-workspace%22%7D,%0D%0A            description = %22%E8%BF%9C%E7%A8%8B%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%B7%A5%E4%BD%9C%E7%9B%AE%E5%BD%95%22)%0D%0A    public String remoteWorkspace;%0D%0A    %0D%0A    @Parameter(names = %7B%22-remote-p%22, %22-remote-protocol%22%7D,%0D%0A            description = %22%E8%BF%9C%E7%A8%8B%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%8D%8F%E8%AE%AE%EF%BC%8C%E6%94%AF%E6%8C%81%E7%9A%84%E5%8D%8F%E8%AE%AE%EF%BC%9Assh%22)%0D%0A    public String remoteProtocol;%0D%0A%0D%0A    @Parameter(names = %22-ssh-host%22, description = %22ssh%E5%9C%B0%E5%9D%80%22)%0D%0A    public String sshHost;%0D%0A%0D%0A    @Parameter(names = %22-ssh-port%22, description = %22ssh%E7%AB%AF%E5%8F%A3%22)%0D%0A    public int sshPort = 22;%0D%0A    %0D%0A    @Parameter(names = %22-ssh-user%22, description = %22ssh%E7%94%A8%E6%88%B7%E5%90%8D%22)%0D%0A    public String sshUser;%0D%0A    %0D%0A    @Parameter(names = %22-ssh-password%22, password = true, echoInput = true, description = %22ssh%E5%AF%86%E7%A0%81%22)%0D%0A    public String sshPasswd;%0D
 %0A%0D%0A    @
@@ -2537,16 +2537,17 @@
 names = 
+%7B
 %22-printU
@@ -2552,16 +2552,26 @@
 tUsage%22,
+ %22-help%22%7D,
  descrip

add param