What is Protractor testing framework

Protractor is a test framework mainly intended for Angular and AngularJS applications.

During Protractor execution you no longer need to add waits specifically to wait for your next test. Protractor can automatically execute the next step in your test the moment the webpage finishes pending transaction.

Protractor expected condition setting code sample below:

var expectedCondition = protractor.ExpectedConditions; var elementOne = element(by.id(‘UserId’)); browser.wait(expectedCondition.presenceOf(elementOne), 10000); expect(elememtOne.isPresent()).toBeTruthy();

Protractor vs Selenium

Protractor vs Selenium

Protractor is a test framework mainly intended for Angular and AngularJS applications. Where as Selenium is developed for any Web Browser Automation. 

During Protractor execution you no longer need to add waits specifically to wait for your next test. Protractor can automatically execute the next step in your test the moment the webpage finishes pending transaction, but in selenium webpage sync has to be coded.

What is Julia

Julia is a programming language suited for Machine Learning. Julia has got lot of advantages compared to Python when it comes to Machine learning. 
Julia is compiled at run time and it uses Just in Time compiler and it is fast compiling.  Julia’s multiple dispatch very is fast and polymorphic dispatch allows for applying function definitions as properties of a struct.
Julia is specifically made for ML and statistics. Also if you check linear algebra,  Julia out performs than Python. For math related operations,  Julia works like R programming language and shows better performance than Python.

What is Selenoid

What is Selenoid ?

Selenoid is an alternative solution for Parallel Selenium test execution when you are not looking for Selenium Grid or Docker selenium.

Like the way Docker selenium out perform over selenium grid, Selenoid also has the advantage over selenium grid being dockerized.

Selenoid has successful implementation of docker containers to kick start browser tests. It provides fresh environment for each test.

In selenoid tests, containes starts with test and getting removed with test execution ends. This gives good performance for this design.

as first step of configuration , you may need to install docker and run selenoid on docker containers. Selenoid-ui is used to track test execution gui mode.

How to Validate the XPATH is correct in Selenium automation

How to validate XPath?
In console type $x(“paste xpath here”) and enter. Result should show the correct element pointing to the xpath.For css, try with $(“paste css here”)
Customized XPath
From html code, we can create XPath and validate.
\\tagName[@attribute=‘value]
Css can created using below formula from html code.
tagName[attribute=‘value’]
Mouse interactions- Actions Class
create an object and use moveToElement and build().perform() method

What is PyTorch

PyTorch is Python based scientific library meant to provide a deep learning platform and also to replace NumPy. 
PyTorch is developed by Facebook.
PyTorch is leveraged by researchers , AI developers and students.
PyTorch offers an easy to Use interface for APIs and also easily integrates with python data science stack.
PyTorch also provides dynamic computational graphs.
Now How to Install PyTorch:
Step 1. Install Anaconda
Step 2. Open Anaconda Command Prompt 
Step 3. conda install pytorch -c pytorch
Step 4. Pip install torchvision and add environment to ipykernel

A back pain story … :)

Ever since I got a full blown back pain in late 2018, I learned on how to differentiate ‘real back pain’ vs ‘regular back pain’ 🙂 
Chiropractic treatment started since then; the expensive hourly Chiropractic sessions started with a theory behind back pain, a much boring one and I was counting every minute waiting for an actual treatment). As per Chiro guy, my muscle systems are tired as it is constantly working to re-align the bone since brain had sensed a misalignment in the hip area :P. That theory proved wrong miserably when I did a low cost $65 MRI while at India during my much awaited vacation in 2019, one can not get a doctor visit for this amount in United States !!!. Almost one year 2018-19 period , I was following Chiropractor’s direction and theory… with tired ‘muscle and brain’ 🙂

Total cost for one year sessions and medications to reboot my tired muscles (as per Chiro theory) = $1200.

India Trip: First half of the India trip was meant for H1Visa stamping Agenda and second half turned out to be an Ayurveda treatment session. Ayurveda team started telling new theory that your back had developed swelling of disc causing muscle pains. I am ready to buy this theory as I noticed back pain triggered right after a much ‘needed’ “Flu Shot” for Winter season. The verdict is 3 weeks traction and oil massage (using heated ‘kizhi’) – refer amazon they know what is kizhi and kizhi products 🙂
My second half of trip has got only 1 week allocated time and could not complete treatment. Came back to US with partial treatment and medications weighing almost 2 pounds. I was advised to finish these medications in a month 🙂

My Findings ! : Finally a good thing happened, I noticed an ad on internet. Thanks to Google and Facebook who is using their AI skills and were peeping at my internet search history !! The product is amazing and reduced my back pain in 2-3 days to no-pain !!!
Amazon link : https://www.amazon.com/dp/B06ZZWZL2F/ref=cm_sw_r_wa_apa_i_hV6hEbYYGYGA8

Then I understood the right path that I need to follow and second product came to my home from Amazon. Second product removed the cause of pain while the first one got rid off the pain itself !
Amazon link : https://www.amazon.com/gp/aw/d/B07ZRJZXF7?psc=1&ref=ppx_pop_mob_b_asin_image

PS: As you know when you watch a horror movie, they end with a hint on next series. I never know when a “Back pain story returns…:)” 

Disclaimer : This is based on my experience and not a medical advice. You should always seek the advice of your physician or any other qualified health provider with any questions or concerns you may have regarding your health.

How to test Latency in Microsoft windows operatin system using PowerShell cmndlets

Eventhough utility like LatencyMon is useful to test Winodws latency, PowerShell provides a cmndlets “Get-Counter” (example copied below). This cmndlets can run for an interval of time or continuously.
E.g for short interval run:
Get-Counter -Counter “\Processor(_Total)\% Processor Time” -SampleInterval 5 -MaxSamples 2

Sample interval 5 means every 5 sec counter checks it and Maxsamples 2 means 2 results are generated.
E.g. for continuous run:
Get-Counter -Counter “\Processor(_Total)\% Processor Time” -Continuous