All Downloads are FREE. Search and download functionalities are using the official Maven repository.

bichromate.core.sTestFactoryManager Maven / Gradle / Ivy

Go to download

Java, Selenium, Appium, Winium, Extend, and TestNG automated testing framework. Bichromate integrates the best of these frameworks and takes automation to the next level. With Bichromate there is one function call that builds any type of Web,IOS Mobile, Android, and Windows App driver on any platform (Windows, Mac, Linux). From Local web drivers, to SauceLabs, Browserstack, and Selenium grid. Build data driven tests is never easier. Bichromate also gives you built in Factories that, access DBs, Video Capture, FTP, POM Generation, Hilite element.

There is a newer version: 3.13
Show newest version
package bichromate.core;

import java.util.ResourceBundle;

import bichromate.DBAccess.sTestMySQLConnector;
import bichromate.tools.sTestLogFileFactory;
import bichromate.tools.sTestZipCodeAPI;

public class sTestFactoryManager {
	protected static ResourceBundle resources;
	//
	// Local Factories
	//
	private sTestJiraFactory jiraFactory = null;
	private sTestOSInformationFactory osInfo =  null;
	
	private sTestScrollIntoViewFactory siv = null;
	private sTestHilitePageElementFactory helem = null;
	private sTestScreenCaptureFactory screencapture = null;
	private sTestZipFileFactory zipFile = null;
	private sTestSlackFactory slackFactory = null;
	private sTestHipChatFactory hipChat = null;
	private sTestVideoCaptureFactory vidCapture = null;
	private sTestMySQLConnector mySQLConnection = null;
	private sTestFTPFactory  ftp = null;
	private sTestCustomerAccountManagerFactory passwordStore = null;
	private sTestLogFileFactory log = null;
	private sTestCleanupFactory cuf = null;
	private sTestZipCodeAPI zipCodeAPI = null;
	
	public sTestFactoryManager(ResourceBundle myResources){
		
		resources = myResources;
		
		osInfo =  new sTestOSInformationFactory();
		
		siv = new sTestScrollIntoViewFactory();
		
		helem = new sTestHilitePageElementFactory();
		
		jiraFactory = new sTestJiraFactory(resources);
		
		screencapture = new sTestScreenCaptureFactory();
		
		zipFile = new sTestZipFileFactory(resources);
		
		slackFactory = new sTestSlackFactory(resources);
		
		hipChat = new sTestHipChatFactory(resources);
		
		ftp = new sTestFTPFactory();
		
		passwordStore = new sTestCustomerAccountManagerFactory(resources);
		
		log = new sTestLogFileFactory(resources);
		
		mySQLConnection = new sTestMySQLConnector(resources);
		
		cuf = new sTestCleanupFactory(resources);
		
		
	}//sTestFactoryManager
	
	/**
	 * getSTestMySQLConnector()
	 * Returns the sTestMySQLConnector class. Used to clean up test files
	 * 
must be setup in the properties file. * @see sTestMySQLConnector * @return sTestMySQLConnector */ public sTestMySQLConnector getSTestMySQLConnector(){ return mySQLConnection; } /** * getSTestMySQLConnector() * Returns the getsTestCleanupFactory class. Used to clean up test files *
must be setup in the properties file. * @see sTestMySQLConnector * @return sTestMySQLConnector */ public sTestCleanupFactory getsTestCleanupFactory(){ return cuf; } /** * getSTestCustomerAccountManagerFactory() * Returns the sTestCustomerAccountManagerFactory class. Used to get passwords for accounts when logging in * @see sTestCustomerAccountManagerFactory * @return passwordStore */ public sTestCustomerAccountManagerFactory getSTestCustomerAccountManagerFactory(){ return passwordStore; } /** * getZipCodeFactory() * Returns the sTestZipCodeAPI class. Used to calculate and obtain zip information * @see sTestZipCodeAPI * @return sTestZipCodeAPI */ public sTestZipCodeAPI getZipCodeFactory(){ if(null == zipCodeAPI){ zipCodeAPI = new sTestZipCodeAPI(); } return zipCodeAPI; } /** * getSTestFTPFactory() * Returns the getSTestFTPFactory class. Used to post files to a FTP server that is setup in the properties file * @see getSTestFTPFactory * @return osInfo */ public sTestFTPFactory getSTestFTPFactory(){ return ftp; } /** * getSTestOSInformationFactory() * Returns the getSTestOSInformationFactory class * @see getSTestOSInformationFactory * @return osInfo */ public sTestOSInformationFactory getSTestOSInformationFactory(){ return osInfo; } /** * getSTestHipChatFactory() * Returns the sTestHipChatFactory class * @see sTestSlackFactory * @return hipChat */ public sTestHipChatFactory getSTestHipChatFactory(){ return hipChat; } /** * sTestSlackFactory() * Returns the sTestSlackFactory class * @see sTestSlackFactory * @return slackFactory */ public sTestSlackFactory getSTestSlackFactory(){ return slackFactory; } /** * getSTestJiraFactory() * Returns the jiraFactory class * @see sTestJiraFactory * @return jiraFactory factory for entering jira updates */ public sTestJiraFactory getZipFileFactory(){ return jiraFactory; } /** * getSTestJiraFactory() * Return the sTestZipFileFactory class * @return zipFile zip file factory for zipping up screen shots * @see sTestZipFileFactory */ public sTestZipFileFactory getSTestJiraFactory(){ return zipFile; } /** * method getScreenGrabber() * Returns the getScreenGrabber class * @see sTestScreenCaptureFactory * @return screencapture sTestScreenCaptureFactory to take screen shots */ public sTestScreenCaptureFactory getSTestScreenCaptureFactory(){ return screencapture; } }// sTestFactoryManager




© 2015 - 2024 Weber Informatics LLC | Privacy Policy