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    /** Should the browser start on headless mode? Only for Firefox / Chrome. Default value is {@code false}. */
031    public static boolean TESTS_CONFIG_HEADLESS = Boolean.valueOf( System.getProperty( "it-jspwiki.config.headless", "false" ) );
032
033    /** Selenide tests reports' folder. Default value is {@code ./target/selenide}. */
034    public static String TESTS_CONFIG_REPORTS_FOLDER = System.getProperty( "it-jspwiki.config.headless", "./target/selenide" );
035
036    /** Should the browser start maximized?. Default value is {@code true}. */
037    public static boolean TESTS_CONFIG_START_MAXIMIZED = Boolean.valueOf( System.getProperty( "it-jspwiki.config.start-maximized", "true" ) );
038
039    /** Folder where the WebDriver will be downloaded. Default value is {@code ./target/wdm}. */
040    public static String TESTS_CONFIG_WDM_TARGET_PATH = System.getProperty( "it-jspwiki.config.wdm.target-path", "./target/wdm" );
041
042    /** Janne's username. Default value is {@code janne}. */
043    public static String LOGIN_JANNE_USERNAME = System.getProperty( "it-jspwiki.login.janne.username", "janne" );
044
045    /** Janne's password. Default value is {@code myP@5sw0rd}. */
046    public static String LOGIN_JANNE_PASSWORD = System.getProperty( "it-jspwiki.login.janne.password", "myP@5sw0rd" );
047
048}