Development

I have an application. Different web services gets called when any action is performed. Let me explain my scenario:
When I update a value in application, it also gets updated in LPS system. The LPS is updated by using web-services. If we received success in web-service_receive then it means value is successfully updated in LPS.
I want to check whether I get success or not whenever a web-service gets called.

In database, a new record gets inserted every time a web-service is called. One with webservice_receive and one with webservice_sent.
Is there any way to automate this scenario. Screenshot of database table is attached.

I am new to Selenium, currently am working on selenium webdriver. I want to select a value from the drop-down. But I am not able to do it because of some error. Also, I want to inform you that in my automator viewer I have not found any id of the dropdown element hence I am using with XPath but I am not able to do please guide me. My java code is below:

@Test
public void print() throws Exception

{

WebDriverWait wait = new WebDriverWait(driver, 60);// 1 minute
wait.until(ExpectedConditions.visibilityOfElementLocated(By.className(“android.widget.Button”)));

driver.findElementByClassName(“android.widget.EditText”).sendKeys(“1234567890”);
driver.hideKeyboard();

Select drpCountry = new Select(driver.findElement(By.xpath(“//android.widget.ImageView[@index=’2′]”)));

drpCountry.selectByVisibleText(“+91(IN)”);
drpCountry.selectByIndex(8);

driver.findElementByClassName(“android.widget.Button”).click();
}

I am trying to run an automated test in appium, what happens is that the app does get launched however fails to perform any action. Please see error below:

An unknown server-side error occurred while processing the command. Original error: ‘POST /element’ cannot be proxied to UiAutomator2 server because the instrumentation process is not running (probably crashed). Check the server log and/or the logcat output for more details.

In the following code, I am trying to get my driver from the class A to class B. Class B can’t have a constructor and I tried making a base class, but either Class A gets driver null or Class B gets driver null.
Can someone point out what I am doing wrong?
Class A :
@Listeners(CustomListener.class)
public class AjoutPanier {
public WebDriver driver;

@BeforeTest
public void LaunchWebsite() {
// Launch Chrome
System.setProperty(“webdriver.chrome.driver”, “C:\chromedriver.exe”);
driver = new ChromeDriver();
// Acces Website
driver.get(“https://pileouface.07zr.lu/fr/home/”);
driver.manage().window().maximize();
Reporter.log(FormatMessageSucces + ” Chrome is Opened</font>”);
}…..}

Class B :
public class CustomListener extends AjoutPanier implements ITestListener{

@Override
public void onTestFailure(ITestResult result) {
// TODO Auto-generated method stub
System.out.println(“TestFailure acces”);
File file = ((TakesScreenshot)b.driver).getScreenshotAs(OutputType.FILE);
File ScreenshotName = new File(“.//ScreenShots//test.png”);
System.out.println(“Files done”);
try {
System.out.println(“try”);
FileUtils.copyFile(file, ScreenshotName);
} catch (IOException e) {
// TODO Auto-generated catch block
System.out.println(“catch”);
e.printStackTrace();
}
Reporter.log(“</br><img src='”+ ScreenshotName +”‘/>”);
System.out.println(“*******Screenshot captured********”);
}
}