/* * ### * Archetype - phresco-javawebservice-archetype * * Copyright (C) 1999 - 2012 Photon Infotech Inc. * * 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 com.photon.phresco.selenium.util; public class Constants { /** * Execute tests on internet explorer */ public static final String BROWSER_IE = "*iexplore"; /** * Execute tests on firefox browser */ public static final String BROWSER_FIREFOX = "*firefox"; /** * Execute tests on googlechrome browser */ public static final String BROWSER_CHROME = "*googlechrome"; /** * Execute tests on safari browser */ public static final String BROWSER_SAFARI = "*safari"; public static String DEFAULT_TIMEOUT = "180000"; public static String ONE_MINUTE_TIMEOUT = "60000"; public static String THIRTY_SECOND_TIMEOUT = "30000"; public static void setDefaultTimeout(String timeout) { int parseInt = Integer.parseInt(timeout); if (parseInt > 0) { DEFAULT_TIMEOUT = timeout; } } }