Learn Selenium and Java for Selenium

Sunday, 3 June 2018

Strings in Java Part3

How are strings stored in memory?

As we know that string can be created via 2 ways i.e by using sting literal (implicit) or by creating a string object using a new keyword.

STRING POOL

  • Whenever a string is created via literal, the value is stored in special memory string pool.
  • JVM looks if there is value is present on the string pool, the same value is allocated to the new string literal
  • String pool will increase the memory efficiency and better performance

String s1 = "Hello";             // String literal

String s2 = "Hello";             // String literal

String s3 = s1;                   // same reference


STRING HEAP
  • Whenever a string is created via new keyword, the value is stored in string heap.
  • Each string object in a heap has its own storage
  • There is no sharing of storage in heap even if two string have same content
String s4 = new String("Hello");  // String object

String s5 = new String("Hello");  // String object













Strings in Java Part 2

String vs String Buffer

String is a immutable and String Buffer is mutable. Confused?, no need to worry just understand the below definition and program , Its easy concept.

String - Let us discuss about sting , String class in Java is immutable because we want to increase the performance so once object is created with some content , if we try to add new content/change the existing object it would not change

Let us see the below program and its output to understand the nature of immutable class

Class String Test
  {
      public static void main(String[] args)
              {
                   String s = new String("Hello");
                         s.concat("World");
                     System.out.println(s);
               }
}

Guessing the output?

Here the output is Hello 

String Buffer - String buffer is mutable class in java , which means if we try modify exiting object value it would get changed.

Class String Test
  {
      public static void main(String[] args)
              {
                   String s = new String("Hello");
                         s.append("World");
                     System.out.println(s);
               }
}

Here the Output would be HelloWorld 




Wednesday, 30 May 2018

How to explain a project in testing interview?


After giving introduction about yourself, the next question that will be asked to you is – Tell me something about the last project you worked on?

This is one of the most frequently asked question in any interview. Isn’t it? Have you goggled it anytime to find out the correct answer? 

Well, I have done that when I was a fresher. : ) Gradually, over a period of few years, I learnt the technique and now I think I can explain any project which is showing up in my resume in an understandable format to anyone.


Thinking, HOW?


It’s very SIMPLE. Your interview result depends upon a lot on the way you explain your project in the interview.


Work for you to do:  You must have worked for minimum 6 months or 1 year on this project, right? So, it’s your responsibility to understand the project architecture. Understand the application behaviour. How does your application (AUT) works? You should know how many modules are there in your project? How do they connect with each other? What happens when you click on module 1 and module 2 or module 3? Are they interconnected? What is end to end functionality? Even, if you have been assigned with only 1 module, you must know about other modules in the application as well. Once you are aware of these things, you can explain the project well.


Explain in this way: What was your role? What did you test? Which testing you performed? Which technology you worked on?Which tools were being used for test case/test script designing, test case/script execution? Which tool used for defect logging and tracking? Was it only manual testing or automation testing too?


If you know answers to all the above set of questions, you are good. 

KEY to this question is – Communicate in such a way that the interviewer understands what you are saying.

BE CONFIDENT. SPEAK CLEARLY AND SPEAK TO THE POINT.

Example: I worked on ABC Project. This project has total 4 modules. I worked on B module. Explain the functionality flow. I was involved in writing test cases/designing test scripts for which we used <tool name>, we executed the test cases/test scripts<tool name>and while testing, we found bugs. For bugs, we used <toolname>. You can explain the framework if worked on automation testing. 


Note: You have to give the answer within 2-3 minutes so that interviewer can ask you further questions. Do not spend 5 minutes or more in explaining the project. You will miss the opportunity. Please do not bore the interviewer. Thanks for reading! I hope, it will help you. 

How to kick-start your career into automation testing ( Selenium with Java)

First and foremost important things is make up your mind that you want to do it. Rest, will fall in place. Have a strong will! Be determined! Once you are sure (in your mind), read ON. 

Learn Java. Start with very basics. What is Java? What is JRE, JDK and JVM? Why do we use Java? Why is the language being so preferred among other languages? Why do we use Java? What makes it special? What are the features that makes Java stand out in programming?  To know answers of all these questions, please explore this site.   

Install Java and related software, set the environment variable (HIGHLY IMPORTANT to make Java work) on your machine and START coding.   

Do not think how you will do it. Do not be afraid before taking a next step. This is the only way to overcome your fears. Just DO it. Instead of spending hours and hours of time on internet, exploring myriad of testing websites, if you refer these two (will tell you more, later), you are good to start your automation journey.   

