Powered By Blogger

Search Here!

Saturday, August 7, 2021

Task prioritization, how?

Many real-life decision-making situations have several conflicting criteria that need to be considered at the same time. 


It may be hard to choose, but if my team is great at prioritizing tasks, I can deal with a lot of missed tasks, some distractions, and too many meetings.


The better managers in this world know how to get the best from their teams. They can analyze their team’s strengths and weaknesses, and delegate tasks to team members who have the capabilities to carry them out. 


Prioritization Matrix is a decision-making method that allows selecting the most appropriate alternative after evaluating multiple conflicting criteria.


This is what we had implemented in our organization and within my Team.


Prioritization stage

In other way,

In other way
Urgent Vs. Important?

Urgency of a task is largely governed by deadlines. Belongs To DO.
Importance of a task is decided by the impact or significant change it can have on your life or an organization.

Urgency is driven by external factors like deadlines.
Importance is more of an introspective(thoughtful) exercise

What you consider important can differ from what others consider as important.

Examples

What we got call as: Eisenhower Matrix,

Eisenhower Matrix

 In case everything is urgent and important? 

Hear comes: "Prioritization"

The action or process of deciding the relative importance or urgency of a thing or things.

Set Priority Methods,

Ultimately prioritize your tasks will depend on the nature of your job and your personal work style, but there are a few common task prioritization methods that might work for you.

1. Eisenhower Decision Matrix
  • You sort tasks only based on urgency and importance but it’s not tells the order.
2. Eat the Frog 
3. ABCDE Method
4. Chunking


Eat the frog,

When you have two frogs to eat, eat the ugliest one first or
“If it’s your job to eat a frog, it’s best to do it first thing in the morning.”

Eat the frog

Get the biggest, ugliest task out of the way as soon as you can, and the rest will come easily. 

ABCDE method

Separate tasks with similar priorities using the ABCDE method.

Differentiating between tasks that feel like they’re on the same level of importance

Here’s how it works,

Go through your list and give every task a letter from A to E (A being the highest priority).
For every task that has an A, give it a number which dictates the order you’ll do it in.
Repeat until all tasks have letters and numbers.

How to set priority?

Here’s where Brian Tracy’s ABCDE method works wonders. Instead of keeping all tasks on a single level of priority, this method offers two or more levels for each task.

ABCDE method

Combined Eat The Frog and ABCDE Method,

The ABCDE method works well when combined with Eat the Frog.

Eat The Frog says “Get the biggest, ugliest task first”
ABCDE says “Assign each task a letter value according to its level of importance”

If you start your day off with your A and B tasks, then you can spend the rest of your day on tasks with lower importance, like C, D, and E.

How To set level of importance:
Ugliest task
Dependent task

Lets, we have following task’s and complete in 10 days sprint – 

According To Eisenhower Matrix all are “DO” tasks i.e. important and urgent,
  • Essential Testing
  • Defect Verification
  • Regression Testing
  • Execute API Auto 
  • Creating Test Cases for new features
  • Upgrade Testing
  • Installation Testing
  • Device App. Testing

Live workshop: Eat The Frog,

Live workshop: Eat The Frog


Live workshop: ABCDE Method,

Live workshop: ABCDE Method

Live workshop: Combined Method,

Live workshop: Combined Method
Live workshop: Final Combined Method,

Live workshop: Final Combined Method
Conclusion:

- Use Eat the Frog Method
  • Based on weighted and complexity.
- Use ABCDE Method 
  • Always put the dependent task’s on priority.
  • Assign each task a letter value.

- Combine both to set your priority.


When you clearly prioritize your work, you can increase productivity, better manage your time, and feel confident that you’ll hit your deadlines—every time.

Tuesday, June 15, 2021

Setup Automated Mobile Test Build Parameters in Jenkins !

Jenkins File -

properties([ 
disableConcurrentBuilds(),
buildDiscarder(logRotator(numToKeepStr: '25')),
parameters([
string(defaultValue: "localhost", description: 'Server Login IP address', name: 'LOGIN-IP-VALUE'),
choice(choices: ['All','Smoke','Regression'], description: 'Test Suite Name', name: 'Test_Suite_Name'),
choice(choices: ['emulator','device'], description: 'Device Type', name: 'DEVICE_TYPE'),
extendedChoice(name: 'Slave', value: 'Manish,Evan,Max', defaultValue: 'Manish', description: 'Slave Machine Name', type: 'PT_MULTI_SELECT', visibleItemCount: 2)
])
])

