我们希望部署Azure数据库,该数据库位于Visual Studio Online(VSO)中的git源代码控制中,以部署到Azure数据库。该脚本位于SSDT中,我可以在本地使用本地Visual Studio IDE进行部署。
当我尝试使用VSO发布数据库时,它会抛出以下内容:
public class Login {
public static AndroidDriver driver;
@BeforeTest
public void setUp() throws Exception {
File classpathRoot = new File(System.getProperty("user.dir"));
File app = new File("/Users/hanan/Downloads/app-at.apk");
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("deviceName", "Android Emulator");
capabilities.setCapability("platformName","Android");
capabilities.setCapability("platformVersion","4.4");
capabilities.setCapability("app-package", "com.mobikwik_new");
capabilities.setCapability("app-activity", ".MobikwikMain");
capabilities.setCapability("app-wait-activity",
".MobikwikMain");
capabilities.setCapability("appiumVersion", "1.3.7");
//capabilities.setCapability("name", methodName.getName());
capabilities.setCapability("app", app.getAbsolutePath());
new AndroidDriver( new URL("http://localhost:4723/wd/hub"),
capabilities);
}
@Test
public void apiDemo() throws InterruptedException {
Thread.sleep(10000);
WebElement login = driver.findElement(By.id("com.app.aftertax.aftertax:id/Text7"));
login.click();
}
}
我们的VSO构建定义如下所示。
有什么想法吗?
答案 0 :(得分:3)
在类似的帖子中,结果发现问题是 SQL服务器密码未保存。海报做了如下解决:
此处的帖子帖子可供参考:Database project deploy fails in Visual Studio 2013