Skip to main content

Posts

How to get a Wi-Fi password of any active Wi-Fi connection

 If you want to get the Fi-Wi password or If you don't know it and you have to find it then below are the windows commands by which you will bale to find out the password for any Wi-Fi connection. 1. First you need to use below commands on windows console in order to see all active Wi.Fi connections: Command Syntax: wlan show profile It will list all active available Wi-Fi connections. 2. Then From the list of all available Wi-Fi connections you can able to get the password of any one of them and can use it to connect. Below is the syntax for the same. Command Syntax: wlan show profile <any wifi connection name mention here> Key=clear Hope this artical will help you. Thanks for visit to my blog.

Introduction to The API / What is API

1. What is API ? ○ An API (Application Programming Interface) is a software intermediary that enables two applications to communicate with each other. It comprises a number of subroutine definitions, logs, and tools for creating application software. ○ In an API testing interview, you could be asked to give some API examples, here are the well-known ones: Google Maps API, Amazon Advertising API, Twitter API, YouTube API, etc. 2. What is API Testing? ○ In the modern development world, many web applications are designed based on three-tier architecture model. These are: ○ Presentation Tier – User Interface (UI) ○ Logic Tier – Business logic is written in this tier. It is also called Business Tier. (API) ○ Data Tier – Here information and data is stored and retrieved from a Database. (DB) ○ Ideally, these three layers (tiers) should not know anything about the platform, technology, and structure of each other. We can test UI with GUI testing tools and we can test logic tier (API) with API...

JAVA MySQL database connectivity

 JAVA MySQL database connectivity  sample program Below is the the code for Java MySQL database create connection and fetch the data from the database. You need to download Jar or add dependency for java MySQL connector. Please refer following link for the same: https://mvnrepository.com/artifact/mysql/mysql-connector-java Below is the sample code: package test_mysql_connection_demo; import java.awt.BorderLayout; import java.sql.*; import java.util.ArrayList; import java.util.Vector; import javax.swing.JFrame; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTable; public class Test_mysql_connection_demo { public static void main(String args[]){     Test_mysql tm = new Test_mysql(); tm.conData(); boolean b = tm.exSQL("select * from student"); System.out.println(b); }   } class Test_mysql { public Connection con; void conData() {     try { ...

API TESTING IN CYPRESS

  Tutorial 10 – API Testing in Cypress Adding the PDF link as the images are not fully loaded: https://docs.google.com/document/d/1WymhdDurkCURxLHceazF3ozGTDtm4bPMr3gDUcXFfBg/edit?usp=sharing What you will Learn : What is API? API Testing in cypress using cy.request() command (GET method) API Testing in cypress using cy.request() command (POST method) What is API (Application Programming Interface) Look at below figure. When you download some application (example Zoho app, on your mobile or desktop) and when you try to signup, it might ask you if you want to Login with your Gmail/Facebook/Twitter credentials. So when you login using any of these apps, you are successfully logged in. Here, Zoho and Facebook/Gmail are different applications, but they communicate eahc other using APIs. So facebook app exposed some of it’s APIs to provide facility to login Zoho. So API is nothing but a resource through which you are getting information from any database, but you don’t have the direct a...

HANDLING WEBTABLES IN CYPRESS

  Tutorial 9 – Handle Webtable in Cypress Adding the PDF link as the images are not fully loaded: https://docs.google.com/document/d/1bmpugirvL5B4msmjJyBNy6Vf7Jc0oxr7sNwbw68tlbk/edit?usp=sharing What you will Learn : Handle HTML WebTable in cypress Pick any value from table and verify the value Pick a value from specific row and column in a table and verify SCENARIO 1: Pick any value from table and verify the value Launch  http://testautomationpractice.blogspot.com/  and come to be page bottom, you would see an HTML table containing data. We would like to pick any value from this table and want to verify the value. So, let us say, we would like to check the value ‘Javascript’ anywhere in the table. This value might be present anywhere in the table. We will begin by inspecting the table Hover the mouse over <table name=”BookTable”> You would see that entire table gets highlighted Next open chropath & click ‘Selectors’ dropdown Select ‘Css Sel..’ from dropdown. In...

PARAMETERIZATION IN CYPRESS

  Tutorial 8 – Parameterization in Cypress Adding the PDF link as the images are not fully loaded: https://docs.google.com/document/d/1jS0DNytAiMntqVN5fhHRjheA_CCPWCtMAaNEoxi6kjw/edit?usp=sharing What you will Learn : Data driven testing using fixtures (parameterization) What is a fixture and what is data driven testing Where do we create a fixture file? Prepare fixture file Automate a simple flow Load the fixture file using ‘before’ hook Parameterize the test and run it What is a fixture & what is ‘Data driven testing’ We should never hard code our test data (example, abc@gmail.com) inside the code. The reason being, if you hard code the test data inside your script & it is being used at 10 places, tomorrow if the test data changes for any reason (example,  abc@gmail.com  changes to abc1@gmail.com), you have to change your code at 10 places. This is not the correct practice. This would make your code error prone & is time consuming too. Instead, we should kee...