Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 5.72 KB

BreakingChanges-README.md

File metadata and controls

55 lines (39 loc) · 5.72 KB

Breaking Changes

#f03c15 Breaking Changes from teswiz v0.0.81#f03c15

If you are using a teswiz version lower than 0.0.81, below is the list of the breaking changes, and the corresponding new implementation available in teswiz.

Cloud Changes

In Config properties files, which are related to cloud execution platforms such as browserStack, HeadSpin, Lamda Tests, Pcloudy etc make the following change:

CLOUD_USER config will now be replaced with CLOUD_USERNAME.

Browser Stack and Lambda Test changes

  1. It is Mandatory to pass CLOUD_USERNAME & CLOUD_KEY as Environment variables when running on browser Stack from local
  2. Similarly, All the pipelines using browser Stack will need to be updated, CLOUD_USERNAME & CLOUD_KEY needs to be added

Note: appium-device-farm plugin's version should be >= v8.1.0. minimum requirement is v8.1.0

Please Refer: Browser Stack Local File

Method name and implementation changes

There are some method name and implementation changes as listed below:

Purpose #f03c15 Old #f03c15 #c5f015 New #c5f015
To put App in Background for number of Seconds putAppInBackground(int time) putAppInBackgroundFor(int numberOfSeconds)
Method Selects Device Notification from Notification Drawer selectNotification() selectNotificationFromNotificationDrawer()
Scroll In Dynamic Layer method is using Direction Enum and dynamic layer web element as parameters scrollInDynamicLayer(String direction) scrollInDynamicLayer(Direction direction, WebElement dynamicLayerElement)
To long press on specific element with given duration in seconds public void longPress(By elementId) public void longPress(By elementId)
public void longPress(By elementId, long durationInSeconds)

New Additions

There is a new method added:

Purpose #c5f015 New #c5f015
A new method is added to horizontal swipe an element using Gesture by passing the Direction and Element as parameters horizontalSwipeWithGesture(WebElement element, Direction direction)
A new method is added to double tap on an element by passing the Element as parameter doubleTap(WebElement element)
A new method is added for swipe by passing the screen height and width in percentage as parameters swipeByPassingPercentageAttributes(int percentScreenHeight, int fromPercentScreenWidth, int toPercentScreenWidth)
A new method is added for swipe by passing the screen height and width in percentage as parameters swipeByPassingPercentageAttributes(int percentScreenHeight, int fromPercentScreenWidth, int toPercentScreenWidth)
A new method is added to perform flick action on the screen based on the device size flick()
A new method is added for drag and object to a target location dragAndDrop(By draggableLocator, By dropZoneLocator)

Updated Usage Of Appium Driver in Methods

  1. setWebViewContext()
  2. setNativeAppContext()
  3. scroll(Point fromPoint, Point toPoint) , scrollVertically() , scrollDownByScreenSize()
  4. tapOnMiddleOfScreenOnDevice()
  5. swipeLeft() , swipeRight() , swipe(int height, int fromWidth, int toWidth)

References:

  1. For appium2.0 : https://javadoc.io/doc/io.appium/java-client/8.0.0-beta/deprecated-list.html
  2. For selenium 4: https://www.selenium.dev/selenium/docs/api/java/deprecated-list.html