node("${env.Slave}") {
stage('Checkout') {
timestamps {
checkout scm
}
}

stage('Test') {
timestamps {
try {
bat 'python.exe -m robot --variable LOGIN-IP-VALUE:%LOGIN-IP-VALUE% --variable DEVICE_TYPE:%DEVICE_TYPE% -d Output -i %Test_Suite_Name% --loglevel TRACE Tests/'
} catch (Exception e) {
emailSubject = "Jenkins build Failure: ${JOB_NAME} #${BUILD_NUMBER}"
emailRecipients = [[$class: 'DevelopersRecipientProvider'], [$class: 'RequesterRecipientProvider']]
emailBody = """
<style>
table {border:1px solid #ccc}
th {border:1px solid #ccc}
td {border:1px solid #ccc}
</style>
<table>
<tr><th>Result</th><td>${e}</td></tr>
<tr><th>Name</th><td>${currentBuild.fullDisplayName}</td></tr>
<tr><th>Job URL</th><td><a href="${JOB_URL}">${JOB_URL}</a></td></tr>
<tr><th>Build URL</th><td><a href="${BUILD_URL}">${BUILD_URL}</a></td></tr>
</table>
""".stripIndent()
emailext attachLog: true, mimeType: 'text/html', subject: emailSubject, body: emailBody, recipientProviders: emailRecipients
throw e
} finally {
stage('Generate report') {
publishHTML([allowMissing: false,
alwaysLinkToLastBuild: true,
keepAll: true,
reportDir:'Output',
reportFiles:'report.html',
reportName:'Mobile Integration Test Report'
])
}
                        }
                }
        }
}

Preview in Jenkins -

As per my assumption out tests should be enough capable to run on the given environment -

LOGIN-IP-VALUE - Execute test's on given IP address.
Test_Suite_Name - Execute tests based on selected types of scenarios.
DEVICE_TYPE - Using emulator or on the real device connected via USB.
Slave - Execute test on different machines based on user identity.


Setup Mobile Automation With Robot Framework And Appium !

 Robot Framework  [only for android]

 Is an open-source test automation framework for acceptance testing and acceptance test-driven development. It follows different test case styles − keyword-driven, behavior-driven, and data-driven for writing test cases.

Appium is an open-source tool to automate native, web and hybrid mobile application.

Setup needed in Windows?

  1. Java 
  2. Android Studio
  3. Android Emulator 
  4. Node.js 
  5. Appium
  6. Robot Framework 
  7. Python - IDE PyCharm
Java Setup -




Android Studio Setup -




Android Emulator Setup -




Node JS Setup -




Appium Setup -


Robot Framework Setup – Install Python -




Robot Framework Setup – Install Robot -


Robot Framework Setup – Install Pycharm - 



Execute Test - 

robot -d Output --loglevel TRACE Tests/Essential/Login.robot
robot -d Output --loglevel TRACE -i Regression Tests/*
robot -d Output --loglevel TRACE -i All Tests/*

Monday, June 14, 2021

Mobile Device Testing using AWS Device Farm !

Device Farm is an app testing service that you can use to test and interact with your Android, iOS, and web apps on real, physical phones and tablets that are hosted by Amazon Web Services (AWS) since 2015.

  There are two main ways to use Device Farm:

  • Automated testing of apps using a variety of testing frameworks.

  • Remote access of devices onto which you can load, run, and interact with apps in real time.


Ways to use Device Farm


Automated Testing Vs. Remote Access

Automated Testing Vs. Remote Access


Problems will solve?
  • The cost and complexity of effective testing is growing
  • Maintain device on lab
  • Manual testing on each device is not practical
  • Record to trace the testing issue

Free Edition Limits in AWS Device Farm?
  • Mobile App package size < 4 GB .
  • Remote Access/ Automated testing only allow 1 hour at most each Session.
Pricing?

Pricing


Sunday, June 13, 2021

Webdriver Wait for window loads !

Wait for window loads and then select the window.

/// Wait for window till it gets load on the page.
///
/// The name of the window.
/// This is time to wait.
/// if the window not loads in the specified interval of time.
/// If the window not exists on the page.
        protected void WaitUntilWindowLoads(string windowName, int timeOut = -1)
        {
            // Intialization of bool 'isWindowPresent' for checking window present
            Stopwatch stopWatch = new Stopwatch();
            stopWatch.Start();
            if (timeOut == -1)
            {
                timeOut = this.waitTimeOut;
            }
            while (stopWatch.Elapsed.TotalSeconds < timeOut)
            {
                try
                {
                    //Wait for window
                    if (WaitUntilWindow(windowName) == true) break;
                }
                catch (Exception)
                {
                    // For Any exceptions catch value is assinged false
                }
            }
        }
  
///
/// Is Window Opened In the Specified Interval of Time or not.
///
/// This is the name of the window.
/// This is the time to wait for window get open.
/// True if the window is opened otherwise false.
/// If the window not able to find in the specified time.
/// If the window not exists on the page.
        protected bool WaitUntilWindow(string windowName, int timeOut = -1)
        {
            Stopwatch stopWatch = new Stopwatch();
            stopWatch.Start();
            if (timeOut == -1)
            {
                timeOut = this.waitTimeOut;
            }
            while (stopWatch.Elapsed.TotalSeconds < timeOut)
            {
                if (WebDriver.WindowHandles.Any(item =>                       WebDriver.SwitchTo().Window(item).Title == windowName))
                {
                    return true;
                }
            }
            stopWatch.Stop();
            return false;
        }