Posts

Showing posts from July, 2015

How to know app package and activities information without having apk | android app | Appium

Image
How to know app package and activities information without having apk | android app | Appium In Android app mobile automation,we need apk file of app but sometimes we have to perform action on inbuild app(pre installed) which come with device like call,sms etc.. for this we do not have apk file. Basically in android app automation we need app package information  and app activities. In case of apk it is easy to get above information with appium. But if we do not have apk and need the app package/activities information, we can use following command: Precondition:  1. Android mobile must have developer option set to true. 2. ADB (Android debug bridge) must be configure 3. Android SDK installed. Step1. Open then command terminal type adb devices  and press enter It will confirm that your device is connected and able to recognize by android sdk. Step2: Now in mobile, open the app of which you want to get app pkg info/activities. In your m...

WebDriver compare data/css between two pages

Hi All, In Web based project like implemented in CQ5 where we have to check same site for different country. For this we have to rollout/replicate some/all pages for different countries OR I can say downloaded/uploaded the production data in testing environment or vice versa. After this we have to validate page static data (like text) with production site Data, page wise validation. E.g.  One page of US site and replicate the same page for another country then verify page content or css For this we have to check manually, we can automate the same. I assume both pages having same text content (English). Logic to implement this: • First we have to analyze page objects properties (what are the common page objects (elements) properties are being used) like class, id, type etc and create array of this. • Then we have to get all elements from the base page(expected) using xpath(//*) • For each element get all properties and value using java script and store only those element...