小编Adi*_*iti的帖子

如何在 android 检测测试类中运行单个测试方法以及如何为此更改编辑配置

我在单个 android 检测测试类中编写了多个测试方法,当我尝试运行单个测试方法时,它将运行该类中存在的所有方法。我只想运行一个。

早些时候我能够运行所有,但不知何故配置设置已更改

class HistoryTest{

@Test
fun openHistoryTest{
}

@Test
fun closeHistoryTest{
}

@Test
fun editHistoryTest{
}
}
Run Code Online (Sandbox Code Playgroud)

我想运行一个特定的单一测试方法,比如 openHistoryTest。当前收到错误 - 命令行太长缩短测试“testname”的命令行

testing android automated-tests kotlin android-espresso

7
推荐指数
1
解决办法
488
查看次数

处理命令时发生未知的服务器端错误。无法将命令代理到远程服务器。原始错误:错误:套接字挂起

如果我运行 TestNG 测试类,它会显示错误 ------------

org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. 
Original error: Could not proxy command to remote server. Original error: Error: socket hang up (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 281 milliseconds
Build info: version: '2.53.1', revision: 'a36b8b1cd5757287168e54b817830adce9b0158d', time: '2016-06-30 19:26:09'
System info: host: 'MON-PC305', ip: '10.101.0.119', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_144'
Driver info: io.appium.java_client.android.AndroidDriver
Capabilities [{appPackage=com.app.android.game.app, statBarHeight=84, noReset=false, viewportRect={top=84, left=0, width=1440, height=2308}, deviceName=emulator-5554, …
Run Code Online (Sandbox Code Playgroud)

android exception driver appium-android

6
推荐指数
2
解决办法
5万
查看次数