Giter Club home page Giter Club logo

ionic3-seed-protractor's People

Contributors

3dd13 avatar adamdbradley avatar aggarwalankush avatar awebdeveloper avatar brandyscarney avatar danbucholtz avatar dustinromey avatar fmsouza avatar frederickjansen avatar ghobolds avatar guillenotfound avatar jgw96 avatar jthoms1 avatar manucorporat avatar matheo avatar matiastucci avatar mhartington avatar olivercodes avatar patrickjs avatar ramonornela avatar splaktar avatar tlancina avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ionic3-seed-protractor's Issues

Required platform doesn't exist (API level >= 17)

(node:27402) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
[15:32:41] W/driverProviders - Using driver provider hosted, but also found extra driver provider parameter(s): seleniumServerJar
[15:32:41] I/launcher - Running 1 instances of WebDriver
[15:32:41] I/hosted - Using the selenium server at http://127.0.0.1:4723/wd/hub
[15:32:44] E/launcher - An unknown server-side error occurred while processing the command. Original error: Required platform doesn't exist (API level >= 17)
[15:32:44] E/launcher - WebDriverError: An unknown server-side error occurred while processing the command. Original error: Required platform doesn't exist (API level >= 17)
at Object.checkLegacyResponse (/home/ernesto/Downloads/ionic3-seed-protractor-master/node_modules/selenium-webdriver/lib/error.js:546:15)
at parseHttpResponse (/home/ernesto/Downloads/ionic3-seed-protractor-master/node_modules/selenium-webdriver/lib/http.js:509:13)
at doSend.then.response (/home/ernesto/Downloads/ionic3-seed-protractor-master/node_modules/selenium-webdriver/lib/http.js:441:30)
at
at process._tickCallback (internal/process/next_tick.js:160:7)
From: Task: WebDriver.createSession()
at Function.createSession (/home/ernesto/Downloads/ionic3-seed-protractor-master/node_modules/selenium-webdriver/lib/webdriver.js:769:24)
at createDriver (/home/ernesto/Downloads/ionic3-seed-protractor-master/node_modules/selenium-webdriver/index.js:170:33)
at Builder.build (/home/ernesto/Downloads/ionic3-seed-protractor-master/node_modules/selenium-webdriver/index.js:635:14)
at Hosted.getNewDriver (/home/ernesto/Downloads/ionic3-seed-protractor-master/node_modules/protractor/built/driverProviders/driverProvider.js:53:33)
at Runner.createBrowser (/home/ernesto/Downloads/ionic3-seed-protractor-master/node_modules/protractor/built/runner.js:195:43)
at q.then.then (/home/ernesto/Downloads/ionic3-seed-protractor-master/node_modules/protractor/built/runner.js:339:29)
at _fulfilled (/home/ernesto/Downloads/ionic3-seed-protractor-master/node_modules/protractor/node_modules/q/q.js:834:54)
at self.promiseDispatch.done (/home/ernesto/Downloads/ionic3-seed-protractor-master/node_modules/protractor/node_modules/q/q.js:863:30)
at Promise.promise.promiseDispatch (/home/ernesto/Downloads/ionic3-seed-protractor-master/node_modules/protractor/node_modules/q/q.js:796:13)
at /home/ernesto/Downloads/ionic3-seed-protractor-master/node_modules/protractor/node_modules/q/q.js:556:49
[15:32:44] E/launcher - Process exited with error code 199

Cannot reproduce

Hey @fmsouza ,

Do you have any ideia why I'm getting this error when running e2e:

  1. Home default screen should have a title saying Home
    Message:
    Failed: io.selendroid.server.common.exceptions.SelendroidException: SyntaxError: Missing catch or finally after try
    at io.selendroid.server.handler.script.ExecuteAsyncScript.safeHandle(ExecuteAsyncScript.java:38)
    at io.selendroid.server.handler.SafeRequestHandler.handle(SafeRequestHandler.java:86)
    at io.selendroid.server.AndroidServlet.handleRequest(AndroidServlet.java:264)
    at io.selendroid.server.common.BaseServlet.handleHttpRequest(BaseServlet.java:67)
    at io.selendroid.server.common.http.ServerHandler.channelRead(ServerHandler.java:53)
    ...

Thanks

Cannot find module 'tsconfig' when running npm run e2e

  throw e;
                ^

Error: Cannot find module 'tsconfig'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/XXXXX/XXXXXX/XXXXX/SourceCode_ionic_testing/node_modules/ts-node/dist/index.js:23:18)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)

I have tsconfig.json file in at /src folder as well as on root folder.

at /src/tsconfi.json

{
  "compileOnSave": false,
  "compilerOptions": {
    "declaration": false,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "module": "commonjs",
    "moduleResolution": "node",
    "outDir": "../dist/out-tsc-e2e",
    "sourceMap": true,
    "target": "es5",
    "typeRoots": [
      "../node_modules/@types"
    ]
  }
}```

at root:

{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [
"dom",
"es2015"
],
"module": "es2015",
"moduleResolution": "node",
"sourceMap": true,
"target": "es5",
"baseUrl": "./src",
"paths": {
"@app/env": [
"config/environment"
]
}
},
"include": [
"src//*.ts"
],
"exclude": [
"node_modules",
"src/
/.spec.ts",
"src/**/tests/
.ts"
],
"compileOnSave": false,
"atom": {
"rewriteTsconfig": false
}
}


Please let me know whats wrong I am doing.

Fresh clone not starting

I'm interested in a seed like this one. Just followed instructions, installed ionic & cordova, cloned the project and ran npm install. Any subsequent command (start, run android...) fails the same way. It seems like it can't transpile the tests:

[14:38:19]  typescript: c:/proyectos/MobileA/src/pages/home/home.e2e.ts, line: 7
            Cannot find name 'it'.

   L7:      it('should have a title saying Home', () => {
   L8:        browser.getTitle().then(title => {

[14:38:19]  typescript: c:/proyectos/MobileA/src/pages/home/home.e2e.ts, line: 9
            Cannot find name 'expect'.

   L8:  browser.getTitle().then(title => {
   L9:    expect(title).toEqual('Ionic');
  L10:  });

And it continues for a long list. Do I need to install something else?

Running E2E tests on Android Emulator

Hi @fmsouza ,

When I ran the e2e tests on my Android Emulator, the tests didn't finish.

The command prompt remained stuck at one point.

Here are the files for your reference

apium.capaillities.js

module.exports = { browserName: '', autoWebview: true, platformName: 'android', platformVersion: '8.1.0', deviceName: 'emulator-5554', newCommandTimeout: 60, app: 'path to apk\\android-debug.apk' };

On actual device, tests exit properly & show correct output.
But on Android Emulator, it just remains stuck as per image attached.

Can you please provide steps to run e2e tests on Android emulators ?

Please help.

appium-logs
e2e-on-windows

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.