Using testng in appium

How can i test a swiping gesture and login form using testng??