- You need change
robot\src\main\resources\NoraRobot.properties(noSandbox=${noSandbox}) androbot\src\test\resources\environments\xxx.properties(noSandbox=...) byrobot\src\main\resources\webdrivers.properties(webdriverOptionsAdditionalArgs=--no-sandbox) - You need change
robot\src\main\resources\NoraRobot.properties(remoteWebDriverUrl=${remoteWebDriverUrl}) byrobot\src\main\resources\webdrivers.properties(remoteWebDriverUrl=${remoteWebDriverUrl}) - You need change
robot\src\main\resources\NoraRobot.properties(remoteWebDriverBrowserVersion=${remoteWebDriverBrowserVersion}) byrobot\src\main\resources\webdrivers.properties(remoteWebDriverBrowserVersion=${remoteWebDriverBrowserVersion}) - You need change
robot\src\main\resources\NoraRobot.properties(remoteWebDriverPlatformName=${remoteWebDriverPlatformName}) byrobot\src\main\resources\webdrivers.properties(remoteWebDriverPlatformName=${remoteWebDriverPlatformName}) - You need change
robot\src\main\resources\NoraRobot.properties(modifyheaderPath=${modifyheaderPath}) byrobot\src\main\resources\webdrivers.properties(modifyheaderPath=${modifyheaderPath})
- All
com.github.noraui.utils.Context.waitUntil(...)must be changed incom.github.noraui.browser.waits.Wait.until(...) - If you extended the
DataTableConfigurerclass to declare new types, rename it intoCucumberTypeRegistryConfigurer
- You need to use new PageElement:
- Change 'google.GooglePage-searchField' by $google.GooglePage-searchField
- Change {string} String pageElement by {page-element} PageElement pageElement
- You need use all new features from cucumber v4.x.x. (Use Cucumber Expressions)
- You need use Cucumber Expressions instead of regular expressions
- You need use java 8 instead of java 7.
- You can use JUnit 5 instead of JUnit 4.3.
- Rename all
jenkinsresourcespathbyciToolResourcesPathin your CI/CD - Rename all import
cucumber.api.java.en.*byio.cucumber.java.en.* - Rename all import
cucumber.api.java.fr.*byio.cucumber.java.fr.* - Rename all import
cucumber.api.Scenariobyio.cucumber.core.api.Scenario - Rename all import
cucumber.api.java.Afterbyio.cucumber.java.After - Rename all import
cucumber.api.java.Beforebyio.cucumber.java.Before - Rename all import
cucumber.api.TypeRegistrybyio.cucumber.core.api.TypeRegistry - Rename all import
cucumber.api.TypeRegistryConfigurerbyio.cucumber.core.api.TypeRegistryConfigurer - Rename all import
cucumber.api.CucumberOptionsbyio.cucumber.junit.CucumberOptions - Rename all import
cucumber.api.Cucumberbyio.cucumber.junit.Cucumber - Rename all import
cucumber.api.java.ObjectFactorybyio.cucumber.core.backend.ObjectFactory - Rename all import
cucumber.api.Transposebyio.cucumber.java.Transpose - Rename all import
cucumber.metrics.*bycom.github.noraui.cucumber.metrics.*
- -Dcucumber.options="--tags '@tag1 or @tag2 or @tag3 or @tag4'"
- NoraUi use Oracle Jdbc Driver
- if you use Oracle Db provider, use com.oracle.jdbc:ojdbc8 dependency and configure your env with OTN: Sample(https://github.com/sgrillon14/MavenSampleOracleJdbc) (default)
- if you do not use Oracle Db provider, just exclude com.oracle.jdbc:ojdbc8 dependency in the noraui dependency call within your pom.xml. You can follow these instructions at https://maven.apache.org/guides/introduction/introduction-to-optional-and-excludes-dependencies.html. It should look something like that :
<dependency>
<groupId>com.github.noraui</groupId>
<artifactId>noraui</artifactId>
<version>${noraui.version}</version>
<exclusions>
<exclusion>
<groupId>com.oracle.jdbc</groupId>
<artifactId>ojdbc8</artifactId>
</exclusion>
</exclusions>
</dependency>- Change all "noraui" import to "com.github.noraui"
- Change all
private static Logger LOGGER = Logger.getLoggerbyprivate static final Logger LOGGER = LoggerFactory.getLogger - Change all
import org.apache.log4j.Logger;byimport org.slf4j.Logger;andimport org.slf4j.LoggerFactory; - Change com.github.noraui.browser.DriverFactory#setProperty(String key, Properties propertyFile) to com.github.noraui.browser.DriverFactory#getProperty(String key, Properties propertyFile)
- Change com.github.noraui.browser.DriverFactory#setIntProperty(String key, Properties propertyFile) to com.github.noraui.browser.DriverFactory#getIntProperty(String key, Properties propertyFile)
- replace all step constructors by
com.google.inject.Inject(inject pages) - replace loadAuthentication(String browser) by loadAuthentication(Cookie cookie)
- replace PhantomJs by Chrome headless
- replace springframework RestTemplate by OkHttp