Many of you must have already known about these sites and you know how to start learning Java but you are afraid how will do coding because being a manual tester, you have never done that.  

THINK positive. And, START. Take ACTION.  

Believe me. You are at the RIGHT place. Look nowhere but here. 

Keep searching for the topics you are looking for. If you do not find it here, request you to comment below so that we can include it in our next tutorial. 

For all manual testers who wants to move to automation testing


Are you a manual tester? Are you planning to move to automation testing? Are you thinking how to switch to automation? Are you nervous about the changing market demand? Are you afraid of learning anything new?
If answers to all questions are YES, please read on. This might help you in overcoming your fears.

Also, you might be thinking that you have rich experience in manual testing and you won’t be facing any difficulty in getting a new job in today’s world. But, my friend, I am sorry to tell you that this is not sufficient.

I know, it feels sad and demotivating. It is difficult to switch from manual to automation but not IMPOSSIBLE. Stay POSITIVE.

Knowledge of manual testing or couple of years of experience in manual testing would not take your anywhere ahead in your career. You cannot climb the ladder of success being in only manual testing.

To sustain in today’s IT era, you need to know MANY other technologies as well. (Not only one).

Do not just limit yourself to manual testing. Broaden your horizon.  

Push your limits. Learn more than you have ever thought you can learn. Learn automation testing. Now, you will another question in mind, how do I learn automation testing? I tell you. 

Pick one programming language. Start with very basics then gradually pick core concepts of the language. For example: Start Java or Python (both are in high demand now a days). Surf net, do browsing. Check some good websites to learn it. Practice examples. 

Join #LinkedIn groups. Be involved in group discussions. Post questions. Give answers to other’s queries. Check YouTube videos. Gain the knowledge as much as you can from anywhere wherever you can get. Once you are confident on the language part, you can start learning automation tool. Example: Selenium which is in trend these days.Start learning day by day. Gain confidence. Start working on a project by your own. Apply the techniques you have learnt and you will see in no time, you will be a successful automation tester. 

As Einstein says: A person who never made a mistake never tried anything new.

So, start learning, make mistakes. Then learn. Fail. Get Up. Rise. Shine. You will surely succeed. My best wishes are with you! 

Please keep coming to this website to gain knowledge. I hope, we will help you out in proceeding your career. Also, if you do not find what you are looking for, kindly comment below so that we can include this in our next tutorials. 



Sunday, 1 April 2018

Strings in Java Part 1

What are Strings in Java?


  • A String is a Sequence of Characters. String is a class in java which is a non mutable(i.e which cannot a change),
    • Creating a string object there are 2 ways
      • String s =" Hello" (Creating string using Assignment operator) 
      • String s = new String("Hello") (Creating string similar to objects are created)
      • new is operator in Java

  • Some of the important methods of Strings are
    • int length() - Returns the lenght of the string
    • String concat(String str)- concatinates specified string
    • String[] split(String regex)- returns splitted string matching regex
    • String trim() -removes beginning and ending spaces of this string.
    • String toLowerCase()- return string in lowercase
    • String toUpperCase() - return string in uppercase
    • boolean equals(String another) // CANNOT use '==' or '!=' to compare two Strings in Java
    • char charAt(int index)              // index from 0 to String's length - 1



Tuesday, 27 March 2018

Practice Club


Hello All,

Introduction:
Most of us studied everything related Autoamtion Testing,but could not get chance to implement.So,We are here with Practice Club.
In this club,we have designed some realtime assignmets for you.Adding more to that we have some automation experts they will review your assignments and provide review comments based on successful implementation and coding standard.

Pointer Structure:
After each assignment completion you will be getting 10 points. Of course there will be some rewards for candidate who has maximum pointers.

Steps:
1)Fill the below given Form
2)Within max 2 days you will recevie Assignment on your email Id
3)Submit your assignments
4)Within max 2 days you will recevie review comments
5)Implement review comments


Let's Start
Please fill up below form.It will just take 1 min.We will be sending assignment to your email id.
https://goo.gl/forms/x0scMISmY1PX90E63

Still any query ,Please feel to write to 'ashvelapure@gmail.com' (Note:Email subject name should start with 'Practice Club')

Popular Posts

Recent Posts



Newsletter

Join our newsletter to get secret tips directly in your inbox!


*We Hate Spam!

Powered by Blogger.