<?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 Tasmiya Mansoor on Medium]]></title>
        <description><![CDATA[Stories by Tasmiya Mansoor on Medium]]></description>
        <link>https://medium.com/@tasmiyam72?source=rss-b94fc72264be------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Tasmiya Mansoor on Medium</title>
            <link>https://medium.com/@tasmiyam72?source=rss-b94fc72264be------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 04:25:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tasmiyam72/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[Automating Azure AD App Registration Deletion with Python]]></title>
            <link>https://medium.com/@tasmiyam72/automating-azure-ad-app-registration-deletion-with-python-2b321c9b6bb6?source=rss-b94fc72264be------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b321c9b6bb6</guid>
            <dc:creator><![CDATA[Tasmiya Mansoor]]></dc:creator>
            <pubDate>Fri, 14 Feb 2025 17:02:52 GMT</pubDate>
            <atom:updated>2025-02-15T12:28:15.107Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Managing Azure AD App Registrations manually can be tedious, especially when dealing with multiple applications. Automating the process of fetching an access token and deleting app registrations can save significant time and ensure operational efficiency. This article explains a Python script designed to interact with Microsoft Graph API to delete app registrations.</p><blockquote>The Complete Script can be found here:<br><a href="https://github.com/tasmiyam72/Automated-Identity-and-Access-Management-Scripts">https://github.com/tasmiyam72/Automated-Identity-and-Access-Management-Scripts</a></blockquote><h3>Prerequisites</h3><p>Before running the script, ensure you have:</p><ul><li>Python installed</li><li>Required libraries (boto3, msal, requests)</li><li>AWS credentials configured for accessing AWS SSM Parameter Store</li><li>Azure AD App Registration details (Client ID, Client Secret, Tenant ID)</li><li>Permissions to delete applications in Azure AD</li></ul><h3>Understanding the Code</h3><p>The script is structured as follows:</p><h4>1. Fetching Secrets from AWS SSM</h4><pre>import boto3<br>import os<br><br>def get_secret(key: str, WithDecryption: bool = True):<br>    client = boto3.client(&quot;ssm&quot;)<br>    resp = client.get_parameter(Name=key, WithDecryption=True)<br>    return resp[&quot;Parameter&quot;][&quot;Value&quot;]</pre><p><strong>Purpose:</strong> Retrieve sensitive credentials securely from AWS Systems Manager (SSM) Parameter Store.<br><strong>Details:</strong></p><ul><li>Uses boto3 to interact with AWS SSM.</li><li>The get_secret function fetches a parameter value based on the provided key.</li><li>WithDecryption=True ensures encrypted secrets are retrieved in plaintext.</li></ul><h4>2. Fetching Client Credentials</h4><pre>CLIENT_ID = get_secret(os.environ[&quot;CLIENT_ID&quot;])<br>CLIENT_SECRET = get_secret(os.environ[&quot;CLIENT_SECRET&quot;])<br>TENANT_ID = os.environ[&quot;TENANT_ID&quot;]<br>SCOPE = &quot;https://graph.microsoft.com/.default&quot;</pre><p><strong>Purpose:</strong> Retrieve Azure AD credentials (Client ID and Secret) from AWS SSM and store Tenant ID from environment variables.<br><strong>Details:</strong></p><ul><li>Uses get_secret to securely fetch credentials.</li><li>CLIENT_ID and CLIENT_SECRET are fetched from AWS SSM.</li><li>TENANT_ID is read from environment variables.</li><li>SCOPE defines the API permissions required (Graph API in this case).</li></ul><h4>3. Fetching Azure AD Access Token</h4><pre>def azure_ad_access_token(CLIENT_ID, CLIENT_SECRET, TENANT_ID, SCOPE):<br>    app = msal.ConfidentialClientApplication(<br>        CLIENT_ID,<br>        authority=f&quot;https://login.microsoftonline.com/{TENANT_ID}&quot;,<br>        client_credential=CLIENT_SECRET,<br>    )<br>    result = app.acquire_token_for_client(scopes=[SCOPE])<br>    if &quot;access_token&quot; in result:<br>        return result[&quot;access_token&quot;]<br>    else:<br>        print(f&quot;Failed to obtain token: {result.get(&#39;error&#39;)}, {result.get(&#39;error_description&#39;)}&quot;)<br>        return None</pre><p><strong>Purpose:</strong> Obtain an access token for authenticating requests to Microsoft Graph API.<br><strong>Details:</strong></p><ul><li>Uses msal.ConfidentialClientApplication for authentication.</li><li>Calls acquire_token_for_client to get an access token.</li><li>Returns the token if successful; otherwise, prints an error message.</li></ul><h4>4. Deleting App Registrations</h4><pre>def delete_app_registrations(app_ids, token):<br>    headers = {&quot;Authorization&quot;: f&quot;Bearer {token}&quot;}<br>    for app_id in app_ids:<br>        url = f&quot;https://graph.microsoft.com/v1.0/applications/{app_id}&quot;<br>        response = requests.delete(url, headers=headers)<br>        if response.status_code == 204:<br>            print(f&quot;Successfully deleted app with ID: {app_id}&quot;)<br>        else:<br>            print(f&quot;Failed to delete app with ID: {app_id}, Response: {response.status_code}, {response.text}&quot;)</pre><p><strong>Purpose:</strong> Remove Azure AD App Registrations using Microsoft Graph API.<br><strong>Details:</strong></p><ul><li>Uses an authorization token in the request header.</li><li>Iterates over a list of application IDs and sends a DELETE request.</li><li>Prints success or failure messages based on the response status.</li></ul><h4>5. Executing the Script</h4><pre>if __name__ == &quot;__main__&quot;:<br>    graph_token = azure_ad_access_token(<br>        CLIENT_ID_1=CLIENT_ID,<br>        CLIENT_SECRET_2=CLIENT_SECRET,<br>        TENANT_ID=TENANT_ID,<br>        SCOPE=&quot;https://graph.microsoft.com/.default&quot;,<br>    )<br><br>  app_registration_ids = [<br>        &quot; &quot;,  # Add the object ID of app reg<br>    ]<br>    try:<br>        delete_app_registrations(app_registration_ids, graph_token)<br>    except Exception as e:<br>        print(f&quot;Error: {e}&quot;)</pre><p><strong>Purpose:</strong> Run the script to fetch the token and delete app registrations.<br><strong>Details:</strong></p><ul><li>Calls azure_ad_access_token to get an access token.</li><li>Defines app_registration_ids (list of app object IDs to be deleted).</li><li>Calls delete_app_registrations within a try-except block to handle errors.</li></ul><h3>Summary</h3><ul><li><strong>AWS SSM</strong> stores and retrieves credentials securely.</li><li><strong>MSAL</strong> handles authentication to Microsoft Graph API.</li><li><strong>Requests</strong> module is used to send API calls.</li><li><strong>Automates app deletion</strong>, reducing manual work and improving security.</li></ul><h3>Conclusion</h3><p>By automating Azure AD App Registration deletion, this script reduces manual work and ensures efficiency. Using AWS SSM for secure credential storage and MSAL for authentication enhances security and performance. Organizations can leverage this approach to streamline app lifecycle management and improve operational workflows — feedback and ideas are always welcome!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b321c9b6bb6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating Okta User Management with Python]]></title>
            <link>https://medium.com/@tasmiyam72/automating-okta-user-management-with-python-7ae7cae08b46?source=rss-b94fc72264be------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ae7cae08b46</guid>
            <dc:creator><![CDATA[Tasmiya Mansoor]]></dc:creator>
            <pubDate>Fri, 14 Feb 2025 16:29:07 GMT</pubDate>
            <atom:updated>2025-02-15T12:29:09.735Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Managing users in an Okta tenant manually can be time-consuming and error-prone, especially for large enterprises. Automating user status retrieval, deactivation, and deletion can save time and improve operational efficiency. In this article, we will explore a Python script designed to interact with Okta’s API, fetch user details, and perform lifecycle management actions.</p><blockquote>The Complete Script can be found here:<br><a href="https://github.com/tasmiyam72/Automated-Identity-and-Access-Management-Scripts">https://github.com/tasmiyam72/Automated-Identity-and-Access-Management-Scripts</a></blockquote><h3>Prerequisites</h3><p>Before running the script, ensure you have:</p><ul><li>Python installed</li><li>Required libraries (pandas, requests, argparse, boto3)</li><li>AWS credentials configured for accessing AWS SSM Parameter Store</li><li>Okta API token stored securely in AWS SSM</li></ul><h3>Understanding the Code</h3><p>The script is structured as follows:</p><h4>1. Managing API Tokens</h4><pre>TOKENS: dict = {}<br><br>def get_api_token(tenant: str, session):<br>    secret_path = f&quot;/okta/iam/api-token/{tenant}&quot;<br>    api_token = get_secret_with_session(secret_path, session)<br>    print(f&quot;API token fetched for {tenant}&quot;)<br>    return api_token</pre><p><strong>Purpose:</strong> Securely retrieve Okta API tokens from AWS SSM.</p><p><strong>Details:</strong></p><ul><li>Constructs the secret path dynamically using the tenant name.</li><li>Calls get_secret_with_session() to fetch the token securely.</li><li>Prints confirmation that the API token was retrieved.</li></ul><h4>2. Token Caching Mechanism</h4><pre>def retrieve_api_token(tenant: str, session, tokens=TOKENS) -&gt; str:<br>    if tenant not in TOKENS:<br>        print(f&quot;No cache found for: {tenant}&quot;)<br>        token = get_api_token(tenant, session)<br>        cache_token(tenant, token)<br>    return TOKENS[tenant]</pre><p><strong>Purpose:</strong> Store API tokens in memory to reduce redundant API calls.</p><p><strong>Details:</strong></p><ul><li>Checks if the token for a given tenant is already cached.</li><li>If not, it fetches the token using get_api_token() and stores it in TOKENS.</li><li>Returns the cached token for reuse.</li></ul><h4>3. Making Requests to Okta API</h4><pre>def request_okta(url: str, request_type: str = &quot;GET&quot;):<br>    headers = {<br>        &quot;Accept&quot;: &quot;application/json&quot;,<br>        &quot;Content-Type&quot;: &quot;application/json&quot;,<br>        &quot;Authorization&quot;: &quot;SSWS &lt;API_TOKEN&gt;&quot;,<br>    }<br>    return requests.request(request_type, url, headers=headers)</pre><p><strong>Purpose: </strong>Send API requests to Okta with appropriate headers.</p><p><strong>Details:</strong></p><ul><li>Uses a generic function for <strong>GET, POST, and DELETE</strong> requests.</li><li>Sets Authorization header with the Okta API token.</li><li>Can be reused across multiple API endpoints.</li></ul><h4>4. Retrieving User Status</h4><pre>def get_user_status(user_id: str, user_email: str) -&gt; str:<br>    url = f&quot;https://&lt;tenant&gt;.oktapreview.com/api/v1/users/{user_id}&quot;<br>    resp = request_okta(url)<br>    if resp.status_code == 200 and user_email.lower() == resp.json()[&quot;profile&quot;][&quot;email&quot;].lower():<br>        print(f&quot;SUCCESS: User {user_email} found, status: {resp.json()[&#39;status&#39;]}&quot;)<br>        return resp.json()[&quot;status&quot;]<br>    elif resp.status_code == 404:<br>        print(f&quot;FAILURE: User {user_email} not found in tenant&quot;)<br>    else:<br>        print(f&quot;ERROR: {resp.text}&quot;)</pre><p><strong>Purpose</strong>: Fetch and verify a user’s status in Okta.</p><p><strong>Details</strong>:</p><ul><li>Sends a <strong>GET request</strong> to Okta’s user API endpoint.</li><li>Checks if the returned user email matches the input email.</li><li>Returns the user’s status if found, otherwise logs an error.</li></ul><h4>5. Deactivating a User</h4><pre>def deactivate_user(user_id, user_email) -&gt; int:<br>    url = f&quot;https://&lt;tenant&gt;.oktapreview.com/api/v1/users/{user_id}/lifecycle/deactivate&quot;<br>    resp = request_okta(url, &quot;POST&quot;)<br>    return resp.status_code</pre><p><strong>Purpose:</strong> Deactivate a user before deletion.</p><p><strong>Details:</strong></p><ul><li>Sends a <strong>POST request</strong> to Okta’s lifecycle management API.</li><li>Deactivation is a required step before permanent deletion.</li></ul><h4>6. Deleting a User</h4><pre>def delete_user(user_id: str, user_email: str) -&gt; int:<br>    status = get_user_status(user_id, user_email)<br>    if status != &quot;DEPROVISIONED&quot;:<br>        deactivate_user(user_id, user_email)<br>    resp = request_okta(url, &quot;DELETE&quot;)<br>    return resp.status_code</pre><p><strong>Purpose:</strong> Permanently delete an Okta user.</p><p><strong>Details:</strong></p><ul><li>Retrieves user status before attempting deletion.</li><li>If the user is <strong>not already deprovisioned</strong>, they are first deactivated.</li><li>Sends a <strong>DELETE request</strong> to Okta’s API to remove the user.</li></ul><h4>7. Executing the Script</h4><pre>if __name__ == &quot;__main__&quot;:<br>    args = read_args()<br>    csv = pd.read_csv(&quot;Testuser.csv&quot;)<br>    for index, row in csv.iterrows():<br>        deactivate_user(row[&quot;user_id&quot;], row[&quot;user_email&quot;])<br>        delete_user(row[&quot;user_id&quot;], row[&quot;user_email&quot;])</pre><p><strong>Purpose:</strong> Read a CSV file containing user records and process them in bulk.</p><p><strong>Details:</strong></p><ul><li>Reads Testuser.csv using pandas.</li><li>Iterates over each row, calling deactivate_user() and delete_user() for every user.</li><li>Ensures efficient batch processing of users.</li></ul><h3>Summary</h3><ol><li><strong>Managing API Tokens</strong> — Fetch Okta API tokens securely from AWS SSM.</li><li><strong>Token Caching</strong> — Store tokens in memory to reduce API calls.</li><li><strong>Making API Requests</strong> — Handle generic GET, POST, DELETE requests.</li><li><strong>Retrieving User Status</strong> — Fetch and validate user existence in Okta.</li><li><strong>Deactivating Users</strong> — Disable users before deleting them.</li><li><strong>Deleting Users</strong> — Remove deactivated users permanently.</li><li><strong>Batch Execution</strong> — Process multiple users from a CSV file efficiently.</li></ol><h3>Conclusion</h3><p>This Python script automates Okta user management, reducing manual effort and minimizing errors. By leveraging AWS SSM for secure credential storage and caching tokens efficiently, the script enhances performance and security. Organizations can integrate this automation into their workflows to handle user lifecycle events at scale efficiently.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ae7cae08b46" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating Bulk Users Removal from Azure AD Group Using Python]]></title>
            <link>https://medium.com/@tasmiyam72/automating-bulk-users-removal-from-azure-ad-group-using-python-5a6936518228?source=rss-b94fc72264be------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a6936518228</guid>
            <dc:creator><![CDATA[Tasmiya Mansoor]]></dc:creator>
            <pubDate>Tue, 11 Feb 2025 17:19:14 GMT</pubDate>
            <atom:updated>2025-02-15T12:28:44.355Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Managing user access in Azure Entra AD group can be overwhelming, especially in large organizations. To simplify this, we can automate the removal of users from groups using Python and Microsoft Graph API.</p><p>This guide explains step by step how to build a Python script that removes users from an Azure AD group. Even if you’re a beginner, you’ll find this easy to understand!</p><blockquote>The Complete Script can be found here:<br><a href="https://github.com/tasmiyam72/Automated-Identity-and-Access-Management-Scripts">https://github.com/tasmiyam72/Automated-Identity-and-Access-Management-Scripts</a></blockquote><h3>Prerequisites</h3><p>Before running the script, you need:</p><ul><li><strong>Azure AD access</strong> with API permissions to manage users and groups.</li><li><strong>An App Registration in Azure AD</strong> with client credentials.</li><li><strong>A users.txt file</strong> containing a list of users to be removed.</li><li><strong>Python 3.x</strong> installed.</li><li>Required dependencies installed using:</li></ul><pre>pip install requests msal boto3</pre><h3>Step-by-Step Breakdown</h3><h4>1. Securely Fetch Credentials</h4><pre>def get_secret(key: str, WithDecryption: bool = True):<br>    client = boto3.client(&quot;ssm&quot;)<br>    resp = client.get_parameter(Name=key, WithDecryption=True)<br>    return resp[&quot;Parameter&quot;][&quot;Value&quot;]</pre><p><strong>Purpose: </strong>Retrieve Azure AD credentials (client ID, secret, and tenant ID) securely from AWS Secrets Manager.</p><p><strong>Details:</strong></p><ul><li>Uses boto3 to connect to AWS SSM Parameter Store.</li><li>Retrieves the stored secret based on the given key.</li><li>Ensures secrets are encrypted with WithDecryption=True.</li></ul><h4>2. Get Microsoft Graph API Access Token</h4><pre>def get_access_token(client_id, client_secret, tenant_id, GRAPH_API_URL):<br>    app = msal.ConfidentialClientApplication(<br>        client_id,<br>        authority=f&quot;https://login.microsoftonline.com/{tenant_id}&quot;,<br>        client_credential=client_secret,<br>    )<br>    result = app.acquire_token_for_client(scopes=[GRAPH_API_URL])<br>    return result.get(&quot;access_token&quot;)</pre><p><strong>Purpose:</strong> Authenticate with Microsoft Graph API and obtain an access token.</p><p><strong>Details:</strong></p><ul><li>Uses the msal library to authenticate via <strong>client credentials flow</strong>.</li><li>Forms the authorization URL using tenant_id.</li><li>Calls acquire_token_for_client() to get an access token.</li><li>Returns the token if authentication is successful.</li></ul><h4>3. Find the User in Azure AD</h4><pre>def get_user_id(object_id, token):<br>    url = f&quot;https://graph.microsoft.com/v1.0/users/{object_id}&quot;<br>    headers = {&quot;Authorization&quot;: f&quot;Bearer {token}&quot;, &quot;Accept&quot;: &quot;application/json&quot;}<br>    response = requests.get(url, headers=headers)<br>    return object_id if response.status_code == 200 else None</pre><p><strong>Purpose: </strong>Verify if a user exists in Azure AD before attempting removal.</p><p><strong>Details:</strong></p><ul><li>Sends a <strong>GET request</strong> to Microsoft Graph API to fetch user details.</li><li>Uses the user’s object ID in the request URL.</li><li>If the response status is <strong>200 (OK)</strong>, the user exists and their ID is returned.</li><li>If not, the function returns None.</li></ul><h4>4. Remove the User from the Group</h4><pre>def remove_user_from_group(user_id, token):<br>    url = f&quot;https://graph.microsoft.com/v1.0/groups/{GROUP_ID}/members/{user_id}/$ref&quot;<br>    headers = {&quot;Authorization&quot;: f&quot;Bearer {token}&quot;}<br>    response = requests.delete(url, headers=headers)<br>    return response.status_code in [204, 404]</pre><p><strong>Purpose:</strong> Remove a user from an Azure AD group.</p><p><strong>Details:</strong></p><ul><li>Uses Microsoft Graph API’s <strong>DELETE request</strong> to remove the user.</li><li>The request URL is dynamically constructed with the <strong>group ID</strong> and <strong>user ID</strong>.</li><li>A <strong>204 (No Content)</strong> response means success.</li><li>A <strong>404 (Not Found)</strong> response means the user was not in the group.</li></ul><h4>5. Process Multiple Users from a File</h4><pre>def bulk_remove_users(users, token):<br>    if isinstance(users, str):<br>        with open(users, &quot;r&quot;) as file:<br>            users = file.read().splitlines()<br>    <br>    for email in users:<br>        user_id = get_user_id(email.strip(), token)<br>        if user_id:<br>            if remove_user_from_group(user_id, token):<br>                print(f&quot;Removed: {email}&quot;)<br>            else:<br>                print(f&quot;Failed to remove: {email}&quot;)<br>        else:<br>            print(f&quot;User not found: {email}&quot;)</pre><p><strong>Purpose:</strong> Read users from a file and remove them from the Azure AD group.</p><p><strong>Details:</strong></p><ul><li>Accepts either a <strong>list of users</strong> or a <strong>file path</strong> (users.txt).</li><li>Reads email addresses from the file if provided as a string.</li><li>Iterates over each user and calls get_user_id() to verify their existence.</li><li>If the user exists, calls remove_user_from_group() to remove them.</li><li>Logs whether each removal was successful or failed.</li></ul><h4>6. Run the Script</h4><pre>if __name__ == &quot;__main__&quot;:<br>    graph_token = get_access_token(client_id, client_secret, tenant_id, GRAPH_API_URL)<br>    if not graph_token:<br>        print(&quot;Error: Unable to get access token. Exiting...&quot;)<br>        exit(1)<br>    bulk_remove_users(&quot;users.txt&quot;, graph_token)</pre><p><strong>Purpose:</strong> Execute the script to remove users from the group.</p><p><strong>Details:</strong></p><ul><li>Calls get_access_token() to obtain an authentication token.</li><li>If token retrieval fails, logs an error and exits.</li><li>Calls bulk_remove_users() with &quot;users.txt&quot; to process user removals.</li></ul><h3>Summary</h3><ol><li><strong>Fetching Credentials</strong> — Securely retrieves Azure AD credentials from AWS Secrets Manager.</li><li><strong>Getting an Access Token</strong> — Authenticates with Microsoft Graph API to obtain an access token.</li><li><strong>Finding Users</strong> — Checks if a user exists in Azure AD before removal.</li><li><strong>Removing Users from a Group</strong> — Sends a DELETE request to remove users from the specified Azure AD group.</li><li><strong>Processing Users from a File</strong> — Reads users.txt, verifies users, and removes them from the group.</li><li><strong>Executing the Script</strong> — Retrieves the access token and processes user removals.</li></ol><h3>Conclusion</h3><h3>Conclusion</h3><p>This Python script streamlines user management in <strong>Azure Entra AD</strong> by automating bulk user removal, significantly improving <strong>efficiency</strong> and <strong>time management</strong>. Manual user removals can be time-consuming and error-prone, but this approach ensures <strong>accuracy, security, and scalability</strong>.</p><p>By leveraging <strong>Microsoft Graph API, MSAL, and AWS Secrets Manager</strong>, the script provides a <strong>secure, fast, and repeatable</strong> way to manage access control. Organizations can now <strong>reduce administrative overhead</strong>, enhance security, and maintain up-to-date group memberships with minimal effort.</p><p>Automating this process not only <strong>saves time</strong> but also <strong>improves compliance and operational efficiency</strong>, making it an essential tool for managing user access at scale. 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a6936518228" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating MFA Key Management in Vault with Python]]></title>
            <link>https://medium.com/@tasmiyam72/python-script-1e56f54eb682?source=rss-b94fc72264be------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e56f54eb682</guid>
            <dc:creator><![CDATA[Tasmiya Mansoor]]></dc:creator>
            <pubDate>Tue, 11 Feb 2025 15:20:46 GMT</pubDate>
            <atom:updated>2025-02-21T13:20:47.456Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qFgeSDRgb16YzOsH1PJxcQ.png" /></figure><h3>Introduction</h3><p>Managing Multi-Factor Authentication (MFA) keys in HashiCorp Vault can be challenging, especially when dealing with large-scale enterprise environments. This blog will walk you through automating the process of retrieving, creating, and deleting MFA keys in Vault using Python, with a step-by-step explanation suitable for beginners.</p><blockquote>The Complete Script can be found here:<br><a href="https://github.com/tasmiyam72/Automated-Identity-and-Access-Management-Scripts">https://github.com/tasmiyam72/Automated-Identity-and-Access-Management-Scripts</a></blockquote><h4>What is MFA?</h4><p>Multi-Factor Authentication (MFA) is a security mechanism that requires users to provide multiple forms of verification before accessing a system. In this case, we will manage MFA secrets stored in Vault and automate their retrieval and deletion.</p><h4>Prerequisites</h4><p>Before you start, ensure you have:</p><ul><li>A running instance of HashiCorp Vault</li><li>Python 3.8+ installed</li><li>Required dependencies listed in requirements.txt</li><li>Properly configured environment variables for Vault authentication</li></ul><h4>Setting Up the Environment</h4><h4>Step 1: Install Dependencies</h4><p>Run the following command to install required Python packages:</p><pre>pip install -r requirements.txt</pre><h4>Step 2: Configure Environment Variables</h4><p>Ensure your .env file contains the required Vault credentials:</p><pre>VAULT_TOKEN=&lt;your_vault_token&gt;<br>VAULT_ADDR=&lt;your_vault_address&gt;<br>MOUNT_POINT_SECRETS=&lt;your_secrets_mount_point&gt;<br>MOUNT_POINT_TOTP=&lt;your_totp_mount_point&gt;<br>TARGET_FOLDER=&lt;target_folder&gt;<br>TOTP_ISSUER=&lt;issuer&gt;</pre><h3>Listing Vault Secrets</h3><h4>Understanding Secrets Management</h4><p>Secrets are stored in Vault under a specific path. We need to list these stored secrets before processing them.</p><h4>Python Function to List Secrets</h4><pre>def list_vault_secrets(vault_client, path: str, mount_point: str):<br>    return vault_client.secrets.kv.v2.list_secrets(path=path, mount_point=mount_point)</pre><p><strong>Purpose:</strong> <strong>Retrieve a list of stored secrets from HashiCorp Vault.</strong></p><p><strong>Details:</strong></p><ul><li>Uses Vault’s <strong>KV v2 secrets engine</strong> to list stored secrets at a given path.</li><li>Requires vault_client, path, and mount_point as parameters.</li><li>Returns the list of secrets.</li></ul><h3>Automating MFA Key Management</h3><p>The main.py script automates the process of retrieving and storing MFA keys.</p><h4>Step 1: Authenticate with Vault</h4><pre>def vault_authentication_client() -&gt; hvac.Client:<br>    vault_client = hvac.Client(url=VAULT_URL, token=VAULT_TOKEN, strict_http=True)<br>    if vault_client.is_authenticated():<br>        return vault_client<br>    raise ValueError(&quot;Invalid or missing Vault token&quot;)</pre><p><strong>Purpose:</strong> Establish a connection to Vault using a valid authentication token.</p><p><strong>Details:</strong></p><ul><li>Creates an <strong>HVAC client</strong> with VAULT_URL and VAULT_TOKEN.</li><li>Checks if authentication is successful using is_authenticated().</li><li>Raises an error if authentication fails.</li></ul><h4>Step 2: List Tenant Secrets</h4><pre>def list_tenant_folders(vault_client, vault_folder, mount_point):<br>    tenant_list = list_vault_secrets(vault_client, vault_folder, mount_point)<br>    return tenant_list[&quot;data&quot;][&quot;keys&quot;]</pre><p><strong>Purpose: </strong>Retrieve all tenant folders containing stored secrets.</p><p><strong>Details:</strong></p><ul><li>Calls list_vault_secrets to fetch tenant folder names.</li><li>Extracts the &quot;keys&quot; from the response to return a list of tenants.</li></ul><h4>Step 3: Extract and Process MFA Keys</h4><pre>def process_secrets_dictionaries(secrets_dict: dict) -&gt; list:<br>    mfa_secret_match = []<br>    username_match = []<br>    for dictionary in secrets_dict:<br>        if &quot;mfa_secret_key&quot; in dictionary:<br>            mfa_secret_match.append(dictionary[&quot;mfa_secret_key&quot;])<br>            username_match.append(dictionary[&quot;username&quot;])<br>    return list(zip(mfa_secret_match, username_match))</pre><p><strong>Purpose: </strong>Extract MFA secret keys and match them with corresponding usernames.</p><p><strong>Details:</strong></p><ul><li>Iterates through a dictionary of stored secrets.</li><li>Extracts values of &quot;mfa_secret_key&quot; and &quot;username&quot;.</li><li>Returns a list of tuples containing <strong>(MFA Key, Username)</strong> pairs.</li></ul><h4>Step 4: Deleting Old TOTP Keys</h4><p>Over time, expired or outdated MFA keys must be removed. The delete.py script helps manage this cleanup process.</p><h4>Python Function to Delete MFA Keys</h4><pre>def delete_vault_totp(vault_client, vault_totp_key, vault_url, mount_point):<br>    request_url = f&quot;{vault_url}/v1/{mount_point}/keys/{vault_totp_key}&quot;<br>    request_header = {&quot;X-Vault-Token&quot;: vault_client.token}<br>    response = requests.request(&quot;DELETE&quot;, request_url, headers=request_header)<br>    return response.status_code in (200, 204)</pre><p><strong>Purpose:</strong> Remove expired or unnecessary MFA keys from Vault.</p><p><strong>Details:</strong></p><ul><li>Constructs a <strong>DELETE request</strong> to Vault’s API endpoint.</li><li>Uses the vault_totp_key (MFA key identifier) to target a specific key.</li><li>Includes the Vault authentication token in the request header.</li><li>Returns True if the deletion is successful (200 or 204 response)</li></ul><h4>Steps 5: Running the Scripts</h4><pre>python main.py  # Generate MFA Keys<br>python delete.py  # Delete Old Keys</pre><p><strong>Purpose:</strong> Execute the automation process — generate and delete MFA keys.</p><p><strong>Details:</strong></p><ul><li>python main.py → Generates and stores MFA keys in Vault.</li><li>python delete.py → Removes outdated MFA keys from Vault.</li></ul><h3>Summary</h3><ol><li><strong>Vault Authentication</strong> — Establishes a connection using a token.</li><li><strong>Listing Secrets</strong> — Retrieves stored secrets and tenant folders.</li><li><strong>Processing MFA Keys</strong> — Extracts keys and matches them to users.</li><li><strong>Deleting Old MFA Keys</strong> — Sends DELETE requests to remove outdated keys.</li><li><strong>Execution</strong> — Automates the entire workflow using Python scripts.</li></ol><h3>Conclusion</h3><h3>Conclusion</h3><p>Automating <strong>MFA key management</strong> in HashiCorp Vault significantly enhances <strong>security, efficiency, and time management</strong>. Manual handling of MFA keys can be <strong>time-consuming and error-prone</strong>, but this Python-based automation streamlines the entire workflow, reducing administrative overhead.</p><p>By breaking the process into <strong>authentication, secret retrieval, key processing, and deletion</strong>, this solution ensures a <strong>secure, fast, and scalable</strong> approach to MFA key management. Automating these tasks minimizes human intervention, <strong>eliminates repetitive manual work, and ensures consistency</strong> across large-scale environments.</p><p>With this script, organizations can <strong>improve security compliance, reduce operational delays, and enhance overall efficiency</strong>, making Vault MFA key management both effortless and effective.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e56f54eb682" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automation Testing]]></title>
            <link>https://medium.com/@tasmiyam72/automation-testing-697d9e87fe8?source=rss-b94fc72264be------2</link>
            <guid isPermaLink="false">https://medium.com/p/697d9e87fe8</guid>
            <dc:creator><![CDATA[Tasmiya Mansoor]]></dc:creator>
            <pubDate>Tue, 20 Sep 2022 14:40:59 GMT</pubDate>
            <atom:updated>2022-10-04T07:52:19.883Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Automation testing:</em></strong><em> In automation testing no human intervention is needed.</em></p><p><strong><em>Types of automation testing:</em></strong></p><ol><li><em>Functional automation testing.</em></li><li><em>Non functional automation testing.</em></li></ol><p><strong><em>Why and when to go for automation testing:</em></strong></p><ol><li><em>It saves time.</em></li><li><em>Saves money.</em></li><li><em>Reusable.</em></li><li><em>Error prone human behavior</em></li><li><em>Testing improves accuracy.</em></li></ol><p><strong><em>=&gt; When</em></strong></p><ol><li><em>Regression testing</em></li><li><em>When application is stable</em></li><li><em>No frequent changes to the system</em></li></ol><p><strong><em>Introduction to Selenium:</em></strong></p><p><em>=&gt; Selenium is an open source functional automation testing tool, it supports multiple browser, supports only for web based application, supports many operating system and we use programming languages like Java, python, c#, Ruby etc.</em></p><p><strong><em>Introduction to java</em></strong></p><p><em>First we taught how to create project, package and class in eclipse tool.</em></p><ul><li><em>Next we tried different simple examples in java based on data types, operators and looping statements.</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3NDRttLBdVTVA3Yqmn4vrA.png" /><figcaption>Basic of Java</figcaption></figure><blockquote><strong><em>Conditional statements</em></strong></blockquote><ol><li><em>if</em></li><li><em>else</em></li><li><em>else if</em></li><li><em>Nested if</em></li><li><em>Switch</em></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*EbvxfzhRj6k-wSg54YoacA.png" /><figcaption>Else Loop</figcaption></figure><p><strong><em>Next about loops</em></strong></p><ol><li><em>while loop</em></li><li><em>for loop</em></li><li><em>do while loop</em></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*rtKpSBQ4vt2VyoSh0nU_XQ.png" /><figcaption>Prime numbers</figcaption></figure><p><strong><em>Data Types:</em></strong><em><br>Data types are used to allocate memory and specify what type of data you are using in the program. All the data types are keywords which are having built in meaning. Below are the few datatypes in Java.</em></p><p><em>1. </em><strong><em>int:</em></strong><em> which is used to store integer value and it will not accept any decimal value. It allocates 4 bytes of memory.<br>2. </em><strong><em>long:</em></strong><em> which is used to store integer value and it will not accept any decimal value. It allocates 8 bytes of memory<br>3. </em><strong><em>float:</em></strong><em> which is used to store decimal value. It allocates 4 bytes of memory<br>4. </em><strong><em>double:</em></strong><em> which is used to store decimal value. It allocates 8 bytes of memory<br>5. </em><strong><em>char:</em></strong><em> which is used to store single character and it use to take only one byte.<br>6. </em><strong><em>Short:</em></strong><em> which use to take 2 bytes of memory and stores integer value.<br>7. </em><strong><em>Boolean: </em></strong><em>which takes only true or false<br>8. </em><strong><em>Byte:</em></strong><em> which takes only byte memory</em></p><p><strong><em>Arrays: </em></strong><em>Arrays are nothing but set of similar elements stored in single variable.</em></p><p><strong><em>Declaration of Arrays:</em></strong><em><br>Data type variable name []<br></em><strong><em>Example:</em></strong><em> int rollno[];<br></em><strong><em>Allocating Memory for Arrays:</em></strong><em><br>int rollno[] = new int[1000];</em></p><p><strong><em>Types of array</em></strong><em><br>1. </em><strong><em>Single dimension array:</em></strong><em> Example int rollno[] = new int[1000];<br>2. </em><strong><em>Multi dimension array: </em></strong><em>Example int x[][]=new int[2][4];</em></p><p><strong><em>OOPS:</em></strong><em> If any programming language that supports below futures then that language is known as OOPS language.<br>1. Class<br>2. Object<br>3. Polymorphism<br>4. Inheritance<br>5. Encapsulation</em></p><p><strong><em>Class:</em></strong><em><br>A class is a group of data members and functions which has common properties.<br></em><strong><em>Syntax: </em></strong><em>class Class_Name<br>{<br>Data members(variables)<br>Data functions<br>}</em></p><p><strong><em>Objects:</em></strong><em><br>An entity that has state and behavior is known as an object e.g. chair, bike, marker, pen, table, car etc. It can be physical or logical. Object is an instance of a class. So object is the instance(result) of a class.<br></em><strong><em>Syntax:</em></strong><em> Class_Name objname = new Class_Name();</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kPV0IRIStNMGpYycMSooYw.png" /><figcaption><strong>Example of Employee Details using class and object</strong></figcaption></figure><p><strong><em>Constructors:</em></strong><em><br>Constructor is a special type of method which has same name of the class. Constructor is invoked at the time of object creation and no need to call the constructors like functions. Constructors will not return a value not even void also.</em></p><p><strong><em>Types of constructors:</em></strong><em><br>1. Default constructor (no-arguments constructor)<br>2. Parameterized constructor</em></p><p><strong><em>Default Constructor:</em></strong><em><br>Constructor that have no parameter is known as default constructor.<br></em><strong><em>Syntax of default constructor:</em></strong><em><br>Class_Name()<br>{<br>Initialization statements;<br>}</em></p><p><strong><em>Parameterized constructor:</em></strong><em><br>A constructor that have parameters is known as parameterized constructor.<br></em><strong><em>Syntax of Parameterized constructor:</em></strong><em><br>Class_Name(data type variable name, data type variable name)<br>{<br>Initialization statements;<br>}</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XJacFS2SxdnIoZNtluk1Ew.png" /><figcaption><strong>Example for constructor</strong></figcaption></figure><p><strong><em>Polymorphism:</em></strong><em><br>Means many forms. More than one method will have same name.</em></p><p><em>Polymorphism is achieved in two ways<br>1. Compile time polymorphism<br>2. Run time polymorphism</em></p><p><strong><em>Static key word in java: </em></strong><em>The static keyword is used in java mainly for memory management. We may apply static keyword with variables, methods, blocks and nested class. The static keyword belongs to the class than instance of the class: variable (also known as class variable)<br>method (also known as class method)<br>block<br></em><strong><em>Static variable: </em></strong><em>If you declare any variable as static, it is known static variable.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aT9NKAbrOEQD961In1AS_g.png" /><figcaption><strong>Example for static keyword</strong></figcaption></figure><p><strong><em>Inheritance: </em></strong><em>Inheritance is a mechanism in which one object acquires all the properties and behaviors of parent object.</em></p><p><strong><em>Syntax of Inheritance</em></strong><em><br>class Subclass-name extends Superclass-name<br>{<br>//methods and fields<br>}</em></p><p><strong><em>Types of Inheritance</em></strong><em><br>1. Single<br>2. Multilevel<br>3. Multiple<br>4. Hybrid</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fkt6hHPNqICOVYpslGVlnA.png" /><figcaption><strong>Example for Multiple Inheritance</strong></figcaption></figure><p><strong><em>Using Super:</em></strong><em> When invoking a superclass version of an overridden method the super keyword is used.<br></em><strong><em>Interfaces: </em></strong><em>An interface is a blueprint of a class. It has static constants and abstract methods.</em></p><p><strong><em>Package in Java: </em></strong><em>A package is a group of similar types of classes, interfaces and sub-packages.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EZM20uPP3ap771gQRTeJPA.png" /><figcaption><strong>Example for interface</strong></figcaption></figure><p><strong>Access Modifiers:</strong><br><em>The access modifiers specifies accessibility (scope) of a data member(variables), method, constructor or class.<br>There are 4 types of access modifiers:<br>1.private<br>2.default<br>3.protected<br>4.public</em></p><p><strong><em>Exception Handling:</em></strong><em><br>The exception handling is one of the powerful mechanism provided in java. It provides the mechanism to handle the run time errors so that normal flow of the application can be maintained.</em></p><p><strong><em>Five keywords used in Exception handling:</em></strong><em><br>1.try<br>2.catch<br>3.finally<br>4.throw<br>5.throws</em></p><p><strong><em>Syntax of try with catch block:</em></strong><em><br>try<br>{<br>Enter value for a;<br>Enter value for b<br>int div=a/b;<br>statements;20/0<br>}<br>catch(ArithmeticException e)<br>{<br>System.out.println(“Cannot divided by zero please enter value other than zero);<br>Enter value for a;<br>Enter value for b<br>int div=a/b;</em></p><p><em>handle exception here;<br>}</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XtgIzbmiDGP3wE8WIwLNVA.png" /><figcaption><strong>Example for try and catch</strong></figcaption></figure><p><strong><em>Final Keyword in Java:</em></strong><em><br>The final keyword in java is used to restrict the user. The final keyword can be used in many context. Final can be<br> Final variable<br> Final method<br> Final class</em></p><p><strong><em>Installation of GIT and Maven Project in step by step procedure.</em></strong></p><p><em>Step by Step installation GIT shown below</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*vF1-8xI6G43wDTVbPomvFw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*aSfuDHb0t9H51H8t0RRO8Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/1*Ey8kV3peJlshus5t5n6lUA.png" /><figcaption><strong>Step by step installation of GIT</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*HOdpQApUiEyNU9OAVcxqWw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/541/1*uGo50Vsxhuow-CILxgt4Xw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/1*blCu-OBdOKUE4PL4gpfWsg.png" /><figcaption><strong>Creating repository in GIT</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b9bddi5ogcE_e1LCbWMyXw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GkTl9K7VOba3pzDkzALKfQ.png" /><figcaption><strong>Push and Pull in GIT</strong></figcaption></figure><blockquote><strong><em>Automation testing:</em></strong></blockquote><blockquote>Automation Testing is a software testing technique that performs using special automated testing software tools to execute a test cases.</blockquote><p><strong><em>What is selenium?</em></strong></p><p><em>Selenium is an open-source tool that automates web browsers. It provides a single interface that lets you write test scripts in programming languages like Ruby, Java, NodeJS, PHP, Perl, Python, and C#, among others.</em></p><p><strong><em>Features of selenium IDE:</em></strong></p><ol><li><em>Easy record and playback.</em></li><li><em>Identifies object in AUT using object ID, names, or XPath as needed.</em></li><li><em>Auto complete for all common selenium commands.</em></li><li><em>Allows to debug and set breakpoints.</em></li><li><em>Save tests as HTML format.</em></li><li><em>Option to assert the title of every page.</em></li></ol><p><strong><em>Drawbacks of selenium</em></strong></p><ol><li><em>It only runs in Mozilla Fire fox and chrome browser.</em></li><li><em>It will not allow conditions and loops.</em></li><li><em>Cannot upload files.</em></li><li><em>Reading data from external files like Excel, .txt is not possible.</em></li></ol><p><strong><em>Components of selenium.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/0*Xen9HZ9LS20Edvmp.png" /><figcaption><strong>Components of selenium</strong>.</figcaption></figure><p><em>Next we learnt </em><strong><em>how to install Selenium</em></strong></p><p><strong><em>Step 1 : </em></strong><em>Go to chrome and type Install selenium ide for chrome click on first link.</em></p><p><strong><em>Step 2:</em></strong><em> Click on add to chrome.</em></p><p><strong><em>Step 3:</em></strong><em> Click on extension icon at top of chrome.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*s68r_RsweB8uDC10hJqFoA.png" /><figcaption><strong>Extension</strong></figcaption></figure><p><strong><em>Step 4:</em></strong><em> Select selenium there.</em></p><p><strong><em>Step 5:</em></strong><em> After opening selenium click on Create a new project.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*elNoo2c4iQDMPZvq.png" /><figcaption><strong>Selenium IDE</strong></figcaption></figure><p><strong><em>Step 6:</em></strong><em> Give a project name and click on ok.</em></p><p><strong><em>Step 7:</em></strong><em> Click on Recording symbol on top right of selenium.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZMGSsbYrsMhQ4W6V.png" /></figure><p><strong><em>Step 8:</em></strong><em> Paste the link that you want to test.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*afHs8-dk_RUnMnZh.png" /></figure><p><strong><em>Step 9:</em></strong><em> After that it starts recording once you complete click on stop recording, and five test case name and then run all the test cases in Selenium.</em></p><ul><li><em>Next we discussed how to download chrome web driver:</em></li></ul><p><strong><em>Step 1:</em></strong><em> </em><a href="https://chromedriver.chromium.org/downloads"><em>https://chromedriver.chromium.org/downloads</em></a><em> paste this link in chrome.</em></p><p><strong><em>Step 2:</em></strong><em> Then based on the version of your chrome select the chrome webDriver.</em></p><p><em>To check the version</em> <em>of your chrome</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Hj-kaXJYjGTTjgH_.png" /></figure><p><em>After that see the version of your chrome.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iyY5DAbrrCiSrn0x.png" /></figure><p><strong><em>Step 3: </em></strong><em>Then download the Chrome Driver for windows.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hpkwpHcNQH05_VDX.png" /></figure><p><strong><em>Step 4 : </em></strong><em>After downloading extract that file.</em></p><ul><li><em>Next we created a Maven Project.</em></li></ul><p><strong><em>How create a Maven Project</em></strong></p><p><em>Steps to create Maven project:</em></p><p><strong><em>Step 1:</em></strong><em> Go to eclipse IDE -&gt; Go to file -&gt; new -&gt; project</em></p><p><strong><em>Step 2:</em></strong><em> Select maven project -&gt; click on next -&gt; Then wait till all artifact ID’s are shown to you.</em></p><p><strong><em>Step 3:</em></strong><em> Type org.apache.maven.arch in filter and search for maven-archetype-quickstart</em></p><p><strong><em>Step 4:</em></strong><em> Type group ID as org.apache.maven.arch and artifact Id as any name of project for example DemoMavenProject.</em></p><p><strong><em>Step 5:</em></strong><em> Maven project is successfully created now open the pom.xml file.</em></p><p><strong><em>Step 6:</em></strong><em> Go to google and type selenium maven dependencies and select the first link(</em><a href="https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java"><em>https://mvnrepository.com</em></a><em>) and choose any version.</em></p><p><strong><em>Step 7:</em></strong><em> Go to selected version and copy the dependencies as shown in the below Picture.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4dVwZSb0Hq1j5cEm.png" /><figcaption>Copy this code.</figcaption></figure><p><strong><em>Step 8:</em></strong><em> Once you copied then go to eclipse and paste that code in pom.xml file under dependencies.</em></p><p><strong><em>Step 9 :</em></strong><em> After pasting that, go to maven project that you created and expend it and under src/test/java create new package.</em></p><p><strong><em>Step 10:</em></strong><em> Under that package create new class and start working.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jNB7sbYQM2hATl4eurvapg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AJMPzS4K_T5m5aV4ruGEcg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P8wg7napbbkpLcdNNsZfUg.png" /><figcaption><strong>Creating Maven Project</strong></figcaption></figure><p><strong><em>HRM Example</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rPQkNyJyiO76W_l1XmYxng.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rR8FkzwIMdTsCuIW0Y781w.png" /><figcaption><strong>HRM Examples</strong></figcaption></figure><p><strong><em>Automation Example for Facebook</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6uYYoTzQbW3bklnwpHO8ww.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WKdNwly4Xj8opDFieZ2PKg.png" /><figcaption><strong>Facebook Example</strong></figcaption></figure><p><strong><em>HRM example for xpath</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*olK1HCGZAv_ymprsHdISwg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9wnlucfFE-SYD1FepC0dNA.png" /><figcaption><strong>HRM Example for xpath</strong></figcaption></figure><blockquote><strong>Program to handle web table using html and xpath</strong></blockquote><p><em>In this example first we are writing a code for html and creating a tables using html, we need to navigate to particular row and column in that table. we are doing this with the help of selenium.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/1*hCrDFYos0Cj8WUYWSOaZiw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ykz9B03ceVAanetk0IB4ag.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BW6zLihJySJrWFJ4bLMAmA.png" /><figcaption><strong>Example to handle web table</strong></figcaption></figure><blockquote><strong>Program to implement method overloading using HRM application for searching user details from admin table</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pjaL8lbuZOgpatPIR30X7g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*79WA5yC0rww2bJEtx7BB4w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LFIAY1NDUaQCj26YMO9clQ.png" /><figcaption>Automation of HRM Website</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K7_DyIwNoVzmUNWpTDyf8g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dVJ424g6EF5L5op_Cqrg6Q.png" /><figcaption><strong>Example for method Overloading</strong></figcaption></figure><p><strong><em>Applying leave in HRM website</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*csehMHUfX6TG4ekUYg10Eg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F25r8-eVSc5pXn9gVtRGFw.png" /><figcaption><strong>Leave HRM</strong></figcaption></figure><p><strong><em>Reading Excel File</em></strong></p><p><strong><em>Apache POI in Selenium</em></strong><em><br>The Apache POI in Selenium is a widely used API for selenium data driven<br>testing. It is a POI library written in Java that gives users an API for<br>manipulating Microsoft documents like .xls and .xlsx. Users can easily create, modify and read/write into excel files. POI stands for “Poor Obfuscation Implementation.”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fhUIo7-T31O2TU61sRoGoA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0xrcE2jqNzV8p4bM4Qcs9g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zNQNlRUAkHCKRHo6rJpDtw.png" /><figcaption><strong>Extracting Data from Excel</strong></figcaption></figure><p><strong><em>Asserts:</em></strong><em><br>There are two types of Assert:<br>1. Hard Assert<br>2. Soft Assert<br>When an assert fails the test script stops execution unless handled in some<br>form. We call general assert as Hard Assert.<br></em><strong><em>Hard Assert </em></strong><em>— Hard Assert throws an Assert Exception immediately when an assert statement fails and test suite continues with next </em><a href="http://twitter.com/Test"><em>@Test</em></a><em>. The disadvantage of Hard Assert — It marks method as fail if assert condition<br>gets failed and the remaining statements inside the method will be aborted.<br></em><strong><em>Soft Assert </em></strong><em>— Soft Assert collects errors during </em><a href="http://twitter.com/Test"><em>@Test</em></a><em>. Soft Assert does not throw an exception when an assert fails and would continue with the next step after the assert statement.</em></p><h3>Cucumber</h3><p><em>Cucumber is a testing framework which supports Behavior Driven Development (BDD). It lets us define application behavior in plain meaningful English text using a simple grammar defined by a language called Gherkin. Cucumber itself is written in Ruby, but it can be used to “test” code written in Ruby or other languages including but not limited to Java, C# and Python.</em></p><p><em>When working with BDD there are a couple of additional concepts we need to be familiar with:</em></p><p><em>· </em><strong><em>Feature File</em></strong><em> — the same Spec document that describes the system’s behavior. In this file, we will write the Gherkin language with the Feature, the Scenarios, and with the keywords mentioned above.</em></p><p><em>· </em><strong><em>Step Definitions</em></strong><em> — a class or collection of classes in which we translate the Gherkin language into code that executes automatic actions on the tested product.</em></p><p><strong><em>HRM Login using Cucumber</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v5iibhbmS3_nfgtoZSbJFA.png" /><figcaption><strong>Feature File</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oQQ0PZggUWNY48RkE9NDEA.png" /><figcaption><strong>Code</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lFFvv63CJ2129pIhNXeSvw.png" /><figcaption><strong>Login HRM</strong></figcaption></figure><h3>TestNG</h3><p><em>TestNG is an open source automated testing framework; where NG of TestNG means Next Generation. TestNG is similar to JUnit, but its not a JUnit extension. Its inspired by JUnit. It is designed to be better than JUnit, especially when testing integrated classes. TestNG is designed to cover all categories of tests: unit, functional, end-to-end, integration.</em></p><h4><strong>To <em>work with TestNG:</em></strong></h4><ol><li><em>Add the below dependencies under dependencies in pom.xml file and save it.</em></li><li><em>Launch Eclipse IDE &amp; under Help menu click on “Install New Software” option.</em></li><li><em>Install dialog box will be appeared.</em></li><li><em>In the install dialog box, enter URL as “ https://testng.org/testng-eclipse-update-site” in Work with text box &amp; press keyboard enter key.</em></li><li><em>Under Name column TestNG check box will be displayed.</em></li><li><em>Select the “TestNG” check box &amp; click on Next button.</em></li><li><em>On Install Details screen, make sure that TestNG is selected &amp; then click on Next button.</em></li><li><em>On Review Licenses screen read license agreement &amp; select “I accept…”</em></li><li><em>Ensure that Installing Software dialog appear.</em></li><li><em>One security warning message will appear during installation. Ensure that you click on Ok button if same security dialog is appeared.</em></li><li><em>Once the installation process is completed then Eclipse ask you to Restart, click on Yes button.</em></li><li><em>Once the Eclipse is restarted, to make sure whether TestNG is installed or not. Just under Run menu click on “Run As” option &amp; check new option is added called “TestNG Test”.</em></li></ol><p><strong><em>Below dependencies under dependencies in pom.xml file</em></strong></p><pre>Maven dependency to add in POM.xml file<br>&lt;dependency&gt;<br>    &lt;groupId&gt;org.testng&lt;/groupId&gt;<br>    &lt;artifactId&gt;testng&lt;/artifactId&gt;<br>    &lt;version&gt;6.14.3&lt;/version&gt;<br>    &lt;scope&gt;test&lt;/scope&gt;<br>&lt;/dependency&gt;</pre><p><em>Example for automation of HRM login function using TestNG.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qpq9gmV1iwzC6FjAAIlUyw.png" /><figcaption><strong>HRM Login</strong></figcaption></figure><ul><li><strong><em>Setting priority parameter in TestNG: </em></strong><em>TestNG is an open-source and powerful test automation framework with a wide range of features, including annotations, data providers, group testing, prioritization, and much more.</em></li><li><em>Prioritization in TestNG is an easy way to set test case priority and run your test case in the exact order you want. This feature is particularly useful when defining a sequence for the test case execution when you have multiple test cases or assign precedence to a few methods over others.</em></li><li><em>Syntax: To set test case priority in TestNG, we need to add annotation as </em><strong><em>@Test (priority=X)</em></strong><em>.</em></li><li><em>Example: @Test(priority=1) is having highest priority than @Test(priority=2).</em></li><li><em>In TestNG we can also have </em><strong><em>dependsOnMethods()</em></strong></li><li><em>Learnt about how to run multiple class code at a time, for that use .xml file and run as TestNG suits.</em></li></ul><p><strong><em>How to create .xml file:</em></strong></p><ol><li><em>Go to eclipse and right click on your project -&gt; click on new -&gt; click on file -&gt; Name your file as filename.xml and click on finish.</em></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5gWzciabRQxMmlrpA6_CTQ.png" /></figure><h3><strong><em>Framework:</em></strong></h3><p><em>There are two types.<br>1. </em><strong><em>Data Driven</em></strong><em>: here we put test data in Excel / CSV file and read data from this file and put it into your application.<br>2. </em><strong><em>Keyword Driven</em></strong><em>: Here we use Excel and in this file we use keyword and every keyword will have a function. Based on your keyword that particular function will executed.</em></p><ul><li><strong><em>Page Object Model: </em></strong><em>Page Object Model or POM is a design pattern or a framework that we use in Selenium using which one can create an object repository of the different web elements across the application.</em></li></ul><p><strong><em>Advantages of page object model:</em></strong></p><ol><li><em>Made code maintainable.</em></li><li><em>Made code readable.</em></li><li><em>Make code reusable.</em></li></ol><ul><li><strong><em>Property file:</em></strong><em> . properties files are mainly used in Java programs to maintain project configuration data, database config or project settings, etc.</em></li></ul><h3>CSS Selector</h3><p><em>CSS Selectors in Selenium have many formats. The different types of CSS Locator in Selenium IDE</em></p><p><em>· Tag and ID</em></p><p><em>· Tag and class</em></p><p><em>· Tag and attribute</em></p><p><em>· Tag, class, and attribute</em></p><p><strong><em>tag and id — CSS Selector</em></strong></p><p><strong><em>Syntax: </em></strong><em>css=tag#id</em></p><ul><li><em>tag = the HTML tag of the element being accessed</em></li><li><em># = the hash sign. This should always be present when using a Selenium CSS Selector with ID</em></li><li><em>id = the ID of the element being accessed</em></li></ul><p><strong><em>tag and class — CSS Selector</em></strong></p><p><em>In this case, a dot (.) is used instead of a hash sign.</em></p><p><strong><em>Syntax: </em></strong><em>css=tag.class</em></p><ul><li><em>tag = the HTML tag of the element being accessed</em></li><li><em>. = the dot sign. This should always be present when using a CSS Selector with class</em></li><li><em>class = the class of the element being accessed</em></li></ul><p><strong><em>tag and attribute — CSS Selector</em></strong></p><p><em>This strategy uses the HTML tag and a specific attribute of the element to be accessed.</em></p><p><strong><em>Syntax: </em></strong><em>css=tag[attribute=value]</em></p><ul><li><em>tag = the HTML tag of the element being accessed</em></li><li><em>[ and ] = square brackets within which a specific attribute and its corresponding value will be placed</em></li><li><em>attribute = the attribute to be used. It is advisable to use an attribute that is unique to the element such as a name or ID.</em></li><li><em>value = the corresponding value of the chosen attribute.</em></li></ul><p><strong><em>Example for CSS Selector</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C6VLSr6CjT2k--GXeD9VdQ.png" /><figcaption><strong>Using CSS Selector</strong></figcaption></figure><h3><strong><em>XPath sibling:</em></strong></h3><p><em>Xpath Sibling is defined as a is a function for retrieving a web element that is a child of the parent element. The web element may be readily recognized or accessed using the sibling attribute of the Xpath expression if the parent element is known. In addition, a keyword called sibling can be used to retrieve a web element that is connected to another element.</em></p><p><em>There are two types:</em></p><ol><li><strong><em>following-sibling:</em></strong><em> The Xpath sibling axis is similar to the axis that comes after it.</em></li></ol><p><strong><em>Syntax:</em></strong><em> //node [attribute=’value of attribute’]//following-sibling::attribute</em></p><p><strong><em>2. Preceding-sibling:</em></strong><em> The preceding-sibling axis indicates all the nodes that have the same parent as the context node and appear before the context node in the source document.</em></p><p><strong><em>Syntax:</em></strong><em> //node [attribute=’value of attribute’]//preceding-sibling::attribute</em></p><h3>JMeter</h3><ul><li><strong><em>Non functional testing</em></strong><em>: It is a type of software testing which checks the non functional aspects like response time, how many users can use the application at a time.</em></li><li><strong><em>Performance testing:</em></strong><em> performance testing is in general a testing practice performed to determine how a system performs in terms of responsiveness and stability under a particular workload.</em></li></ul><p><strong><em>Types of Performance Testing</em></strong></p><ol><li><strong><em>Load testing: </em></strong><em>Testing the performance up to the limit.</em></li></ol><p><strong><em>Example</em></strong><em>: If a limit of user for a particular website is 1000, then in load testing we gradually increase the number of limit like first 100 users,200 users like that up to 1000 users and checking the performance of the website.</em></p><p><em>2. </em><strong><em>Stress testing: </em></strong><em>Testing the performance beyond the limit.</em></p><p><strong><em>Example:</em></strong><em> If a limit of user for a particular website is 1000, then in stress testing we are testing for 1100 users, 1200 users and so on and checking the performance of the website.</em></p><p><em>3. </em><strong><em>Spike testing: </em></strong><em>Testing by sudden increase or decrease in the number of users and then checking the performance.</em></p><p><em>4.</em><strong><em> Endurance testing:</em></strong><em> Sustainability of the application with the user for longer duration.</em></p><p><em>5. </em><strong><em>Volume testing:</em></strong><em> To check the data capacity of the application.</em></p><h4><strong><em>Tools used for Performance Testing:</em></strong></h4><ul><li><em>Apache JMeter</em></li><li><em>LoadRunner</em></li><li><em>WebLOAD</em></li><li><em>LoadUI</em></li><li><em>LoadView</em></li><li><em>NeoLoad</em></li></ul><h3><strong><em>Apache JMeter</em></strong></h3><p><strong><em>What is JMeter: </em></strong><em>Apache JMeter is an Apache project that can be used as a load testing tool for analyzing and measuring the performance of a variety of services, with a focus on web applications.</em></p><h4><strong><em>Advantages of JMeter</em></strong></h4><ul><li><em>Open-source</em></li><li><em>User-friendly</em></li><li><em>Recording</em></li><li><em>Reporting</em></li></ul><h4><strong><em>JMeter installation</em></strong></h4><p><strong><em>Step 1</em></strong><em>: To use JMeter first you need to have java jdk downloaded. If java is already installed in your laptop then directly go for downloading JMeter else first install java.</em></p><ul><li><em>To download java. Go to google and search for java jdk 18 download and click on first link.</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Awi0J2gW2y5fLtT6auWs-w.png" /></figure><p><em>Click on link of windows x64 installer the java is gets installed to your system, click on that downloaded file and complete installation process.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BZGC2tLXJpcUlkdyayBHIw.png" /></figure><p><strong><em>Step 2</em></strong><em>: Once java is installed then go for downloading JMeter. To download JMeter click on google chrome and search for Apache JMeter download and click on first link.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SCtmO4ngidnb3v2hrJUyiA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nIX41oV_r2D1MpqnWqbjEw.png" /></figure><p><strong><em>Step 3:</em></strong><em> Extract that zip folder to any one drive like C drive or D drive.</em></p><p><strong><em>Step 4:</em></strong><em> Then open that extracted file and click on bin folder and then click on JMeter which is windows batch file.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v8fw79b_rJlpWBRvBI2mPg.png" /><figcaption><strong>JMeter Batch File</strong></figcaption></figure><p><strong><em>Step 6: </em></strong><em>Once you click on that file your JMeter gets open along with command prompt.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sqYdulUCF0RYk7KpsOipOQ.png" /><figcaption><strong>JMeter Home Page</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9KiAXlQ2B3lbIHtvByv56Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1OwQkR198Cecu7pueN6U5A.png" /><figcaption><strong>View Result Tree</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zs9Z57N30BRWlzN2o5xO5A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T_Xngo7jnij41kreGWK-dg.png" /><figcaption><strong>Creating Threading and Controllers</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wpObBacdCsRGi_EBUTjR6Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ahhFiqobszMQlbkt-CUe2g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n6JqXpF0DdhlfcfnPPrBoQ.png" /><figcaption><strong>HTTP request</strong></figcaption></figure><p><strong><em>Some of the controllers are:</em></strong></p><ol><li><strong><em>Loop controller:</em></strong><em> Loop Controller makes the user request run a specified number of times or run forever.</em></li><li><strong><em>Random controller: </em></strong><em>Random Controller makes all the user requests run in the random order in each loop period.</em></li><li><strong><em>Throughput controller: </em></strong><em>Primary objective of Throughput Controller is to define and control the User Load for each group separately under same Thread Group.</em></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/943/0*1z9K69PFCS1HGS53.png" /></figure><p><strong><em>Loop controller</em></strong></p><p><em>Add name to the controller and enter how many times the sampler needs to be done. Drag and drop the sampler that you want to execute under loop controller as shown in above picture.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8k-AyS1dTDacf1uK.png" /></figure><p><strong><em>Random controller</em></strong></p><p><em>Random controller will execute either of two sampler here I took 2 samplers and put them under random controller while executing it will select the Sampler randomly.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=697d9e87fe8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Manual Testing]]></title>
            <link>https://medium.com/@tasmiyam72/automation-testing-59f8172d741f?source=rss-b94fc72264be------2</link>
            <guid isPermaLink="false">https://medium.com/p/59f8172d741f</guid>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Tasmiya Mansoor]]></dc:creator>
            <pubDate>Tue, 06 Sep 2022 16:29:06 GMT</pubDate>
            <atom:updated>2022-09-28T18:01:54.328Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Date Sep 6, 2022</em></p><p><em>From September 6th the session was completely on Software testing and Automation part. These sessions was handled by Ranjitha and Ashok. Ranjitha was taking software and manual testing part where as Ashok handling Automation and Java.</em></p><p><strong><em>What is Software testing?</em></strong></p><p><em>Software Testing is a method to check whether the actual software product matches expected requirements.</em></p><p><strong><em>Principles of Software testing:</em></strong></p><ul><li><em>Test to find defect</em></li><li><em>Exhaustive testing</em></li><li><em>Early testing </em></li><li><em>Defect clustering </em></li><li><em>Pesticide Paradox </em></li><li><em>Testing is context dependent</em></li></ul><p><strong><em>Types of testing</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*IQ9wIYlXYae5SLXVC9T29w.png" /><figcaption>Types of Testing</figcaption></figure><p><strong><em>1. White Box Testing:</em></strong><em> Testing performed based on knowledge of the internal program design and code.</em></p><p><strong><em>2. Black Box Testing:</em></strong><em> Testing performed based on requirements and functionalities.</em></p><p><strong><em>3. Grey Box Testing: </em></strong><em>Grey Box Testing is a software testing method, which is a combination of both White Box Testing and Black Box Testing method.</em></p><p><strong><em>4. Functional Testing: </em></strong><em>Type of Black Box Testing performed to verify and validate the application against the given requirements.<br></em><strong><em>5. Non Functional Testing: </em></strong><em>Type of Black Box Testing performed to test the performance, load and reliability.</em></p><p><strong><em>6. Unit Testing:</em></strong><em> Type of testing performed by developers to test individual unit/components of a software.</em></p><p><strong><em>7. Integration Testing:</em></strong><em> Type of testing to test integration between different modules of an application.</em></p><p><strong><em>8. System Testing: </em></strong><em>Type of testing to test the entire system as per the requirements.</em></p><p><strong><em>9. Performance Testing: </em></strong><em>Type of testing performed to test response time, stability and stress.</em></p><p><strong><em>10. Load Testing: </em></strong><em>Testing the application under a range of load to determine the threshold point where the system response time deviates or fails from the normal behavior.</em></p><p><strong><em>11. Stress Testing: </em></strong><em>Testing the application with abnormal situation.</em></p><p><strong><em>12. Compatibility Testing:</em></strong><em> Testing the behavior of an application on different hardware/OS/Software.</em></p><p><strong><em>13. Scalability Testing:</em></strong><em> Type of Performance testing, where we test the flexibility of the application to scale up in proportion to the increasing demand of the user work load.<br></em><strong><em>14. Stability Testing: </em></strong><em>Type of Non Functional testing performed to measure quality and efficiency of a software application.</em></p><p><strong><em>15. Usability Testing:</em></strong><em> Is also known as User Experience(UX) Testing and it is a method of measuring how easy is the application to use<br></em><strong><em>16. Regression Testing: </em></strong><em>Testing performed when there is a code change in the application.</em></p><p><strong><em>17. Smoke Testing: </em></strong><em>High level testing performed after the build and before the release.</em></p><p><strong><em>18. Sanity Testing:</em></strong><em> Testing performed to test if build is working fine after the code change.</em></p><p><strong><em>What is software?</em></strong></p><p><em>Collection of computer programs that help us to perform a task.</em></p><p><strong><em>Types of Software:</em></strong><em> System Software, Programming Software, Application Software.</em></p><p><strong><em>Software Quality:</em></strong><em> This is used to check how good the project is working based on some parameters which is listed below,</em></p><ul><li><em>Bug Free</em></li><li><em>Delivery on Time</em></li><li><em>Within Budget</em></li><li><em>Meets Requirements</em></li><li><em>Maintenance</em></li></ul><p><strong><em>Project:</em></strong><em> If software is developed basis on specific customer based requirements.</em></p><p><strong><em>Product:</em></strong><em> If software is developed based on Market based requirements.</em></p><p><strong><em>Error:</em></strong><em> It is created by Human. An Error is a mistake made in the code due to which compilation or execution fails.</em></p><p><strong><em>Failure:</em></strong><em> If the tester missed to tell the presence of bug and moved to the end user, end user found the bug.</em></p><p><strong><em>Bug:</em></strong><em> A bug refers to defects which means that the software product or the application is not working as per the adhered requirements set.</em></p><p><strong><em>Why Software has bugs?</em></strong></p><ul><li><em>Miscommunication</em></li><li><em>Lack of resources</em></li><li><em>Software complexity</em></li><li><em>Programming errors</em></li><li><em>Changing requirements</em></li></ul><p><strong><em>Software Requirements Specification(SRS) Provided to testers:</em></strong></p><ul><li><em>Test Analyze</em></li><li><em>Test Planning</em></li><li><em>Test Design — Test case</em></li><li><em>Environment setup</em></li><li><em>Test Execution</em></li><li><em>Test Closure</em></li></ul><p><strong><em>QA, QC, QE</em></strong></p><ul><li><strong><em>QA:</em></strong><em> Quality Assurance</em></li><li><strong><em>QC:</em></strong><em> Quality Control</em></li><li><strong><em>QE: </em></strong><em>Quality Engineering</em></li></ul><p><strong><em>Quality Assurance:</em></strong></p><ul><li><em>Related to Process</em></li><li><em>Building quality software</em></li><li><em>Try to present the defects</em></li><li><em>It is a part of software development life cycle.</em></li></ul><p><strong><em>Quality Control:</em></strong></p><ul><li><em>Related to actual software tests.</em></li><li><em>Test the quality</em></li><li><em>It find out the defects</em></li><li><em>It is also a part of software development life cycle</em></li></ul><h3>Black box testing</h3><p><em>Testing performed based on the Requirements/Functionalities and performed by Software Testers.</em></p><p><strong><em>Black Box Testing Techniques:</em></strong><em><br>1. Error Guessing<br>2. Boundary Value Analysis<br>3. Decision Table Technique<br>4. State Transition Technique<br>5. Equivalence Partitioning</em></p><ol><li><strong><em>Error Guessing: </em></strong><em>It is a testing in which testers will use their skills and try to find bugs.</em></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/0*lm2gOTmgXZUzZzL6.png" /><figcaption><strong>Example for Error Guessing</strong></figcaption></figure><p><strong><em>2. Equivalence partitioning/Equivalence class partitioning</em></strong><em>: In this we are breaking the range into different classes.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/0*3mvGHrxLJZ9bdjQL.png" /><figcaption><strong>Example for Equivalence partitioning</strong></figcaption></figure><p><strong><em>3. Boundary value analysis</em></strong><em>: Here we are considering the extrema ends.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*97vnh7CbNZOWEFES.png" /><figcaption><strong>Boundary Value analysis</strong></figcaption></figure><p><strong><em>4. Decision table technique</em></strong><em>: It is used to test the system behavior.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*up-__OjNVosaio_Lo5ouIA.png" /><figcaption><strong><em>Decision table technique</em></strong></figcaption></figure><p><strong><em>5. State transition technique</em></strong><em>: In this input provided causes the change in states, based on the input state will change.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*CgltdHuh-Y1R2QsWRc6qqw.png" /><figcaption><strong><em>State transition technique</em></strong></figcaption></figure><p><strong><em>Integration Testing:</em></strong><em> Testing the communication between the modules by adding the modules incrementally.</em></p><p><strong><em>Types of Integration Testing:</em></strong></p><p><em>1. Incremental Integration Testing<br>2. Non Incremental Integration Testing</em></p><p><strong><em>Different approaches of Incremental Integration Testing:</em></strong><em><br>1. Top Down Incremental Integration Testing<br>2. Bottom Up Incremental Integration Testing<br>3. Hybrid/Sandwich Incremental Integration Testing</em></p><p><strong><em>System testing:</em></strong><em> It is a process of testing end to end functionality against the given requirements.</em></p><p><strong><em>System Testing focus on:</em></strong><em><br>1. User Interface Testing(GUI)<br>2. Functional Testing<br>3. Non Functional Testing<br>4. Usability Testing</em></p><h4><strong><em>Test plan and Test case design</em></strong></h4><ul><li><em>We learnt about template of test plan and tried to write a test plan for Gmail registration.</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/0*_bn_JvGLeyeIReLD.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*TV3mK8fSxJSu463i.png" /><figcaption>Contents should be present in test plan.</figcaption></figure><ul><li><em>These are the attributes that should be present in test plan.</em></li><li><em>Test cases: Test cases are the detail steps to check the functionality.</em></li></ul><p><strong><em>RTM ( Requirement traceability matrix)</em></strong></p><p><em>RTM is a table where you can link the test cases to the requirements and vice-versa. It is also called as Cross Reference Matrix.</em></p><p><strong><em>Parameters of RTM</em></strong></p><ul><li><em>User story/Requirement ID.</em></li><li><em>Test Case ID</em></li><li><em>Bug ID</em></li><li><em>Module Name</em></li></ul><p><strong><em>Types of RTM</em></strong></p><ul><li><em>Forward traceability</em></li><li><em>Backward or reverse traceability</em></li><li><em>Bi-directional traceability</em></li></ul><ol><li><strong><em>Forward traceability matrix</em></strong><em>: It maps requirements to test cases.</em></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/457/1*F9ouYHUL3_W4rdvxMfW3wA.png" /><figcaption><strong>Forward traceability matrix</strong></figcaption></figure><p><strong>2. <em>Backward traceability matrix</em></strong><em>: It maps test cases to requirements.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*PAfq7bAA5jfimgseE1uMJQ.png" /><figcaption><strong>Backward traceability matrix</strong></figcaption></figure><p><strong>3. <em>Bi-directional traceability matrix</em></strong><em>: Combination of both forward and backward traceability matrix.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/1*czrAlMMGBvNXvjYITS34cw.png" /><figcaption><strong>Bi-directional traceability matrix</strong></figcaption></figure><p><strong><em>Example for RTM template 1:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*X1u-jvNmrSgxC_yj1k4PeA.png" /><figcaption>Requirement ID is mapping to test case ID</figcaption></figure><h4>About creating of Jira Project in details</h4><p><em>In Jira first we need to create a scrum project for that we need to create Version, Epic and User Story by selecting Issue type as Story. For that user story we need to add the story points. Later we need create the sprint and we need to drag User story from backlog to sprint and start the sprint.</em></p><blockquote>After creating a scrum project, we are creating Versions and Epics</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K8i7SLfTz5j8wpROx2NCQw.png" /><figcaption><strong>Creating Version and Epics</strong></figcaption></figure><blockquote>Next in Backlog, we are creating a Issue by selecting the Issue type as Story</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CT8hx4fsE9X6fCY5gW1ehw.png" /><figcaption><strong>Creating User Story</strong></figcaption></figure><blockquote>Creating a sprint and giving a duration of 1 week to the sprint. Later we drag the User story from backlog to sprint.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8NrHuSrXdc0HgrAkCXIIwA.png" /><figcaption><strong>Creating the sprint</strong></figcaption></figure><blockquote>Sprint has been started and it will be active for 1 week. Later we create a Issue type as Test. For each Test cases, we are writing the Test Data.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*feOtNxdEevEQLPvHi-uZPw.png" /><figcaption><strong>Active Sprint</strong></figcaption></figure><blockquote>Here we have taken a example of Create an account in Gmail, for this scenario we are writing the Test cases.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mbwRr7QcS-3RCY1A8geVFw.png" /><figcaption><strong>Test cases in Jira</strong></figcaption></figure><blockquote>After writing all the test cases we need to execute these Test cases, by clicking on Execute button to check the status of the Test Cases.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X4KnW02ab_YfGoE3tgZdbA.png" /><figcaption><strong>Execution</strong></figcaption></figure><blockquote>We manually check the Test cases and update the status. If all the Test case passed the whole execution status is passed. If any one of the Test case fails the whole execution fails, at that time we need to raise a defect.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QhgOUr7YWN5v4Vu-0BsaGg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F2-RGMIh8wQe3lU98NcZeA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iFJ0FdlUC52KlUje9hZa1A.png" /><figcaption>Execution of Test cases.</figcaption></figure><p><em>This is how we create a project in Jira and writing the test case with the help of Zephyr squad app (for writing the test case) and executing the same.</em></p><h4>Defect Life Cycle</h4><p><strong><em>Defect Life Cycle: </em></strong><em>It is a journey in which raised bug will be fixed, tested and closed.</em></p><ul><li><strong><em>NEW :</em></strong><em> When defect is figured out by QA, the status of defect will be NEW.</em></li><li><em>NEW Defect can be changed to any of the following status.</em></li></ul><ol><li><strong><em>Open</em></strong><em> — Raised defect is considered by developers and ready to fix.</em></li><li><strong><em>Rejected</em></strong><em> — Raised defect is considered as not a defect.</em></li><li><strong><em>Duplicate</em></strong><em> — Already similar defect is raised.</em></li><li><strong><em>Deferred </em></strong><em>— Developer considered the defect but postponed to fix it in next release.</em></li></ol><ul><li><strong><em>Fixed</em></strong><em> — Developers worked on the raised defect and now it is ready to be tested.</em></li><li><strong><em>Closed</em></strong><em> — Tested by testers and if it is working as expected, defect will be closed.</em></li><li><strong><em>Reopen</em></strong><em> — Tested by testers and if it is not working as expected, defect will be reopened.</em></li><li><em>Next we learnt about Severity and priority:</em></li></ul><ol><li><strong><em>Severity:</em></strong><em> What is the impact of bug to the functionality of application.</em></li><li><strong><em>Priority:</em></strong><em> How soon will close the defect.</em></li></ol><h4><strong>Requirement Traceability Matrix</strong> (<strong>RTM</strong>)</h4><p><strong><em>How to write RTM, raise a defect in Jira and Interface concept:</em></strong></p><p><em>Here we have taken a example of Gmail account. How to write RTM: We wrote forward RTM for Gmail project.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/0*agzuCrCgQwpk4fyN.png" /><figcaption><strong>RTM for Gmail</strong></figcaption></figure><p><em>Next we discussed about how to raise a defect in Jira.</em></p><blockquote>First we will set the status to Fail, if the Execution Status is fail, we create a Bug.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DIeJukQP38OFIIf2Jy9sug.png" /><figcaption>Execution Status Fail</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ja_Sf2f1-jOyjf2FLA4b8w.png" /><figcaption>Creating a Bug</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NuUyoG_gyMRr3ozwvWMMBw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jpRYkOqVLdUWqYfr6McXLQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A56zJZxtiS4z4zwGewJ5Gg.png" /><figcaption>Creating a Bug</figcaption></figure><p><em>This is how we create a bug, if the execution status fails.</em></p><h4>Importing of Test case in Jira</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dkKgyDsZcOITN8tpq6qmhA.png" /><figcaption><strong>Select Import Tests</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ghGqD39SlwdoqBSfSmSoVw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qB9Idi2mKwmyuUnbxBOXOg.png" /><figcaption>Choose excel file and Settings</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UzV1CuLmqehHpipOMByEgg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NKscArEellzPhr5R03Pgjw.png" /><figcaption><strong>Mapping</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QybC2K_uEEbpyY-uSeUkeQ.png" /><figcaption><strong>Validation</strong></figcaption></figure><p><em>Later we need to click on Import button The all the test cases present in excel file will be updated.</em></p><h4><strong>Execution of LUMA Test Case in Jira</strong></h4><p><em>LUMA test case involved 11 user stories, we need to execute this in Jira. In Jira first we need to create Scrum project a name LUMA for that we need to create Versions and Epic. Later we need add user stories and we need to create a Sprint. For each user stories we have to write a test case with the help of Zephyr squad.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*wWnr25kNkAogoLol3yGBjA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*17pHREXCgT9hDiTcO09NEw.png" /><figcaption><strong>LUMA User Stories</strong></figcaption></figure><p><strong><em>Creating Versions and Epic</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gAyoX066LlWwnQXo3HaCgQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m893Hz40ej3JzOp81f3duw.png" /><figcaption>Adding User Stories</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7GwZWf2nYAXmhUP3dkKdZQ.png" /><figcaption><strong>Dragging all user stories to Sprint</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q7WQFeUFV_D0m2Mz3R9iKQ.png" /><figcaption><strong>Started the Sprint</strong></figcaption></figure><p><strong><em>Creating Test Cycle</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QQOVbxboWgiqXTrOGIejvQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-PjGy36B7r2DcRmg2cM6JA.png" /><figcaption><strong>Creating test cycle and adding the test cases into it</strong></figcaption></figure><h4>Execution of User story 3</h4><p><em>For execution of User story 3, First we need to document all the test cases in word file.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*DKGyE2sS-TZGjXAVciTbRQ.png" /><figcaption><strong>Word File</strong></figcaption></figure><p><em>The following steps for execution is as follow:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ET1KPVvujWE7cbbcK4rLSA.png" /><figcaption><strong>Test case for User Story 3 (Removing Cart Symbol)</strong></figcaption></figure><p><em>We need to select Add to Existing/New Test Cycle. Also need to select version, cycle Summary and Assign to. It should to be assign to Project Manager</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/1*YRGpka_p64T6ebqDL-oVyg.png" /><figcaption><strong>Execute Test</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yMl9mwU71ezouUV9e7bsnw.png" /><figcaption>Test Steps</figcaption></figure><p><em>Above one test fails so the whole execution Status fails So we need to assign it to the developer for review by Creating and bug and attaching a word File. It is tested in UAT environment.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ANS6dMmH4iNC2Z9hh0k-dw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*zeMv4hX1nDeP8bv9fU-Mrg.png" /><figcaption><strong>Execution Fails</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RpdVCbcTHNxGeyRja0Gvsw.png" /><figcaption><strong>Creating a Bug</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3s9mDwKkNd-aQeFd8kkCmw.png" /><figcaption><strong>User story is marked as done</strong></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59f8172d741f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“My first day in corporate world”.]]></title>
            <link>https://medium.com/@tasmiyam72/my-first-day-in-corporate-world-f3626154b292?source=rss-b94fc72264be------2</link>
            <guid isPermaLink="false">https://medium.com/p/f3626154b292</guid>
            <dc:creator><![CDATA[Tasmiya Mansoor]]></dc:creator>
            <pubDate>Wed, 24 Aug 2022 15:44:51 GMT</pubDate>
            <atom:updated>2022-09-22T05:18:41.776Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Hello folks! I’m Tasmiya. I’m an Information Science Graduate from Jawaharlal Nehru National College of Engineering, Shimoga, Batch of 2022. Currently working at at TietoEvry, Bangalore as Trainee Software Engineer.</em></p><p><em>Heart beating, pulse racing, nerves ticking I entered the threshold of what would be my first day at work, on passing out from a college.</em></p><p><em>I was very much excited to start my new journey after my graduation. I was waiting for my offer letter after my exams, I waited for a long time but after some time I received a letter from the company that you have to be onboard on 11th of august and you have to be in company for two days. At that time my excitement reached the peak. Later I started packing to move to Bangalore for the onboarding process. I was going to Bangalore one day before with my friends. There we stayed in PG and we enjoyed it a lot. I am very much excited about my welcome kit like How’s my welcome kit, what are all the things that are there in that.</em></p><p><em>The next morning, after finishing breakfast we moved to the office, little bit of nervousness and more excitement was there. After entering the office, document verification is done and covid measures are followed, later we are taken to the multipurpose hall, where they have given us a welcome kit and dry fruit box. After seeing that, I was more happy. It consists of a lot of things as it meets my expectations. Later the orientation session started and we clicked a lot of pictures with our senior managers, which was amazing. The corporate world experience was just lit!.</em></p><p><em>The next day we received our laptops. This is how I experienced my first job. Now it’s work from home, In which I am not interested!!. I love the work-from-office experience. I am praying that Soon the office starts.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1BbYNsxmxqjv1z-V52BfKw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yDIqRsUfsNXe8D42hc2wUA.jpeg" /><figcaption>TietoEvry Family❤️</figcaption></figure><h3><strong><em>Excursion of DLithe Bootcamp</em></strong></h3><p><em>In this blog I’m sharing My Bootcamp venture at DLithe.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*yVjWnW95fMqgbur7rvTscQ.jpeg" /></figure><p><em>Soon after the L&amp;D training, our technical handover session was done on 24/08/2022., and it was handed over to DLithe, where Arun addressed us. It was the first technical session, where they first talked about how the sessions were going to be conducted, industrial transformation and some activities were conducted which was quite interesting. One activity I want to quote, because it was quite interesting. The activity was like, we have to give a prefix to our name, where I have given Tenacious Tasmiya to my name. This is how our first session was completed.</em></p><p><em>The second session i.e. on 25/08/2022.,which was handled by Santosh, where he explained about software development life cycle, IaaS, SaaS, Agile process, requirements analysis, DevOps and some kind of activities which were very much interesting. They assigned some simple tasks, which motivated me to learn more and more.</em></p><figure><img alt="Group Activity" src="https://cdn-images-1.medium.com/max/1024/1*coE1RGUXZMHkUVl2oVhfaA.jpeg" /><figcaption>Group Activity!</figcaption></figure><h4><strong><em>Date 26/08/2022 and 27/08/2022 (Session on Agile and Jira)</em></strong></h4><p><em>This session was handled by Yogitha chaya, On the first day, it was completely on Agile and DevOps. I learned about agile methodology and frameworks, Sprints, Standup meetings, Sprint planning, and some basics of DevOps. Also, I learned about the difference between the agile and waterfall model. Along with this Pallavi conducted some activities and Arun taught us about the banking sector, how the banking sector works, types of payment and card’s, different units in bank.</em></p><p><em>The next day, Pallavi teaches us about the use case diagrams and gives some assignments related to use case diagrams, where we need to design the use case diagram for e-banking, e-booking, and e-commerce using an online tool. In the afternoon session, Yoghitha teaches us about the Jira cloud online software. where we learned how to install the Jira software, and how to create an account. Later we created a scrum project and then the story, and backlogs were created, for the story, we created epics, version, and sprint and then started the sprint. Later we created a dashboard and added some gadgets like sprint burndown gadgets, pie charts, etc. This is how we learned some basics of Jira software and how to create projects in Jira.</em></p><h4><em>About Jira</em></h4><p><em>Jira has evolved into a powerful work management tool for all kinds of use cases, from requirements and test case management to agile software development. Jira dashboard is created and some of the issue management and filters are used, some of them are mentioned below.</em></p><ol><li><strong><em>Burned Down Charts : </em></strong><em>It tracks the total work remaining and project the likelihood of achieving the sprint goal. This helps your team manage its progress and respond accordingly.</em></li><li><strong><em>Burnup Charts :</em></strong><em> It tracks the total scope independently from the total work done. This helps your team manage its progress and better understand the effect of scope change.</em></li><li><strong><em>Sprint Report :</em></strong><em> To understand the work completed or pushed back to the backlog in each sprint. This helps you determine if your team is overcommitting or if there is excessive scope creep.</em></li><li><strong><em>Pie Chart Report :</em></strong><em> To report displays all relative workload for assigned and (to which issues are assigned) of all issues in a particular project.</em></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lxCQ8_h-sL32OnVKaFOA6Q.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lHz0BjMXbUBeTCA5CJ2enw.jpeg" /><figcaption><strong><em>Jira Software</em></strong></figcaption></figure><p><strong><em>Date 29/08/2022 to 01/09/2022 (Session of Software programming)</em></strong></p><p><em>This session was handled by Asaithambi Sir, where is taught about the Algorithm, Flow chart, some online tools for designing the flow chart and Pseudocode, OOPs Concepts and basics of programming using Java.</em></p><p><strong><em>Algorithms and Flow charts</em></strong></p><p><strong><em>Algorithm:</em></strong> <em>A finite sequence of instructions. The two properties of algorithm for making it be</em>tter<em>: 1. Time Complexity 2. Space Complexity</em></p><p><strong><em>Example for Algorithm</em></strong><em>:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*9D1DnOalPXr4AiXEm6TtXA.jpeg" /><figcaption>Algorithm to find the greatest of 3 Numbers</figcaption></figure><p><strong><em>Program:</em></strong><em> A sequence of set of instructions given to computer what it has to do.</em></p><p><em>Simple example of C program:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*uM3nJ8Be3GX-vNoyrIYEww.jpeg" /><figcaption>Hello World! Program</figcaption></figure><p><strong><em>Flowcharts: </em></strong><em>Pictorial representation of step by step instructions to solve any problem. for designing a flowchart we used a Raptor tool. In this tool there are some symbols like Assignment, Input, Output, Selection, Loop, Call etc. We have taken the example of username and password validation. Below represents the flowchart for the same which is designed using Raptor tool.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rY-KEDDXwHM5S3hER4VN3w.jpeg" /><figcaption>Flowchart of Username and Password Validation</figcaption></figure><p><strong><em>OOP’s (Object Oriented Programming)</em></strong></p><p><em>In OOP’s we learn about class, objects and some main features, like Encapsulation, Inheritance, Polymorphism and Inheritance.</em></p><p><strong><em>Objects:</em></strong><em> Objects are the basic runtime entities in an object-oriented system. They may represent a person, a place, a bank account, table of data or any item that the program must handle.</em></p><p><strong><em>Class:</em></strong><em> Object contains data, and code to manipulate that data. The entire set of data and code of an object can be made a user- defined data type with the help of a class. A Class is a 3-Compartment Box encapsulating Data and Functions<br>1. Classname (or identifier): identifies the class.<br>2. Data Members or Variables (or attributes, states, fields):<br>contains the static attributes of the class.<br>3. Member Functions (or methods, behaviors, operations):<br>contains the dynamic operations of the class.</em></p><p><strong><em>Inheritance:</em></strong><em> Inheritance is the process by which objects of one class acquire the properties of objects of another class.In OOP, the concept of inheritance provides the idea of reusability. This means we can add additional features to an existing class without modifying it.</em></p><p><strong><em>Polymorphism: </em></strong><em>Polymorphism, a Greek term means to ability to take more than one form. An operation may exhibit different behaviors in different instances. The behavior depends upon the type of data used in the operation.</em></p><p><strong><em>Encapsulation: </em></strong><em>The wrapping up of data and functions into a single unit is known as encapsulation. The data is not accessible to the outside world, only those function which are wrapped in the can access it. These functions provide the interface between the object’s data and the program. This insulation of the data from direct access by the program is called data hiding or information hiding.</em></p><p><strong><em>Data Abstraction: </em></strong><em>Abstraction refers to the act of representing essential features without including the background details or explanations. Since classes use the concept of data abstraction, they are know as Abstract Data Types (ADT).</em></p><p><em>We also learn about programming in Java and implemented the same. Below is an example for finding the square and cube numbers using constructors.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rPGNYwUeULsyrx5DTl0b_Q.png" /><figcaption>Finding Square and Cube Numbers</figcaption></figure><h4><strong><em>Date 02/09/2022 [Session on Software Testing ]</em></strong></h4><p><em>This session was handled by Ranjitha, It was quite an interesting session, where we learned about the basics of testing, types of testing, principles of testing, and how to use Jira for testing.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*T4HUirTRzc2r9XgGSAoTdg.png" /><figcaption>STLC (Software Testing Life Cycle)</figcaption></figure><p><em>The STLC (Software Testing Life Cycle), which covers stages of the testing process, is another name for the software testing process. The testing procedure is carried out in a planned and organised fashion. Every action is taken to raise the calibre of the software product.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fPbAc-2l-y3mWRJaJmGd8g.png" /><figcaption>Jira Proces</figcaption></figure><p><em>The above figure represents how we created a test case using Jira software. In that, we created a test case and checked for the pass conditions and later we created a test case for defects.</em></p><h4>Date 03/09/2022 [Session on Database]</h4><p><em>The database session was handled by Pallavi. where we learned about the basis of DBMS and RDBMS like how to create a database, normalization of database, types of SQL languages.</em></p><p><em>These SQL commands are mainly categorized into four categories as:</em></p><ol><li><strong><em>DDL</em></strong><em> — Data Definition Language</em></li><li><strong><em>DQl</em></strong><em> — Data Query Language</em></li><li><strong><em>DML </em></strong><em>— Data Manipulation Language</em></li><li><strong><em>DCL</em></strong><em> — Data Control Language</em></li></ol><p>1.<strong><em>DDL:</em></strong><em> Data Definition Language actually consists of the SQL commands that can be used to define the database schema. List of DDL commands:</em></p><ul><li><strong><em>CREATE</em></strong><em>: This command is used to create the database or its objects (like table, index, function, views, store procedure, and triggers).</em></li><li><strong><em>DROP:</em></strong><em> This command is used to delete objects from the database.</em></li><li><strong><em>ALTER: </em></strong><em>This is used to alter the structure of the database.</em></li></ul><p><em>2.</em><strong><em>DQL: </em></strong><em>The</em><strong><em> </em></strong><em>statements are used for performing queries on the data within schema objects. The purpose of the DQL Command is to get some schema relation based on the query passed to it. List of DQL:</em></p><ul><li><strong><em>SELECT: </em></strong><em>It is used to retrieve data from the database.</em></li></ul><p><em>3.</em><strong><em> DML:</em></strong><em> The SQL commands that deals with the manipulation of data present in the database belong to DML or Data Manipulation Language and this includes most of the SQL statements. List of DML commands:</em></p><ul><li><strong><em>INSERT</em></strong><em> : It is used to insert data into a table.</em></li><li><strong><em>UPDATE:</em></strong><em> It is used to update existing data within a table.</em></li><li><strong><em>DELETE</em></strong><em> : It is used to delete records from a database table.</em></li></ul><p><em>4. </em><strong><em>DCL: </em></strong><em>It includes commands such as GRANT and REVOKE which mainly deal with the rights, permissions, and other controls of the database system.</em></p><p><em>This was my excursion of my generic training where we learned about many more concepts like Software development process, Jira, OOP’s concepts, Testing and Database.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f3626154b292" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>