Skip to main content

Posts

Showing posts from May, 2017

Do not choose the shoes that hurt your feet.

When you find something that’s worth fighting for you never give up. No matter how many times life will tread on you, you will always keep your value. Our value is not created by the price of your clothes, our bank balance, the job title that we have or how much famous we are. We should building up our life. Sometime you feel that you cannot do this anymore. It hurts. When we grow up, we are starting to build up barriers in our mind. We say “I cannot do this anymore”. That’s because we start worrying about what people think and say about us.  People will laugh at you when you do mistakes but it is ok to make mistakes. No need to be afraid because it is better than do nothing and learn nothing. One day your mistakes will be your greatest opportunity to do your next adventure because tomorrow will be another day. People will laugh at your dreams, your ambitions, partner that you choose and your job etc. They will say that you cannot make your dreams come true. Never ...

Java basic for Selenium - Selenium Tutorial II

Today we are talking about Array. The software tester should have some basic knowledge about java when writing selenium scripts for the validations. Array is a data structure where stored in elements in same data type. The declaration and initialization an array as follows. int[]  Array_a;   or  int  Array_a[]; - This is an integer array. int[10] = Array_num;  - This is an integer array which stores 10 elements. Array_num[0] = 10;    - Assign value 10 to 0 th element of array. (Index [0]) int[]   Array_num = { 1, 2, 3, 4, 5 };  Finding maximum value of an array Finding minimum value of an array Finding average value of an array Find the key of an array Reverse an array The time complexity of this algorithm is   O(n/2)   which is O(N) because we are iterating over array till midpoint only. The initial iteration is happening as follows The...