001/*
002    Licensed to the Apache Software Foundation (ASF) under one
003    or more contributor license agreements.  See the NOTICE file
004    distributed with this work for additional information
005    regarding copyright ownership.  The ASF licenses this file
006    to you under the Apache License, Version 2.0 (the
007    "License"); you may not use this file except in compliance
008    with the License.  You may obtain a copy of the License at
009
010       http://www.apache.org/licenses/LICENSE-2.0
011
012    Unless required by applicable law or agreed to in writing,
013    software distributed under the License is distributed on an
014    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015    KIND, either express or implied.  See the License for the
016    specific language governing permissions and limitations
017    under the License.    
018 */
019package org.apache.wiki.its.environment;
020
021
022/**
023 * Tests' environment values that can be overwritten through System properties.
024 */
025public class Env {
026    
027    /** Base url on which the functional tests are run. Default value is {@code https://jspwiki-wiki.apache.org}. */
028    public static String TESTS_BASE_URL = System.getProperty( "it-jspwiki.base.url", "https://jspwiki-wiki.apache.org" );
029
030    /** Selenide tests download's folder. Default value is {@code ./target/downloads}. */
031    public static String TESTS_CONFIG_DOWNLOADS_FOLDER = System.getProperty( "it-jspwiki.config.download-folder", "./target/downloads" );
032    
033    /** Should the browser start on headless mode? Only for Firefox / Chrome. Default value is {@code false}. */
034    public static boolean TESTS_CONFIG_HEADLESS = Boolean.parseBoolean( System.getProperty( "it-jspwiki.config.headless", "false" ) );
035
036    /** Selenide tests reports' folder. Default value is {@code ./target/selenide}. */
037    public static String TESTS_CONFIG_REPORTS_FOLDER = System.getProperty( "it-jspwiki.config.reports", "./target/selenide" );
038
039    /** Amount of time, in milliseconds, to wait for the search index tasks to complete. Default value is {@code 1200}. */
040    public static long TESTS_CONFIG_SEARCH_INDEX_WAIT = Long.parseLong( System.getProperty( "it-jspwiki.config.search-index-wait", "1200" ) );
041
042    /** Should the browser start maximized?. Default value is {@code true}. */
043    public static boolean TESTS_CONFIG_START_MAXIMIZED = Boolean.parseBoolean( System.getProperty( "it-jspwiki.config.start-maximized", "true" ) );
044
045    /** Folder where the WebDriver will be downloaded. Default value is {@code ./target/wdm}. */
046    public static String TESTS_CONFIG_WDM_TARGET_PATH = System.getProperty( "it-jspwiki.config.wdm.target-path", "./target/wdm" );
047
048    /** Janne's username. Default value is {@code janne}. */
049    public static String LOGIN_JANNE_USERNAME = System.getProperty( "it-jspwiki.login.janne.username", "janne" );
050
051    /** Janne's password. Default value is {@code myP@5sw0rd}. */
052    public static String LOGIN_JANNE_PASSWORD = System.getProperty( "it-jspwiki.login.janne.password", "myP@5sw0rd" );
053
054}