{"action":"opened","issue":{"url":"https://api.github.com/repos/selendroid/selendroid/issues/887","labels_url":"https://api.github.com/repos/selendroid/selendroid/issues/887/labels{/name}","comments_url":"https://api.github.com/repos/selendroid/selendroid/issues/887/comments","events_url":"https://api.github.com/repos/selendroid/selendroid/issues/887/events","html_url":"https://github.com/selendroid/selendroid/issues/887","id":86978897,"number":887,"title":"io.selendroid.exceptions.SessionNotCreatedException: The requested application under test is not configured in selendroid server.","user":{"login":"5654566","id":12783965,"avatar_url":"https://avatars.githubusercontent.com/u/12783965?v=3","gravatar_id":"","url":"https://api.github.com/users/5654566","html_url":"https://github.com/5654566","followers_url":"https://api.github.com/users/5654566/followers","following_url":"https://api.github.com/users/5654566/following{/other_user}","gists_url":"https://api.github.com/users/5654566/gists{/gist_id}","starred_url":"https://api.github.com/users/5654566/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/5654566/subscriptions","organizations_url":"https://api.github.com/users/5654566/orgs","repos_url":"https://api.github.com/users/5654566/repos","events_url":"https://api.github.com/users/5654566/events{/privacy}","received_events_url":"https://api.github.com/users/5654566/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-10T13:52:40Z","updated_at":"2015-06-10T13:52:40Z","closed_at":null,"body":"Hi All,  \r\nFacing issue to run selendroid project for native app,It would be great if any one help me to resolved this issue.\r\n\r\n<b>Following error i am getting:</b>\r\n[TestNG] Running:\r\n  C:\\Users\\MTech\\AppData\\Local\\Temp\\testng-eclipse--600576275\\testng-customsuite.xml\r\n\r\nFAILED CONFIGURATION: @BeforeMethod beforeMethod\r\norg.openqa.selenium.SessionNotCreatedException: The requested application under test is not configured in selendroid server.\r\nio.selendroid.exceptions.SessionNotCreatedException: The requested application under test is not configured in selendroid server.\r\n\tat io.selendroid.server.model.SelendroidStandaloneDriver.createNewTestSession(SelendroidStandaloneDriver.java:205)\r\n\tat io.selendroid.server.handler.CreateSessionHandler.handle(CreateSessionHandler.java:42)\r\n\tat io.selendroid.server.SelendroidServlet.handleRequest(SelendroidServlet.java:143)\r\n\tat io.selendroid.server.BaseServlet.handleHttpRequest(BaseServlet.java:67)\r\n\tat io.selendroid.server.http.ServerHandler.channelRead(ServerHandler.java:50)\r\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)\r\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)\r\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\r\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)\r\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)\r\n\tat io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:163)\r\n\tat io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:148)\r\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)\r\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)\r\n\tat io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787)\r\n\tat io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:125)\r\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)\r\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)\r\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)\r\n\tat io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)\r\n\tat io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)\r\n\tat io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)\r\n\tat java.lang.Thread.run(Unknown Source)\r\n\r\nCommand duration or timeout: 28 milliseconds\r\nBuild info: version: '2.44.0', revision: '76d78cf', time: '2014-10-23 20:03:00'\r\nSystem info: host: 'MTech-PC', ip: '192.168.1.21', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0_80-ea'\r\nDriver info: org.openqa.selenium.remote.RemoteWebDriver\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)\r\n\tat sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\r\n\tat java.lang.reflect.Constructor.newInstance(Constructor.java:526)\r\n\tat org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:204)\r\n\tat org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:156)\r\n\tat org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:599)\r\n\tat org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:240)\r\n\tat org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:126)\r\n\tat org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:153)\r\n\tat com.peddleBuyerLogin.test.PeddleBuyerLogin.beforeMethod(PeddleBuyerLogin.java:46)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)\r\n\tat org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:521)\r\n\tat org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)\r\n\tat org.testng.internal.Invoker.invokeMethod(Invoker.java:605)\r\n\tat org.testng.internal.Invoker.invokeTestMethod(Invoker.java:849)\r\n\tat org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1157)\r\n\tat org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)\r\n\tat org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)\r\n\tat org.testng.TestRunner.privateRun(TestRunner.java:771)\r\n\tat org.testng.TestRunner.run(TestRunner.java:621)\r\n\tat org.testng.SuiteRunner.runTest(SuiteRunner.java:357)\r\n\tat org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)\r\n\tat org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)\r\n\tat org.testng.SuiteRunner.run(SuiteRunner.java:259)\r\n\tat org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)\r\n\tat org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)\r\n\tat org.testng.TestNG.runSuitesSequentially(TestNG.java:1200)\r\n\tat org.testng.TestNG.runSuitesLocally(TestNG.java:1125)\r\n\tat org.testng.TestNG.run(TestNG.java:1033)\r\n\tat org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)\r\n\tat org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)\r\n\tat org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)\r\nCaused by: io.selendroid.exceptions.SessionNotCreatedException: The requested application under test is not configured in selendroid server.\r\nio.selendroid.exceptions.SessionNotCreatedException: The requested application under test is not configured in selendroid server.\r\n\tat io.selendroid.server.model.SelendroidStandaloneDriver.createNewTestSession(SelendroidStandaloneDriver.java:205)\r\n\tat io.selendroid.server.handler.CreateSessionHandler.handle(CreateSessionHandler.java:42)\r\n\tat io.selendroid.server.SelendroidServlet.handleRequest(SelendroidServlet.java:143)\r\n\tat io.selendroid.server.BaseServlet.handleHttpRequest(BaseServlet.java:67)\r\n\tat io.selendroid.server.http.ServerHandler.channelRead(ServerHandler.java:50)\r\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)\r\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)\r\n\tat io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)\r\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)\r\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)\r\n\tat io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:163)\r\n\tat io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:148)\r\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)\r\n\tat io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)\r\n\tat io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787)\r\n\tat io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:125)\r\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)\r\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)\r\n\tat io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)\r\n\tat io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)\r\n\tat io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)\r\n\tat io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)\r\n\tat java.lang.Thread.run(Unknown Source)\r\n\r\n\r\nSKIPPED CONFIGURATION: @AfterMethod afterMethod\r\nSKIPPED: assertSellerCanLogin\r\n\r\n===============================================\r\n    Default test\r\n    Tests run: 1, Failures: 0, Skips: 1\r\n    Configuration Failures: 1, Skips: 1\r\n===============================================\r\n\r\n\r\n===============================================\r\nDefault suite\r\nTotal tests run: 1, Failures: 0, Skips: 1\r\nConfiguration Failures: 1, Skips: 1\r\n===============================================\r\n\r\n[TestNG] Time taken by org.testng.reporters.SuiteHTMLReporter@1f5910e: 49 ms\r\n[TestNG] Time taken by org.testng.reporters.JUnitReportReporter@5e9a94: 9 ms\r\n[TestNG] Time taken by [FailedReporter passed=0 failed=0 skipped=0]: 7 ms\r\n[TestNG] Time taken by org.testng.reporters.EmailableReporter2@904497: 7 ms\r\n[TestNG] Time taken by org.testng.reporters.jq.Main@bf1a4a: 29 ms\r\n[TestNG] Time taken by org.testng.reporters.XMLReporter@115a298: 7 ms\r\n\r\n\r\n\r\n<b>Here is my code:</b>\r\npackage com.peddleBuyerLogin.test;\r\n\r\nimport java.net.URL;\r\nimport java.util.concurrent.TimeUnit;\r\n\r\nimport io.selendroid.SelendroidCapabilities;\r\nimport io.selendroid.SelendroidConfiguration;\r\nimport io.selendroid.SelendroidDriver;\r\nimport io.selendroid.SelendroidLauncher;\r\n\r\nimport org.openqa.selenium.By;\r\nimport org.openqa.selenium.WebDriver;\r\nimport org.openqa.selenium.WebElement;\r\n\r\nimport org.openqa.selenium.remote.DesiredCapabilities;\r\nimport org.openqa.selenium.remote.RemoteWebDriver;\r\nimport org.testng.Assert;\r\nimport org.testng.annotations.AfterSuite;\r\nimport org.testng.annotations.BeforeSuite;\r\nimport org.testng.annotations.Test;\r\n\r\nimport org.openqa.selenium.By;\r\nimport org.openqa.selenium.WebDriver;\r\nimport org.openqa.selenium.WebElement;\r\n\r\nimport org.testng.annotations.Test;\r\nimport org.testng.annotations.BeforeMethod;\r\nimport org.testng.annotations.AfterMethod;\r\nimport org.openqa.selenium.interactions.touch.TouchActions;\r\n\r\npublic class PeddleBuyerLogin {\r\n\tprivate WebDriver driver = null;\r\n\t\r\n\t@BeforeMethod\r\n\t  public void beforeMethod() throws Exception {\r\n\t\t\t\r\n\t\t    driver = new SelendroidDriver(new SelendroidCapabilities(\"com.peddle.buyer:1.31\"));\r\n\t\t    \r\n\t\t       \r\n\t\t    DesiredCapabilities capabilities = new DesiredCapabilities();\r\n\t\t    \r\n\t\t    capabilities.setCapability(\"app-package\",\"com.peddle.buyer\");\r\n\t\t    \r\n\t\t    capabilities.setCapability(\"app-activity\",\"com.peddle.buyer.SplashActivity\");\r\n\t\t    \r\n\t\t    driver = new RemoteWebDriver(new URL(\"http://127.0.0.1:4444/wd/hub\"),capabilities);  \r\n\t}\r\n\t\r\n\t@Test\r\n\t public void assertSellerCanLogin() {\r\n\t\t\r\n\t\t UserDO user = new UserDO(\"nilofar.jargela@marutitech.com\",\"123456\");\r\n\t\t try {\r\n\t\t\tloginUser(user);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t}\r\n      \r\n\tpublic void loginUser(UserDO user) throws Exception {\r\n    \t\r\n    \t driver.get(\"and-activity://io.com.peddle.buyer.BuyerHomeActivity\");\r\n    \t\r\n\t    driver.findElement(By.id(\"radio2\")).click();\r\n\t    driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t    \r\n\t   \r\n\t    driver.findElement(By.id(\"radio3\")).click();\r\n\t    \r\n\t    \r\n\t    \r\n\t    driver.findElement(By.linkText(\"Get started\")).click();\r\n\t    driver.findElement(By.linkText(\"Log in with Peddle\")).click();\r\n\t    \r\n\t    \r\n\t    WebElement Email = driver.findElement(By.id(\"emailInputTextView\"));\r\n\t    Email.sendKeys(user.email);\r\n\t    \r\n\t    driver.findElement(By.id(\"passwordInput\")).sendKeys(user.password);\r\n\r\n\t    driver.findElement(By.linkText(\"Log in\")).click();\r\n\t    Assert.assertEquals(driver.getCurrentUrl(), \"and-activity://TaskInformationActivity\");\r\n\t  }\r\n\t\r\n@AfterMethod\r\n  public void afterMethod() {\r\n\t\tdriver.quit();\r\n  }\r\n\r\n}\r\n\r\nPlease help me...\r\n\r\nThanks,\r\nGunjan.\r\n\r\n "}}