Comments (7)
Hi,
First of all great work on Protractor. Still fresh but looks promising.
A bit related to that issue, I was wondering if you're planning to create a grunt-protractor task? If not I might just do it myself... but for that i'll need to wait for it to be a node module.
Thanks
from protractor.
I'm going to spend some time on this issue this afternoon. Hopefully it'll be a quick PR, but I'm not certain how much effort is involved.
from protractor.
I made a little progress Friday. It will take a little bit of time to write unit tests, given the complexity of mocking the different APIs.
from protractor.
@jeffbcross Just an idea for unit testing: If you find the point where webdriver.js does it's http calls to the selenium server and replace that with a mock, you might not need to mock the whole webdriver.js API, but only those http calls, which are also documented (http://code.google.com/p/selenium/wiki/JsonWireProtocol). This would result in a kind of integration test that are still very fast.
from protractor.
ping @jeffbcross, what about that? Can we help?
from protractor.
We're running via grunt using shell commands with an express server that we fire up:
grunt.loadNpmTasks('grunt-shell');
...
/**
* Protractor Bin path mapping for supporting windows based development.
*/
var protractorBinPath = "node_modules/protractor/bin/";
var isWin = !!process.platform.match(/^win/);
...
/**
* Changing references for windows execution.
*/
if(isWin) {
protractorBinPath = "node_modules\\.bin\\";
}
...
/**
* Run shell commands.
*/
shell: {
// run protractor e2e testing
protractor: {
options: {
stdout: true
},
command: protractorBinPath + 'protractor protractor.conf.js'
}
}
...
/**
* Individual task to run e2e test alone using connect web server.
*/
grunt.registerTask('e2e:stand-alone', ['express', 'shell:protractor']);
Followed by:
$ grunt e2e:stand-alone
And we have this wrapped up into our larger build process.
from protractor.
I wrote a Grunt plugin for running the protractor runner. https://github.com/teerapap/grunt-protractor-runner
from protractor.
Related Issues (20)
- Problems with interacting with page elements after closing iframe on Chrome 94
- Twistlock security scan shows that private keys are stored in the container
- Support on Protractor after 2022 and any plans for licensed version HOT 7
- Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL. HOT 4
- Callback function is taking long after completing the run in the protractor testcase
- [BUG] Upgrade transitive dependency "[email protected]" to fix CVE-2021-3918 HOT 1
- [BUG] input with dropdown use clear the selected tag won't remove, and click will click on the text not the element.
- Is protractor no longer working when using Angular 13? HOT 8
- protractor.Key.chord() broken in the latest chromedriver HOT 3
- Prototype Pollution in minimist
- qs version CVE-2021-44907 (High) detected in my repo dependencies
- need support for finding element under shadow root HOT 3
- Feature request - html to pdf
- Git.io deprecation notice
- Getting the ERROR "This driver instance does not have a valid session ID (did you call WebDriver.quit()?) and may no longer be used." When I try to use restart() or close() method HOT 2
- Deprecated warning with Protractor HOT 2
- Interview partners for research about communication in GitHub projects wanted
- Can existing Protractor automation scripts developed in year 2020 supported on windows 2019 OS server
- webdriver Manager , chrome version higher then 114 HOT 3
- Migrate Protractor to Playwright
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from protractor.