<?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 Sunil Bombe on Medium]]></title>
        <description><![CDATA[Stories by Sunil Bombe on Medium]]></description>
        <link>https://medium.com/@sunil.bombe1998?source=rss-88d5662ef63b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*K1xSJuHfCcyXHQdXiPUinA.jpeg</url>
            <title>Stories by Sunil Bombe on Medium</title>
            <link>https://medium.com/@sunil.bombe1998?source=rss-88d5662ef63b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 14:48:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sunil.bombe1998/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[Playwright Interview Questions]]></title>
            <link>https://medium.com/@sunil.bombe1998/playwright-interview-questions-792609fdf428?source=rss-88d5662ef63b------2</link>
            <guid isPermaLink="false">https://medium.com/p/792609fdf428</guid>
            <dc:creator><![CDATA[Sunil Bombe]]></dc:creator>
            <pubDate>Tue, 14 Jul 2026 05:55:53 GMT</pubDate>
            <atom:updated>2026-07-14T05:55:53.604Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ivhqtk76iT13NkIgJauuKA.png" /></figure><h3>1. What is Playwright?</h3><p><strong>Answer:</strong><br> Playwright is an open-source end-to-end automation framework developed by Microsoft. It supports Chromium, Firefox, and WebKit using a single API.</p><h3>2. Why Playwright over Selenium?</h3><p>PlaywrightSeleniumAuto waitsManual waits often neededFasterComparatively slowerMultiple browser contextsRequires separate browser instancesBuilt-in network mockingLimited supportBetter handling of modern SPAsMore configuration neededSupports Chromium, Firefox, WebKitBrowser driver dependent</p><h3>3. Which browsers does Playwright support?</h3><ul><li>Chromium</li><li>Firefox</li><li>WebKit</li><li>Google Chrome</li><li>Microsoft Edge</li></ul><h3>4. Difference between Browser, BrowserContext and Page?</h3><p><strong>Browser</strong></p><ul><li>Actual browser instance.</li></ul><p><strong>BrowserContext</strong></p><ul><li>Incognito session.</li><li>Multiple contexts can exist in one browser.</li><li>Page</li><li>A single browser tab.</li></ul><pre>Browser<br>   |<br>   |-- Context1<br>   |      |<br>   |      |-- Page1<br>   |      |-- Page2<br>   |<br>   |-- Context2<br>          |<br>          |-- Page1</pre><h3>5. What is auto waiting?</h3><p>Playwright automatically waits for:</p><ul><li>Element attached</li><li>Visible</li><li>Stable</li><li>Enabled</li><li>Receives events</li></ul><p>Example:</p><pre>await page.getByRole(&#39;button&#39;).click();</pre><p>No explicit wait required.</p><h3>6. What are Locators?</h3><p>Locators are Playwright&#39;s recommended way to find elements.</p><p>Examples</p><pre>page.locator()<br><br>page.getByRole()<br><br>page.getByText()<br><br>page.getByLabel()<br><br>page.getByPlaceholder()<br><br>page.getByTestId()</pre><h3>7. Which locator is preferred?</h3><p>Priority</p><ol><li>getByRole()</li><li>getByLabel()</li><li>getByPlaceholder()</li><li>getByText()</li><li>getByTestId()</li><li>CSS/XPath</li></ol><h3>8. Difference between locator() and $</h3><pre>locator()</pre><ul><li>Lazy evaluation</li><li>Auto wait</li><li>Retry</li><li>Recommended</li></ul><pre>page.$()</pre><ul><li>Returns ElementHandle</li><li>No retry</li><li>Deprecated approach</li></ul><h3>9. Difference between fill() and type()</h3><p>fill()</p><ul><li>Clears textbox first</li><li>type()</li><li>Types character by character</li></ul><h3>10. Difference between click() and dblclick()</h3><pre>await locator.click();<br>await locator.dblclick();</pre><h3>Intermediate Questions</h3><h3>11. How does Playwright handle synchronization?</h3><p>Using</p><ul><li>Auto waiting</li><li>expect()</li><li>waitForSelector()</li><li>waitForURL()</li><li>waitForLoadState()</li></ul><h3>12. What are different wait methods?</h3><pre>waitForSelector()<br>waitForLoadState()<br>waitForTimeout()<br>waitForURL()<br>waitForEvent()<br>waitForResponse()<br>waitForRequest()</pre><h3>13. Why avoid waitForTimeout()?</h3><p>Hard waits</p><ul><li>Slow execution</li><li>Flaky tests</li></ul><h3>14. Difference between waitForSelector() and expect()</h3><pre>await page.waitForSelector(&#39;#msg&#39;);</pre><p>Only waits.</p><pre>await expect(locator).toBeVisible();</pre><p>Waits + verifies.</p><h3>15. How to upload a file?</h3><pre>await page.setInputFiles(&#39;input&#39;, &#39;sample.pdf&#39;);</pre><h3>16. Handle multiple tabs</h3><pre>const pagePromise = context.waitForEvent(&#39;page&#39;);<br>await page.click(&#39;#open&#39;);<br>const newPage = await pagePromise;</pre><h3>17. Handle alerts</h3><pre>page.on(&#39;dialog&#39;, async dialog =&gt; {<br>   await dialog.accept();<br>});</pre><h3>18. Handle frames</h3><pre>const frame =<br>page.frameLocator(&#39;#frame&#39;);<br>await frame.locator(&#39;#name&#39;).fill(&#39;Sunil&#39;);</pre><h3>19. Handle dropdown</h3><pre>await locator.selectOption(&#39;India&#39;);</pre><h3>20. Handle dynamic elements?</h3><ul><li>Smart locators</li><li>Auto waiting</li><li>Relative locators</li><li>Retry assertions</li></ul><h3>Advanced Questions</h3><h3>21. Explain Browser Context.</h3><p>Each context is an isolated session.</p><p>Useful for</p><ul><li>Parallel execution</li><li>Multiple users</li><li>Incognito sessions</li></ul><h3>22. API Testing in Playwright</h3><pre>const request =<br>await playwright.request.newContext();<br>const response =<br>await request.get(url);</pre><h3>23. Mock API Response</h3><pre>await page.route(<br>&#39;**/users&#39;,<br>route =&gt; route.fulfill({<br>status:200,<br>body:JSON.stringify(data)<br>}));</pre><h3>24. Block Network Calls</h3><pre>await page.route(<br>&#39;**/*.png&#39;,<br>route =&gt; route.abort()<br>);</pre><h3>25. Capture Screenshot</h3><pre>await page.screenshot({<br>path:&#39;home.png&#39;<br>});</pre><h3>26. Record Video</h3><pre>use:{<br>video:&#39;on&#39;<br>}</pre><h3>27. Trace Viewer</h3><pre>use:{<br>trace:&#39;on-first-retry&#39;<br>}</pre><p>Open</p><pre>npx playwright show-trace trace.zip</pre><h3>28. Retry Failed Tests</h3><pre>retries:2</pre><h3>29. Parallel Execution</h3><pre>workers:4</pre><h3>30. Serial Execution</h3><pre>test.describe.configure({<br>mode:&#39;serial&#39;<br>});</pre><h3>Framework Questions</h3><h3>31. Explain your Playwright framework architecture.</h3><p>Mention:</p><ul><li>Page Object Model</li><li>Fixtures</li><li>Utilities</li><li>Config</li><li>Test Data</li><li>API Layer</li><li>Reports</li><li>CI/CD</li><li>Logger</li></ul><h3>32. How do you manage test data?</h3><ul><li>JSON</li><li>CSV</li><li>Excel</li><li>Environment files</li></ul><h3>33. How do you execute different environments?</h3><p>Using</p><pre>.env.dev<br>.env.qa<br>.env.stage<br>.env.prod</pre><h3>34. Which reports have you used?</h3><ul><li>HTML</li><li>Allure</li><li>JSON</li><li>JUnit</li></ul><h3>35. CI/CD integration?</h3><ul><li>Jenkins</li><li>GitHub Actions</li><li>Azure DevOps</li></ul><h3>36. How do you handle flaky tests?</h3><ul><li>Stable locators</li><li>Auto waits</li><li>Retry</li><li>Network mocking</li><li>Proper assertions</li></ul><h3>37. Difference between Fixtures and Hooks?</h3><p>Hooks</p><pre>beforeEach()<br>afterEach()</pre><p>Fixtures</p><p>Reusable objects shared across tests.</p><h3>38. Explain test.describe().</h3><p>Groups related test cases.</p><h3>39. Explain test.step().</h3><p>Improves reporting.</p><h3>40. Soft Assertion</h3><pre>await expect.soft(locator)<br>.toBeVisible();</pre><p>Execution continues even if the assertion fails.</p><h3>Coding Questions</h3><h3>Reverse string</h3><pre>function reverse(str){<br>return str.split(&#39;&#39;).reverse().join(&#39;&#39;);<br>}</pre><h3>Find duplicate array elements</h3><pre>const arr=[1,2,2,3,4,4];<br>const dup=arr.filter(<br>(item,index)=&gt;<br>arr.indexOf(item)!==index<br>);</pre><h3>Count characters</h3><pre>const map={};<br>for(const c of str){<br>map[c]=(map[c]||0)+1;<br>}</pre><h3>Remove duplicates</h3><pre>[...new Set(arr)]</pre><h3>Sort numbers</h3><pre>arr.sort((a,b)=&gt;a-b);</pre><h3>Scenario-Based Questions</h3><ol><li>How would you automate OTP login?</li><li>How would you test file downloads?</li><li>How do you handle CAPTCHA in automation?</li><li>How would you automate infinite scrolling?</li><li>How would you test a table with 10,000 rows?</li><li>How would you test a React application?</li><li>How do you handle shadow DOM?</li><li>How do you test WebSockets?</li><li>How do you verify emails received after registration?</li><li>How do you debug a flaky Playwright test?</li></ol><h3>1. How would you automate OTP login?</h3><h3>Expected Answer</h3><p>OTP should <strong>not</strong> be automated by reading the actual SMS or email in UI automation because it depends on external systems and makes tests flaky.</p><p>Instead, I would use one of these approaches:</p><h3>Approach 1 (Preferred) — Test Environment Bypass</h3><p>Ask developers to provide:</p><ul><li>Static OTP</li><li>API to fetch OTP</li><li>Disable OTP in QA</li><li>Test-only authentication endpoint</li></ul><p>This is the most reliable approach.</p><h3>Approach 2 — Read OTP from Database</h3><p>If OTP is stored in DB:</p><pre>const otp = await getOtpFromDB(phoneNumber);<br>await page.getByLabel(&#39;OTP&#39;).fill(otp);</pre><h3>Approach 3 — Read OTP from Email</h3><p>Using Gmail API or MailSlurp.</p><pre>const otp = await mailSlurp.getLatestOTP();</pre><h3>Approach 4 — Read OTP from SMS Service</h3><p>Twilio API</p><p>AWS SNS</p><p>MessageBird</p><p><strong>Interview Tip</strong></p><blockquote><em>“I avoid UI automation of actual SMS because it creates dependency on third-party services. I prefer backend APIs or test hooks.”</em></blockquote><h3>2. How would you test file downloads?</h3><p>Playwright provides download events.</p><pre>const downloadPromise =<br>page.waitForEvent(&#39;download&#39;);<br>await page.click(&#39;text=Download&#39;);<br>const download =<br>await downloadPromise;<br>await download.saveAs(&#39;downloads/report.pdf&#39;);</pre><p>Validate</p><ul><li>File exists</li><li>File name</li><li>File size</li><li>Extension</li><li>Content</li></ul><p>Example</p><pre>expect(download.suggestedFilename())<br>.toContain(&#39;.pdf&#39;);</pre><h3>3. How do you handle CAPTCHA?</h3><p><strong>Never automate CAPTCHA.</strong></p><p>CAPTCHA exists specifically to prevent automation.</p><p>Instead use</p><ul><li>Disable CAPTCHA in QA</li><li>Test bypass token</li><li>Whitelist automation IP</li><li>Mock CAPTCHA validation</li></ul><p>If interviewer insists</p><p>Google reCAPTCHA provides test keys.</p><p>Good interview answer</p><blockquote><em>“CAPTCHA itself shouldn’t be automated. In QA we normally bypass it or mock its validation.”</em></blockquote><h3>4. How would you automate infinite scrolling?</h3><p>Keep scrolling until no more content loads.</p><pre>let previousHeight = 0;<br>while (true) {<br>const currentHeight =<br>await page.evaluate(() =&gt;<br>document.body.scrollHeight);<br>if(currentHeight===previousHeight)<br>break;<br>previousHeight=currentHeight;<br>await page.evaluate(()=&gt;<br>window.scrollTo(0,document.body.scrollHeight));<br>await page.waitForTimeout(1000);<br>}</pre><p>Better approach</p><p>Wait for API response instead of timeout.</p><h3>5. How would you test a table with 10,000 rows?</h3><p>Never validate all rows.</p><p>Instead</p><ul><li>Pagination testing</li><li>Search functionality</li><li>Sorting</li><li>Filtering</li><li>Random sampling</li><li>API validation</li></ul><p>Example</p><pre>const rows =<br>page.locator(&#39;table tbody tr&#39;);<br>await expect(rows)<br>.toHaveCount(50);</pre><p>Validate backend data instead of every UI row.</p><p>Interview Tip</p><blockquote><em>“UI should validate representative data while backend/API validates the full dataset.”</em></blockquote><h3>6. How would you test a React application?</h3><p>Focus on</p><ul><li>Dynamic DOM updates</li><li>Component rendering</li><li>State changes</li><li>API calls</li><li>Loading spinner</li><li>Lazy loading</li></ul><p>Use</p><pre>getByRole()<br>getByLabel()<br>getByTestId()</pre><p>Avoid XPath.</p><p>React updates DOM frequently.</p><p>Use auto waiting.</p><p>Interview Tip</p><p>Prefer accessibility-based locators because they remain stable across UI changes.</p><h3>7. How do you handle Shadow DOM?</h3><p>Playwright automatically supports open Shadow DOM.</p><p>Example</p><pre>await page<br>.locator(&#39;custom-element&#39;)<br>.locator(&#39;#submit&#39;)<br>.click();</pre><p>or</p><pre>page.locator(<br>&#39;custom-element &gt;&gt; button&#39;);</pre><p>Closed Shadow DOM cannot be accessed directly. In such cases, ask developers to expose test hooks or test the behavior through the public UI.</p><h3>8. How do you test WebSockets?</h3><p>Listen for WebSocket events.</p><pre>page.on(&#39;websocket&#39;, ws =&gt; {<br>console.log(ws.url());<br>ws.on(&#39;framereceived&#39;,<br>data=&gt;console.log(data));<br>ws.on(&#39;framesent&#39;,<br>data=&gt;console.log(data));<br>});</pre><p>Validate</p><ul><li>Connection established</li><li>Correct messages</li><li>Reconnection</li><li>Error handling</li></ul><h3>9. How do you verify emails received after registration?</h3><p>Preferred options</p><ul><li>MailSlurp</li><li>MailHog</li><li>Mailtrap</li><li>Gmail API</li></ul><p>Flow</p><pre>Register User<br>↓<br>Wait for Email<br>↓<br>Open Email<br>↓<br>Validate Subject<br>↓<br>Validate Body<br>↓<br>Click Verification Link</pre><p>Example</p><pre>const email =<br>await mailSlurp.waitForLatestEmail();</pre><p>Validate</p><ul><li>Subject</li><li>Sender</li><li>OTP</li><li>Verification link</li></ul><h3>10. How do you debug a flaky Playwright test?</h3><p>My debugging approach:</p><h3>Step 1</h3><p>Run headed</p><pre>npx playwright test --headed</pre><h3>Step 2</h3><p>Run in debug mode</p><pre>npx playwright test --debug</pre><h3>Step 3</h3><p>Trace Viewer</p><pre>npx playwright show-trace trace.zip</pre><h3>Step 4</h3><p>Record video</p><pre>use:{<br>video:&#39;retain-on-failure&#39;<br>}</pre><h3>Step 5</h3><p>Capture screenshots</p><pre>await page.screenshot({<br>path:&#39;failed.png&#39;<br>});</pre><h3>Step 6</h3><p>Check network requests</p><pre>page.on(&#39;request&#39;, request =&gt; {<br>    console.log(request.url());<br>});<br>page.on(&#39;response&#39;, response =&gt; {<br>    console.log(response.status(), response.url());<br>});</pre><h3>Step 7</h3><p>Inspect logs and console errors</p><pre>page.on(&#39;console&#39;, msg =&gt; console.log(msg.text()));<br>page.on(&#39;pageerror&#39;, error =&gt; console.log(error.message));</pre><h3>Step 8</h3><p>Look for common causes</p><ul><li>Unstable locators</li><li>Hard waits (waitForTimeout)</li><li>Missing assertions</li><li>Race conditions</li><li>Slow API responses</li><li>Shared test data</li><li>Tests that depend on execution order</li></ul><h3>Interview Summary (2-minute answer)</h3><p>If asked, “How do you debug flaky tests?”, you can answer:</p><blockquote><em>“I first reproduce the issue by running the test in headed and debug mode. Then I use Playwright Trace Viewer, videos, screenshots, browser console logs, and network logs to identify where it fails. I verify whether the failure is due to unstable locators, synchronization issues, slow APIs, or shared test data. I replace hard waits with Playwright’s auto-waiting and assertion mechanisms, use resilient locators like </em><em>getByRole or </em><em>getByTestId, and isolate tests to ensure they are independent. This systematic approach helps eliminate flakiness rather than just masking it with retries.&quot;</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=792609fdf428" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an Enterprise-Grade Selenium Cucumber TestNG Automation Framework with Java]]></title>
            <link>https://medium.com/@sunil.bombe1998/building-an-enterprise-grade-selenium-cucumber-testng-automation-framework-with-java-922600386572?source=rss-88d5662ef63b------2</link>
            <guid isPermaLink="false">https://medium.com/p/922600386572</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[cucumber]]></category>
            <category><![CDATA[selenium]]></category>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[software-testing]]></category>
            <dc:creator><![CDATA[Sunil Bombe]]></dc:creator>
            <pubDate>Tue, 14 Jul 2026 05:25:29 GMT</pubDate>
            <atom:updated>2026-07-14T05:25:29.863Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rl45LJyH_Z1_akbOQIfHaw.png" /></figure><h3>Subtitle</h3><blockquote><em>Learn how to design a scalable UI Automation Framework using Selenium 4, Java 21, Cucumber BDD, TestNG, PicoContainer Dependency Injection, and the Page Object Model.</em></blockquote><h3>Proposed Table of Contents</h3><ol><li>Introduction</li><li>Why Build a Custom Automation Framework?</li><li>What is a Test Automation Framework?</li><li>Why Selenium + Cucumber + TestNG?</li><li>Framework Architecture</li><li>Technology Stack</li><li>Project Structure</li><li>Framework Design Principles</li><li>Dependency Injection using PicoContainer</li><li>Page Object Model (POM)</li><li>Driver Management</li><li>Test Context Management</li><li>Utility Layer</li><li>Configuration Management</li><li>Cucumber Features</li><li>Step Definitions</li><li>Hooks</li><li>Test Execution</li><li>Parallel Execution</li><li>Reporting</li><li>CI/CD Integration</li><li>Framework Workflow</li><li>Best Practices</li><li>Common Mistakes</li><li>Interview Questions</li><li>Future Enhancements</li><li>Conclusion</li></ol><h3>Introduction</h3><p>Modern web applications are becoming increasingly dynamic and complex, making manual testing both time-consuming and error-prone. To support rapid Agile and DevOps release cycles, organizations require automation frameworks that are scalable, maintainable, reusable, and easy to extend.</p><p>In this article, we’ll build an enterprise-grade UI automation framework using:</p><ul><li>Java 21</li><li>Selenium 4</li><li>Cucumber BDD</li><li>TestNG</li><li>PicoContainer</li><li>Maven</li></ul><p>We’ll also explore the design patterns and architectural decisions that make the framework production-ready.</p><h3>Why Build Your Own Automation Framework?</h3><p>Many teams begin with simple Selenium scripts, but as projects grow they face challenges such as duplicated code, unstable tests, poor maintainability, and long execution times.</p><p>A custom framework addresses these issues by providing:</p><ul><li>Reusable page objects</li><li>Centralized configuration</li><li>Shared utilities</li><li>Dependency injection</li><li>Parallel execution support</li><li>Easy CI/CD integration</li><li>Clear separation of concerns</li></ul><h3>Framework Architecture</h3><pre>                          Feature Files<br>                                 │<br>                                 ▼<br>                        Step Definitions<br>                                 │<br>                                 ▼<br>                      TestContextSetup (DI)<br>                                 │<br>                ┌────────────────┴────────────────┐<br>                ▼                                 ▼<br>        PageObjectManager                 UtilsManager<br>                │                                 │<br>                ▼                                 ▼<br>         LoginPage / Dashboard          Generic Utilities<br>                │<br>                ▼<br>         WebDriverManager<br>                │<br>                ▼<br>         Selenium WebDriver<br>                │<br>                ▼<br>              Browser</pre><p>Explain each layer in detail:</p><ul><li>Feature Files define business scenarios.</li><li>Step Definitions map Gherkin steps to Java methods.</li><li>TestContextSetup shares objects across steps.</li><li>PageObjectManager creates and manages page objects.</li><li>WebDriverManager handles browser lifecycle.</li><li>Utility classes provide reusable helper methods.</li></ul><h3>Technology Stack</h3><p>Include a table explaining not just the versions but <em>why</em> each technology was selected.</p><p>TechnologyPurposeJava 21Modern language features and long-term supportSelenium 4Browser automationCucumberBehavior-Driven DevelopmentTestNGTest execution and reportingPicoContainerDependency InjectionMavenDependency management and build automation</p><h3>Dependency Injection</h3><p>Explain:</p><ul><li>What DI is</li><li>Why constructor injection is preferred</li><li>How PicoContainer creates scenario-scoped objects</li><li>Benefits over manual object creation</li></ul><p>Illustrate with a lifecycle diagram:</p><pre>Scenario Starts<br>       │<br>       ▼<br>PicoContainer<br>       │<br>       ▼<br>Creates TestContextSetup<br>       │<br>       ▼<br>Creates Managers<br>       │<br>       ▼<br>Creates Page Objects<br>       │<br>       ▼<br>Injects into Step Definitions</pre><h3>Page Object Model</h3><p>Discuss:</p><ul><li>Encapsulation of locators</li><li>Encapsulation of actions</li><li>Separation of test logic from UI implementation</li><li>Improved maintainability</li></ul><p>Example:</p><pre>public class LoginPage {<br>private final WebDriver driver;<br>    public LoginPage(WebDriver driver) {<br>        this.driver = driver;<br>    }<br>    public void login(String username, String password) {<br>        // enter credentials and submit<br>    }<br>}</pre><h3>Test Context Flow</h3><pre>Scenario<br>   │<br>   ▼<br>Hooks<br>   │<br>   ▼<br>TestContextSetup<br>   │<br>   ▼<br>Driver<br>   │<br>   ▼<br>PageObjectManager<br>   │<br>   ▼<br>Page Objects</pre><p>Explain how a single context object avoids repeatedly creating drivers and page instances.</p><h3>Driver Management</h3><p>Cover:</p><ul><li>Selenium Manager</li><li>Browser initialization</li><li>Thread safety considerations</li><li>Browser selection through configuration</li></ul><h3>Utilities</h3><p>Describe the role of each utility class and provide examples of reusable methods such as:</p><ul><li>Waiting for elements</li><li>Taking screenshots</li><li>Reading properties</li><li>Random data generation</li><li>Scrolling</li><li>JavaScript interactions</li></ul><h3>Test Execution Flow</h3><pre>Feature File<br>      │<br>      ▼<br>Cucumber Runner<br>      │<br>      ▼<br>Hooks<br>      │<br>      ▼<br>Driver Initialization<br>      │<br>      ▼<br>Step Definitions<br>      │<br>      ▼<br>Page Objects<br>      │<br>      ▼<br>Browser Actions<br>      │<br>      ▼<br>Assertions<br>      │<br>      ▼<br>Driver Quit</pre><h3>CI/CD Integration</h3><p>Include a Jenkins pipeline diagram:</p><pre>Git Push<br>   │<br>   ▼<br>Jenkins<br>   │<br>   ▼<br>Checkout<br>   │<br>   ▼<br>Build<br>   │<br>   ▼<br>Execute Tests<br>   │<br>   ▼<br>Generate Reports<br>   │<br>   ▼<br>Archive Results</pre><p>Discuss GitHub Actions as an alternative.</p><h3>Design Patterns</h3><p>Explain the rationale behind each pattern:</p><ul><li>Page Object Model</li><li>Dependency Injection</li><li>Singleton (manager classes)</li><li>Factory (driver creation)</li><li>Builder (future extensibility)</li></ul><h3>Best Practices</h3><p>Expand on:</p><ul><li>Keep locators private.</li><li>Avoid business logic in step definitions.</li><li>Use explicit waits instead of Thread.sleep().</li><li>Design independent scenarios.</li><li>Keep page objects focused on UI interactions.</li><li>Store configuration externally.</li><li>Follow clean code principles.</li></ul><h3>Common Mistakes</h3><p>Examples include:</p><ul><li>Using static WebDriver</li><li>Hardcoded waits</li><li>Duplicated locators</li><li>Business logic in page objects</li><li>Tight coupling between tests and implementation</li></ul><h3>Interview Questions</h3><p>Add practical questions such as:</p><ul><li>Why use PicoContainer instead of static objects?</li><li>Explain scenario scope in Cucumber.</li><li>How does TestContextSetup improve maintainability?</li><li>What problems does PageObjectManager solve?</li><li>How would you implement parallel execution?</li><li>How would you integrate this framework with Selenium Grid?</li></ul><h3>Future Enhancements</h3><p>Expand your existing list with enterprise features:</p><ul><li>Selenium Grid</li><li>Docker</li><li>Kubernetes</li><li>Jenkins pipelines</li><li>GitHub Actions</li><li>Allure Reports</li><li>Extent Reports</li><li>Retry Analyzer</li><li>Parallel execution</li><li>Cross-browser execution</li><li>Database validation</li><li>REST API integration</li><li>Visual testing</li><li>Accessibility testing</li><li>AI-assisted self-healing locators</li></ul><h3>Conclusion</h3><p>Building a scalable automation framework is about much more than writing Selenium scripts — it’s about creating a maintainable, reusable, and extensible architecture that can evolve with your application.</p><p>In this guide, we explored how to build an enterprise-grade UI Automation Framework using <strong>Java</strong>, <strong>Selenium 4</strong>, <strong>Cucumber BDD</strong>, <strong>TestNG</strong>, and <strong>PicoContainer Dependency Injection</strong>. We covered the framework architecture, Page Object Model (POM), centralized driver management, reusable utility classes, configuration management, and modern design patterns that help create clean, maintainable test automation.</p><p>By adopting these practices, teams can:</p><ul><li>Build scalable automation frameworks</li><li>Reduce code duplication</li><li>Improve test maintainability</li><li>Enable parallel execution</li><li>Integrate seamlessly with CI/CD pipelines</li><li>Deliver high-quality software with confidence</li></ul><p>Whether you’re developing a new automation framework or improving an existing one, these architectural principles provide a solid foundation for long-term success.</p><h3>Complete Source Code</h3><p>The complete implementation of the framework demonstrated in this article is available on GitHub.</p><p><strong>🔗 GitHub Repository</strong></p><p><strong>Cucumber-TestNG-Framework</strong></p><p><a href="https://github.com/sunil-bombe/cucumber-testNg-Framework">https://github.com/sunil-bombe/cucumber-testNg-Framework</a></p><p>The repository includes:</p><ul><li>Complete Selenium 4 framework implementation</li><li>Java 21 support</li><li>Cucumber BDD with TestNG integration</li><li>PicoContainer Dependency Injection</li><li>Page Object Model (POM)</li><li>Centralized WebDriver management</li><li>Reusable utility classes</li><li>Cross-browser support</li><li>Configuration management</li><li>Maven project structure</li><li>CI/CD-ready project organization</li></ul><p>You can clone the repository using:</p><pre>git clone https://github.com/sunil-bombe/cucumber-testNg-Framework.git</pre><p>If you find this project useful, consider giving the repository a ⭐ on GitHub. Your support encourages the development of more open-source automation frameworks, tutorials, and technical content.</p><p>Thank you for reading, and happy automation testing! 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=922600386572" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SonarQube Integration with Spring Boot: A Step-by-Step Implementation Guide]]></title>
            <link>https://medium.com/@sunil.bombe1998/sonarqube-integration-with-spring-boot-a-step-by-step-implementation-guide-e1b20e99f347?source=rss-88d5662ef63b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e1b20e99f347</guid>
            <dc:creator><![CDATA[Sunil Bombe]]></dc:creator>
            <pubDate>Fri, 19 Jun 2026 13:59:35 GMT</pubDate>
            <atom:updated>2026-06-19T13:59:35.207Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H2O69Rxg1kWAsxC69l9Wfg.png" /></figure><p>SonarQube is one of the most widely used platforms for continuous code quality and security inspection. It performs static analysis on your source code to detect bugs, code smells, security vulnerabilities, security hotspots, duplicated code, and gaps in test coverage. This blog walks you through the end-to-end setup of SonarQube and shows how to analyze a Spring Boot (Maven) application, review the results, add code coverage, and wire it into a CI/CD pipeline.</p><blockquote><em>A note on versions: SonarQube releases and naming change frequently. The free, open-source edition is now called SonarQube Community Build, the paid tiers are Developer, Enterprise, and Data Center, and the hosted SaaS offering is SonarQube Cloud (formerly SonarCloud). Always confirm current version, Java, and database requirements in the official docs at </em><a href="https://docs.sonarsource.com./"><em>https://docs.sonarsource.com.</em></a></blockquote><h3>Prerequisites</h3><ul><li>Basic knowledge of Spring Boot and Maven (or Gradle).</li><li>Java 17 or higher (required to run a recent SonarQube Server and the scanner).</li><li>A build tool: Maven or Gradle.</li><li>Docker installed (the easiest way to run the server), or a manual server install.</li><li>A relational database for production use: PostgreSQL (recommended), Microsoft SQL Server, or Oracle. The embedded H2 database ships only for evaluation and must not be used in production.</li></ul><h3>Architecture in a Nutshell</h3><p>A SonarQube setup has three moving parts:</p><ol><li>SonarQube Server — the web platform that stores results, computes Quality Gates, and serves the dashboard (default port 9000).</li><li>Database — persists configuration, analysis history, and findings.</li><li>Scanner — the analysis client that runs on your machine or CI agent and pushes results to the server. For Java projects this is typically the SonarScanner for Maven or Gradle plugin.</li></ol><p>The flow is: <em>Scanner analyzes code → sends results to Server → Server stores in Database → you review on the dashboard → Quality Gate passes or fails.</em></p><h3>Step 1: Start the SonarQube Server</h3><h3>Option A — Docker (fastest for local development)</h3><p>The quickest way to get a server running locally is with the official image:</p><pre>docker run -d --name sonarqube \<br>  -p 9000:9000 \<br>  sonarqube:community</pre><p>This uses the embedded H2 database, which is perfect for a quick trial but not for real projects. Once the container is up (give it a minute or two), open:</p><pre>http://localhost:9000</pre><h3>Option B — Docker Compose with PostgreSQL (recommended)</h3><p>For anything beyond a quick look, back the server with PostgreSQL. Create a docker-compose.yml:</p><pre>services:<br>  sonarqube:<br>    image: sonarqube:community<br>    depends_on:<br>      - db<br>    ports:<br>      - &quot;9000:9000&quot;<br>    environment:<br>      SONAR_JDBC_URL: jdbc:postgresql://db:5432/sonar<br>      SONAR_JDBC_USERNAME: sonar<br>      SONAR_JDBC_PASSWORD: sonar<br>    volumes:<br>      - sonarqube_data:/opt/sonarqube/data<br>      - sonarqube_extensions:/opt/sonarqube/extensions<br>      - sonarqube_logs:/opt/sonarqube/logs<br><br>  db:<br>    image: postgres:16<br>    environment:<br>      POSTGRES_USER: sonar<br>      POSTGRES_PASSWORD: sonar<br>      POSTGRES_DB: sonar<br>    volumes:<br>      - postgresql_data:/var/lib/postgresql/data<br><br>volumes:<br>  sonarqube_data:<br>  sonarqube_extensions:<br>  sonarqube_logs:<br>  postgresql_data:</pre><p>Start it:</p><pre>docker compose up -d</pre><blockquote><em>Linux tip: SonarQube’s Elasticsearch component needs a higher virtual memory limit. If the container fails to start, set:</em></blockquote><blockquote>sudo sysctl -w vm.max_map_count=524288<br>sudo sysctl -w fs.file-max=131072</blockquote><blockquote><em>Make it permanent by adding </em><em>vm.max_map_count=524288 to </em><em>/etc/sysctl.conf.</em></blockquote><h3>Step 2: First Login and Initial Setup</h3><ol><li>Browse to <a href="http://localhost:9000.">http://localhost:9000.</a></li><li>Log in with the default credentials:</li></ol><ul><li>Username: admin</li><li>Password: admin</li></ul><p>3. You will be forced to set a new password on first login. Do this immediately.</p><h3>Step 3: Create a Project and Generate a Token</h3><p>SonarQube authenticates scanners with tokens (preferred over username/password).</p><ol><li>From the dashboard, click Create Project → Local project.</li><li>Enter a Project display name and a Project key (e.g. my-spring-app). The key uniquely identifies the project in analyses.</li><li>Choose Use the global setting for the “new code” definition (you can tune this later).</li><li>Select Locally as the analysis method.</li><li>Generate a token when prompted, give it a name, and copy it now — it is shown only once.</li></ol><p>Keep the token handy; you’ll pass it to the scanner in the next steps. Treat it like a password and never commit it to source control.</p><h3>Step 4: Set Up the Spring Boot Project for Analysis</h3><p>If you already have a Maven Spring Boot project, you can analyze it as-is — no source code changes are required. To add code coverage data later, configure the JaCoCo plugin in your pom.xml.</p><h3>Add JaCoCo (for test coverage reporting)</h3><pre>&lt;build&gt;<br>  &lt;plugins&gt;<br>    &lt;plugin&gt;<br>      &lt;groupId&gt;org.jacoco&lt;/groupId&gt;<br>      &lt;artifactId&gt;jacoco-maven-plugin&lt;/artifactId&gt;<br>      &lt;version&gt;0.8.12&lt;/version&gt;<br>      &lt;executions&gt;<br>        &lt;execution&gt;<br>          &lt;id&gt;prepare-agent&lt;/id&gt;<br>          &lt;goals&gt;<br>            &lt;goal&gt;prepare-agent&lt;/goal&gt;<br>          &lt;/goals&gt;<br>        &lt;/execution&gt;<br>        &lt;execution&gt;<br>          &lt;id&gt;report&lt;/id&gt;<br>          &lt;phase&gt;verify&lt;/phase&gt;<br>          &lt;goals&gt;<br>            &lt;goal&gt;report&lt;/goal&gt;<br>          &lt;/goals&gt;<br>        &lt;/execution&gt;<br>      &lt;/executions&gt;<br>    &lt;/plugin&gt;<br>  &lt;/plugins&gt;<br>&lt;/build&gt;</pre><p>JaCoCo will produce a coverage report at target/site/jacoco/jacoco.xml, which SonarQube reads automatically.</p><h3>Step 5: Configure SonarQube Analysis Properties</h3><p>You can supply analysis settings either on the command line or in a sonar-project.properties file (for non-Maven projects) or in your pom.xml (for Maven). For a Maven project, the simplest approach is command-line flags, but you can also add defaults to pom.xml:</p><pre>&lt;properties&gt;<br>  &lt;sonar.host.url&gt;http://localhost:9000&lt;/sonar.host.url&gt;<br>  &lt;sonar.projectKey&gt;my-spring-app&lt;/sonar.projectKey&gt;<br>  &lt;sonar.coverage.jacoco.xmlReportPaths&gt;<br>    target/site/jacoco/jacoco.xml<br>  &lt;/sonar.coverage.jacoco.xmlReportPaths&gt;<br>&lt;/properties&gt;</pre><p>Key properties to know:</p><ul><li>sonar.projectKey – must match the key you created in Step 3.</li><li>sonar.host.url – the server address (default <a href="http://localhost:9000).">http://localhost:9000).</a></li><li>sonar.token – the authentication token (pass at runtime, do not hardcode).</li><li>sonar.coverage.jacoco.xmlReportPaths – path to the JaCoCo XML report.</li></ul><blockquote><em>Older guides use </em><em>sonar.login for the token. That property is deprecated; use </em><em>sonar.token instead.</em></blockquote><h3>Step 6: Run the Analysis</h3><p>For a Maven project, run a build that compiles, tests, generates the coverage report, and then triggers analysis:</p><pre>mvn clean verify sonar:sonar \<br>  -Dsonar.projectKey=my-spring-app \<br>  -Dsonar.host.url=http://localhost:9000 \<br>  -Dsonar.token=YOUR_GENERATED_TOKEN</pre><p>What each phase does:</p><ul><li>clean – removes previous build output.</li><li>verify – compiles, runs unit tests, and (via JaCoCo) produces the coverage report.</li><li>sonar:sonar – runs the analysis and uploads results to the server.</li></ul><h3>Gradle alternative</h3><p>Add the plugin in build.gradle:</p><pre>plugins {<br>  id &quot;org.sonarqube&quot; version &quot;5.1.0.4882&quot;<br>}<br><br>sonar {<br>  properties {<br>    property &quot;sonar.projectKey&quot;, &quot;my-spring-app&quot;<br>    property &quot;sonar.host.url&quot;, &quot;http://localhost:9000&quot;<br>  }<br>}</pre><p>Then run:</p><pre>./gradlew clean test jacocoTestReport sonar -Dsonar.token=YOUR_GENERATED_TOKEN</pre><h3>CLI alternative (any language)</h3><p>For non-JVM or polyglot projects, use the standalone SonarScanner CLI with a sonar-project.properties file in the project root:</p><pre>sonar.projectKey=my-spring-app<br>sonar.host.url=http://localhost:9000<br>sonar.sources=src</pre><pre>sonar-scanner -Dsonar.token=YOUR_GENERATED_TOKEN</pre><h3>Step 7: Review the Results</h3><p>When the scan finishes, the console prints a link to the analysis report, or you can refresh the project on the dashboard. On the project page you’ll see:</p><ul><li>Quality Gate status — Passed or Failed, based on your conditions.</li><li>Reliability — bugs in your code.</li><li>Security — vulnerabilities and security hotspots (code that needs manual review).</li><li>Maintainability — code smells and estimated technical debt.</li><li>Coverage — percentage of code exercised by tests (from JaCoCo).</li><li>Duplications — percentage of duplicated lines.</li></ul><p>Click any metric to drill into the exact files, lines, and a description of <em>why</em> each issue was raised plus how to fix it.</p><h3>Step 8: Configure Quality Gates and Quality Profiles</h3><p>Two concepts drive how SonarQube judges your code:</p><ul><li>Quality Profile — the <em>set of rules</em> applied during analysis (per language). SonarQube ships with the built-in “Sonar way” profile. You can copy it and customize which rules are active and at what severity.</li><li>Quality Gate — the <em>pass/fail criteria</em> a project must meet, evaluated mainly against new code. The default “Sonar way” gate enforces conditions such as no new bugs, no new vulnerabilities, coverage on new code above a threshold (e.g. 80%), and duplicated lines below a threshold.</li></ul><p>To customize: go to Quality Gates or Quality Profiles in the top menu (admin access required), clone the built-in one, and adjust the conditions to fit your team’s standards. Focusing the gate on new code is the recommended “Clean as You Code” approach — you stop the bleeding first without being blocked by historical debt.</p><h3>Step 9: Integrate with CI/CD</h3><p>Running analysis automatically on every push or pull request is where SonarQube delivers the most value.</p><h3>GitHub Actions example</h3><p>Store your token and server URL as repository secrets (SONAR_TOKEN, SONAR_HOST_URL), then add .github/workflows/build.yml:</p><pre>name: SonarQube Analysis<br><br>on:<br>  push:<br>    branches: [ main ]<br>  pull_request:<br>    types: [ opened, synchronize, reopened ]<br><br>jobs:<br>  build:<br>    runs-on: ubuntu-latest<br>    steps:<br>      - uses: actions/checkout@v4<br>        with:<br>          fetch-depth: 0   # full history improves new-code detection<br><br>      - name: Set up JDK 17<br>        uses: actions/setup-java@v4<br>        with:<br>          java-version: 17<br>          distribution: temurin<br><br>      - name: Cache SonarQube packages<br>        uses: actions/cache@v4<br>        with:<br>          path: ~/.sonar/cache<br>          key: ${{ runner.os }}-sonar<br><br>      - name: Build and analyze<br>        env:<br>          SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}<br>          SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}<br>        run: mvn -B clean verify sonar:sonar -Dsonar.projectKey=my-spring-app</pre><blockquote><em>fetch-depth: 0 checks out the full git history so SonarQube can accurately determine which lines are &quot;new code.&quot;</em></blockquote><h3>Jenkins (pipeline) sketch</h3><pre>pipeline {<br>  agent any<br>  stages {<br>    stage(&#39;Build &amp; Analyze&#39;) {<br>      steps {<br>        withSonarQubeEnv(&#39;My SonarQube Server&#39;) {<br>          sh &#39;mvn clean verify sonar:sonar -Dsonar.projectKey=my-spring-app&#39;<br>        }<br>      }<br>    }<br>    stage(&#39;Quality Gate&#39;) {<br>      steps {<br>        timeout(time: 5, unit: &#39;MINUTES&#39;) {<br>          waitForQualityGate abortPipeline: true<br>        }<br>      }<br>    }<br>  }<br>}</pre><p>The waitForQualityGate step (from the SonarQube Scanner plugin, fed by a server webhook) fails the build if the Quality Gate is not met — turning code quality into an enforced part of your pipeline.</p><h3>Step 10: Verify Coverage Is Reported</h3><p>If coverage shows as 0% even though you have tests, check the usual culprits:</p><ul><li>JaCoCo’s prepare-agent goal must run before your tests (it instruments the JVM).</li><li>The report path in sonar.coverage.jacoco.xmlReportPaths must point to the generated jacoco.xml.</li><li>Run the full lifecycle (mvn clean verify) so tests actually execute and the report is produced before sonar:sonar.</li></ul><h3>Conclusion</h3><p>In this blog we stood up a SonarQube Server (locally via Docker, backed by PostgreSQL), created a project and token, analyzed a Spring Boot/Maven application, added JaCoCo test coverage, reviewed the findings on the dashboard, tuned Quality Gates and Profiles, and automated the whole thing in CI/CD. This gives you a solid foundation for continuous, automated code quality and security inspection.</p><p>From here you can extend the setup with:</p><ul><li>Pull request decoration so issues appear directly on GitHub/GitLab/Bitbucket PRs.</li><li>Branch analysis to track quality across feature branches (available in Developer Edition and above).</li><li>Custom rules and plugins for project-specific standards.</li><li>“Clean as You Code” policies that gate merges on the quality of <em>new</em> code only.</li><li>Security hotspot reviews as part of your team’s definition of done.</li></ul><p>Happy analyzing!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1b20e99f347" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Executing Selenium Automation Tests Using Docker and Selenium Grid]]></title>
            <link>https://medium.com/@sunil.bombe1998/dockerizing-your-selenium-automation-framework-5d934574dea1?source=rss-88d5662ef63b------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d934574dea1</guid>
            <category><![CDATA[selenium]]></category>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Sunil Bombe]]></dc:creator>
            <pubDate>Sun, 15 Feb 2026 18:57:00 GMT</pubDate>
            <atom:updated>2026-02-23T11:32:06.558Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*7BnMz8YqH0ttcRUeSSRfKA@2x.jpeg" /></figure><p>Automation testing is an essential part of modern software development. Managing test environments across different browsers and machines can be cumbersome. Fortunately, Docker allows you to containerize your automation framework, making it easy to set up, scale, and maintain. In this blog, we’ll walk you through Dockerizing a Selenium automation setup with both Chrome and Firefox nodes.</p><h3>Why Dockerize Selenium?</h3><p>Before diving into the steps, let’s quickly understand the benefits:</p><ol><li><strong>Consistency</strong>: Docker ensures the same environment across all machines.</li><li><strong>Isolation</strong>: Each browser runs in a separate container, preventing conflicts.</li><li><strong>Scalability</strong>: Easily scale nodes horizontally as testing demands increase.</li><li><strong>Ease of Setup</strong>: No need to install browsers or drivers on the host machine.</li></ol><h3>Prerequisites</h3><ul><li>Docker installed on your system</li><li>Basic knowledge of terminal/command-line operations</li><li>Understanding of Selenium Grid concepts (Hub and Node)</li></ul><h3>Step 1: Pull Required Docker Images</h3><p>The first step is to pull the official Selenium images for the hub and nodes. This includes Chrome and Firefox nodes.</p><pre>docker pull selenium/hub<br>docker pull selenium/node-firefox<br>docker pull --platform linux/x86_64 selenium/node-chrome</pre><ul><li><strong>selenium/hub</strong>: Central server to manage multiple browser nodes.</li><li><strong>selenium/node-chrome</strong>: Chrome browser node.</li><li><strong>selenium/node-firefox</strong>: Firefox browser node.</li></ul><h3>Step 2: Create a Dedicated Docker Network</h3><p>For seamless communication between the Selenium Hub and nodes, create a dedicated Docker network:</p><pre>docker network create automation-script-network</pre><p>This network ensures all containers can communicate with each other efficiently.</p><h3>Step 3: Run the Selenium Hub</h3><p>Start the Selenium Hub container:</p><pre>docker run -d -p 4442-4444:4442-4444 --net automation-script-network --name selenium-hub selenium/hub</pre><ul><li>-d: Run container in detached mode.</li><li>-p 4442-4444:4442-4444: Expose the hub ports.</li><li>--net automation-script-network: Attach container to our custom network.</li><li>--name selenium-hub: Name the container for easy reference.</li></ul><p>Once running, the hub will be available at <a href="http://localhost:4444.">http://localhost:4444.</a></p><h3>Step 4: Run Chrome and Firefox Nodes</h3><p>Now, we’ll connect Chrome and Firefox nodes to the hub using environment variables to define the event bus communication.</p><h3>Chrome Node:</h3><pre>docker run -d --net automation-script-network \<br>  -e SE_EVENT_BUS_HOST=selenium-hub \<br>  -e SE_EVENT_BUS_PUBLISH_PORT=4442 \<br>  -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \<br>  selenium/node-chrome</pre><h3>Firefox Node:</h3><pre>docker run -d --net automation-script-network \<br>  -e SE_EVENT_BUS_HOST=selenium-hub \<br>  -e SE_EVENT_BUS_PUBLISH_PORT=4442 \<br>  -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 \<br>  selenium/node-firefox</pre><p>These nodes will automatically register themselves with the hub, ready to execute Selenium tests.</p><h3>Step 5: Verify Your Setup</h3><p>Open a browser and navigate to http://localhost:4444/grid/console. You should see both Chrome and Firefox nodes connected to the hub. Now, your automation framework is ready to run tests across multiple browsers in isolated, containerized environments.</p><h3>Benefits of This Dockerized Setup</h3><ul><li><strong>Cross-browser Testing</strong>: Easily add more nodes for different browsers or versions.</li><li><strong>Environment Independence</strong>: Tests run the same way on any machine.</li><li><strong>Scalable Infrastructure</strong>: Spin up multiple nodes for parallel execution.</li><li><strong>Clean Setup</strong>: No manual installation of browsers or drivers.</li></ul><h3>Conclusion</h3><p>Dockerizing your Selenium automation framework simplifies testing infrastructure, making it consistent, scalable, and easy to maintain. By separating the hub and nodes into containers, you can focus on writing tests rather than managing environments.</p><p>Next steps could include:</p><ul><li>Integrating this setup with CI/CD pipelines like Jenkins or GitHub Actions.</li><li>Adding more browser versions or custom configurations.</li><li>Using Docker Compose to simplify container orchestration.</li></ul><h3>Step 6: Use Docker Compose for One-Command Setup</h3><p>Instead of running multiple docker run commands, you can define everything in a single docker-compose.yml file.</p><p>Create a file named:</p><pre>docker-compose.yml</pre><p>Add the following configuration:</p><pre>version: &quot;3.8&quot;<br><br>services:<br>  selenium-hub:<br>    image: selenium/hub:latest<br>    container_name: selenium-hub<br>    ports:<br>      - &quot;4442-4444:4442-4444&quot;<br>    networks:<br>      - automation-grid<br><br>  chrome:<br>    image: selenium/node-chrome:latest<br>    shm_size: 2gb<br>    depends_on:<br>      - selenium-hub<br>    environment:<br>      - SE_EVENT_BUS_HOST=selenium-hub<br>      - SE_EVENT_BUS_PUBLISH_PORT=4442<br>      - SE_EVENT_BUS_SUBSCRIBE_PORT=4443<br>    networks:<br>      - automation-grid<br>    deploy:<br>      replicas: 1<br><br>  firefox:<br>    image: selenium/node-firefox:latest<br>    shm_size: 2gb<br>    depends_on:<br>      - selenium-hub<br>    environment:<br>      - SE_EVENT_BUS_HOST=selenium-hub<br>      - SE_EVENT_BUS_PUBLISH_PORT=4442<br>      - SE_EVENT_BUS_SUBSCRIBE_PORT=4443<br>    networks:<br>      - automation-grid<br>    deploy:<br>      replicas: 1<br><br>networks:<br>  automation-grid:<br>    driver: bridge</pre><h3>🚀 How to Run</h3><p>From the directory where your docker-compose.yml file is located, run:</p><pre>docker-compose up -d</pre><p>Or (for newer Docker versions):</p><pre>docker compose up -d</pre><p>To stop everything:</p><pre>docker compose down</pre><h3>✅ What This Does</h3><ul><li>Creates a dedicated bridge network</li><li>Starts the Selenium Hub</li><li>Spins up Chrome and Firefox nodes</li><li>Automatically connects nodes to the Hub</li><li>Exposes the Grid at:</li></ul><pre>http://localhost:4444</pre><h3>🔄 Scaling for Parallel Execution</h3><p>Want to run more parallel tests?</p><p>Simply scale the nodes:</p><pre>docker compose up -d --scale chrome=3 --scale firefox=2</pre><p>This will start:</p><ul><li>3 Chrome nodes</li><li>2 Firefox nodes</li></ul><p>Perfect for parallel automation execution.</p><h3>🎯 Final Thoughts</h3><p>Using Docker Compose makes your Selenium Grid setup:</p><ul><li>Cleaner</li><li>More maintainable</li><li>Easy to scale</li><li>CI/CD friendly</li></ul><blockquote>🔹 Sample Selenium Test (Java) – Running on Selenium Grid</blockquote><pre>import org.openqa.selenium.WebDriver;<br>import org.openqa.selenium.chrome.ChromeOptions;<br>import org.openqa.selenium.remote.DesiredCapabilities;<br>import org.openqa.selenium.remote.RemoteWebDriver;<br><br>import java.net.URL;<br>import java.time.Duration;<br><br>public class SeleniumGridTest {<br><br>    public static void main(String[] args) {<br><br>        WebDriver driver = null;<br><br>        try {<br>            // Define browser capabilities<br>            ChromeOptions options = new ChromeOptions();<br>            options.setCapability(&quot;browserName&quot;, &quot;chrome&quot;);<br><br>            // Connect to Selenium Grid Hub running inside Docker<br>            driver = new RemoteWebDriver(<br>                    new URL(&quot;http://localhost:4444/wd/hub&quot;),<br>                    options<br>            );<br><br>            driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(10));<br><br>            // Test Execution<br>            driver.get(&quot;https://www.google.com&quot;);<br>            System.out.println(&quot;Page Title: &quot; + driver.getTitle());<br><br>        } catch (Exception e) {<br>            e.printStackTrace();<br>        } finally {<br>            if (driver != null) {<br>                driver.quit();<br>            }<br>        }<br>    }<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d934574dea1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Playwright UI Automation Framework Using JavaScript: A Comprehensive Guide]]></title>
            <link>https://medium.com/@sunil.bombe1998/playwright-ui-automation-framework-using-javascript-a-comprehensive-guide-a40c4bc377a6?source=rss-88d5662ef63b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a40c4bc377a6</guid>
            <category><![CDATA[playwright-test]]></category>
            <category><![CDATA[playwrights]]></category>
            <dc:creator><![CDATA[Sunil Bombe]]></dc:creator>
            <pubDate>Fri, 07 Mar 2025 14:45:20 GMT</pubDate>
            <atom:updated>2026-07-14T04:17:26.843Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*P5A7eiq-T0yv9LKkeD4oZw@2x.jpeg" /></figure><h3>Introduction</h3><p>UI automation testing is crucial for ensuring the correctness and usability of web applications. With the growing complexity of modern web applications, it’s important to choose the right tools for automating user interactions. One such powerful tool is <strong>Playwright</strong>, an open-source framework developed by Microsoft that allows you to automate web browsers with high reliability and speed.</p><p>In this blog, we’ll walk through how to set up a <strong>Playwright UI automation framework using JavaScript</strong>. We’ll also explore the benefits of using Playwright for web automation, how to write tests, and how to run them in a structured framework.</p><h3>Why Playwright?</h3><p>Playwright has quickly gained popularity due to several key advantages:</p><ol><li><strong>Cross-Browser Support</strong>: Playwright supports Chromium, Firefox, and WebKit, which allows you to write tests that can run across different browsers with minimal configuration.</li><li><strong>Headless Browser Testing</strong>: Playwright supports headless browser automation, making it ideal for CI/CD pipelines where you need to run tests in a non-UI environment.</li><li><strong>Fast and Reliable</strong>: Playwright is designed to be fast and reliable, with capabilities such as automatic waiting for elements and improved handling of modern web app behaviors like dynamic content and AJAX requests.</li><li><strong>Built-in Test Runner</strong>: Playwright comes with its own test runner, which simplifies test execution and integration.</li><li><strong>Full Control Over Browsers</strong>: Playwright gives you the ability to control browser contexts and multiple pages within the same browser session, which is essential for testing complex web applications.</li></ol><h3>Setting Up the Playwright UI Automation Framework</h3><p>Before we dive into writing automation tests, let’s first set up the Playwright framework.</p><h4>1. Initialize the Project</h4><p>To start with Playwright, create a new directory for your project and initialize it with npm.</p><pre>mkdir playwright-ui-automation<br>cd playwright-ui-automation<br>npm init -y</pre><h4>2. Install Playwright and Other Dependencies</h4><p>Install Playwright and the necessary testing libraries using npm:</p><pre>npm install playwright @playwright/test</pre><p>The @playwright/test package includes Playwright&#39;s official test runner, which makes it easy to set up and run tests.</p><h4>3. Configure Playwright Test Runner</h4><p>Create a configuration file named playwright.config.js to configure Playwright’s test runner.</p><pre>// playwright.config.js<br>module.exports = {<br>  testDir: &#39;tests&#39;, // Specify where your tests are located<br>  timeout: 30000,   // Set a timeout for each test (in ms)<br>  use: {<br>    headless: true,  // Run tests in headless mode<br>    browserName: &#39;chromium&#39;,  // Default browser (can be &#39;firefox&#39; or &#39;webkit&#39;)<br>    screenshot: &#39;on-failure&#39;, // Capture screenshot on failure<br>    video: &#39;retain-on-failure&#39;, // Capture video on failure<br>  },<br>};</pre><p>This configuration ensures that Playwright runs the tests in Chromium by default, captures screenshots on failure, and videos when a test fails.</p><h4>4. Write Your First Test</h4><p>Now that the setup is complete, let’s write our first test.</p><p>Create a directory called tests and add a test file, e.g., login.spec.js.</p><pre>// tests/login.spec.js<br>const { test, expect } = require(&#39;@playwright/test&#39;);<br><br>test(&#39;Login functionality test&#39;, async ({ page }) =&gt; {<br>  // Step 1: Navigate to the login page<br>  await page.goto(&#39;https://example.com/login&#39;);<br><br>  // Step 2: Fill in the login form<br>  await page.fill(&#39;input[name=&quot;username&quot;]&#39;, &#39;testuser&#39;);<br>  await page.fill(&#39;input[name=&quot;password&quot;]&#39;, &#39;testpassword&#39;);<br><br>  // Step 3: Click the login button<br>  await page.click(&#39;button[type=&quot;submit&quot;]&#39;);<br><br>  // Step 4: Assert the login was successful<br>  await expect(page).toHaveURL(&#39;https://example.com/dashboard&#39;);<br>  await expect(page.locator(&#39;h1&#39;)).toHaveText(&#39;Welcome, testuser!&#39;);<br>});</pre><p>This test case simulates logging into a website by filling in the login form and checking if the user is redirected to the dashboard page.</p><h4>5. Running the Test</h4><p>To run the test, use the following command:</p><pre>npx playwright test</pre><p>Playwright will automatically launch the browser, run the test, and provide you with a detailed report in the terminal.</p><h3>Organizing Tests and Test Suite</h3><p>In larger projects, it’s important to organize your tests effectively. You can categorize tests based on their functionality (e.g., login tests, search functionality tests, etc.), and place them in different directories inside the tests folder.</p><p>Example:</p><pre>tests/<br>  login/<br>    login.spec.js<br>  search/<br>    search.spec.js<br>  checkout/<br>    checkout.spec.js</pre><p>You can also group tests using <strong>test fixtures</strong>, which allow you to define common setup and teardown logic for different tests.</p><pre>// tests/fixtures.js<br>const { test } = require(&#39;@playwright/test&#39;);<br><br>test.beforeEach(async ({ page }) =&gt; {<br>  // Common setup steps, e.g., logging into the application<br>  await page.goto(&#39;https://example.com/login&#39;);<br>  await page.fill(&#39;input[name=&quot;username&quot;]&#39;, &#39;testuser&#39;);<br>  await page.fill(&#39;input[name=&quot;password&quot;]&#39;, &#39;testpassword&#39;);<br>  await page.click(&#39;button[type=&quot;submit&quot;]&#39;);<br>});</pre><h3>Integrating Playwright with CI/CD</h3><p>Playwright’s integration with CI/CD tools like Jenkins, GitHub Actions, or GitLab CI is simple, as it doesn’t require a graphical interface and can run in headless mode.</p><h4>Example: GitHub Actions Configuration</h4><p>To run your Playwright tests using <strong>GitHub Actions</strong>, you can create a configuration file .github/workflows/playwright.yml:</p><pre>name: Playwright UI Automation<br><br>on: [push, pull_request]<br><br>jobs:<br>  test:<br>    runs-on: ubuntu-latest<br><br>    steps:<br>    - uses: actions/checkout@v2<br>    - name: Set up Node.js<br>      uses: actions/setup-node@v2<br>      with:<br>        node-version: &#39;14&#39;<br>    - name: Install dependencies<br>      run: |<br>        npm install<br>    - name: Run Playwright tests<br>      run: |<br>        npx playwright test</pre><p>This configuration will automatically trigger Playwright tests whenever code is pushed to the repository or a pull request is made.</p><h3>Reporting in Playwright</h3><p>Playwright provides built-in capabilities for generating reports. By default, it produces detailed logs and screenshots for failed tests. You can also extend reporting with plugins like <strong>Allure</strong> or <strong>JUnit</strong> for more comprehensive reports.</p><h4>Example: Allure Reporting</h4><p>To integrate Allure with Playwright, install the necessary packages:</p><pre>npm install allure-playwright</pre><p>Then, configure your test script to use Allure:</p><pre>const { test } = require(&#39;@playwright/test&#39;);<br>const allure = require(&#39;allure-playwright&#39;);<br><br>test(&#39;Login functionality test&#39;, async ({ page }) =&gt; {<br>  await allure.step(&#39;Navigate to login page&#39;, async () =&gt; {<br>    await page.goto(&#39;https://example.com/login&#39;);<br>  });<br><br>  await allure.step(&#39;Fill in the login form&#39;, async () =&gt; {<br>    await page.fill(&#39;input[name=&quot;username&quot;]&#39;, &#39;testuser&#39;);<br>    await page.fill(&#39;input[name=&quot;password&quot;]&#39;, &#39;testpassword&#39;);<br>  });<br><br>  await allure.step(&#39;Submit the form and verify login&#39;, async () =&gt; {<br>    await page.click(&#39;button[type=&quot;submit&quot;]&#39;);<br>    await page.waitForNavigation();<br>    expect(await page.url()).toBe(&#39;https://example.com/dashboard&#39;);<br>  });<br>});</pre><p>Allure will generate rich test reports, which can be viewed in a web browser.</p><h3>Conclusion</h3><p>Playwright is a robust and modern tool for UI automation testing, providing powerful features and capabilities for end-to-end testing of web applications. It supports multiple browsers, offers great performance, and integrates seamlessly into CI/CD pipelines. With Playwright, you can easily set up a UI automation framework using JavaScript and ensure the reliability of your web applications.</p><p>By following the steps outlined in this blog, you can start building your own Playwright UI automation framework and enjoy its benefits for faster, more efficient testing. Happy testing!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a40c4bc377a6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[API Automation Framework using Node js]]></title>
            <link>https://medium.com/@sunil.bombe1998/api-automation-framework-using-node-js-bade5e811aad?source=rss-88d5662ef63b------2</link>
            <guid isPermaLink="false">https://medium.com/p/bade5e811aad</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Sunil Bombe]]></dc:creator>
            <pubDate>Fri, 07 Mar 2025 14:43:50 GMT</pubDate>
            <atom:updated>2026-07-14T04:28:45.633Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*gz9s5r-Es9MQ7PvdcSSkRg@2x.jpeg" /></figure><h3>API Automation Framework using Node.js</h3><h3>1. Set Up Your Node.js Project</h3><ol><li>Initialize a new Node.js project:</li></ol><pre>mkdir api-testing-framework<br>cd api-testing-framework<br>npm init -y</pre><p>2. Install necessary dependencies:</p><pre>npm install axios mocha chai chai-http supertest<br>npm install --save-dev mochawesome</pre><ul><li><strong>axios</strong>: For making HTTP requests.</li><li><strong>mocha</strong>: Test framework.</li><li><strong>chai</strong>: Assertion library.</li><li><strong>chai-http</strong>: Plugin for testing HTTP endpoints.</li><li><strong>supertest</strong>: For testing HTTP servers.</li><li><strong>mochawesome</strong>: Interactive HTML reporting.</li></ul><pre>api-automation-mocha<br>│── tests<br>│   ├── api<br>│   │   ├── login.test.js<br>│   │   ├── users.test.js<br>│── utils<br>│   ├── apiClient.js<br>│── config<br>│   ├── env.js<br>│── package.json<br>│── .mocharc.cjs<br>│── .gitignore<br>│── runner.js</pre><h3>3. Create an API Client Utility</h3><p>In utils/apiClient.js, create a reusable HTTP client:</p><pre>const axios = require(&#39;axios&#39;);<br><br>class ApiClient {<br>  constructor(baseURL) {<br>    this.client = axios.create({<br>      baseURL,<br>      headers: { &#39;Content-Type&#39;: &#39;application/json&#39; },<br>    });<br>  }<br><br>  async get(endpoint) {<br>    const response = await this.client.get(endpoint);<br>    return response.data;<br>  }<br><br>  async post(endpoint, data) {<br>    const response = await this.client.post(endpoint, data);<br>    return response.data;<br>  }<br><br>  async put(endpoint, data) {<br>    const response = await this.client.put(endpoint, data);<br>    return response.data;<br>  }<br><br>  async delete(endpoint) {<br>    const response = await this.client.delete(endpoint);<br>    return response.data;<br>  }<br>}<br><br>module.exports = ApiClient;</pre><h3>4. Write API Tests</h3><p>In tests/api/example.test.js, write your tests using Mocha and Chai:</p><pre>const chai = require(&#39;chai&#39;);<br>const chaiHttp = require(&#39;chai-http&#39;);<br>const ApiClient = require(&#39;../../utils/apiClient&#39;);<br><br>chai.use(chaiHttp);<br>const expect = chai.expect;<br><br>describe(&#39;API Tests&#39;, () =&gt; {<br>  let apiClient;<br><br>  before(() =&gt; {<br>    apiClient = new ApiClient(&#39;https://jsonplaceholder.typicode.com&#39;);<br>  });<br><br>  it(&#39;should fetch posts&#39;, async () =&gt; {<br>    const posts = await apiClient.get(&#39;/posts&#39;);<br>    expect(posts).to.be.an(&#39;array&#39;);<br>    expect(posts.length).to.be.greaterThan(0);<br>  });<br><br>  it(&#39;should create a new post&#39;, async () =&gt; {<br>    const newPost = {<br>      title: &#39;foo&#39;,<br>      body: &#39;bar&#39;,<br>      userId: 1,<br>    };<br>    const response = await apiClient.post(&#39;/posts&#39;, newPost);<br>    expect(response).to.have.property(&#39;id&#39;);<br>    expect(response.title).to.equal(&#39;foo&#39;);<br>  });<br>});</pre><h3>5. Configure Mocha for Interactive Reporting</h3><p>Create a .mocharc.js file to configure Mocha and Mochawesome:</p><pre>module.exports = {<br>  reporter: &#39;mochawesome&#39;,<br>  reporterOptions: {<br>    reportDir: &#39;reports&#39;,<br>    overwrite: false,<br>    html: true,<br>    json: false,<br>  },<br>  timeout: 5000,<br>};</pre><h3>6. Run Your Tests</h3><p>Run your tests using the following command:</p><pre>npx mocha</pre><p>This will generate an interactive HTML report in the reports/ folder. Open the mochawesome.html file to view the results.</p><h3>7. Enhance Reporting (Optional)</h3><ul><li><strong>Add Screenshots</strong>: Use libraries like puppeteer to capture screenshots for UI-related tests.</li><li><strong>Custom Logs</strong>: Add custom logging to your tests using console.log or a logging library like winston.</li><li><strong>CI/CD Integration</strong>: Integrate the framework with CI/CD tools like Jenkins, GitHub Actions, or GitLab CI.</li></ul><h3>8. Example of a Full Test Run</h3><ol><li>Run the tests:</li></ol><pre>npx mocha</pre><p>2. Open the report:</p><pre>open reports/mochawesome.html</pre><p>This framework is modular, reusable, and provides interactive reporting. You can extend it further based on your requirements! Let me know if you need help with any specific part. 😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bade5e811aad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Create Your Own AI Assistant Using Python]]></title>
            <link>https://medium.com/@sunil.bombe1998/how-to-create-your-own-ai-assistant-using-python-378e3aac984c?source=rss-88d5662ef63b------2</link>
            <guid isPermaLink="false">https://medium.com/p/378e3aac984c</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[assistant]]></category>
            <category><![CDATA[pthon]]></category>
            <dc:creator><![CDATA[Sunil Bombe]]></dc:creator>
            <pubDate>Mon, 17 Feb 2025 10:31:24 GMT</pubDate>
            <atom:updated>2026-07-14T05:36:13.148Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KRSHcH-2DN4c0R86Gewuvg.png" /></figure><h3>How to Create Your Own AI Assistant Using Python</h3><p>In this blog, we’ll walk you through the steps to create your own AI assistant using Python. The assistant will be able to listen to your voice commands, process them using an AI model (like DeepSeek), and respond back to you in a natural voice. This project is a great way to get started with voice recognition, text-to-speech, and AI integration.</p><h3>Prerequisites</h3><p>Before we begin, ensure you have the following installed on your system:</p><ol><li><strong>Python 3.7 or higher</strong>: Download and install Python from <a href="https://www.python.org/">python.org</a>.</li><li><strong>Microphone</strong>: A working microphone is required for voice input.</li><li><strong>Text-to-Speech and Speech Recognition Libraries</strong>: We’ll use pyttsx3 for text-to-speech and speech_recognition for voice input.</li><li><strong>DeepSeek API Key</strong>: Sign up for DeepSeek and get your API key from their <a href="https://www.deepseek.com/">website</a>.</li></ol><h3>Step 1: Install Required Libraries</h3><p>First, let’s install the necessary Python libraries. Open your terminal or command prompt and run the following commands:</p><pre>pip install pyttsx3<br>pip install SpeechRecognition<br>pip install pyaudio<br>pip install requests</pre><ul><li><strong>pyttsx3</strong>: A text-to-speech conversion library.</li><li><strong>SpeechRecognition</strong>: A library for performing speech recognition.</li><li><strong>pyaudio</strong>: Required for microphone input.</li><li><strong>requests</strong>: For making API calls to DeepSeek.</li></ul><h3>Step 2: Set Up the Project</h3><p>Create a new directory for your project and navigate into it:</p><pre>mkdir my-ai-assistant<br>cd my-ai-assistant</pre><p>Create a new Python file, e.g., ai_assistant.py, and open it in your favorite code editor.</p><h3>Step 3: Write the Code</h3><p>Copy and paste the following code into your ai_assistant.py file:</p><pre>import pyttsx3<br>import datetime<br>import speech_recognition as sr<br>import pyaudio<br>import requests  # Import requests for API calls<br># Initialize text-to-speech engine<br>engine = pyttsx3.init()<br>voices = engine.getProperty(&#39;voices&#39;)<br># Ensure there are voices available<br>if voices:<br>    engine.setProperty(&#39;voice&#39;, voices[1])  # Choose the second voice (usually female)<br>    engine.setProperty(&#39;rate&#39;, 150)  # Adjust speed (Lower value = slower speech)<br>else:<br>    print(&quot;No voices found! Using the default voice.&quot;)<br>def speak(audio):<br>    &quot;&quot;&quot;Converts text to speech&quot;&quot;&quot;<br>    engine.say(audio)<br>    engine.runAndWait()<br>def wishMe():<br>    &quot;&quot;&quot;Greets the user based on the time of day&quot;&quot;&quot;<br>    hour = int(datetime.datetime.now().hour)<br>    if 0 &lt;= hour &lt; 12:<br>        speak(&quot;Good Morning Boss&quot;)<br>    elif 12 &lt;= hour &lt; 18:<br>        speak(&quot;Good Afternoon Boss&quot;)<br>    else:<br>        speak(&quot;Good Evening Boss&quot;)<br>def takeCommand():<br>    &quot;&quot;&quot;Takes voice input from the microphone and converts it to text&quot;&quot;&quot;<br>    r = sr.Recognizer()<br>    with sr.Microphone() as source:<br>        print(&quot;Listening...&quot;)<br>        r.pause_threshold = 1  # Adjust pause threshold<br>        try:<br>            audio = r.listen(source, timeout=5)  # Add timeout to prevent indefinite listening<br>            print(&quot;Recognizing...&quot;)<br>            query = r.recognize_google(audio)<br>            print(f&quot;User said: {query}\n&quot;)<br>            return query.lower()<br>        except sr.UnknownValueError:<br>            print(&quot;Could not understand audio, please try again.&quot;)<br>            return &quot;Could not understand audio&quot;<br>        except sr.RequestError:<br>            print(&quot;Could not request results, check your internet connection.&quot;)<br>            return &quot;Could not request results&quot;<br>        except Exception as e:<br>            print(f&quot;Error: {e}&quot;)<br>            return &quot;Error occurred&quot;<br>def deepseek_query(stext):<br>    &quot;&quot;&quot;Fetches AI-generated response using DeepSeek API&quot;&quot;&quot;<br>    url = &quot;https://api.deepseek.com/v1/chat/completions&quot;  # Replace with the actual DeepSeek API endpoint<br>    headers = {<br>        &quot;Authorization&quot;: &quot;Bearer YOUR_DEEPSEEK_API_KEY&quot;,  # Replace with your DeepSeek API key<br>        &quot;Content-Type&quot;: &quot;application/json&quot;<br>    }<br>    data = {<br>        &quot;model&quot;: &quot;deepseek-chat&quot;,  # Replace with the appropriate model name<br>        &quot;messages&quot;: [{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: stext}],<br>        &quot;temperature&quot;: 0.7,<br>        &quot;max_tokens&quot;: 256<br>    }<br>    try:<br>        response = requests.post(url, headers=headers, json=data)<br>        response.raise_for_status()<br>        reply = response.json()[&quot;choices&quot;][0][&quot;message&quot;][&quot;content&quot;]<br>        print(f&quot;DeepSeek Response: {reply}&quot;)<br>        return reply<br>    except requests.exceptions.RequestException as e:<br>        print(f&quot;DeepSeek API error: {e}&quot;)<br>        return &quot;Sorry, I couldn&#39;t process that request.&quot;<br>if __name__ == &quot;__main__&quot;:<br>    wishMe()<br>    speak(&quot;I am Jarvis. How may I help you?&quot;)<br>    while True:<br>        query = takeCommand()<br>        if &quot;exit&quot; in query or &quot;quit&quot; in query:<br>            speak(&quot;Goodbye! Have a great day.&quot;)<br>            break<br>        elif query:<br>            response = deepseek_query(query)<br>            speak(response)</pre><h3>Step 4: Replace Placeholder Values</h3><ol><li><strong>DeepSeek API Key</strong>: Replace YOUR_DEEPSEEK_API_KEY with your actual API key.</li><li><strong>DeepSeek API Endpoint</strong>: Replace the url with the correct DeepSeek API endpoint.</li><li><strong>Model Name</strong>: Replace &quot;deepseek-chat&quot; with the appropriate model name provided by DeepSeek.</li></ol><h3>Step 5: Run the AI Assistant</h3><p>Once everything is set up, run your AI assistant using the following command:</p><pre>python ai_assistant.py</pre><p>The assistant will greet you based on the time of day and start listening for your commands. You can ask it questions or give it tasks, and it will respond using the DeepSeek API.</p><h3>Step 6: Customize Your Assistant</h3><p>You can customize your assistant by:</p><ul><li>Adding more commands (e.g., weather updates, reminders, etc.).</li><li>Changing the voice or speech rate.</li><li>Integrating other APIs for additional functionality.</li></ul><h3>Troubleshooting</h3><ol><li><strong>Microphone Not Working</strong>: Ensure your microphone is properly connected and configured.</li><li><strong>API Errors</strong>: Check your API key and ensure you have an active subscription with DeepSeek.</li><li><strong>Library Issues</strong>: If you encounter issues with pyaudio, try installing it using the following command:</li></ol><pre>pip install pyaudio</pre><ol><li>If that doesn’t work, you may need to install it using a pre-built binary for your operating system.</li></ol><h3>Conclusion</h3><p>Congratulations! You’ve successfully created your own AI assistant using Python. This project is a great starting point for exploring more advanced AI and voice recognition technologies. Feel free to expand its capabilities and make it your own!</p><p>Happy coding! 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=378e3aac984c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spring Boot Interview Question Answers]]></title>
            <link>https://medium.com/@sunil.bombe1998/spring-boot-interview-question-answers-665173162f9c?source=rss-88d5662ef63b------2</link>
            <guid isPermaLink="false">https://medium.com/p/665173162f9c</guid>
            <dc:creator><![CDATA[Sunil Bombe]]></dc:creator>
            <pubDate>Wed, 12 Feb 2025 09:59:07 GMT</pubDate>
            <atom:updated>2026-07-14T06:06:08.888Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zYb6M7CI5CjtbEsSybAnnw.png" /></figure><p><strong>Q1. Explain the role of Spring Boot in microservices architecture?</strong><br>Spring Boot simplifies microservices development by providing embedded servers, auto-configuration, and production-ready features like monitoring and health checks.</p><p><strong>Q2. How does Spring Boot achieve auto-configuration and what are its limitations? </strong><br>Spring Boot uses @EnableAutoConfiguration and classpath scanning to configure beans automatically. However, it may lead to unexpected behavior and increased startup time.</p><p><strong>Q3. Discuss the significance of Spring Boot’s actuator module in production environments. </strong><br>Actuator provides insights into application health, metrics, logging, and environment settings, helping in monitoring and management.</p><p><strong>Q4. How does Spring Boot support security, and what are the best practices for securing a Spring Boot application? </strong><br>Spring Boot supports security through Spring Security, offering authentication, authorization, and protection against common vulnerabilities. Best practices include enabling HTTPS, using strong authentication mechanisms, and keeping dependencies updated.</p><p><strong>Q5. What are Spring Boot starters and how do they simplify dependency management?</strong><br>Starters are predefined dependency bundles that simplify adding dependencies. For example, spring-boot-starter-web includes all necessary libraries for web development.</p><p><strong>Q6. How do you create a simple RESTful web service using Spring Boot? <br></strong> Use @RestController and @RequestMapping annotations:</p><pre>@RestController<br>@RequestMapping(&quot;/api&quot;)<br>public class MyController {<br>    @GetMapping(&quot;/hello&quot;)<br>    public String sayHello() {<br>        return &quot;Hello, World!&quot;;<br>    }<br>}</pre><p><strong>Q7. How do you connect a Spring Boot application to a MySQL database?</strong> Configure application.properties:</p><pre>spring.datasource.url=jdbc:mysql://localhost:3306/mydb<br>spring.datasource.username=root<br>spring.datasource.password=secret<br>spring.jpa.hibernate.ddl-auto=update</pre><p>Use JPA entity:</p><pre>@Entity<br>public class User {<br>    @Id<br>    @GeneratedValue(strategy = GenerationType.IDENTITY)<br>    private Long id;<br>    private String name;<br>}</pre><p><strong>Q8. How do you handle exceptions globally in a Spring Boot application?</strong> A8. Use @ControllerAdvice:</p><pre>@ControllerAdvice<br>public class GlobalExceptionHandler {<br>    @ExceptionHandler(ResourceNotFoundException.class)<br>    public ResponseEntity&lt;String&gt; handleNotFound(ResourceNotFoundException ex) {<br>        return new ResponseEntity&lt;&gt;(ex.getMessage(), HttpStatus.NOT_FOUND);<br>    }<br>}</pre><p><strong>Q9. How do you use Spring Boot DevTools to enhance the development</strong> <strong>experience? <br></strong>Add the dependency:</p><pre>&lt;dependency&gt;<br>    &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;<br>    &lt;artifactId&gt;spring-boot-devtools&lt;/artifactId&gt;<br>&lt;/dependency&gt;</pre><p>It enables live reloading and speeds up development.</p><p><strong>Q10. How do you configure a custom endpoint in Spring Boot Actuator?</strong> Use @Component and @ReadOperation:</p><pre>@Component<br>public class CustomEndpoint {<br>    @ReadOperation<br>    public String customEndpoint() {<br>        return &quot;Custom Endpoint Output&quot;;<br>    }<br>}</pre><p>Enable it in application.properties:</p><pre>management.endpoints.web.exposure.include=custom</pre><p><strong>Q11. How do you implement pagination and sorting in a Spring Boot application? </strong><br>Use PagingAndSortingRepository:</p><pre>public interface UserRepository extends PagingAndSortingRepository&lt;User, Long&gt; {}</pre><p>Controller:</p><pre>@GetMapping(&quot;/users&quot;)<br>public Page&lt;User&gt; getUsers(Pageable pageable) {<br>    return userRepository.findAll(pageable);<br>}</pre><p><strong>Q12. How do you configure and use a custom banner in a Spring Boot application?</strong><br> Place a banner.txt file in src/main/resources. You can use ASCII art for customization.</p><p><strong>Q13. How do you integrate Spring Boot with Kafka? </strong><br>Add Kafka dependency:</p><pre>&lt;dependency&gt;<br>    &lt;groupId&gt;org.springframework.kafka&lt;/groupId&gt;<br>    &lt;artifactId&gt;spring-kafka&lt;/artifactId&gt;<br>&lt;/dependency&gt;</pre><p>Configure Kafka properties:</p><pre>spring.kafka.bootstrap-servers=localhost:9092<br>spring.kafka.consumer.group-id=my-group</pre><p>Use @KafkaListener:</p><pre>@KafkaListener(topics = &quot;myTopic&quot;, groupId = &quot;my-group&quot;)<br>public void listen(String message) {<br>    System.out.println(&quot;Received: &quot; + message);<br>}</pre><p><strong>Q14. How do you schedule tasks in Spring Boot?</strong><br>Use @Scheduled annotation:</p><pre>@EnableScheduling<br>@Component<br>public class ScheduledTasks {<br>    @Scheduled(fixedRate = 5000)<br>    public void performTask() {<br>        System.out.println(&quot;Scheduled task running...&quot;);<br>    }<br>}</pre><p><strong>Q15. How do you configure a Spring Boot application to use Spring Security?</strong><br>Extend WebSecurityConfigurerAdapter:</p><pre>@Configuration<br>@EnableWebSecurity<br>public class SecurityConfig extends WebSecurityConfigurerAdapter {<br>    @Override<br>    protected void configure(HttpSecurity http) throws Exception {<br>        http.authorizeRequests()<br>            .antMatchers(&quot;/public/**&quot;).permitAll()<br>            .anyRequest().authenticated()<br>            .and()<br>            .formLogin().permitAll()<br>            .and()<br>            .logout().permitAll();<br>    }<br>}</pre><p><strong>Q16. How do you implement internationalization (i18n) in a Spring Boot application? </strong><br>Configure application.properties:</p><pre>spring.messages.basename=messages<br>spring.messages.encoding=UTF-8</pre><p>Use MessageSource in a controller:</p><pre>@RestController<br>public class GreetingController {<br>    @Autowired<br>    private MessageSource messageSource;<br>    @GetMapping(&quot;/greet&quot;)<br>    public String greet(Locale locale) {<br>        return messageSource.getMessage(&quot;greeting&quot;, null, locale);<br>    }<br>}</pre><p><strong>Q17. How do you integrate a third-party library (like Lombok) in a Spring Boot application?</strong><br>Add Lombok dependency:</p><pre>&lt;dependency&gt;<br>    &lt;groupId&gt;org.projectlombok&lt;/groupId&gt;<br>    &lt;artifactId&gt;lombok&lt;/artifactId&gt;<br>    &lt;version&gt;1.18.20&lt;/version&gt;<br>    &lt;scope&gt;provided&lt;/scope&gt;<br>&lt;/dependency&gt;</pre><p>Use @Data annotation:</p><pre>@Data<br>@Entity<br>public class User {<br>    @Id<br>    @GeneratedValue(strategy = GenerationType.IDENTITY)<br>    private Long id;<br>    private String name;<br>}</pre><p><strong>Q18. How do you create a custom validator in Spring Boot?<br></strong> Define annotation and validator class:</p><pre>@Target({ElementType.FIELD})<br>@Retention(RetentionPolicy.RUNTIME)<br>@Constraint(validatedBy = CustomValidator.class)<br>public @interface CustomConstraint {<br>    String message() default &quot;Invalid value&quot;;<br>    Class&lt;?&gt;[] groups() default {};<br>    Class&lt;? extends Payload&gt;[] payload() default {};<br>}</pre><pre>public class CustomValidator implements ConstraintValidator&lt;CustomConstraint, String&gt; {<br>    @Override<br>    public boolean isValid(String value, ConstraintValidatorContext context) {<br>        return value != null &amp;&amp; value.matches(&quot;[A-Z]{2}[0-9]{4}&quot;);<br>    }<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=665173162f9c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beginner-Level Jenkins Interview Questions]]></title>
            <link>https://medium.com/@sunil.bombe1998/beginner-level-jenkins-interview-questions-5aaa954204fd?source=rss-88d5662ef63b------2</link>
            <guid isPermaLink="false">https://medium.com/p/5aaa954204fd</guid>
            <category><![CDATA[jenkins-pipeline]]></category>
            <category><![CDATA[jenkinsfile]]></category>
            <category><![CDATA[jenkins]]></category>
            <dc:creator><![CDATA[Sunil Bombe]]></dc:creator>
            <pubDate>Tue, 04 Feb 2025 18:37:13 GMT</pubDate>
            <atom:updated>2026-07-14T06:11:00.914Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P5vmKOvN7MQy3YyGEdFY4A.png" /></figure><h4>1. What is Jenkins?</h4><p>Jenkins is an open-source <strong>automation server</strong> used for <strong>continuous integration (CI) and continuous deployment (CD)</strong>. It automates the building, testing, and deployment of applications.</p><h4>2. What are the key features of Jenkins?</h4><ul><li>Open-source and extensible through plugins</li><li>Supports distributed builds</li><li>Provides pipeline as code using <strong>Jenkinsfile</strong></li><li>Integration with various <strong>Version Control Systems (Git, SVN, etc.)</strong></li><li>Supports notifications via email, Slack, etc.</li></ul><h4>3. How does Jenkins work?</h4><ol><li>Developer commits code to <strong>Version Control System (e.g., GitHub, GitLab, Bitbucket)</strong></li><li>Jenkins detects changes and triggers a <strong>build</strong></li><li>The code is compiled and tested</li><li>If tests pass, Jenkins <strong>deploys the application</strong></li><li>Notifications are sent to the team</li></ol><h4>4. What is a Jenkins pipeline?</h4><p>A <strong>Jenkins pipeline</strong> is a set of steps that automate CI/CD processes. It is written using <strong>Jenkinsfile</strong> in either <strong>Declarative</strong> or <strong>Scripted</strong> syntax.</p><h4>5. How do you install Jenkins?</h4><ul><li><strong>Windows</strong>: Install .war file and run java -jar jenkins.war</li><li><strong>Linux (Ubuntu/Debian)</strong>: sudo apt update &amp;&amp; sudo apt install jenkins</li><li><strong>Docker</strong>: docker run -p 8080:8080 jenkins/jenkins</li></ul><h3>Intermediate-Level Jenkins Interview Questions</h3><h4>6. What are the different types of Jenkins pipelines?</h4><ol><li><strong>Declarative Pipeline</strong> — Uses a structured syntax (easier to read and maintain).</li><li><strong>Scripted Pipeline</strong> — Uses Groovy scripting (more flexible but complex).</li></ol><h4>7. What is a Jenkinsfile?</h4><p>A <strong>Jenkinsfile</strong> is a text file that defines a Jenkins pipeline using either <strong>Declarative</strong> or <strong>Scripted</strong> syntax.</p><p><strong>Example: Declarative Pipeline</strong></p><pre>pipeline {<br>    agent any<br>    stages {<br>        stage(&#39;Build&#39;) {<br>            steps {<br>                echo &#39;Building the application...&#39;<br>            }<br>        }<br>        stage(&#39;Test&#39;) {<br>            steps {<br>                echo &#39;Running tests...&#39;<br>            }<br>        }<br>        stage(&#39;Deploy&#39;) {<br>            steps {<br>                echo &#39;Deploying application...&#39;<br>            }<br>        }<br>    }<br>}</pre><h4>8. How does Jenkins integrate with Git?</h4><ul><li>Install the <strong>Git Plugin</strong></li><li>Configure <strong>Git credentials</strong> in Jenkins</li><li>In the job configuration, set the <strong>Git repository URL</strong></li></ul><h4>9. What are Jenkins agents and nodes?</h4><ul><li><strong>Master Node</strong>: Manages Jenkins jobs and distributes tasks.</li><li><strong>Agent Node</strong>: Executes jobs assigned by the master.</li></ul><h4>10. What are Jenkins environment variables?</h4><p>Jenkins provides built-in environment variables like:</p><ul><li>$BUILD_NUMBER → Build number of the current job</li><li>$JOB_NAME → Name of the Jenkins job</li><li>$WORKSPACE → Directory of the job</li></ul><h3>Advanced-Level Jenkins Interview Questions</h3><h4>11. What is Blue Ocean in Jenkins?</h4><p><strong>Blue Ocean</strong> is a modern UI for Jenkins that provides a better visual representation of pipelines.</p><h4>12. How do you secure Jenkins?</h4><ul><li>Enable <strong>Role-Based Access Control (RBAC)</strong></li><li>Use <strong>Jenkins Matrix-based Security</strong></li><li>Disable <strong>anonymous access</strong></li><li>Use <strong>HTTPS for Jenkins UI</strong></li></ul><h4>13. What is a Multibranch Pipeline?</h4><p>A <strong>Multibranch Pipeline</strong> automatically creates and manages pipelines for different Git branches.</p><h4>14. How do you trigger a Jenkins job automatically?</h4><ul><li><strong>Webhook</strong> (GitHub/GitLab triggers a build when new code is pushed)</li><li><strong>Cron Job</strong> (H/5 * * * * runs every 5 minutes)</li><li><strong>Poll SCM</strong> (Jenkins checks for changes at regular intervals)</li></ul><h4>15. What are some commonly used Jenkins plugins?</h4><ul><li><strong>Git Plugin</strong> → Integrates Git with Jenkins</li><li><strong>Pipeline Plugin</strong> → Enables pipeline as code</li><li><strong>JUnit Plugin</strong> → Displays test results</li><li><strong>Email Extension Plugin</strong> → Sends email notifications</li><li><strong>Docker Plugin</strong> → Integrates Docker with Jenkins</li></ul><h3>Scenario-Based Jenkins Questions</h3><h4>16. How do you handle a failed Jenkins build?</h4><ol><li>Check <strong>Console Output</strong> for errors.</li><li>Verify <strong>code changes and dependencies</strong>.</li><li>Check if the <strong>Jenkins agent is running</strong>.</li><li>Retry the build after fixing the issue.</li></ol><h4>17. How do you deploy an application using Jenkins?</h4><ol><li><strong>Build the code</strong> using Maven/Gradle.</li><li><strong>Run tests</strong> to ensure code quality.</li><li><strong>Deploy to a server</strong> (Tomcat, AWS, Kubernetes, etc.) using plugins or scripts.</li></ol><h4>18. What is the difference between Freestyle and Pipeline jobs?</h4><p>FeatureFreestyle JobPipeline JobConfigurationGUI-basedCode-based (Jenkinsfile)FlexibilityLimitedHighly flexibleScalabilityLessMore scalableReusabilityLowHigh</p><h4>19. How do you run a Jenkins job inside a Docker container?</h4><ul><li>Install the <strong>Docker Pipeline Plugin</strong></li><li>Use docker inside the pipeline:</li></ul><pre>pipeline {<br>    agent {<br>        docker { image &#39;maven:3.8.6&#39; }<br>    }<br>    stages {<br>        stage(&#39;Build&#39;) {<br>            steps {<br>                sh &#39;mvn clean package&#39;<br>            }<br>        }<br>    }<br>}</pre><h4>20. What is the difference between Jenkins and other CI/CD tools (GitHub Actions, GitLab CI, CircleCI)?</h4><p>FeatureJenkinsGitHub ActionsGitLab CICircleCISetupSelf-hostedCloud-basedSelf/CloudCloud-basedExtensibilityHigh (Plugins)MediumMediumLowEase of UseModerateEasyEasyEasyScalabilityHighMediumHighMedium</p><h3>Conclusion</h3><p>Mastering these <strong>Jenkins interview questions</strong> will help you ace your interview. Let me know if you want <strong>hands-on examples</strong> or specific <strong>real-world scenarios</strong>. 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5aaa954204fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Interview Readiness and Job Search: Strategies for Success]]></title>
            <link>https://medium.com/@sunil.bombe1998/interview-readiness-and-job-search-853dbdbd3631?source=rss-88d5662ef63b------2</link>
            <guid isPermaLink="false">https://medium.com/p/853dbdbd3631</guid>
            <category><![CDATA[job-hunting]]></category>
            <category><![CDATA[freshers]]></category>
            <dc:creator><![CDATA[Sunil Bombe]]></dc:creator>
            <pubDate>Wed, 29 Jan 2025 15:21:07 GMT</pubDate>
            <atom:updated>2026-07-14T06:00:08.304Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EUMeyJN3Og2JeQP8Kb8MVA.png" /></figure><h3>1. Optimize Your Resume &amp; LinkedIn</h3><ul><li><strong>Tailor Your Resume</strong>: Customize it for each job by aligning keywords from the job description (use tools like <a href="https://www.jobscan.co/">Jobscan</a>).</li><li><strong>Highlight Achievements</strong>: Use metrics (e.g., “Reduced API latency by 30%”) instead of generic duties.</li><li><strong>LinkedIn Profile</strong>: Add a professional photo, a headline like “API Developer | Node.js Specialist,” and a summary showcasing your passion for tech. Enable the “Open to Work” badge.</li></ul><h3>2. Network Strategically</h3><ul><li><strong>Attend Meetups/Conferences</strong>: Join events on <a href="https://www.meetup.com/">Meetup</a> or tech conferences (e.g., DevOps Days, AWS re:Invent ).</li><li><strong>Leverage LinkedIn</strong>: Connect with hiring managers, recruiters, and alumni. Engage with posts by commenting thoughtfully.</li><li><strong>Join Communities</strong>: Participate in Slack/Discord groups (e.g., Dev.to, Indie Hackers) or niche forums like GitHub Discussions.</li></ul><h3>3. Master the Interview Process</h3><ul><li><strong>Practice Coding Challenges</strong>: Use platforms like <a href="https://leetcode.com/">LeetCode</a>, <a href="https://www.hackerrank.com/">HackerRank</a>, or <a href="https://www.codewars.com/">Codewars</a>.</li><li><strong>Prepare for Behavioral Questions</strong>: Use the <strong>STAR method</strong> (Situation, Task, Action, Result) to structure answers.</li><li><strong>Mock Interviews</strong>: Try <a href="https://www.pramp.com/">Pramp</a> or interview coaches on platforms like <a href="https://topmate.io/">Topmate</a>.</li></ul><h3>4. Build a Strong Online Presence</h3><ul><li><strong>GitHub Portfolio</strong>: Showcase projects like your API testing framework. Add clean code, documentation, and live demos.</li><li><strong>Write Technical Blogs</strong>: Share tutorials or case studies on Medium, Dev.to, or Hashnode. Example: “How I Built an Interactive Test Report with Mochawesome.”</li><li><strong>Contribute to Open Source</strong>: Start with beginner-friendly projects on <a href="https://github.com/">GitHub</a> or <a href="https://up-for-grabs.net/">Up For Grabs</a>.</li></ul><h3>5. Target the Right Jobs</h3><ul><li><strong>Job Boards</strong>:</li><li>General: <a href="https://www.linkedin.com/jobs/">LinkedIn Jobs</a>, <a href="https://www.indeed.com/">Indeed</a>.</li><li>Tech-Specific: <a href="https://stackoverflow.com/jobs">Stack Overflow Jobs</a>, <a href="https://angel.co/">AngelList</a>, <a href="https://hired.com/">Hired</a>.</li><li><strong>Remote Work</strong>: Check <a href="https://weworkremotely.com/">We Work Remotely</a>, <a href="https://remoteok.com/">RemoteOK</a>, or FlexJobs.</li></ul><h3>6. Upskill Continuously</h3><ul><li><strong>Certifications</strong>: Consider AWS Certified Developer, Google Cloud, or Azure certifications.</li><li><strong>Courses</strong>: Platforms like <a href="https://www.udemy.com/">Udemy</a>, <a href="https://www.coursera.org/">Coursera</a>, or <a href="https://www.pluralsight.com/">Pluralsight</a>.</li><li><strong>Stay Updated</strong>: Follow tech newsletters (e.g., TLDR, Hacker News) or podcasts (e.g., “Software Engineering Daily”).</li></ul><h3>7. Follow Up &amp; Stay Organized</h3><ul><li><strong>Track Applications</strong>: Use a spreadsheet or tools like <a href="https://www.notion.so/">Notion</a> to log jobs, deadlines, and follow-ups.</li><li><strong>Send Thank-You Notes</strong>: Email recruiters/hiring managers within 24 hours of interviews.</li><li><strong>Negotiate Offers</strong>: Research salary ranges on <a href="https://www.levels.fyi/">Levels.fyi</a> or <a href="https://www.glassdoor.com/">Glassdoor</a>.</li></ul><h3>8. Stay Resilient</h3><ul><li><strong>Set Daily Goals</strong>: Aim for 3–5 quality applications/day instead of mass-applying.</li><li><strong>Rejections Are Feedback</strong>: Ask for constructive criticism after rejections.</li><li><strong>Take Breaks</strong>: Avoid burnout by scheduling downtime (e.g., walks, hobbies).</li></ul><h3>Bonus Tools</h3><ul><li><strong>Resume Builders</strong>: <a href="https://novoresume.com/">Novoresume</a>, <a href="https://www.canva.com/">Canva</a>.</li><li><strong>Portfolio Websites</strong>: Build with <a href="https://pages.github.com/">GitHub Pages</a> or <a href="https://vercel.com/">Vercel</a>.</li><li><strong>LinkedIn Automation</strong>: Tools like <a href="https://hunter.io/">Hunter.io</a> to find recruiter emails.</li></ul><p><strong>Final Tip</strong>: Focus on quality over quantity. A well-researched application for 1 role you’re passionate about is better than 50 generic ones. You’ve got this! 💪 Let me know if you need help with resumes, interviews, or negotiation strategies.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=853dbdbd3631" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>