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

.wt.sit-wt.2.2.source-code.sit-wt-runtime-conf.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:context="http://www.springframework.org/schema/context" xmlns:util="http://www.springframework.org/schema/util"
  xsi:schemaLocation="http://www.springframework.org/schema/beans
		http://www.springframework.org/schema/beans/spring-beans-4.1.xsd
		http://www.springframework.org/schema/context
		http://www.springframework.org/schema/context/spring-context-4.1.xsd
		http://www.springframework.org/schema/util
		http://www.springframework.org/schema/util/spring-util-4.1.xsd"
  default-lazy-init="true">

  <import resource="classpath:sit-wt-conf.xml" />

  <context:component-scan base-package="org.sitoolkit.tester.domain" />

  <bean id="tester" class="org.sitoolkit.tester.domain.selenium.SeleniumTester">
    <property name="screenshotOpe">
      <bean class="org.sitoolkit.tester.domain.selenium.SeleniumScreenshotOperation">
      </bean>
    </property>
  </bean>

  <bean id="elementPositionSupport" class="org.sitoolkit.tester.domain.selenium.ElementPositionSupport" />

  <bean id="drawLineOperation" class="org.sitoolkit.tester.domain.selenium.DrawLineOperation">
  </bean>
  <bean id="clickOperation" class="org.sitoolkit.tester.domain.selenium.ClickOperation">
  </bean>
  <bean id="inputOperation" class="org.sitoolkit.tester.domain.selenium.InputOperation">
  </bean>
  <bean id="keyOperation" class="org.sitoolkit.tester.domain.selenium.KeyOperation">
  </bean>
  <bean id="chooseOperation" class="org.sitoolkit.tester.domain.selenium.ChooseOperation">
  </bean>
  <bean id="dialogOperation" class="org.sitoolkit.tester.domain.selenium.DialogOperation">
  </bean>
  <bean id="openOperation" class="org.sitoolkit.tester.domain.selenium.OpenOperation">
  </bean>
  <!-- <bean id="screenshotOperation" class="org.sitoolkit.tester.domain.selenium.SeleniumScreenshotOperation"> 
    </bean> -->
  <bean id="selectOperation" class="org.sitoolkit.tester.domain.selenium.SelectOperation">
  </bean>
  <bean id="verifyOperation" class="org.sitoolkit.tester.domain.selenium.VerifyOperation">
  </bean>
  <bean id="verifyAttrOperation" class="org.sitoolkit.tester.domain.selenium.VerifyAttributeOperation">
  </bean>
  <bean id="verifySelectOperation" class="org.sitoolkit.tester.domain.selenium.VerifySelectOperation">
  </bean>
  <bean id="waitOperation" class="org.sitoolkit.tester.domain.selenium.WaitOperation">
  </bean>
  <bean id="setWindowSizeOperation" class="org.sitoolkit.tester.domain.selenium.SetWindowSizeOperation">
  </bean>
  <bean id="spinOperation" class="org.sitoolkit.tester.domain.appium.SpinOperation">
  </bean>
  <bean id="startAppOperation" class="org.sitoolkit.tester.domain.appium.StartAppOperation">
  </bean>
  <bean id="switchWindowOperation" class="org.sitoolkit.tester.domain.selenium.SwitchWindowOperation">
  </bean>
  <bean id="switchFrameOperation" class="org.sitoolkit.tester.domain.selenium.SwitchFrameOperation">
  </bean>
  <bean id="storeOperation" class="org.sitoolkit.tester.domain.selenium.StoreOperation">
  </bean>
  <bean id="storeElementIndexOperation" class="org.sitoolkit.tester.domain.selenium.StoreElementIndexOperation">
  </bean>
  <bean id="gotoOperation" class="org.sitoolkit.tester.domain.test.GoToOperation">
  </bean>
  <bean id="execOperation" class="org.sitoolkit.tester.domain.selenium.ExecOperation">
  </bean>
  <bean id="includeOperation" class="org.sitoolkit.tester.domain.selenium.IncludeOperation">
  </bean>


  <beans profile="htmlUnit">
    <bean id="seleniumDriver" class="org.openqa.selenium.htmlunit.HtmlUnitDriver">
      <property name="javascriptEnabled" value="true" />
    </bean>
  </beans>
  <beans profile="default,ff">
    <bean id="seleniumDriver" class="org.openqa.selenium.firefox.FirefoxDriver">
    </bean>
  </beans>
  <beans profile="ie">
    <bean id="seleniumDriver" class="org.openqa.selenium.ie.InternetExplorerDriver">
    </bean>
  </beans>
  <beans profile="chrome">
    <bean id="seleniumDriver" class="org.openqa.selenium.chrome.ChromeDriver">
    </bean>
  </beans>
  <beans profile="safari">
    <bean id="seleniumDriver" class="org.openqa.selenium.safari.SafariDriver">
    </bean>
  </beans>

  <beans profile="android">
    <bean id="tester" class="org.sitoolkit.tester.domain.selenium.SeleniumTester" >
      <property name="timeout" value="3" />
      <property name="screenshotOpe">
        <bean class="org.sitoolkit.tester.domain.appium.HybridScreenshotOperation" />
      </property>
    </bean>

    <bean id="seleniumDriver" class="io.appium.java_client.android.AndroidDriver" factory-bean="driverFactory"
      factory-method="create">
    </bean>

    <bean id="driverFactory" class="org.sitoolkit.tester.domain.appium.AndroidDriverFactory">
      <property name="remoteAddress" value="http://127.0.0.1:4723/wd/hub" />
      <property name="capabilityParams" ref="capabilityParams">
      </property>
    </bean>
  </beans>

  <beans profile="androidNativeDemo">
    <util:map id="capabilityParams">
      <entry key="deviceName" value="Android Emulator" />
      <entry key="platformVersion" value="5.1" />
      <entry key="appPackage" value="com.example.android.contactmanager" />
      <entry key="appActivity" value="ContactManager" />
      <entry key="app"
        value="https://github.com/appium/sample-code/blob/master/sample-code/apps/ContactManager/ContactManager.apk?raw=true" />
    </util:map>
    <bean id="elementPositionSupport" class="org.sitoolkit.tester.domain.appium.NativeElementPositionSupport" />
  </beans>

  <beans profile="androidHybridDemo">
    <util:map id="capabilityParams">
      <entry key="deviceName" value="Android Emulator" />
      <entry key="platformVersion" value="5.1" />
      <entry key="appPackage" value="org.sitoolkit.loginchat" />
      <entry key="appActivity" value="MainActivity" />
      <entry key="app"
        value="https://github.com/sitoolkit/sit-wt/blob/master/demoapp/simple-login.apk?raw=true" />
    </util:map>
    <bean id="elementPositionSupport" class="org.sitoolkit.tester.domain.appium.HybridElementPositionSupport" />
  </beans>

  <beans profile="ios">
    <bean id="tester" class="org.sitoolkit.tester.domain.selenium.SeleniumTester" >
      <property name="timeout" value="3" />
      <property name="screenshotOpe">
        <bean class="org.sitoolkit.tester.domain.appium.HybridScreenshotOperation" />
      </property>
    </bean>

    <bean id="seleniumDriver" class="io.appium.java_client.ios.IOSDriver" factory-bean="driverFactory"
      factory-method="create">
    </bean>

    <bean id="driverFactory" class="org.sitoolkit.tester.domain.appium.IOSDriverFactory">
      <property name="remoteAddress" value="http://127.0.0.1:4723/wd/hub" />
      <property name="capabilityParams" ref="capabilityParams">
      </property>
    </bean>
  </beans>

  <beans profile="iosHybridDemo">
    <util:map id="capabilityParams">
      <entry key="automationName" value="Appium" />
      <entry key="platformName" value="iOS" />
      <entry key="bundleId" value="org.sitoolkit.loginchat" />
      <entry key="deviceName" value="iPhone 6s Plus" />
      <entry key="platformVersion" value="9.1" />
      <entry key="udid" value="" />
      <entry key="app" value="" />
    </util:map>
    <bean id="elementPositionSupport" class="org.sitoolkit.tester.domain.appium.IOSHybridElementPositionSupport">
      <constructor-arg type="double"><value>3.0</value></constructor-arg>
    </bean>
  </beans>

  <beans profile="debug">
    <import resource="classpath:sit-wt-gen-script-conf.xml" />
  </beans>
</beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy