Can we use Appium and Selenium together for testing and comparing app data with web data? - selenium

We are testing on moblie app using Appium, Which feature is to upload a video on Server. After uploading video it will be visible on Dashboard of Website. The dashboard feature is not present in mobile app. So here We need to check that Video related details using Selenium as it is on Website. Any Suggestion? How can we do this without performing separate tests.

This is integration testing so are in effect two different tests/steps.
You could do it in one project though so you could do something like:
open your mobile app using Appium
upload the video
open a browser using webdriver
navigate to the relevant page and check the video uploaded
close the browser
continue testing or close the mobile app

Related

Is it possible to use a locator for a webpage in an app that uses a webview?

I need to develop regression test automation for the app that switches to webview using selenium, appium.
Can the locator used in the web page be used as it is in the app web view environment?
thank you
It depends on how the views are built for the web and app.
There was a time we were able to use the same selectors for both web E2E and App with the same screens rendered in webview.

Can testcafe connect to a Smart TV development deployed app?

I'm evaluating whether testcafe can be driven inside an embedded app, for instance, a Tizen or WebOS Smart TV.
By creating a runner and browser connection one can make the app be fully controlled by navigating to the remoteConnection URL. [1]. But that's replacing the app itself. I'd rather pass on control via insert a script tag to the app's HTML page. Is this scenario possible (even only a subset of features would be exposed?)
[1] http://devexpress.github.io/testcafe/documentation/using-testcafe/programming-interface/testcafe.html#createbrowserconnection

How to open Electron-based application using Nightwatch framework?

I am looking to automate electron based application, using nightwatch.js
I tried to do it using Java/Selenium but did not succeeded as I was able to open application but not able to perform any action after opening.
Now I read about Nightwatch JS which uses webdriverIO which can help us automate web based applications.
As Electron app is window based application which opens web view in it so thinking of using it.
I managed to do the same and have uploaded a sample project in Github for reference at https://github.com/rik12s/ElectronApp-Automation-Nightwatch.git

How to Launch/Open any other external app from hybrid app? [duplicate]

I have a requirement to open the native version of the hybrid app (.ipa/.apk/.appx) when the hybrid app is requested in a device browser.
I am able to detect the environment using WL.Client.getEnvironment(); method, if it is found to be Android/iPad, I want to launch the respective .apk/.ipa file in the device. Any help is appreciated.
Re-reading this question and the comments several times... I still do not understand the actual scenario... it'd be best to rephrase it.
Scenario: How to open an app from the web browser:
If you have added the following environments to your Worklight application:
Mobile Web
Android
iPhone
And when visiting the Mobile Web version of your app, you want to display a message like "For the full experience, open the full application by clicking here".
Then:
It is implied that the user already has the application installed.
If it is not installed, you need to take care of that somehow
The way to handle this scenario is to use URI schemas:
For Android: How to implement my very own URI scheme on Android
This means that after adding the custom URI schema to AndroidManifest.xml, you could then detect the device OS the Mobile Web app is currently running on and display a custom link: myapp://<the URI schema you've defined>. Tapping it will open the app installed on the device.
For iOS, in a similar fashion: https://coderwall.com/p/mtjaeq
Also see: http://wiki.akosma.com/IPhone_URL_Schemes
Alternate solution: If you are not sure if the app will be installed or not, then instead of using URI schemas you can always point to either Google Play or Apple App Store, to the app page; the user will then have either a "Open" or "Install" link.
Scenario: How to open an app from my own app
If you have a Worklight Hybrid application (Mobile Web is not a Hybrid application), and you want to open another application from within it, you can:
Use the same approach of URI schemas, or
Use Cordova plug-ins
I have created this Worklight 6.1.0 project to demonstrate:
Android - How to open, for example, the Android Settings app from your Worklight Hybrid app
iOS - How to check if Waze is installed and open it, and if it is not installed then to open Apple Maps instead.
See instructions.txt in the apps\test folder.
Are you asking that if the user via their device browser hits the webapp version of your app on the internet, the website will ask the user to fire up the native app on their device? kind of like what ebay does?
if that is what you want check out these pages
android:Launch custom android application from android browser
IOS:
iPhone - Open Application from Web Page

Adding node webkit app as plugin

I have a web-kit app, can any one please help in integrating this web-kit app along with Google chrome browser or is there any other possible way in which I can interrelate this App with a browser?