-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add appium support #4
Comments
Comment by mario-ortiz This integration would be great. Are there any news about this? |
Comment by samhatoum If you start all the tools manually, you can connect chimp to appium using --host This is a lot of work for us to do right now, maybe a PR though :) |
Comment by mario-ortiz thank you Sam |
Comment by DutchRican Does anyone have a working example for this? Setting these values in the CLI for Chimp is resulting in an error: |
Comment by mario-ortiz I actually had to make some changes to the chimp_helper.js file, but it's working great after that. Not sure if the best solution tho. Go to node_modules\chimp\lib and open chimp_helper.js |
Comment by DutchRican Thank you Mario! The line count is not accurate any more. Right above the log output what the webdriveroptions are should be fine. I had to modify your suggestion to this: |
Comment by the-boletus Modifying the existing code does not feel right though. :) Well, it makes the deployment procedure difficult. But there is a piece of code in the same chimp_helper.js saying about "customChimpConfigPath":
I haven't found any information about the config file. What's the config's structure and could we use it for setting desired capabilities? |
Comment by Sanjo @the-boletus Yes, I think that was the purpose of the customChimpConfigPath option. To start with the file would roughly contain:
|
Comment by mario-ortiz Thank you @sanjo, one quick question. I already copied the lines that you mentioned to my new chimp.js file, but I'm not sure what should I return from this file for the platform to work. I tried returning the 'return remoteSession(webdriverOptions)', but doesn't seem to work. Unless I change the chimp-helper line from this var customChimpConfigurator = wrapAsync(require(customChimpConfigPath)); to this var customChimpConfigurator = require(customChimpConfigPath); So it seems I need to return it in a specific way, but I haven't been able to found the right way to do it. |
Comment by Sanjo Oh the expected custom function must be a function with a callback. The correct signature is: module.exports = function (sessionManager, callback) {
// Modified version of: https://github.com/xolvio/chimp/blob/master/src/lib/chimp-helper.js#L95-L136
var remoteSession = wrapAsync(sessionManager.remote, sessionManager);
callback(null, remoteSession(webdriverOptions))
}; Maybe we can change this to a sync style function before 1.0. (And add the documentation). |
Comment by mario-ortiz Thank you @sanjo, working great now. I just changed |
Comment by Sanjo I have added a documentation page for the custom WebDriver configuring. |
Comment by andyhite Unless I'm totally misunderstanding this, the custom webdriver stuff doesn't seem to work for me. The |
Comment by samhatoum I think you might be right. Looking here: It looks like that's the variable name and not the option name. Tracking bug here: |
Comment by andyhite Good to know I'm not going crazy :-P I was able to get around this by just dropping the file with the callback into |
Comment by gbhatnag Will adding the custom WebDriver config alone add support for Appium? I don't see options related to Appium or mobile testing available in the WebDriver config docs. I'm new to the Chimp / Appium worlds and need a way to test Cordova mobile apps that we've created for a Meteor app. I've got Chimp set up, connected to my Meteor app and can run tests against the server. I'm now interested in testing the Could someone point me in the right direction (docs, tutorials, videos, other) to get this combo of Meteor + Chimp + Appium set up? |
Comment by gbhatnag I should add: we don't need to test directly on an iOS or Android device just yet. Simulators are just fine. |
Comment by gbhatnag Any suggestions here? Using Chimp thus far is going well and looking forward to testing our Cordova apps. |
Comment by PierreCBSI running Chimp on my desktop, would like to see more details about connecting with Appium - maybe an official page? |
Issue by samhatoum
Saturday Jul 11, 2015 at 21:28 GMT
Originally opened as xolvio/chimp#33
Just like Selenium but Appium
Also see if calaba.sh can be used here
The text was updated successfully, but these errors were encountered: