When i can automate the complete application using appium then how will i get to know about the bugs?

Hello everyone,
I am new to appium as well as automation testing, so I want to know one thing.
Suppose i have a xyz application and i want to automate it.
So i write a test script to automate it and run the test script and it gets executed in a well manner.
My question here is that how will i get to know about the bugs in the application as if appium execute the whole script.
In a practical way how will i encounter the if exists in my application.
As of now i am able to execute the complete script with an ease and the script is executing properly.


You need to provide certain checks which validate application during automation test runs.

Priyank Shah

Thanks @Priyank_Shah,

This is my test script, which kind of changes should i make to this? :
AndroidDriver driver;
public void keyssmanager() throws MalformedURLException, InterruptedException
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(“deviceName”,“Nexus 4”);
capabilities.setCapability(“platformName”, “Android”);
capabilities.setCapability(“platformVersion”, “5.1.1”);

	File file = new File("E:\\Jitender\\rhythm\\workspace\\XYZDemo\\apk\\xyz.apk");
	capabilities.setCapability("app", file.getAbsolutePath());
	driver =new AndroidDriver(new URL(""), capabilities);
	 System.out.println("Passed Splash Screen!");
	 WebDriverWait wait = new WebDriverWait(driver, 30); 
	 driver.findElement(By.id("com.xyz.in:id/Login_EmailIdField")).sendKeys("[email protected]");
	 System.out.println("Email entered successfully!");
	 System.out.println("Password entered successfully!");
	 System.out.println("Welcome to Dashboard Screen!");
	 WebDriverWait wait1 = new WebDriverWait(driver, 30);


You can put assert on the checks you want to perform.

You can use same assert as selenium.

Also you can trace the system information and capture it if something fails.

Can you please elaborate @mashkurm?
I am new to automation testing so unable to understand the terms you used here.
It would be better if you show me some kind example.


Lets say u r test case is Post Login Dashboard page appears so u can do it like

import org.testng.Assert;

// 1. Login script as u written above

// 2. get dashboard page title with user name
String DashBoard = driver.findElement(By.id(“DashBoard page title/link”)).getText();

// 3. Assert results and this will verify post login u r screen is correct…
Assert.assertEquals(“Welcome User Name Dashboard”, DashBoard );

Thanks @amitjaincoer191.

But can you send me any kind of example?
Or can edit the same script i mentioned above?
As of now i am unable to find the solution of my query.