angular-e2e

Can't run Angular > 2 e2e using protractor behind a proxy

风格不统一 提交于 2019-12-07 17:10:37
问题 will appreciate any help! I'm running on windows I installed protractor Version 5.3.0 globally Before updating webdriver I ran: webdriver-manager clean And updated version as follows: webdriver-manager update --ie32 --proxy http://my-proxy:8080 --ignore_ssl node version 9.2.1 npm version 5.7.1 started dev server before starting e2e.. my protractor.conf file is as follows: const { SpecReporter } = require('jasmine-spec-reporter'); exports.config = { allScriptsTimeout: 11000, specs: [ './e2e/**

Angular 2 e2e using protractor: by.model not working

天涯浪子 提交于 2019-12-07 08:42:56
问题 While writing test cases using protractor.js for Angular 2 application , if I want to get element(by.model("xyz.test")) its always giving failure saying angular is not defined. Any idea how to fix this issue? 回答1: As mentioned by @Carmen Popoviciu, who is one of the contributors to the Protractor style guide, by.model and by.binding are not yet working with Protractor and Angular 2: "Keep in mind that currently not all locator strategies are supported for ng2 apps. Things like by.model() or

Can't run Angular > 2 e2e using protractor behind a proxy

邮差的信 提交于 2019-12-05 18:53:11
will appreciate any help! I'm running on windows I installed protractor Version 5.3.0 globally Before updating webdriver I ran: webdriver-manager clean And updated version as follows: webdriver-manager update --ie32 --proxy http://my-proxy:8080 --ignore_ssl node version 9.2.1 npm version 5.7.1 started dev server before starting e2e.. my protractor.conf file is as follows: const { SpecReporter } = require('jasmine-spec-reporter'); exports.config = { allScriptsTimeout: 11000, specs: [ './e2e/**/*.e2e-spec.ts' ], capabilities: { 'browserName': 'chrome', 'proxyType': 'manual', 'httpProxy': 'http:/

Angular 2 e2e using protractor: by.model not working

╄→尐↘猪︶ㄣ 提交于 2019-12-05 11:55:17
While writing test cases using protractor.js for Angular 2 application , if I want to get element(by.model("xyz.test")) its always giving failure saying angular is not defined. Any idea how to fix this issue? As mentioned by @Carmen Popoviciu, who is one of the contributors to the Protractor style guide, by.model and by.binding are not yet working with Protractor and Angular 2: "Keep in mind that currently not all locator strategies are supported for ng2 apps. Things like by.model() or by.binding() are not working just yet. Check the Protractor changelog for new releases" https://github.com

angular e2e testing : how to test Service inject(use) another services

一曲冷凌霜 提交于 2019-12-02 15:35:50
问题 i'm trying to test my service with e2e test angular 7, my problem is i don't know how to do that: it's my service, (the methode return Observable): import { Injectable } from '@angular/core'; import { UrlDecoratorService } from "../../common/url-decorator.service"; import { APIFetcherService } from "../common/api-fetcher.service"; import { Observable } from 'rxjs'; import { IALChrono, ALChrono } from '../../common/IALChrono.interface'; @Injectable() export class AnnonceChronoDetailService {

angular e2e testing : how to test Service inject(use) another services

好久不见. 提交于 2019-12-02 08:33:38
i'm trying to test my service with e2e test angular 7, my problem is i don't know how to do that: it's my service, (the methode return Observable): import { Injectable } from '@angular/core'; import { UrlDecoratorService } from "../../common/url-decorator.service"; import { APIFetcherService } from "../common/api-fetcher.service"; import { Observable } from 'rxjs'; import { IALChrono, ALChrono } from '../../common/IALChrono.interface'; @Injectable() export class AnnonceChronoDetailService { private months: string[]; constructor(private urlDecoratorService: UrlDecoratorService, private

e2e testing angular 7: Failed: Cannot read property 'fetchData' of undefined

假装没事ソ 提交于 2019-11-29 16:22:55
I'm trying to do some e2e testing for my service in angular 7, the method return Observable, this is my methode: import { Injectable } from '@angular/core'; import { UrlDecoratorService } from "../../common/url-decorator.service"; import { APIFetcherService } from "../common/api-fetcher.service"; import { Observable } from 'rxjs'; import { IALChrono, ALChrono } from '../../common/IALChrono.interface'; @Injectable() export class AnnonceChronoDetailService { private months: string[]; constructor(private urlDecoratorService: UrlDecoratorService, private apiFetcher: APIFetcherService) { }

e2e testing angular 7: Failed: Cannot read property 'fetchData' of undefined

十年热恋 提交于 2019-11-28 11:00:25
问题 I'm trying to do some e2e testing for my service in angular 7, the method return Observable, this is my methode: import { Injectable } from '@angular/core'; import { UrlDecoratorService } from "../../common/url-decorator.service"; import { APIFetcherService } from "../common/api-fetcher.service"; import { Observable } from 'rxjs'; import { IALChrono, ALChrono } from '../../common/IALChrono.interface'; @Injectable() export class AnnonceChronoDetailService { private months: string[];