Learn Selenium from My Experience – Part 1


New to Automation(selenium/Appium)? Or Want to start your career as an Automation Tester? Here is a path one should follow to become an expert in automation.

This blog is for the people who are new to the automation world. I will suggest a path so that you can achieve your goal. When one should start doing any new thing, he must be aware of these three things.

1. Why

2. What

3.  How

Why do we need to learn automation?

We need to learn automation because it lessens our efforts, time & resources.

What is automation?

In Software, Automation is an approach to computerize a process which can save human efforts. Similarly, Automation testing is an approach where a tester develops a script and replace human testing by executing the test script.

How can we do this?

If you want to be masters in Selenium or Appium, then the first and must step is JAVA. You should learn the core JAVA from basics. I am suggesting you the minimum topics which one must learn to survive further in automation testing world. The most important topics which you must cover are –

1. OOPS, Concepts – In the OOPS Concept, you must cover Object, Class, Inheritance, Polymorphism, Overloading, Overriding, Abstraction, Encapsulation.

2. Collection Framework – In the collection, you must cover ArrayList from List interface, HashSet and TreeSet from Set interface, HashMap, Iterator & ListIterator.

3. Loops – In loops, For loop, While loop, Do while loop & for each loop. Strong knowledge of loops should be recommended.

4. String – Full concept of String and difference between string object and string literals.

5. String Buffer

6. Data Types

7. Arrays

8. Exception handling

9. Modifiers like Static, Final

When you gain the basic knowledge of core java, do some programming practice,  write down some programs by yourself, so that you become handy.

I will help you with the very good programs which are very frequently asked in interviews from automation testers in my next blog. When you did this much then only I suggest you go further.

After doing this much go for Selenium and Appium. If you skip the first step(Core Java), then you will face issues in all your career. If you learn core Java, then you can also learn some new technologies like cucumber, Extent Reports easily. The base of all these things is Core Java.

Someone said If you want to learn from own experience you can do but it will take lots of time from your life. So learn from others experience. Let me help you with my experience. I have also learned most of the concepts from these links. Please refer these links which are free and very useful.

Below is the pictorial summary of my thoughts.

References –

People who are entirely new to JAVA and want to have in-depth knowledge of  JAVA concepts will refer to this link –

People who need to brush up their concepts will refer to this link-

https://www.javatpoint.com/java-tutorial

For JAVA programming practice refer to this link –

https://www.w3resource.com/java-exercises/basic/index.php

Note: Next part of this blog will come soon.

Advertisements

Microservices Assessment Framework


Mohit is an experienced enterprise architect and blogger. He has consulted various organizations and trained multiple teams to enable them to successfully adopt and improve Microservices architecture.

Based on his experience,  Mohit is working on a Microservices assessment framework for following three objectives.

  1. Readiness – Access whether your organization is ready to adopt Microservices?
  2. Fitness – Access whether Microservices is good fit for your organization?
  3. Review– Evaluate your (Microservices) Architecture and identity area of improvements.

 

blog

Proposed framework access Organization, processes and  base architecture.  You may find various questionnaires accessing following items.

  1. Business Drivers – Determine whether you have clear and valid business drivers for MSA.
  2. Development Velocity – Determine whether you can take benefits from MSA.
  3. Base Architecture – Determine whatever base architeure has all the required
  4. Infrastructure – Determine whether your organization has developer and MSA friendly infrastructure.
  5. Organization Structure – Determine whether you have correct organization structure required for MSA
  6. Processes – Determine whether you have correct organization processes required for MSA
  7. Individual Service Design – Determine capability of each service design.

Stay tuned for More Information. Please contact us for learning more.

 

 

Why Is Swagger JSON Better Than Swagger Java Client?


The Swagger Java-Based Client Using Java Annotations on the Controller layer

Pros and Cons

  • It’s the old way of creating web-based REST API documents through the Swagger Java library.
  • It’s easy for Java developers to code.
  • All API description of endpoints will be added in the Java annotations parameters.
  • Swagger API dependency has to be added to the Maven configuration file POM.xml.
  • It creates overhead on the performance because of extra processing time for creating Swagger GUI files (CSS, HTML, JS etc). Also, parsing the annotation logic on the controller classes creates overhead on the performance, as well. It makes the build a little heavy to deploy on microservices, where build size should be smaller.
  • The code looks dirty because the extra code has to be added to the Spring MVC Controller classes through the Spring annotations. Sometimes, if the description of the API contract is too long, then it makes code unreadable and maintainable.
  • Any change in an API contract requires Java to build changes and re-deployment, even if it’s only simple text changes, like API definition text.
  • The biggest challenge is to share with the clients/QA/BA teams before the actual development and to make frequent amendments. The service consumers may change their requirements frequently. Then, it’s very difficult to make these changes in code and create the Swagger GUI HTML pages by redeploying and sharing the updated Swagger dashboard on the actual deployed dev/QA env.

2. Swagger JSON File Can be Written Separately and Provide Browser-Based GUI

Pros and Cons

  • In this latest approach, all of the above challenges with Java-based client solution have been solved.
  • The developer initially creates a JSON file, shares, and agrees with the service consumer and stakeholders. They will get signed off after many amendments —no code change and re-deployment are required.
  • The code will be cleaner, readable, and maintainable.
  • There is no extra overhead for file creation and processing, performance is better, and the code is more lightweight for microservices, etc.
  • There is no code dependency for any API contract changes.
  • Swagger JSON file resides in the project binaries (inside src/main/resources/swagger_api_doc.json). We can deploy Swagger on one server and can switch to an environment like this.

Note

You can copy and paste swagger_api_doc.json JSON file content on https://editor.swagger.io/. It will help you modify content and create an HTML page like the following.  Swagger GUI will provide the web-based interface like Postman.

Blockchain in Insurance Claims


via Blockchain

Blockchain is a distributed ledger initially used by Bitcoin cryptocurrency and eventually by many banking organizations to record transactions between parties with high security. It is start of Blockchain arena and it is anticipated to have a long sustainability and acceptability in various industries.

One of the biggest use cases in Insurance Industry is adoption of blockchain in claim processing. Insurance contracts involve various parties as agents, brokers, repair shops and third party administrators involving manual work and duplication at various stages of value chain. Using blockchain, verification of transactions will be done without any human intervention and making it completely automated process at various stages.

Benefits for using blockchain in claim processing –

  1. The distributed ledger allows various parties to update the information securely like updating claim forms, evidence, police report etc helping in reduction of loss adjusted (LAE) expenses.
  2. Fraud Detection – As blockchain maintains a ledger of multiple parties, it has ability to eliminate any errors and frauds. Blockchain technology using the high computing power authenticates the customers, policies and transactions.
  3. Payments – Claim payments can be made without any need of intermediary authority for transaction validations which helps in reducing the overall operational cost of claims processing.
  4. As this is highly secured transactions, multi review process will be eliminated resulting into speedy claim processing.