Tech Me More

To quench our thirst of sharing knowledge about our day to day experience & solution to techincal problems we face in our projects.

Advertise with us !
Send us an email at diehardtechy@gmail.com
Showing posts with label android. Show all posts
Showing posts with label android. Show all posts

Monday, February 8, 2016

How to run two different application on two physical android devices in parallel?

Parallel execution of android applications have become a need now days given that number of test scenarios are higher. 

Parallel execution is done to achieve maximum test coverage with minimal time.

Appium provides a way for parallel execution.

To achieve this , we have to do the following steps.
  1. We need to start 2 appium instances on different ports.
  2. Boot strap port numbers for both the instances must be different.
  3. provide the unique identifier of physical devices using -U flag.
  4. If you are trying to run an Hybdrid application in parallel, make sure you start chrome driver on 2 different ports.


You can skip the point 4 if you are automating native android apps.

To start appium server you must have node.js installed or you can use default node executable residing inside appium installation directory.

1. Open a command prompt in admin mode and navigate till main.js file inside appium installation directory.

Main.js is find here: 

C:\Program Files (x86)\Appium\node_modules\appium\lib\server

2. run the below commands in different command prompt window. 

node main -p 4725 -bp 2293 -U place device 1 UDID--chromedriver-port 6000

node main -p 4724 -bp 2292 -U place device 2 UDID--chromedriver-port 6001

You will see appium server up and running on 2 different ports.


Instance 1

Instance 2


3. Now go to your testng.xml file and pass port number and device name as parameter from your testng.xml suite file.

Please make sure parallel attribute inside <suite> must be set to tests.


<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Preserve order test runs" parallel="tests">
   <test name="Test for account settings Mobile" preserve-order="true" >
        <parameter name="appName" value="accounts_582.apk" />
        <parameter name="deviceName" value="HTC Nexus 9" />   
        <parameter name="paramName" value="4724" />     
        <classes>
          <class name="omniauto.tests.Accounts_AndroidTest"></class> 
              <class name="omniauto.tests.AggregatedAccount_Settings"></class> 
              <class name="omniauto.tests.ManualAccountSettings_Test"></class> 
        </classes>
    </test>
    <test name="Test suite for account group setting Mobile" preserve-order="true" >
        <parameter name="appName" value="accountgroupsettings_582.apk" />
        <parameter name="deviceName" value="Samsung I9500 Galaxy S4" />
        <parameter name="paramName" value="4725" />
        <classes>
            <class name="omniauto.tests.Account_Group_Settings"></class>
        </classes>
    </test>
    
</suite>



4. Use that port number in forming your driver instance. 

driver = new AppiumDriver(new URL("http://127.0.0.1:"+portNum+"/wd/hub"), capabilities);

Happy learning ! :)

Wednesday, June 18, 2014

Smartphones in range between 15500 to 18000 : Android/Window

In todays date smartphones are the need of everyone, be it student or professionals every one wants to connect with their friends on social networking applications like facebook, whatsapp, wechat, line, skype, instagram etc. 

Smart phone has it all, smartphone provides features like scanner, high definition video recording, connect to office through phone, pdf reader and much more ..

As smart phones are best at their work but they cost fancy too, for people who want to purchase mid range phone say 15500-18000 , choosing a smart phone can be a tedious job.

Well, you dont need to worry about it, we have compiled the list of best available phone in range starting from 15500 to 18000.


#1 Samsung Galaxy S4 Mini 

Samsung is a trusted and most loved brand as of date in India. Samsung offers smart phones with affordable prices & best look. Samsung Galaxy s4 mini is the phone which has all the features starting from latest version of android to support with all the app.





#2 Nokia Lumia 1320

Nokia's windows OS for mobile is what Nokia is most proud of. Nokia Lumia with Awesome look & features is an absolutely good choice for this money range. Lumia have interactive UI adding stars in its look. 





#3 BlackBerry Q5

Blackberry Q5 is for all those who want style with smart phone. A royal look with incomparable feature makes black berry stand out of queue.  Those who prefer keypad over touch screens, this phone is one they are looking for.





#4 HTC Desire SV

HTC Desire will always be in demand for its touch quality along with all the features which every other smart phone provides. A unique shape of phone makes HTC choice of thousand customers world wide.



#5 LG G Pro Lite D686

LG : LG g pro lite phone is slim, good looking , wide smart phone. Big in size with Android v4.1 (Jelly Bean) operating system LG is all the way right choice for your money . It has 1 GHz Dual Core processor with 8 Megapixel camera. 




Comment your views , keep visiting us.

Sunday, February 23, 2014

What you can expect after Facebook, Whatsapp deal.

After deal with Facebook what we can expect from Whatsapp.



  1. Hide your "last seen" status: If rumors are to be believed the updated version of Whats App may incorporate changes in one of the most demanded features of Whats app i.e. Last seen status.

    The latest functionality may also allow users to hide their 'last seen' status from bunch of contact, all their contacts or only from contacts in their phone book.

    This feature has been available to iOS users of Whats app for quite some time but as Android is the big market incorporating
     new feature in android version of application will affect more audience.
  2. Hide your profile picture and Status: In addition to the new feature, Whats App also released another change. This change will allow you to hide your profile picture and status from people who are not in your phone book. This feature will be available to android.
             The new version is not yet available on the Play Store.