<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by kishori joshi on Medium]]></title>
        <description><![CDATA[Stories by kishori joshi on Medium]]></description>
        <link>https://medium.com/@kishorijoshi07?source=rss-e73b36212262------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*OTP2fmTDsYMuCVVP</url>
            <title>Stories by kishori joshi on Medium</title>
            <link>https://medium.com/@kishorijoshi07?source=rss-e73b36212262------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 23:52:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kishorijoshi07/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to upload source code files to GitHub Repo?]]></title>
            <link>https://medium.com/@kishorijoshi07/how-to-upload-source-code-files-to-github-repo-8df7aef5deab?source=rss-e73b36212262------2</link>
            <guid isPermaLink="false">https://medium.com/p/8df7aef5deab</guid>
            <dc:creator><![CDATA[kishori joshi]]></dc:creator>
            <pubDate>Wed, 15 Jun 2022 20:41:45 GMT</pubDate>
            <atom:updated>2022-06-15T20:41:45.332Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/469/1*Jo2w6PGhb0ZgB3vKW6IZIw.png" /></figure><p>Let’s first understand what is Git, GitHub and Git Bash.</p><p><strong>Git</strong> — Git is a DevOps tool used for source code management in software development. It is free and open source version control system used to handle small to large projects efficiently.</p><p><strong>GitHub</strong> — GitHub is an open source repository hosting service that provides a web-based graphical interface. GitHub repository contains all project’s files and each file’s revision history.</p><p><strong>Git Bash</strong> — Git Bash is an application for Microsoft Windows, allowing developers to use Git in a command-line interface.</p><p>This article will show you steps on “How to upload project folder to GitHub repository with Git Bash”.</p><p>1. Create an account on <a href="https://github.com/">https://github.com/</a></p><p>2. Sign in to your GitHub account and click on Repositories →New. Enter repository name and click on Create repository.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/1*ibMaon0S_38EBsIH1mNvhA.jpeg" /></figure><p>3. Download git from <a href="https://git-scm.com/downloads">https://git-scm.com/downloads</a> for your operating system. Run .exe file and install git.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*cfsnXaHmWVgRe87PFpIeMw.jpeg" /></figure><p>4. After installing Git, search for <em>Git Bash</em> in the start menu. Press <strong>Enter</strong> to launch the app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*DdFZ7pPBrc6T8grBT4fqWQ.png" /></figure><p>Alternatively you can open Git Bash by right clicking on desktop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*YLL3IrAgNHWhXY_Y9xhtVQ.png" /></figure><p>5. Connect to repository by using GitHub credentials with the following commands.</p><p>git config --global user.email “email used for GitHub account”</p><p>git config --global user.name “user name of GitHub account”</p><p>6. Git Bash commands to upload source code files to GitHub Repo:</p><p><strong>cd</strong> command allows you to change the directory.</p><p>Syntax — cd “C:\Users\eclipse-workspace\sample”</p><p>The <strong>git init</strong> command creates an empty .git repository or reinitializes an existing one.</p><p>Syntax — git init</p><p>Before running <strong>git push</strong> command, make sure your repository is set as origin.</p><p>Syntax — git remote add origin &lt;GitHub repository link&gt;</p><p>The <strong>git add</strong> command updates the index with the content in the working tree and prepares the content in the staging area for commit.</p><p>Syntax — git add .</p><p>The <strong>git commit</strong> command instructs Git to store that file version. Git only commits the changes made in the repository.</p><p>Syntax — git commit -m “First Commit”</p><p>The <strong>git push </strong>sends files from the local repository to the remote repository.</p><p>Syntax — git push origin master</p><p>7. After executing the above commands, refresh your GitHub repository page and you will see the entire project folder is uploaded to GitHub.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*TPLIB6anzCd2kZaM6acYfQ.jpeg" /></figure><p><strong>Conclusion:</strong></p><p>This was the brief introduction to the source code files upload functionality using Git Bash with Git and GitHub. You could benefit from Git as a way to keep track of your work, collaborate with others, and avoid programming disasters due to unintended deletion or overwriting of files.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8df7aef5deab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Exception Handling in Java]]></title>
            <link>https://medium.com/@kishorijoshi07/exception-handling-in-java-1f018a56b87d?source=rss-e73b36212262------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f018a56b87d</guid>
            <dc:creator><![CDATA[kishori joshi]]></dc:creator>
            <pubDate>Wed, 27 Apr 2022 01:03:31 GMT</pubDate>
            <atom:updated>2022-04-27T01:03:31.039Z</atom:updated>
            <content:encoded><![CDATA[<p>In programming world an exception is a problem that occurs during the execution of a program. If it is not handled properly then it may disrupt the normal execution of a program.</p><p>In real world there are situations that we don’t anticipate. For example, you get in your car and car won’t start or you are ready to go to the work and you won’t find your cell phone. A human can cope with such unforeseen circumstances easily. This is not the case with the code. A program must know how to handle these situations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*tO4phBNpv9X8bhdw8CvZmg.png" /><figcaption><strong>Real world exception examples</strong></figcaption></figure><p>There are 2 types of exceptions in java:</p><p><strong>Checked Exceptions: </strong>These exceptions occur at the compilation time. If we don’t handle checked exceptions, then it causes a compilation error, and the program will not compile.</p><p><strong>Examples of most common checked exceptions:</strong></p><p>ClassNotFoundException</p><p>IOException</p><p>SQLException</p><p>NoSuchMethodException</p><p>NoSuchElementException</p><p>InterruptedException</p><p><strong>Unchecked Exceptions:</strong> These exceptions arise during run time. The program will compile but not execute.</p><p><strong>Examples of most common unchecked exceptions:</strong></p><p>ArrayIndexOutOfBoundException</p><p>ArithmeticException</p><p>NullPointerException</p><p>TypeNotPresentException</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*qY0KN8yZdW9hJB5IcUcQ7A.png" /><figcaption><strong>Difference between an error and exception</strong></figcaption></figure><p>Java has a simple mechanism to handle these exceptions.</p><p>1. try..catch..finally block:</p><p><strong>Syntax:</strong></p><p>try {</p><p>// Code</p><p>} catch (Exception e) {</p><p>// code for exception</p><p>} finally {</p><p>// block always executes</p><p>}</p><p>Try block contains code that might generate an exception. Every try block is followed by a catch block.</p><p>An exception is caught by the catch block. Catch block cannot be used without the try block.</p><p>Any code that must be executed irrespective of occurrence of an exception is put in the finally block.</p><p>The finally block is always executed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*Gs6HuxbQByqVia1f14Roqg.png" /></figure><p>In the above code snippet, try block will throw an arithmetic exception which will be captured by the catch block. No matter what, finally block always execute as you can see the output in the console.</p><p>2. throws keyword:</p><p>For any method that can throw an exception, it is mandatory to use the “throws” keyword to list the exceptions that can be thrown. Throws keyword is always used after the method. Throws keyword will not handle the exception but it will suppress the exception.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*qsKk1g2ot44p35aX0UMFcw.png" /></figure><p>In the above code snippet, an interrupted exception is thrown when a thread is waiting, sleeping, or occupied to perform the normal execution of the code.</p><p><strong>Conclusion:</strong></p><p>Whenever you think some piece of code might throw an exception due to any reason, handle it with proper exception handling method so that normal execution of the program is not interrupted.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f018a56b87d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Waits() in Selenium]]></title>
            <link>https://medium.com/@kishorijoshi07/waits-in-selenium-97079f7110c8?source=rss-e73b36212262------2</link>
            <guid isPermaLink="false">https://medium.com/p/97079f7110c8</guid>
            <dc:creator><![CDATA[kishori joshi]]></dc:creator>
            <pubDate>Tue, 19 Apr 2022 01:59:04 GMT</pubDate>
            <atom:updated>2022-04-19T01:59:04.509Z</atom:updated>
            <content:encoded><![CDATA[<p>Waits play an important role in executing tests in Selenium. Waits help user to troubleshoot issues while redirecting to different web pages. When a page is loaded by the browser, the elements within that page may load at different time intervals. This makes it difficult to locate elements. If an element is not yet present in the DOM(Document Object Model), code will throw an “ElementNotVisibleException” exception. Using waits we can solve this issue.</p><p>Selenium web driver provides 3 types of waits.</p><p>1. Implicit wait</p><p>2. Explicit wait</p><p>3. Fluent wait</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*_UmKAaFGkcfS-R6DsCbMHg.png" /></figure><p><strong>Implicit wait():</strong></p><p>In implicit wait, web driver polls the DOM for a certain duration when trying to find any element. This is useful when certain elements on the web page are not available immediately and need some time to load.</p><p><strong>Syntax:</strong> driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(10))</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*NY3RW6QiYV_G2lgavSk3rQ.png" /></figure><p>In the above code, implicit wait is defined for only 10 seconds. Output will load within maximum waiting time of 10 seconds for that particular element.</p><p><strong>Explicit wait():</strong></p><p>Explicit wait is used to tell the web driver to wait for certain expected condition or maximum time exceeded before throwing “ElementNotVisibleException” exception.</p><p><strong>Syntax:</strong> WebDriverWait wait = new WebDriverWait(driver,Duration.ofSeconds(10)).until(ExpectedConditions.elementToBeClickable(element));</p><p>element.click;</p><p><strong>Few expected conditions are:</strong></p><p>elementToBeClickable()</p><p>elementToBeSelected()</p><p>visibilityOfElementLocated()</p><p>titleContains()</p><p>alertIsPresent()</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*xUt_sCYNRkkwjZrKYnNaog.png" /></figure><p>In the above code, web driver will wait for maximum 10 seconds until the ExpectedCondition is met and here the condition is “elementToBeClickable”.</p><p><strong>Fluent wait():</strong></p><p>Fluent wait is used to define maximum time for the web driver to wait for a condition as well as the frequency with which we want to check the condition before throwing an “ElementNotVisibleException” exception. It checks for the web element at regular intervals until the element is found or timeout happens. Fluent wait command is useful when interacting with web elements that take longer duration to load.</p><p><strong>Syntax:</strong> Wait&lt;WebDriver&gt; wait = new FluentWait&lt;WebDriver&gt;(driver)</p><p>.withTimeout(Duration.ofSeconds(30))</p><p>.pollingEvery(Duration.ofSeconds(5))</p><p>.ignoring(NoSuchElementException.class)</p><p>.until(ExpectedConditions.alertIsPresent());</p><p>Here, we are declaring the fluent wait with the timeout of 30 seconds and the frequency is set to 5 seconds by ignoring “NoSuchElementException” exception.</p><p><strong>Conclusion:</strong></p><p>Implicit wait is a driver level wait and applicable to all the elements of the web page.</p><p>Explicit wait is applicable to only specified element mentioned always with “ExpectedConditions”. It is useful for verifying properties of the element as well.</p><p>Fluent wait is smart wait because it doesn’t wait for the maximum time specified in the statement instead it waits for the time till the condition specified becomes true.</p><p>Choose the best wait() statement based on your test execution need.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97079f7110c8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>