nus-yam/ex-repair huggingface dataset:
Program: 71110
Project: 71110
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkDeleteDownloadTask(){
  List<AndroidElement> eList=mDriver.findElements(By.id("String_Node_Str"));
  if (eList.size() > 0) {
    int minItemSize=Math.min(eList.size(),5);
    WaitUtil.implicitlyWait(3);
    String temp=mDriver.findElements(By.id("String_Node_Str")).get(minItemSize).getText();
    AndroidElement targetElement=eList.get(RandomUtil.getRandomNum(minItemSize));
    targetElement.click();
    WaitUtil.implicitlyWait(3);
    String deleteUiSelect="String_Node_Str" + temp + "String_Node_Str";
    assertEquals(ElementUtil.isElementPresent(deleteUiSelect),false);
  }
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkDeleteDownloadTask(){
  LogUtil.printCurrentMethodName();
  ScrollUtil.scrollToPrecent(Direction.RIGHT,80);
  List<AndroidElement> eList=mDriver.findElements(By.id("String_Node_Str"));
  if (eList.size() > 0) {
    int minItemSize=Math.min(eList.size(),5);
    WaitUtil.implicitlyWait(3);
    int randomIndex=RandomUtil.getRandomNum(minItemSize);
    String temp=mDriver.findElements(By.id("String_Node_Str")).get(randomIndex).getText();
    AndroidElement targetElement=eList.get(randomIndex);
    targetElement.click();
    WaitUtil.implicitlyWait(3);
    mDriver.findElement(By.id("String_Node_Str")).click();
    WaitUtil.implicitlyWait(3);
    String deleteUiSelect="String_Node_Str" + temp + "String_Node_Str";
    assertEquals(ElementUtil.isElementPresent(deleteUiSelect),false);
  }
}
Program: 71111
Project: 71111
Buggy source:
public static void scrollToBase(){
  AndroidDriver<AndroidElement> driver=DriverManger.getDriver();
  int width=driver.manage().window().getSize().width;
  int height=driver.manage().window().getSize().height;
}

Fixed version (ground truth):
public static void scrollToBase(){
  AndroidDriver<AndroidElement> driver=DriverManger.getDriver();
  int width=driver.manage().window().getSize().width;
  int height=driver.manage().window().getSize().height;
  String str1;
  String str2;
  do {
    str1=driver.getPageSource();
    driver.swipe(width / 2,height * 3 / 4,width / 2,height / 4,500);
    WaitUtil.implicitlyWait(1);
    str2=driver.getPageSource();
  }
 while (!str1.equals(str2));
}
Program: 71112
Project: 71112
Buggy source:
public static void scrollToBase(){
  AndroidDriver<AndroidElement> driver=DriverManger.getDriver();
  int width=driver.manage().window().getSize().width;
  int height=driver.manage().window().getSize().height;
}

Fixed version (ground truth):
public static void scrollToBase(){
  AndroidDriver<AndroidElement> driver=DriverManger.getDriver();
  int width=driver.manage().window().getSize().width;
  int height=driver.manage().window().getSize().height;
  String str1;
  String str2;
  do {
    str1=driver.getPageSource();
    driver.swipe(width / 2,height * 3 / 4,width / 2,height / 4,500);
    WaitUtil.implicitlyWait(1);
    str2=driver.getPageSource();
  }
 while (!str1.equals(str2));
}
Program: 71113
Project: 71113
Buggy source:
/** 
 * 重定向到SplashActivit
 */
public static void redirect2SplashActivity(){
  AppUtil.resetApp();
  WaitUtil.implicitlyWait(1);
}

Fixed version (ground truth):
/** 
 * 重定向到SplashActivit
 */
public static void redirect2SplashActivity(){
  AppUtil.clearAppData(App.PACKAGE_NAME);
  AppUtil.launchApp();
  WaitUtil.implicitlyWait(1);
}
Program: 71114
Project: 71114
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkAboutUpdate() throws InterruptedException {
  WaitUtil.implicitlyWait(2);
  LogUtil.printCurrentMethodName();
  AndroidElement aboutUpdateLly=mDriver.findElement(By.id("String_Node_Str"));
  aboutUpdateLly.click();
  String targetToast="String_Node_Str";
  Assert.assertEquals(ElementUtil.isTargetToast(targetToast),true);
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},retryAnalyzer=FailRetry.class) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkAboutUpdate() throws InterruptedException {
  WaitUtil.implicitlyWait(2);
  LogUtil.printCurrentMethodName();
  AndroidElement aboutUpdateLly=mDriver.findElement(By.id("String_Node_Str"));
  aboutUpdateLly.click();
  String targetToast="String_Node_Str";
  Assert.assertEquals(ElementUtil.isTargetToast(targetToast),true);
  WaitUtil.forceWait(2);
}
Program: 71115
Project: 71115
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) public void checkEnterMain() throws InterruptedException {
  PageRedirect.redirect2RequestiteActivity();
  WaitUtil.implicitlyWait(2);
  LogUtil.printCurrentMethodName();
  AndroidElement mainButton=mDriver.findElement(By.id("String_Node_Str"));
  mainButton.click();
  WaitUtil.forceWait(2);
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},retryAnalyzer=FailRetry.class) public void checkEnterMain() throws InterruptedException {
  PageRedirect.redirect2RequestiteActivity();
  WaitUtil.implicitlyWait(2);
  LogUtil.printCurrentMethodName();
  AndroidElement mainButton=mDriver.findElement(By.id("String_Node_Str"));
  mainButton.click();
  WaitUtil.forceWait(2);
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
}
Program: 71116
Project: 71116
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) public void checkOneGoDownload() throws InterruptedException {
  PageRedirect.redirect2RequestiteActivity();
  WaitUtil.implicitlyWait(5);
  LogUtil.printCurrentMethodName();
  AndroidElement mainButton=mDriver.findElement(By.id("String_Node_Str"));
  mainButton.click();
  WaitUtil.forceWait(3);
  if (!ContextUtil.getCurrentActivity().equals("String_Node_Str")) {
    WaitUtil.forceWait(3);
  }
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},retryAnalyzer=FailRetry.class) public void checkOneGoDownload() throws InterruptedException {
  PageRedirect.redirect2RequestiteActivity();
  WaitUtil.implicitlyWait(5);
  LogUtil.printCurrentMethodName();
  AndroidElement mainButton=mDriver.findElement(By.id("String_Node_Str"));
  mainButton.click();
  WaitUtil.forceWait(3);
  if (!ContextUtil.getCurrentActivity().equals("String_Node_Str")) {
    WaitUtil.forceWait(3);
  }
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
}
Program: 71117
Project: 71117
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void randomCheckOne() throws InterruptedException {
  LogUtil.printCurrentMethodName();
  Random random=new Random();
  List<AndroidElement> list=mDriver.findElementsByClassName("String_Node_Str");
  System.out.println(list.size());
  int randomIndex=0;
  if (list.size() > 3) {
    randomIndex=random.nextInt(list.size() - 3);
  }
 else {
    System.err.println("String_Node_Str");
    return;
  }
  AndroidElement hotkeyItem=list.get(randomIndex);
  searchBeforePerform=hotkeyItem.getText();
  if (searchBeforePerform.equals("String_Node_Str") || searchBeforePerform.equals("String_Node_Str") || searchBeforePerform.equals("String_Node_Str")) {
    searchBeforePerform=list.get(randomIndex + 1).getText();
  }
  System.out.println("String_Node_Str" + searchBeforePerform);
  hotkeyItem.click();
  WaitUtil.forceWait(2);
  PageRouteUtil.pressBack();
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void randomCheckOne() throws InterruptedException {
  LogUtil.printCurrentMethodName();
  Random random=new Random();
  List<AndroidElement> list=mDriver.findElementsByClassName("String_Node_Str");
  int randomIndex=0;
  if (list.size() > 3) {
    randomIndex=random.nextInt(list.size() - 3);
  }
 else {
    System.err.println("String_Node_Str");
    return;
  }
  AndroidElement hotkeyItem=list.get(randomIndex);
  searchBeforePerform=hotkeyItem.getText();
  if (searchBeforePerform.equals("String_Node_Str") || searchBeforePerform.equals("String_Node_Str") || searchBeforePerform.equals("String_Node_Str")) {
    searchBeforePerform=list.get(randomIndex + 1).getText();
  }
  hotkeyItem.click();
  WaitUtil.forceWait(2);
  PageRouteUtil.pressBack();
}
Program: 71118
Project: 71118
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkMainSoftAdShow() throws InterruptedException {
  String AdClass="String_Node_Str";
  WaitUtil.implicitlyWait(5);
  LogUtil.printCurrentMethodName();
  List<AndroidElement> elementList=mDriver.findElementsByClassName(AdClass);
  WaitUtil.implicitlyWait(10);
  mDriver.findElement(By.id("String_Node_Str"));
  ScrollUtil.scrollToBase();
  WaitUtil.forceWait(2);
  String gameAdClass="String_Node_Str";
  List<AndroidElement> elementListAfterScroll=mDriver.findElementsByClassName(gameAdClass);
  assertEquals(elementList.size() != elementListAfterScroll.size(),true);
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},retryAnalyzer=FailRetry.class) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkMainSoftAdShow() throws InterruptedException {
  String AdClass="String_Node_Str";
  WaitUtil.implicitlyWait(5);
  LogUtil.printCurrentMethodName();
  List<AndroidElement> elementList=mDriver.findElementsByClassName(AdClass);
  WaitUtil.implicitlyWait(10);
  mDriver.findElement(By.id("String_Node_Str"));
  ScrollUtil.scrollToBase();
  WaitUtil.forceWait(2);
  String gameAdClass="String_Node_Str";
  List<AndroidElement> elementListAfterScroll=mDriver.findElementsByClassName(gameAdClass);
  assertEquals(elementList.size() != elementListAfterScroll.size(),true);
}
Program: 71119
Project: 71119
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkMainSoftAdContent() throws InterruptedException {
  WaitUtil.implicitlyWait(5);
  List<AndroidElement> elementList=mDriver.findElements(By.id("String_Node_Str"));
  LogUtil.printCurrentMethodName();
  elementList.get(elementList.size() - 1).click();
  WaitUtil.forceWait(3);
  ScreenUtil.screenShot("String_Node_Str");
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  AndroidElement e=mDriver.findElement(By.id("String_Node_Str"));
  e.click();
  WaitUtil.forceWait(2);
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},retryAnalyzer=FailRetry.class) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkMainSoftAdContent() throws InterruptedException {
  WaitUtil.implicitlyWait(5);
  List<AndroidElement> elementList=mDriver.findElements(By.id("String_Node_Str"));
  LogUtil.printCurrentMethodName();
  elementList.get(elementList.size() - 1).click();
  WaitUtil.forceWait(3);
  ScreenUtil.screenShot("String_Node_Str");
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  WaitUtil.implicitlyWait(5);
  AndroidElement e=mDriver.findElement(By.id("String_Node_Str"));
  e.click();
  WaitUtil.forceWait(2);
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
}
Program: 71120
Project: 71120
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkAdInDetail() throws InterruptedException {
  if (ElementUtil.isElementPresent(By.id("String_Node_Str"))) {
    mDriver.findElement(By.id("String_Node_Str")).click();
    WaitUtil.forceWait(2);
    assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
    mDriver.findElement(By.id("String_Node_Str")).click();
    WaitUtil.forceWait(2);
  }
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkAdInDetail() throws InterruptedException {
  if (ElementUtil.isElementPresent(By.id("String_Node_Str"))) {
    mDriver.findElement(By.id("String_Node_Str")).click();
    WaitUtil.forceWait(2);
    assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
    mDriver.findElement(By.id("String_Node_Str")).click();
    WaitUtil.forceWait(2);
  }
}
Program: 71121
Project: 71121
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str") public void checkBottomDownload() throws InterruptedException {
  AndroidElement e=mDriver.findElement(By.id("String_Node_Str"));
  assertEquals(e.getText().contains("String_Node_Str"),true);
  e.click();
  WaitUtil.forceWait(2);
  mDriver.findElement(By.id("String_Node_Str")).click();
  WaitUtil.forceWait(1);
  assertEquals(e.getText().contains("String_Node_Str"),true);
  e.click();
  WaitUtil.forceWait(1);
  assertEquals(e.getText().contains("String_Node_Str"),true);
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str") public void checkBottomDownload() throws InterruptedException {
  AndroidElement e=mDriver.findElement(By.id("String_Node_Str"));
  assertEquals(e.getText().contains("String_Node_Str"),true);
  e.click();
  WaitUtil.forceWait(2);
  mDriver.findElement(By.id("String_Node_Str")).click();
  WaitUtil.forceWait(1);
  assertEquals(e.getText().contains("String_Node_Str"),true);
  e.click();
  WaitUtil.forceWait(1);
  assertEquals(e.getText().contains("String_Node_Str"),true);
}
Program: 71122
Project: 71122
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkWithoutInstall() throws InterruptedException {
  if (ElementUtil.isElementPresent(By.id("String_Node_Str"))) {
    AndroidElement eWithoutInstall=mDriver.findElement(By.id("String_Node_Str"));
    eWithoutInstall.click();
    WaitUtil.forceWait(2);
    assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
    mDriver.findElement(By.id("String_Node_Str")).click();
    WaitUtil.forceWait(2);
  }
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkWithoutInstall() throws InterruptedException {
  if (ElementUtil.isElementPresent(By.id("String_Node_Str"))) {
    AndroidElement eWithoutInstall=mDriver.findElement(By.id("String_Node_Str"));
    eWithoutInstall.click();
    WaitUtil.forceWait(2);
    assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
    mDriver.findElement(By.id("String_Node_Str")).click();
    WaitUtil.forceWait(2);
  }
}
Program: 71123
Project: 71123
Buggy source:
@Test(enabled=false) public void initCheck(){
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  ScreenUtil.screenShot("String_Node_Str");
  WaitUtil.implicitlyWait(2);
}

Fixed version (ground truth):
@Test() public void initCheck(){
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  ScreenUtil.screenShot("String_Node_Str");
  WaitUtil.implicitlyWait(2);
}
Program: 71124
Project: 71124
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkPostTipOffReport(){
  qiuckToastCheck();
  mDriver.findElement(By.id("String_Node_Str")).click();
  WaitUtil.implicitlyWait(2);
  mDriver.findElement(By.xpath("String_Node_Str"));
  WaitUtil.implicitlyWait(2);
  AndroidElement reportContent=mDriver.findElement(By.id("String_Node_Str"));
  reportContent.clear();
  reportContent.sendKeys("String_Node_Str");
  AndroidElement reportPhone=mDriver.findElement(By.id("String_Node_Str"));
  reportPhone.clear();
  reportPhone.sendKeys("String_Node_Str");
  AndroidElement reportEmail=mDriver.findElement(By.id("String_Node_Str"));
  reportEmail.clear();
  reportEmail.sendKeys("String_Node_Str");
  mDriver.findElement(By.id("String_Node_Str")).click();
  String reportPostErrorToast="String_Node_Str";
  Assert.assertEquals(ElementUtil.isTargetToast(reportPostErrorToast),false);
  mDriver.findElement(By.id("String_Node_Str")).click();
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkPostTipOffReport(){
  qiuckToastCheck();
  mDriver.findElement(By.id("String_Node_Str")).click();
  WaitUtil.implicitlyWait(2);
  mDriver.findElement(By.xpath("String_Node_Str"));
  WaitUtil.implicitlyWait(2);
  AndroidElement reportContent=mDriver.findElement(By.id("String_Node_Str"));
  reportContent.clear();
  reportContent.sendKeys("String_Node_Str");
  AndroidElement reportPhone=mDriver.findElement(By.id("String_Node_Str"));
  reportPhone.clear();
  reportPhone.sendKeys("String_Node_Str");
  AndroidElement reportEmail=mDriver.findElement(By.id("String_Node_Str"));
  reportEmail.clear();
  reportEmail.sendKeys("String_Node_Str");
  mDriver.findElement(By.id("String_Node_Str")).click();
  String reportPostErrorToast="String_Node_Str";
  Assert.assertEquals(ElementUtil.isTargetToast(reportPostErrorToast),false);
  mDriver.findElement(By.id("String_Node_Str")).click();
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
}
Program: 71125
Project: 71125
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str") public void opearaInImageBrower(){
  try {
    ScrollUtil.scrollToPrecent(Direction.LEFT,80);
    WaitUtil.forceWait(1);
    ScrollUtil.scrollToPrecent(Direction.RIGHT,80);
    WaitUtil.forceWait(1);
    ScreenUtil.zoom(mDriver.findElement(By.className("String_Node_Str")));
    WaitUtil.forceWait(1);
    ScreenUtil.doubleRandomTap();
    WaitUtil.forceWait(1);
    assertEquals(ContextUtil.getCurrentActivity().equals("String_Node_Str"),false);
  }
 catch (  Exception e) {
    PageRouteUtil.pressBack();
    throw new AssertionError();
  }
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str") public void opearaInImageBrower(){
  try {
    ScrollUtil.scrollToPrecent(Direction.LEFT,80);
    WaitUtil.forceWait(1);
    ScrollUtil.scrollToPrecent(Direction.RIGHT,80);
    WaitUtil.forceWait(1);
    ScreenUtil.zoom(mDriver.findElement(By.className("String_Node_Str")));
    WaitUtil.forceWait(1);
    ScreenUtil.doubleRandomTap();
    WaitUtil.forceWait(1);
    assertEquals(ContextUtil.getCurrentActivity().equals("String_Node_Str"),false);
  }
 catch (  Exception e) {
    PageRouteUtil.pressBack();
    throw new AssertionError();
  }
}
Program: 71126
Project: 71126
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkTheImageScrollView() throws InterruptedException {
  ElementUtil.swipeControl(By.id("String_Node_Str"),Heading.LEFT);
  WaitUtil.forceWait(2);
  ScreenUtil.screenShot("String_Node_Str");
  ElementUtil.swipeControl(By.id("String_Node_Str"),Heading.RIGHT);
  WaitUtil.forceWait(2);
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) public void checkTheImageScrollView() throws InterruptedException {
  ElementUtil.swipeControl(By.id("String_Node_Str"),Heading.LEFT);
  WaitUtil.forceWait(2);
  ScreenUtil.screenShot("String_Node_Str");
  ElementUtil.swipeControl(By.id("String_Node_Str"),Heading.RIGHT);
  WaitUtil.forceWait(2);
}
Program: 71127
Project: 71127
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str") public void checkOtherInstall() throws InterruptedException {
  String otherInstallItemUiSelector="String_Node_Str";
  List<AndroidElement> eList=mDriver.findElementsByAndroidUIAutomator(otherInstallItemUiSelector);
  int eListSize;
  if ((eListSize=eList.size()) > 0) {
    AndroidElement randomItem=eList.get(RandomUtil.getRandomNum(eListSize - 1));
    String tempAppName=randomItem.getText();
    randomItem.click();
    WaitUtil.implicitlyWait(3);
    String nextDetailAppName=mDriver.findElement(By.id("String_Node_Str")).getText();
    assertEquals(nextDetailAppName.equals(tempAppName),true);
    PageRouteUtil.pressBack();
  }
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str") public void checkOtherInstall() throws InterruptedException {
  String otherInstallItemUiSelector="String_Node_Str";
  List<AndroidElement> eList=mDriver.findElementsByAndroidUIAutomator(otherInstallItemUiSelector);
  int eListSize;
  if ((eListSize=eList.size()) > 0) {
    AndroidElement randomItem=eList.get(RandomUtil.getRandomNum(eListSize - 1));
    String tempAppName=randomItem.getText();
    randomItem.click();
    WaitUtil.implicitlyWait(3);
    String nextDetailAppName=mDriver.findElement(By.id("String_Node_Str")).getText();
    assertEquals(nextDetailAppName.equals(tempAppName),true);
    PageRouteUtil.pressBack();
  }
}
Program: 71128
Project: 71128
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str") public void checkPermission() throws InterruptedException {
  AndroidElement e=mDriver.findElement(By.id("String_Node_Str"));
  e.click();
  WaitUtil.forceWait(3);
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  ScrollUtil.scrollToBase();
  WaitUtil.forceWait(2);
  mDriver.findElement(By.id("String_Node_Str")).click();
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str") public void checkPermission() throws InterruptedException {
  AndroidElement e=mDriver.findElement(By.id("String_Node_Str"));
  e.click();
  WaitUtil.forceWait(3);
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  ScrollUtil.scrollToBase();
  WaitUtil.forceWait(2);
  mDriver.findElement(By.id("String_Node_Str")).click();
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
}
Program: 71129
Project: 71129
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkActionBarSearch() throws InterruptedException {
  mDriver.findElement(By.id("String_Node_Str")).click();
  WaitUtil.forceWait(2);
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  PageRouteUtil.pressBack();
  WaitUtil.forceWait(1);
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) public void checkActionBarSearch() throws InterruptedException {
  mDriver.findElement(By.id("String_Node_Str")).click();
  WaitUtil.forceWait(2);
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  PageRouteUtil.pressBack();
  WaitUtil.forceWait(1);
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
}
Program: 71130
Project: 71130
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkImageBrower() throws InterruptedException {
  List<AndroidElement> imageList=mDriver.findElements(By.id("String_Node_Str"));
  if (imageList.size() > 0) {
    imageList.get(0).click();
    WaitUtil.forceWait(2);
    assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  }
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) public void checkImageBrower() throws InterruptedException {
  List<AndroidElement> imageList=mDriver.findElements(By.id("String_Node_Str"));
  if (imageList.size() > 0) {
    imageList.get(0).click();
    WaitUtil.forceWait(2);
    assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  }
}
Program: 71131
Project: 71131
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str") public void checkTipOff() throws InterruptedException {
  AndroidElement e=mDriver.findElement(By.id("String_Node_Str"));
  e.click();
  WaitUtil.forceWait(3);
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str") public void checkTipOff() throws InterruptedException {
  AndroidElement e=mDriver.findElement(By.id("String_Node_Str"));
  e.click();
  WaitUtil.forceWait(3);
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
}
Program: 71132
Project: 71132
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkBriefIntroduction(){
  ScrollUtil.scrollToBase();
  String str1=mDriver.getPageSource();
  if (ElementUtil.isElementPresent(By.id("String_Node_Str"))) {
    mDriver.findElement(By.id("String_Node_Str")).click();
    String str2=mDriver.getPageSource();
    assertEquals(str1.equals(str2),false);
    ScrollUtil.scrollToBase();
    mDriver.findElement(By.id("String_Node_Str")).click();
  }
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkBriefIntroduction(){
  ScrollUtil.scrollToBase();
  String str1=mDriver.getPageSource();
  if (ElementUtil.isElementPresent(By.id("String_Node_Str"))) {
    mDriver.findElement(By.id("String_Node_Str")).click();
    String str2=mDriver.getPageSource();
    assertEquals(str1.equals(str2),false);
    ScrollUtil.scrollToBase();
    mDriver.findElement(By.id("String_Node_Str")).click();
  }
}
Program: 71133
Project: 71133
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str") public void checkRightTopNumTip(){
  AndroidElement e=mDriver.findElement(By.id("String_Node_Str"));
  assertEquals(e.getText().equals("String_Node_Str"),true);
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str") public void checkRightTopNumTip(){
  AndroidElement e=mDriver.findElement(By.id("String_Node_Str"));
  assertEquals(e.getText().equals("String_Node_Str"),true);
}
Program: 71134
Project: 71134
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str") public void checkDownloadInOtherInstall() throws InterruptedException {
  String statusBtnUiSelector="String_Node_Str";
  List<AndroidElement> downloadBtnList=mDriver.findElementsByAndroidUIAutomator(statusBtnUiSelector);
  int eListSize;
  if ((eListSize=downloadBtnList.size()) > 0) {
    AndroidElement targetElement=downloadBtnList.get(RandomUtil.getRandomNum(downloadBtnList.size() - 1));
    assertEquals(targetElement.getText(),"String_Node_Str");
    targetElement.click();
    mDriver.findElement(By.id("String_Node_Str")).click();
    WaitUtil.forceWait(2);
    assertEquals(targetElement.getText(),"String_Node_Str");
    targetElement.click();
    WaitUtil.forceWait(1);
    assertEquals(targetElement.getText(),"String_Node_Str");
  }
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str") public void checkDownloadInOtherInstall() throws InterruptedException {
  String statusBtnUiSelector="String_Node_Str";
  List<AndroidElement> downloadBtnList=mDriver.findElementsByAndroidUIAutomator(statusBtnUiSelector);
  int eListSize;
  if ((eListSize=downloadBtnList.size()) > 0) {
    AndroidElement targetElement=downloadBtnList.get(RandomUtil.getRandomNum(downloadBtnList.size() - 1));
    assertEquals(targetElement.getText(),"String_Node_Str");
    targetElement.click();
    mDriver.findElement(By.id("String_Node_Str")).click();
    WaitUtil.forceWait(2);
    assertEquals(targetElement.getText(),"String_Node_Str");
    targetElement.click();
    WaitUtil.forceWait(1);
    assertEquals(targetElement.getText(),"String_Node_Str");
  }
}
Program: 71135
Project: 71135
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkSearch2Baseline(){
  WaitUtil.implicitlyWait(5);
  AndroidElement eItem=mDriver.findElement(By.id("String_Node_Str"));
  ScrollUtil.scrollToBase();
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkSearch2Baseline(){
  WaitUtil.implicitlyWait(5);
  LogUtil.printCurrentMethodName();
  AndroidElement eItem=mDriver.findElement(By.id("String_Node_Str"));
  ScrollUtil.scrollToBase();
}
Program: 71136
Project: 71136
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkErrorInput4EmptyPage() throws InterruptedException {
  String randomString=RandomUtil.getRandomString(10);
  AndroidElement searchEt=mDriver.findElement(By.id("String_Node_Str"));
  searchEt.click();
  searchEt.clear();
  searchEt.sendKeys(randomString);
  WaitUtil.implicitlyWait(2);
  mDriver.findElement(By.id("String_Node_Str")).click();
  WaitUtil.forceWait(2);
  boolean isPresent=ElementUtil.isElementExistByXpath("String_Node_Str");
  assertEquals(isPresent,true);
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkErrorInput4EmptyPage() throws InterruptedException {
  String randomString=RandomUtil.getRandomString(10);
  LogUtil.printCurrentMethodName();
  AndroidElement searchEt=mDriver.findElement(By.id("String_Node_Str"));
  searchEt.click();
  searchEt.clear();
  searchEt.sendKeys(randomString);
  WaitUtil.implicitlyWait(2);
  mDriver.findElement(By.id("String_Node_Str")).click();
  WaitUtil.forceWait(2);
  WaitUtil.implicitlyWait(2);
  AndroidElement eGame=mDriver.findElementByAndroidUIAutomator("String_Node_Str");
  eGame.click();
  boolean isPresent=ElementUtil.isElementPresent("String_Node_Str");
  assertEquals(isPresent,true);
}
Program: 71137
Project: 71137
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkClick2OtherTab() throws InterruptedException {
  AndroidElement eAll=mDriver.findElementByAndroidUIAutomator("String_Node_Str");
  AndroidElement eSoftware=mDriver.findElementByAndroidUIAutomator("String_Node_Str");
  AndroidElement eGame=mDriver.findElementByAndroidUIAutomator("String_Node_Str");
  assertEquals(eAll.isSelected(),true);
  eSoftware.click();
  WaitUtil.implicitlyWait(5);
  List<AndroidElement> eListSoft=mDriver.findElements(By.id("String_Node_Str"));
  assertEquals(eListSoft.size() > 0,true);
  assertEquals(eAll.isSelected(),false);
  eGame.click();
  WaitUtil.implicitlyWait(5);
  List<AndroidElement> eListGame=mDriver.findElements(By.id("String_Node_Str"));
  assertEquals(eListGame.size() > 0,true);
  assertEquals(eAll.isSelected(),false);
  eAll.click();
  WaitUtil.implicitlyWait(5);
  List<AndroidElement> eListAll=mDriver.findElements(By.id("String_Node_Str"));
  assertEquals(eListAll.size() > 0,true);
  assertEquals(eAll.isSelected(),true);
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkClick2OtherTab() throws InterruptedException {
  AndroidElement eAll=mDriver.findElementByAndroidUIAutomator("String_Node_Str");
  AndroidElement eSoftware=mDriver.findElementByAndroidUIAutomator("String_Node_Str");
  AndroidElement eGame=mDriver.findElementByAndroidUIAutomator("String_Node_Str");
  LogUtil.printCurrentMethodName();
  assertEquals(eAll.isSelected(),true);
  eSoftware.click();
  WaitUtil.implicitlyWait(5);
  List<AndroidElement> eListSoft=mDriver.findElements(By.id("String_Node_Str"));
  assertEquals(eListSoft.size() > 0,true);
  assertEquals(eAll.isSelected(),false);
  eGame.click();
  WaitUtil.implicitlyWait(5);
  List<AndroidElement> eListGame=mDriver.findElements(By.id("String_Node_Str"));
  assertEquals(eListGame.size() > 0,true);
  assertEquals(eAll.isSelected(),false);
  eAll.click();
  WaitUtil.implicitlyWait(5);
  List<AndroidElement> eListAll=mDriver.findElements(By.id("String_Node_Str"));
  assertEquals(eListAll.size() > 0,true);
  assertEquals(eAll.isSelected(),true);
}
Program: 71138
Project: 71138
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkSild2OtherTab() throws InterruptedException {
  AndroidElement e=mDriver.findElementByAndroidUIAutomator("String_Node_Str");
  assertEquals(e.isSelected(),true);
  ScrollUtil.scrollToPrecent(Direction.LEFT,80);
  WaitUtil.forceWait(3);
  ScrollUtil.scrollToPrecent(Direction.LEFT,80);
  WaitUtil.forceWait(3);
  assertEquals(e.isSelected(),false);
  ScrollUtil.scrollToPrecent(Direction.RIGHT,80);
  WaitUtil.forceWait(3);
  assertEquals(e.isSelected(),false);
  ScrollUtil.scrollToPrecent(Direction.RIGHT,80);
  WaitUtil.forceWait(3);
  AndroidElement e1=mDriver.findElementByAndroidUIAutomator("String_Node_Str");
  assertEquals(e1.isSelected(),true);
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void checkSild2OtherTab() throws InterruptedException {
  AndroidElement e=mDriver.findElementByAndroidUIAutomator("String_Node_Str");
  LogUtil.printCurrentMethodName();
  assertEquals(e.isSelected(),true);
  ScrollUtil.scrollToPrecent(Direction.LEFT,80);
  WaitUtil.forceWait(3);
  ScrollUtil.scrollToPrecent(Direction.LEFT,80);
  WaitUtil.forceWait(3);
  assertEquals(e.isSelected(),false);
  ScrollUtil.scrollToPrecent(Direction.RIGHT,80);
  WaitUtil.forceWait(3);
  assertEquals(e.isSelected(),false);
  ScrollUtil.scrollToPrecent(Direction.RIGHT,80);
  WaitUtil.forceWait(3);
  AndroidElement e1=mDriver.findElementByAndroidUIAutomator("String_Node_Str");
  assertEquals(e1.isSelected(),true);
}
Program: 71139
Project: 71139
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkDownloadButtonOpenStatus(){
  String statusBtnUiSelector="String_Node_Str";
  List<AndroidElement> eListStatusBtn=mDriver.findElementsByAndroidUIAutomator(statusBtnUiSelector);
  int statusOpenBtnNum=eListStatusBtn.size();
  if (statusOpenBtnNum > 0) {
    eListStatusBtn.get(RandomUtil.getRandomNum(statusOpenBtnNum) - 1).click();
    String newPackageName=ContextUtil.getPackageName();
    assertEquals(newPackageName != App.PACKAGE_NAME,true);
    AppUtil.softResetApp();
  }
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkDownloadButtonOpenStatus(){
  String statusBtnUiSelector="String_Node_Str";
  LogUtil.printCurrentMethodName();
  List<AndroidElement> eListStatusBtn=mDriver.findElementsByAndroidUIAutomator(statusBtnUiSelector);
  int statusOpenBtnNum=eListStatusBtn.size();
  if (statusOpenBtnNum > 0) {
    eListStatusBtn.get(RandomUtil.getRandomNum(statusOpenBtnNum) - 1).click();
    String newPackageName=ContextUtil.getPackageName();
    assertEquals(newPackageName != App.PACKAGE_NAME,true);
    AppUtil.softResetApp();
  }
}
Program: 71140
Project: 71140
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkRandomClick2Download() throws InterruptedException {
  String statusBtnUiSelector="String_Node_Str";
  List<AndroidElement> eListStatusBtn=mDriver.findElementsByAndroidUIAutomator(statusBtnUiSelector);
  assertEquals(eListStatusBtn.size() > 0,true);
  AndroidElement targetElement=eListStatusBtn.get(RandomUtil.getRandomNum(eListStatusBtn.size() - 1));
  assertEquals(targetElement.getText(),"String_Node_Str");
  targetElement.click();
  mDriver.findElement(By.id("String_Node_Str")).click();
  WaitUtil.forceWait(2);
  assertEquals(targetElement.getText(),"String_Node_Str");
  targetElement.click();
  WaitUtil.forceWait(1);
  assertEquals(targetElement.getText(),"String_Node_Str");
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkRandomClick2Download() throws InterruptedException {
  String statusBtnUiSelector="String_Node_Str";
  LogUtil.printCurrentMethodName();
  List<AndroidElement> eListStatusBtn=mDriver.findElementsByAndroidUIAutomator(statusBtnUiSelector);
  assertEquals(eListStatusBtn.size() > 0,true);
  int randomInder=RandomUtil.getRandomNum(eListStatusBtn.size() - 1);
  AndroidElement targetElement=eListStatusBtn.get(randomInder);
  assertEquals(targetElement.getText(),"String_Node_Str");
  targetElement.click();
  mDriver.findElement(By.id("String_Node_Str")).click();
  WaitUtil.forceWait(2);
  String temp=mDriver.findElementsByAndroidUIAutomator(statusBtnUiSelector).get(randomInder).getText();
  assertEquals(targetElement.getText(),"String_Node_Str");
  targetElement.click();
  WaitUtil.forceWait(1);
  assertEquals(targetElement.getText(),"String_Node_Str");
}
Program: 71141
Project: 71141
Buggy source:
@Test public void initCheck(){
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  boolean isPresent=ElementUtil.isElementPresent(By.id("String_Node_Str"));
  assertEquals(isPresent,true);
  ScreenUtil.screenShot("String_Node_Str");
  WaitUtil.implicitlyWait(2);
}

Fixed version (ground truth):
@Test(enabled=false) public void initCheck(){
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  boolean isPresent=ElementUtil.isElementPresent(By.id("String_Node_Str"));
  assertEquals(isPresent,true);
  ScreenUtil.screenShot("String_Node_Str");
  WaitUtil.implicitlyWait(2);
}
Program: 71142
Project: 71142
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkRandomClick2Detail() throws InterruptedException {
  List<AndroidElement> eListItem=mDriver.findElements(By.id("String_Node_Str"));
  eListItem.get(RandomUtil.getRandomNum(eListItem.size() - 1));
  WaitUtil.forceWait(3);
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  PageRouteUtil.pressBack();
  WaitUtil.forceWait(2);
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkRandomClick2Detail() throws InterruptedException {
  List<AndroidElement> eListItem=mDriver.findElements(By.id("String_Node_Str"));
  LogUtil.printCurrentMethodName();
  eListItem.get(RandomUtil.getRandomNum(eListItem.size() - 1)).click();
  ;
  WaitUtil.forceWait(3);
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  PageRouteUtil.pressBack();
  WaitUtil.forceWait(2);
}
Program: 71143
Project: 71143
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str",riskPoint="String_Node_Str",triggerTime="String_Node_Str") public void testBack4SplashNoCancelTip() throws InterruptedException {
  LogUtil.printCurrentMethodName();
  String packageName=ContextUtil.getPackageName();
  AppUtil.killApp(packageName);
  AppUtil.runInBackground4AWhile();
  WaitUtil.implicitlyWait(2);
  Assert.assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  WaitUtil.implicitlyWait(1);
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str",riskPoint="String_Node_Str",triggerTime="String_Node_Str") public void testBack4SplashNoCancelTip() throws InterruptedException {
  LogUtil.printCurrentMethodName();
  String packageName=ContextUtil.getPackageName();
  AppUtil.killApp(packageName);
  AppUtil.runInBackground4AWhile();
  WaitUtil.forceWait(3);
  WaitUtil.implicitlyWait(1);
}
Program: 71144
Project: 71144
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void testWellSelect() throws InterruptedException {
  WaitUtil.implicitlyWait(5);
  LogUtil.printCurrentMethodName();
  String wellSelectorUiSelector="String_Node_Str";
  AndroidElement wellSelectItemTv=mDriver.findElementByAndroidUIAutomator(wellSelectorUiSelector);
  if (AppUtil.isInstall(App.MM_PACKAGE_NAME)) {
    wellSelectItemTv.click();
    WaitUtil.forceWait(2);
    AppUtil.killApp(App.MM_PACKAGE_NAME);
  }
 else {
    wellSelectItemTv.click();
    AppUtil.handleInfoSwitch2Native();
    mDriver.findElement(By.id("String_Node_Str")).click();
  }
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str",riskPoint="String_Node_Str") public void testWellSelect() throws InterruptedException {
  WaitUtil.implicitlyWait(5);
  LogUtil.printCurrentMethodName();
  String wellSelectorUiSelector="String_Node_Str";
  AndroidElement wellSelectItemTv=mDriver.findElementByAndroidUIAutomator(wellSelectorUiSelector);
  if (AppUtil.isInstall(App.MM_PACKAGE_NAME)) {
    wellSelectItemTv.click();
    WaitUtil.forceWait(2);
    AppUtil.killApp(App.MM_PACKAGE_NAME);
  }
 else {
    wellSelectItemTv.click();
    PageRouteUtil.pressBack();
    if (ContextUtil.getCurrentActivity().equals("String_Node_Str")) {
      AppUtil.handleInfoSwitch2Native();
      WaitUtil.implicitlyWait(2);
      mDriver.findElement(By.id("String_Node_Str")).click();
      System.out.println(ContextUtil.getCurrentActivity());
    }
 else {
      System.out.println(ContextUtil.getCurrentActivity());
    }
  }
}
Program: 71145
Project: 71145
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str",riskPoint="String_Node_Str",triggerTime="String_Node_Str") public void checkGreatGame() throws InterruptedException {
  WaitUtil.implicitlyWait(5);
  LogUtil.printCurrentMethodName();
  ScrollUtil.scrollToPrecent(Direction.LEFT,80);
  WaitUtil.implicitlyWait(2);
  String greatGameUiSelector="String_Node_Str";
  AndroidElement greatGameTv=mDriver.findElementByAndroidUIAutomator(greatGameUiSelector);
  if (AppUtil.isInstall(App.MM_PACKAGE_NAME)) {
    greatGameTv.click();
    WaitUtil.forceWait(2);
    AppUtil.killApp(App.MM_PACKAGE_NAME);
  }
 else {
    greatGameTv.click();
    AppUtil.handleInfoSwitch2Native();
    mDriver.findElement(By.id("String_Node_Str")).click();
  }
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) @Tips(description="String_Node_Str",riskPoint="String_Node_Str",triggerTime="String_Node_Str") public void checkGreatGame() throws InterruptedException {
  WaitUtil.implicitlyWait(5);
  LogUtil.printCurrentMethodName();
  ScrollUtil.scrollToPrecent(Direction.LEFT,80);
  WaitUtil.implicitlyWait(2);
  String greatGameUiSelector="String_Node_Str";
  AndroidElement greatGameTv=mDriver.findElementByAndroidUIAutomator(greatGameUiSelector);
  if (AppUtil.isInstall(App.MM_PACKAGE_NAME)) {
    greatGameTv.click();
    WaitUtil.forceWait(2);
    AppUtil.killApp(App.MM_PACKAGE_NAME);
  }
 else {
    greatGameTv.click();
    PageRouteUtil.pressBack();
    if (ContextUtil.getCurrentActivity().equals("String_Node_Str")) {
      AppUtil.handleInfoSwitch2Native();
      WaitUtil.implicitlyWait(2);
      mDriver.findElement(By.id("String_Node_Str")).click();
      System.out.println(ContextUtil.getCurrentActivity());
    }
 else {
      System.out.println(ContextUtil.getCurrentActivity());
    }
  }
}
Program: 71146
Project: 71146
Buggy source:
@BeforeClass public void beforeClass(){
  mTag=getClass().getSimpleName();
  mDriver=DriverManger.getDriver();
  WaitUtil.implicitlyWait(2);
  PageRedirect.redirect2MainActivity();
  System.err.println("String_Node_Str" + mTag + "String_Node_Str");
}

Fixed version (ground truth):
@BeforeClass public void beforeClass(){
  mTag=getClass().getSimpleName();
  mDriver=DriverManger.getDriver();
  PageRedirect.redirect2MainActivity();
  System.err.println("String_Node_Str" + mTag + "String_Node_Str");
}
Program: 71147
Project: 71147
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"}) public void checkOneGoDownload() throws InterruptedException {
  PageRedirect.redirect2RequestiteActivity();
  WaitUtil.implicitlyWait(5);
  LogUtil.printCurrentMethodName();
  AndroidElement mainButton=mDriver.findElement(By.id("String_Node_Str"));
  mainButton.click();
  WaitUtil.forceWait(3);
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"}) public void checkOneGoDownload() throws InterruptedException {
  PageRedirect.redirect2RequestiteActivity();
  WaitUtil.implicitlyWait(5);
  LogUtil.printCurrentMethodName();
  AndroidElement mainButton=mDriver.findElement(By.id("String_Node_Str"));
  mainButton.click();
  WaitUtil.forceWait(3);
  if (!ContextUtil.getCurrentActivity().equals("String_Node_Str")) {
    WaitUtil.forceWait(3);
  }
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
}
Program: 71148
Project: 71148
Buggy source:
@Test(dependsOnMethods={"String_Node_Str"},dataProvider="String_Node_Str") public void searchDataProvider(String searchKeyWord,String searchResult1,String searchResult2){
  AndroidElement searchEt=mDriver.findElement(By.id("String_Node_Str"));
  searchEt.click();
  searchEt.clear();
  searchEt.sendKeys(searchKeyWord);
  WaitUtil.implicitlyWait(2);
  mDriver.findElement(By.id("String_Node_Str")).click();
  WaitUtil.implicitlyWait(15);
  List<AndroidElement> eList=mDriver.findElements(By.id("String_Node_Str"));
  List<String> textList=new ArrayList<String>();
  for (  AndroidElement e : eList) {
    textList.add(e.getText());
  }
  Assert.assertTrue(textList.contains(searchResult1));
  Assert.assertTrue(textList.contains(searchResult2));
}

Fixed version (ground truth):
@Test(dependsOnMethods={"String_Node_Str"},dataProvider="String_Node_Str",enabled=false) public void searchDataProvider(String searchKeyWord,String searchResult1,String searchResult2){
  AndroidElement searchEt=mDriver.findElement(By.id("String_Node_Str"));
  searchEt.click();
  searchEt.clear();
  searchEt.sendKeys(searchKeyWord);
  WaitUtil.implicitlyWait(2);
  mDriver.findElement(By.id("String_Node_Str")).click();
  WaitUtil.implicitlyWait(15);
  List<AndroidElement> eList=mDriver.findElements(By.id("String_Node_Str"));
  List<String> textList=new ArrayList<String>();
  for (  AndroidElement e : eList) {
    textList.add(e.getText());
  }
  Assert.assertTrue(textList.contains(searchResult1));
  Assert.assertTrue(textList.contains(searchResult2));
}
Program: 71149
Project: 71149
Buggy source:
@Test public void initCheck(){
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  ScreenUtil.screenShot("String_Node_Str");
  WaitUtil.implicitlyWait(2);
}

Fixed version (ground truth):
@Test(enabled=false) public void initCheck(){
  assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  ScreenUtil.screenShot("String_Node_Str");
  WaitUtil.implicitlyWait(2);
}
Program: 71150
Project: 71150
Buggy source:
/** 
 * 点击再次获取,会进入应用信息管理页面（N3）
 * @throws InterruptedException
 */
@Test(dependsOnMethods={"String_Node_Str"},enabled=false) public void checkPermissionRetry() throws InterruptedException {
  AndroidElement showDetailButton=mDriver.findElement(By.id("String_Node_Str"));
  showDetailButton.click();
  WaitUtil.forceWait(2);
  AppUtil.resetApp();
  WaitUtil.forceWait(2);
  Assert.assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  System.out.println("String_Node_Str");
  AndroidElement element=mDriver.findElement(By.id("String_Node_Str"));
  element.click();
  WaitUtil.implicitlyWait(1);
  assertEquals("String_Node_Str",ContextUtil.getCurrentActivity());
}

Fixed version (ground truth):
/** 
 * 点击再次获取,会进入应用信息管理页面（N3）
 * @throws InterruptedException
 */
@Test(dependsOnMethods={"String_Node_Str"}) public void checkPermissionRetry() throws InterruptedException {
  WaitUtil.implicitlyWait(5);
  LogUtil.printCurrentMethodName();
  AndroidElement showDetailButton=mDriver.findElement(By.id("String_Node_Str"));
  showDetailButton.click();
  WaitUtil.forceWait(1);
  AppUtil.resetApp();
  WaitUtil.forceWait(1);
  Assert.assertEquals(ContextUtil.getCurrentActivity(),"String_Node_Str");
  System.out.println("String_Node_Str");
  AndroidElement element=mDriver.findElement(By.id("String_Node_Str"));
  element.click();
  WaitUtil.implicitlyWait(1);
  assertEquals("String_Node_Str",ContextUtil.getCurrentActivity());
}