// Path: test-automation-framework/org.wso2.carbon.automation.engine/src/main/java/org/wso2/carbon/automation/engine/FrameworkConstants.java
// public class FrameworkConstants {
//     public static final String SYSTEM_PROPERTY_SETTINGS_LOCATION = "automation.settings.location";
//     public static final String SYSTEM_PROPERTY_BASEDIR_LOCATION = "basedir";
//     public static final String SYSTEM_PROPERTY_OS_NAME = "os.name";
//     public static final String SYSTEM_PROPERTY_CARBON_ZIP_LOCATION = "carbon.zip";
//     public static final String SYSTEM_PROPERTY_SEC_VERIFIER_DIRECTORY = "sec.verifier.dir";
//     public static final int DEFAULT_CARBON_PORT_OFFSET = 0;
//     public static final String SERVICE_FILE_SEC_VERIFIER = "SecVerifier.aar";
//     public static final String LIST_SUPPORTED_DATABASES = "mysql,oracle,derby,h2";
//     public static final String SEVER_STARTUP_SCRIPT_NAME = "wso2server";
//     public static final String SERVER_STARTUP_PORT_OFFSET_COMMAND = "-DportOffset";
//     public static final String SERVER_DEFAULT_HTTPS_PORT = "9443";
//     public static final String SERVER_DEFAULT_HTTP_PORT = "9763";
//     public static final String SUPER_TENANT_DOMAIN_NAME = "carbon.super";
//     public static final String ADMIN_ROLE = "admin";
//     public static final String DEFAULT_KEY_STORE = "wso2";
//     public static final String TENANT_USAGE_PLAN_DEMO = "demo";
//     public static final String AUTOMATION_SCHEMA_NAME = "automationXMLSchema.xsd";
//     public static final String LISTENER_INIT_METHOD = "initiate";
//     public static final String LISTENER_EXECUTE_METHOD = "execution";
//     public static final String DEFAULT_BACKEND_URL = "https://localhost:9443/services/";
//     public static final String AUTHENTICATE_ADMIN_SERVICE_NAME = "AuthenticationAdmin";
//     public static final String CONFIGURATION_FILE_NAME = "automation.xml";
//     public static final String MAPPING_FILE_NAME = "automation_mapping.xsd";
//     public static final String DEFAULT_PRODUCT_GROUP = "default.product.group";
//     public static final String EXECUTION_MODE = "framework.execution.mode";
//     public static final String ENVIRONMENT_STANDALONE = "standalone";
//     public static final String ENVIRONMENT_PLATFORM = "platform";
//     public static final String SYSTEM_ARTIFACT_RESOURCE_LOCATION = "framework.resource.location";
//     public static final String SUPER_TENANT_KEY = "superTenant";
//     public static final String SUPER_TENANT_ADMIN = "superAdmin";
//     public static final String CARBON_HOME = "carbon.home";
//     public static final String JACOCO_AGENT_JAR_NAME = "jacocoagent.jar";
//     public static final String CLASS_FILE_PATTERN = "**/*.class";
// 
// }


import org.wso2.carbon.automation.engine.FrameworkConstants;
import java.util.ArrayList;
import java.util.List;
    }

    public String getKey() {
        return key;
    }

    public String getUserName() {
        return userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUserNameWithoutDomain() {
        if (userName.contains("@")) {
            return userName.substring(0, userName.lastIndexOf("@"));
        } else {
            return userName;
        }
    }

    public String getUserDomain() {
        if(userName.contains("@")) {
            return userName.substring(userName.lastIndexOf("@") + 1);
        } else {
// Path: test-automation-framework/org.wso2.carbon.automation.engine/src/main/java/org/wso2/carbon/automation/engine/FrameworkConstants.java
// public class FrameworkConstants {
//     public static final String SYSTEM_PROPERTY_SETTINGS_LOCATION = "automation.settings.location";
//     public static final String SYSTEM_PROPERTY_BASEDIR_LOCATION = "basedir";
//     public static final String SYSTEM_PROPERTY_OS_NAME = "os.name";
//     public static final String SYSTEM_PROPERTY_CARBON_ZIP_LOCATION = "carbon.zip";
//     public static final String SYSTEM_PROPERTY_SEC_VERIFIER_DIRECTORY = "sec.verifier.dir";
//     public static final int DEFAULT_CARBON_PORT_OFFSET = 0;
//     public static final String SERVICE_FILE_SEC_VERIFIER = "SecVerifier.aar";
//     public static final String LIST_SUPPORTED_DATABASES = "mysql,oracle,derby,h2";
//     public static final String SEVER_STARTUP_SCRIPT_NAME = "wso2server";
//     public static final String SERVER_STARTUP_PORT_OFFSET_COMMAND = "-DportOffset";
//     public static final String SERVER_DEFAULT_HTTPS_PORT = "9443";
//     public static final String SERVER_DEFAULT_HTTP_PORT = "9763";
//     public static final String SUPER_TENANT_DOMAIN_NAME = "carbon.super";
//     public static final String ADMIN_ROLE = "admin";
//     public static final String DEFAULT_KEY_STORE = "wso2";
//     public static final String TENANT_USAGE_PLAN_DEMO = "demo";
//     public static final String AUTOMATION_SCHEMA_NAME = "automationXMLSchema.xsd";
//     public static final String LISTENER_INIT_METHOD = "initiate";
//     public static final String LISTENER_EXECUTE_METHOD = "execution";
//     public static final String DEFAULT_BACKEND_URL = "https://localhost:9443/services/";
//     public static final String AUTHENTICATE_ADMIN_SERVICE_NAME = "AuthenticationAdmin";
//     public static final String CONFIGURATION_FILE_NAME = "automation.xml";
//     public static final String MAPPING_FILE_NAME = "automation_mapping.xsd";
//     public static final String DEFAULT_PRODUCT_GROUP = "default.product.group";
//     public static final String EXECUTION_MODE = "framework.execution.mode";
//     public static final String ENVIRONMENT_STANDALONE = "standalone";
//     public static final String ENVIRONMENT_PLATFORM = "platform";
//     public static final String SYSTEM_ARTIFACT_RESOURCE_LOCATION = "framework.resource.location";
//     public static final String SUPER_TENANT_KEY = "superTenant";
//     public static final String SUPER_TENANT_ADMIN = "superAdmin";
//     public static final String CARBON_HOME = "carbon.home";
//     public static final String JACOCO_AGENT_JAR_NAME = "jacocoagent.jar";
//     public static final String CLASS_FILE_PATTERN = "**/*.class";
// 
// }


// Path: test-automation-framework/org.wso2.carbon.automation.engine/src/main/java/org/wso2/carbon/automation/engine/context/beans/User.java
import org.wso2.carbon.automation.engine.FrameworkConstants;
import java.util.ArrayList;
import java.util.List;

    }

    public String getKey() {
        return key;
    }

    public String getUserName() {
        return userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUserNameWithoutDomain() {
        if (userName.contains("@")) {
            return userName.substring(0, userName.lastIndexOf("@"));
        } else {
            return userName;
        }
    }

    public String getUserDomain() {
        if(userName.contains("@")) {
            return userName.substring(userName.lastIndexOf("@") + 1);
        } else {
            return FrameworkConstants.SUPER_TENANT_DOMAIN_NAME;