<?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 Divyabharathi T on Medium]]></title>
        <description><![CDATA[Stories by Divyabharathi T on Medium]]></description>
        <link>https://medium.com/@divyabharathi.t?source=rss-485249d5e689------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Divyabharathi T on Medium</title>
            <link>https://medium.com/@divyabharathi.t?source=rss-485249d5e689------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 03:50:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@divyabharathi.t/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Automating Cypress Testing with AI: A Comprehensive Guide]]></title>
            <link>https://medium.com/@divyabharathi.t/automating-cypress-testing-with-ai-a-comprehensive-guide-daa37a2f4595?source=rss-485249d5e689------2</link>
            <guid isPermaLink="false">https://medium.com/p/daa37a2f4595</guid>
            <dc:creator><![CDATA[Divyabharathi T]]></dc:creator>
            <pubDate>Fri, 21 Jun 2024 06:39:27 GMT</pubDate>
            <atom:updated>2024-06-21T06:39:27.101Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s rapidly evolving software development landscape, automation testing has become an integral part of ensuring product quality and accelerating release cycles. With tools like Cypress and the advancements in AI technology, automation testers can streamline their testing processes further. In this guide, we’ll explore how AI can enhance Cypress automation, covering code generation, locator suggestions, assertions, API testing and few cypress features like retry mechanisms, Cypress Test runner, Cypress Studio, and integration with Cypress Dashboard.</p><p><strong>Current Challenges in Test Automation</strong></p><p>Manual creation and maintenance of test scripts for complex applications can be time-consuming and error-prone. This often leads to limited test coverage and difficulties in keeping scripts updated with application changes. Dynamic application changes further exacerbate the challenges of manual script maintenance.</p><p><strong>Proposed Solution: Integrating Generative AI with Cypress</strong></p><p>Integrating Generative AI (Gen AI) with Cypress can revolutionize the test automation process. This solution proposes the use of AI-driven plugins and tools to automate and enhance various aspects of testing, including:</p><p>1. <strong>Automated Script Generation:</strong> Gen AI can analyze application elements and interactions to auto-create Cypress test scripts, saving time and reducing errors.</p><p>2. <strong>Locator Suggestion:</strong> Gen AI can extract HTML code and generate precise locators based on HTML attributes, improving efficiency.</p><p>3. <strong>Assertion Creation:</strong> Gen AI can automate the creation of assertions in Cypress based on provided criteria.</p><p>4. <strong>API Testing:</strong> Gen AI can simplify API testing by generating code for request sending and response validation.</p><p>5. <strong>Code Modification Assistance:</strong> Gen AI can assist in modifying existing test scripts to ensure seamless integration of changes.</p><p><strong>Benefits of Integration</strong></p><p>● <strong>Automated Script Generation:</strong> Saves time and reduces manual errors.</p><p>● <strong>Enhanced Test Coverage:</strong> Ensures broader test coverage through comprehensive script generation.</p><p>● <strong>Improved Maintenance:</strong> Offers advanced capabilities for maintaining and updating scripts.</p><p>● <strong>Adaptive Testing:</strong> Provides more adaptive and dynamic test generation for complex scenarios.</p><p>● <strong>Early Issue Detection:</strong> Enables early detection of issues, reducing the cost and effort of fixes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*BgsHBaYJ1e5N2cGTNDIopg.png" /></figure><p><strong>Leveraging Visual Studio with Copilot Extension:</strong></p><p>For testers leveraging Visual Studio, the integration of the Copilot extension adds another layer of efficiency to the Cypress automation workflow. With Copilot’s AI-powered code generation capabilities directly within the Visual Studio environment, writing Cypress tests becomes even more intuitive and streamlined.</p><p>The Copilot extension augments the development experience by providing intelligent code suggestions and completions as automation tester write their Cypress test scripts. Whether it’s generating test logic, suggesting optimized locators, or recommending assertions, Copilot assists automation tester in crafting robust and maintainable tests with ease.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*W9n0N0iwMm3fiWqOnI7tAw.png" /></figure><p>By seamlessly integrating Copilot into Visual Studio, automation tester benefit from a cohesive development environment where they can write, test, and debug Cypress tests efficiently. This tight integration accelerates the testing process, reduces the cognitive load on automation tester, and promotes best practices in test automation.</p><p>In essence, the combination of Visual Studio and the Copilot extension empowers automation tester to leverage AI-driven automation seamlessly within their familiar development environment, fostering productivity and enabling rapid iteration in Cypress test development.</p><p>To install the Copilot extension in Visual Studio Code (VS Code) and utilize its features, follow these steps:</p><h4>Installation:</h4><ol><li><strong>Open VS Code:</strong> Launch Visual Studio Code on your computer.</li></ol><p>2. <strong>Access Extensions:</strong> Click on the “Extensions” icon in the sidebar, or press `Ctrl+Shift+X` (Windows/Linux) or `Cmd+Shift+X` (Mac) to open the Extensions view.</p><p>3. <strong>Search for Copilot:</strong> In the Extensions view search bar, type “Copilot” and press Enter.</p><p>4. <strong>Install Copilot:</strong> Locate the “GitHub Copilot” extension from GitHub, and click the “Install” button next to it.</p><p>5. <strong>Restart VS Code (if necessary):</strong> Sometimes, VS Code may prompt you to reload the window to enable the installed extension. If prompted, follow the instructions to reload VS Code.</p><p><strong>Usage:</strong></p><p>1. <strong>Authorize GitHub Copilot:</strong> After installing the extension, you’ll need to authenticate with GitHub to use Copilot. Click on the GitHub Copilot icon in the status bar at the bottom left corner of the VS Code window, and follow the prompts to sign in with your GitHub account.</p><p>2. <strong>Start Writing Code: </strong>With Copilot installed and authenticated, you can start writing code as usual in VS Code. Copilot will analyze your code context and provide suggestions in real-time as you type.</p><p>3. <strong>Accept Suggestions:</strong> Copilot will offer suggestions in the form of code completions, which you can accept by pressing `Tab` or `Enter` when the desired suggestion is highlighted. You can also view additional suggestions by scrolling through the list or pressing `Tab` to cycle through them.</p><p>4. <strong>Customize Copilot Settings (Optional):</strong> You can customize Copilot’s behavior and preferences by accessing its settings. Click on the gear icon next to the Copilot suggestions, or go to VS Code Settings (`Ctrl+,` or `Cmd+,`), search for “GitHub Copilot”, and adjust the settings according to your preferences.</p><p>5. <strong>Review and Refine Suggestions:</strong> While Copilot provides helpful suggestions, it’s essential to review and refine them to ensure they meet your specific requirements and coding standards. You can modify and expand upon the suggestions provided by Copilot to tailor them to your needs.</p><p>6.<strong> Feedback and Improvements:</strong> As you use Copilot, provide feedback to GitHub about the suggestions’ accuracy and usefulness. Your feedback helps improve Copilot’s AI models and enhances its capabilities over time.</p><p>By following these steps, you can install the Copilot extension in Visual Studio Code and utilize its AI-powered code generation capabilities to streamline your coding workflow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iSXmGEzirhFPAWIU66CeJg.png" /></figure><ol><li><strong>Code Generation:</strong></li></ol><p>Writing Cypress tests can be simplified using AI-powered code generation tools. By providing clear instructions, testers can generate Cypress test scripts effortlessly.</p><p>Please provide the instructions or test cases for which you would like to generate code in the Copilot chat box. For example refer below requirement:</p><p><strong>Prompt:</strong></p><p><strong>Instruction :</strong></p><p>Write a Cypress test that validates whether user can login with valid credentials on “URL” using valid class attributes as selectors.</p><p><strong>Steps:</strong></p><p>1. Visit the website</p><p>2. Then locate username field using cy.get() and use type command to enter analouis</p><p>3. Then locate password field using cy.get() and use type command to enter Changeme!@2345</p><p>4. Then locate password field using cy.get() and Click login button.</p><p>5. Wait until the dashboard menu loads</p><p>6.Validate the dashboard locator is displayed.</p><p>Effortlessly generate code based on your requirements within seconds. This streamlined process significantly reduces the manual effort required for script writing. Minor adjustments, such as locator changes and synchronization, can be easily handled. Solutions to these challenges include utilizing Cypress Testrunner’s built-in locator DOM, locator extensions, or the Cypress record and playback feature.</p><p>Now the code will be generated as below attached image.</p><p><strong>Results:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*vPbc2W29aTTQ81atoN2xVw.png" /></figure><p>You can make a few adjustments and directly copy the content from the Copilot tab. Then, paste it into your Visual Studio class file and initiate execution.</p><p>2. <strong>Locator suggestion:</strong></p><p>We extract HTML code from the DOM and employ AI to generate precise locators based on HTML attributes, enhancing test automation efficiency. This streamlined approach ensures accurate element location, bolstering test effectiveness.</p><p>AI tools can suggest efficient locators for Cypress tests, ensuring robust and stable test scripts.</p><p><strong>Prompt:</strong></p><p>&lt;input _ngcontent-ipr-c152=”” autofocus=”” type=”text” id=”user” name=”user” matinput=”” class=”mat-input-element mat-form-field-autofill-control ng-valid cdk-text-field-autofill-monitored cdk-text-field-autofilled ng-dirty ng-touched” data-placeholder=”User name” aria-invalid=”false” aria-required=”false” data-gtm-form-interact-field-id=”0&quot;&gt; <br>Write a locator for my cypress test using the above html element.</p><p><strong>Results:</strong></p><p>// Locator suggestion for HTML input element<br>cy.get(‘input#user’);</p><p>// Locator for data-placeholder attribute<br>cy.get(‘input[data-placeholder=”User name”]’);</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*xyqZg_m1HhN3DkprzqfPvg.png" /></figure><p>3. <strong>Assertion for specific request:</strong></p><p>Automated tests in Cypress require assertions to validate application behavior. AI tools streamline assertion creation by analyzing provided criteria and generating Cypress code snippets automatically.</p><p><strong>Prompt:</strong> I need to check whether this locator cy.get(‘.left-top-icon’) have the text like waste disposal</p><p><strong>Results:</strong> <br>cy.get(‘.left-top-icon’).should(‘contain’, ‘waste disposal’);</p><p><strong>Prompt: </strong>I need to check whether this locator cy.get(‘.left-top-icon’) have the partial text as waste</p><p><strong>Results:</strong></p><p>To check whether the locator cy.get(‘.left-top-icon’) contains the partial text “waste”, you can use Cypress’ .should() function along with .contains(). Here’s how you can do it:</p><p>cy.get(‘.left-top-icon’).should(‘contain’, ‘waste’);</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*mQXYZqwRv7kAAB1pguTVBw.png" /></figure><p><strong>Prompt:</strong> Any other assertion with this locator</p><p><strong>Results:</strong></p><p>Check if the element exists: You can verify whether the element exists on the page.</p><p>cy.get(‘.left-top-icon’).should(‘exist’);</p><p>Check if the element is visible: You can verify whether the element is visible on the page.</p><p>cy.get(‘.left-top-icon’).should(‘be.visible’);</p><p>Check if the element is hidden: You can verify whether the element is hidden on the page.</p><p>cy.get(‘.left-top-icon’).should(‘not.be.visible’);</p><p>Check if the element has a specific class: You can verify whether the element has a particular class.</p><p>cy.get(‘.left-top-icon’).should(‘have.class’, ‘your-class-name’);</p><p>Check if the element has a specific attribute: You can verify whether the element has a particular attribute.</p><p>cy.get(‘.left-top-icon’).should(‘have.attr’, ‘your-attribute’);</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*XKvTKZaeqzljXvHAnfBmtg.png" /></figure><p>4. <strong>API testing:</strong></p><p>API testing in Cypress involves automating request sending and response validation. AI tools simplify this process by generating Cypress code based on provided request details, including URL, method, headers, parameters, and expected responses, enhancing test automation efficiency.</p><p><strong>Prompt: </strong>How to automate this api request in cypress <br>Request URL: https://cor2.usecology.com/version.json?t=1707826669772 Request Method: GET Status Code: 200 OK Remote Address: 4.15.83.72:443 Referrer Policy: strict-origin-when-cross-origin</p><p><strong>Results: </strong><br>describe(‘API Tests’, () =&gt; { <br> it(‘Should make an API request’, () =&gt; { <br>cy.request(‘https://cor2.usecology.com/version.json?t=1707826669772&#39;).then((response) =&gt; { <br> // Verify the response status code <br> expect(response.status).to.eq(200); <br> }); <br> }); <br>});</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*mj6UOVy7nyAarSxJaf1cnw.png" /></figure><p>5. <strong>Changes required in our code:</strong></p><p>If you need to make minor changes to your code, you can simply copy the file content and ask AI to modify it according to your preferences. For instance, in the example below, I requested to disable the video feature. If someone is unsure where to make the change in the config file, AI can provide the updated content that you can paste and run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*RfUEoDNmqRpfwqhlF4kmGA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*bYJ66kL0fzSveYBfgt-qtg.png" /></figure><p>Following proper coding standards is essential, especially for newcomers to tools like Cypress or any other technology. With the help of AI suggestions, you can adhere to best practices and ensure clean, maintainable code from the start.</p><p><strong>Additional features of Cypress:</strong></p><p><strong>1. Retry mechanism:</strong></p><p>For Cypress test reliability amidst network issues or timing discrepancies, a retry mechanism like cy.retry() or custom JavaScript logic retries failed commands, enhancing test robustness.</p><p>it(‘Should handle exceptions using Cypress commands’, { retries: 2 }, () =&gt; {<br> cy.visit(‘https://sample.com/&#39;);<br> cy.get(‘#user’).type(‘manand84’);<br> cy.get(‘#passwrd’).type(‘Changeme!@2345’);<br> cy.get(‘#login’).click();<br> cy.get(‘.leftmenu’).should(‘be.visible’);<br>});</p><p><strong>2. Cypress Test runner:</strong></p><p>Cypress Test Runner is an open-source, end-to-end testing framework specifically built for modern web applications. Unlike traditional testing frameworks, Cypress operates directly within the browser, enabling automation tester to write, run, and debug tests in real-time. This unique approach offers several advantages, including:</p><p>1.<strong> Fast and Reliable Tests: </strong>Cypress Test Runner provides fast, deterministic test runs by running tests directly in the same run loop as the application. This eliminates flakiness and ensures consistent test results, even in complex scenarios.</p><p>2. <strong>Automatic Waiting and Retry Mechanism: </strong>With Cypress, you no longer need to manually add explicit waits or retries in your tests. Cypress automatically waits for elements to become available and retries commands until the specified conditions are met, making tests more robust and resilient.</p><p>3. <strong>Real-Time Test Debugging: </strong>Debugging tests is made easy with Cypress Test Runner’s built-in interactive debugger. Automation tester can inspect test execution, step through commands, and see the application state in real-time, making it effortless to diagnose and fix issues.</p><p>4. <strong>Time Traveling Debugger: </strong>Cypress’s time-traveling debugger allows automation tester to rewind and replay test commands, helping them pinpoint exactly where failures occur and understand the state of the application at each step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KApiTXtOJWC06tmBfYbwpA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rU5mnJ6kpk-j7tUvrx2Wlw.png" /></figure><p><strong>3. Cypress studio:</strong></p><p>In Cypress Studio, open it via ‘npx cypress open’, then click ‘Record’ in the ‘Actions’ panel to automatically generate commands from your interactions.</p><p>Using Cypress Studio is a straightforward process. Here’s a step-by-step guide on how to use Cypress Studio:</p><ol><li>Add the configuration to cypress.config.js file,as shown in below image:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*M56tPfqxDF544IvVqAkNmw.png" /></figure><p><strong>Open Cypress Test Runner:</strong> Launch Cypress Test Runner by running the following command in your terminal:<br> npx cypress open</p><p>2. <strong>Access Cypress Studio:</strong> Once Cypress Test Runner is open, click on the “Cypress Studio” tab to access the Cypress Studio interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*R6CYknhNM2vL12fMhdOnMQ.png" /></figure><p>3.<strong> Start Recording Tests:</strong> Click the “Record” button in Cypress Studio to begin recording your interactions with the application. This could include actions like clicking buttons, filling out forms, or navigating between pages.</p><p>4. <strong>Interact with Your Application:</strong> While recording, interact with your application as you normally would during testing. Cypress Studio will capture your actions in real-time.</p><p>5.<strong> Review Generated Commands: </strong>As you interact with the application, Cypress Studio will automatically generate Cypress commands in the background. Review the generated commands to ensure they accurately represent your test steps.</p><p>6. <strong>Customize Commands (Optional): </strong>If needed, you can customize the generated commands by adding parameters or assertions. This allows you to fine-tune the test case according to your requirements.</p><p>7. <strong>Save and Run Tests:</strong> Once you’re satisfied with the test case, save it within Cypress Studio. You can then run the test using Cypress Test Runner to verify the functionality of your application.</p><p>By following these steps, you can leverage Cypress Studio to streamline the process of creating automated tests for your web application, even without prior experience in test automation.</p><p>4.<strong> Cypress Dashboard:</strong></p><p>Cypress Dashboard is a powerful tool provided by Cypress.io that offers features for recording, managing, and analyzing test runs from your Cypress tests. It allows you to gain insights into your test runs, monitor test execution across different environments, and collaborate with team members effectively. Here’s how you can use Cypress Dashboard:</p><p>1.<strong> Sign Up for Cypress Dashboard: </strong>To use Cypress Dashboard, you first need to sign up for an account on the Cypress Dashboard website. Visit [https://dashboard.cypress.io/signup](https://dashboard.cypress.io/signup) and follow the instructions to create an account.</p><p>2.<strong> Install Cypress Dashboard Service: </strong>You need to install the Cypress Dashboard Service package to integrate your Cypress tests with the Cypress Dashboard. Install the package as a dev dependency in your project:<br>npm install — save-dev @cypress/dashboard</p><p>3. <strong>Configure Cypress to Use the Dashboard Service: </strong>Once installed, configure Cypress to use the Dashboard Service. You can do this by setting the `record` option in your `cypress.json` file</p><p>“projectId”: “your-project-id”,<br> “record”: true</p><p>Replace `”your-project-id”` with the project ID provided by Cypress Dashboard after signing up.</p><p>4.<strong> Run Cypress Tests: </strong>Now, run your Cypress tests as usual using the Cypress Test Runner. When you execute your tests, Cypress will automatically record the test results and send them to the Cypress Dashboard.</p><p>5. <strong>View Test Results on Cypress Dashboard: </strong>After running your tests, you can view the test results on the Cypress Dashboard website. Log in to your Cypress Dashboard account and navigate to the dashboard to see detailed information about your test runs, including test status, execution time, and error messages.</p><p>6.<strong> Analyze Test Runs: </strong>Cypress Dashboard provides various features for analyzing test runs, such as filtering test results, viewing screenshots and videos of test runs, and identifying flaky tests. You can use these features to gain insights into your test suite’s performance and reliability.</p><p>7. <strong>Collaborate with Team Members: </strong>You can invite team members to your Cypress Dashboard project to collaborate on test automation. Team members can view test results, share insights, and coordinate testing efforts using the Cypress Dashboard.</p><p>By following these steps, you can leverage Cypress Dashboard to streamline your test automation workflow and ensure the quality and reliability of your web applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l8Bh6_pL9GuTKmqovXzjsQ.png" /></figure><p><strong>Conclusion:</strong></p><p>In summary, integrating AI with Cypress automation offers a powerful toolkit for enhancing testing efficiency and effectiveness. From code generation to API testing, AI streamlines test creation and maintenance. Features like locator suggestions and retry mechanisms bolster test stability, while Cypress Test runner and Studio provide robust testing environments. Integration with Cypress Dashboard centralizes reporting for better collaboration and insights. Together, these tools empower automation tester to deliver high-quality software with speed and confidence in today’s dynamic development landscape.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=daa37a2f4595" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Effortless Mobile App Testing: Automating with Experitest Cloud for Peak Efficiency”]]></title>
            <link>https://medium.com/@divyabharathi.t/effortless-mobile-app-testing-automating-with-experitest-cloud-for-peak-efficiency-993090f3d898?source=rss-485249d5e689------2</link>
            <guid isPermaLink="false">https://medium.com/p/993090f3d898</guid>
            <dc:creator><![CDATA[Divyabharathi T]]></dc:creator>
            <pubDate>Wed, 28 Feb 2024 09:02:59 GMT</pubDate>
            <atom:updated>2024-02-28T09:02:59.120Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What is Experitest?</strong></p><p><strong>Experitest </strong>is a useful quality assurance platform that provides manual and automated testing for web &amp; mobile applications. Experitest offers robust cross-browser testing with different versions of browsers and operating systems. IOS &amp; Android applications can also be tested on a wide variety of real mobile devices on Experitest laboratory. (More than 2000 devices!).</p><p><strong>Experitest Components :</strong></p><ol><li><strong>Devices</strong>: The device tab in Experitest Cloud Automation is a section where users can manage and access a collection of physical and virtual devices for testing. It allows users to select devices based on specific criteria, reserve them for exclusive use, configure device settings, create device groups for organization, and check device availability and status. The device tab simplifies device management and provides a user-friendly interface for efficient testing. In this section, multiple real time devices of different platforms and OS versions are available at central location and accessible remotely from anywhere.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ievGchIImu9cNPHMeyluGQ.png" /></figure><p><strong>2. Browsers and Emulator list:</strong> The “Browsers and Emulator List” tab serves as a valuable resource for testers to determine the compatibility of their web applications across various browser versions and emulated mobile devices. It helps users identify the specific browser versions and emulators they need to test their applications and ensure optimal performance and user experience. In this section, multiple real time Browsers and Emulator are available at central location and accessible remotely from anywhere.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*reC8egkbTaReH3ohGhKbIg.png" /></figure><p><strong>3. Automation: </strong>The “Automation” tab in Experitest Cloud Automation is a section where users can create, manage, and execute automated test scripts. It provides features for script creation using popular automation frameworks, organizing and versioning test scripts, configuring test parameters, executing tests on selected devices, analyzing test results, and integrating with test management and CI/CD tools. The Automation tab simplifies the automation process and offers a user-friendly interface for efficient test script management and execution. In this section, we can run demo automation test on different platforms/devices/OS verisons.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r-VfVjuFQqMzImG0Bo3Q5w.png" /></figure><p><strong>4. Executions:</strong> The “Executions” tab in Experitest refers to a specific section or feature within Experitest Cloud Automation that focuses on managing and monitoring test executions. It provides users with a centralized view of test execution activities and facilitates efficient tracking and analysis of test results.In this section, User will see test executions logs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XNmBHLXQxdNY7z6ZSdirNw.png" /></figure><p><strong>5. Reports:</strong> The “Reports” tab in Experitest refers to a specific section or feature within Experitest Cloud Automation that focuses on generating and managing test reports. It provides users with tools and functionalities to generate comprehensive reports that summarize test execution results, metrics, and other relevant information.In this section, User will see executed scripts reports.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Z7Va_yQGp2VJ8GcCdx2Rw.png" /></figure><p><strong>6. Applications:</strong> The “Applications” tab in Experitest refers to a specific section or feature within Experitest Cloud Automation that focuses on managing and organizing mobile and web applications for testing purposes.From this section, User can upload APK/IPA files to experitest cloud. And later can install this APK/IPA to specific selected device from experitest cloud application section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SZ6ZBRDw9mPakjdtxcbvFg.png" /></figure><p><strong>Experitest Automation Process:</strong></p><p>1. User can select/open desired device from devices section. Once logged in,navigate to the “Device” tab or section within the Experitest Cloud Automation interface. This tab provides access to the device lab and device management features.Select the Desired Device: Browse or search for the specific device you want to open and debug. You can filter the devices based on criteria such as device type, operating system, screen size, and more to find the desired device quickly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TVzpf5_0IMDlsDVt5cnQFw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dKR1zwKbhfplCjxuwoa6Vg.png" /></figure><p>2. User taps on Application option to view cloud App manager, where user can see list of available Apps.Once you have accessed the app launcher, you can browse through the list of installed applications on the device. Depending on the device’s operating system (Android or iOS), the app launcher may be organized differently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f1BxmnwVmhhfZkqtBFryBA.png" /></figure><p>3. User can install App from App manager then it will get installed to selected device and will display under device tab.After the app file is uploaded, you can proceed to install the app on the device. Experitest Cloud Automation may provide a button or option to initiate the installation process. Click on it to start the installation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*c5Bw3ugqpSydNWQYsex6Bw.png" /></figure><p>4. During the installation process, Experitest Cloud Automation will provide feedback on the progress of the app installation. You can monitor the status or view any error messages that may occur.Once the installation is complete, you can verify that the app is successfully installed on the specific device. You can check the device’s app launcher or app list to ensure that the installed app is visible and accessible.Lets see how user will connect the devices and execute through automation scripts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1016/1*3EU15vB5lo7Bj8EJFPsnGA.png" /></figure><p><strong>The above initialization code is used for device connectivity</strong>.</p><p>DesiredCapabilities dc= new Desiredcapabilities();</p><p>=&gt; DesiredCapability refer to a set of key-value pairs or properties used to configure and customize the behavior of a test automation framework or tool when interacting with a specific software application or device.</p><p>dc.setCapability(“accessKey”, ConfigurationMapper.mConfig.getProperty(“accesskey”));</p><p>=&gt; An access key is a unique identifier or credential used to authenticate and authorize access to a system, service, or resource. It is typically a string of characters that serves as a secret token, granting the holder specific permissions or privileges.</p><p>dc.setCapability(“deviceQuery”, “@os=’android’ and @category=’PHONE’ and @Model=’SM-G960U1&#39;”);</p><p>=&gt; Setting capability to specify the device name,model,version etc.The device query setCapability is a method or function used in test automation frameworks or tools to set specific parameters or properties for device queries. It allows testers or developers to define the criteria or conditions that devices should meet when performing a query or search operation.</p><p>dc.setCapability(AndroidMobileCapabilityType.APP_PACKAGE, “Package name” );</p><p>dc.setCapability(AndroidMobileCapabilityType.APP_ACTIVITY,”Activity name”);</p><p>Setting capability to specify apk or ipa file unique name.</p><p><strong>5. How to take locators in experitest?</strong></p><p>After opening any specific device in debugging mode-&gt;click on automation tab-&gt;a DOM tab will be opened and you can fetch the locators by clicking on each element in device.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_eIWz-Ze1fF2utTCdPmdTw.png" /></figure><p>Then user will Execute Automation script either locally or from Azure Pipeline. Execution will start on provided devices in the Automation script and in experitest we can see executions log and flow of executions.</p><p>Monitor the progress of your test execution. Experitest provides real-time insights and status updates on the test execution, allowing you to track the tests as they run on different devices.Test Completion: Once the test execution is completed, Experitest automatically generates a detailed test report. This report captures various metrics, logs, screenshots, and other relevant information about the test execution.</p><p>Also user can see progress of execution on execution tab:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EGtOVVwBhvJqQu-DasfBjg.png" /></figure><p>Navigate to the “Reports” tab or section within the Experitest Cloud Automation interface. This tab is usually dedicated to managing and accessing test reports. Select the Desired Report: In the Reports section, you will find a list of generated test reports. Locate and select the report corresponding to the specific test execution you want to view.View the Report: Click on the selected report to open and view its contents. The report typically includes detailed information such as test duration, test outcomes (pass/fail), executed test cases, device-specific logs, screenshots or videos captured during the test, and any additional metrics or insights recorded during the test execution.Analyze the Report: Analyze the report to gain insights into the test results and identify any issues or areas for improvement. The report provides valuable information for troubleshooting, debugging, and further test analysis.Export or Share the Report (Optional): If needed, you can export the report or share it with other team members or stakeholders. Experitest usually provides options to download the report in various formats, such as PDF or HTML, or share it through email or other collaboration tools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tDYZiEOetmFEJCmOqVta-Q.png" /></figure><p><strong>6.By Triggering through pipeline :</strong></p><p>Configure pipeline with required git connectivity, dependency like maven and reporting.</p><p>You can run your pipeline by selecting the git branch name in branch drop down and trigger it.Click on the “Run” or “Queue” button to initiate the pipeline run and trigger the desired step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/1*rkTNgwGLL8C-7grSyou99g.png" /></figure><p>Navigate to the “Execution” tab or section. This tab is typically dedicated to managing and viewing test executions. In the Execution section, you will find a list of executed tests or test runs. Locate the specific execution you want to view and select it from the list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EGtOVVwBhvJqQu-DasfBjg.png" /></figure><p>After the execution got completed you can see the test results in the pipeline test tab. It will show the execution time, total cases count, Passed scenarios, failed scenarios. Also when we configure reporting part it will be available in summary tab-&gt;artifact.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A2dU1gRDOw5TAefjpUof_w.png" /></figure><p><strong>Pros of Experitest Cloud Automation:</strong></p><p>1.<strong>Scalability:</strong> Experitest Cloud Automation offers scalability, allowing organizations to easily scale their testing efforts by leveraging cloud resources. This ensures that testing can be conducted on a large number of devices and configurations simultaneously, accommodating the growing needs of the organization.</p><p>2.<strong>Device Coverage:</strong> The platform provides access to a vast device lab with a wide range of devices and operating systems. This extensive device coverage ensures that tests can be conducted on diverse devices, enabling organizations to identify and resolve compatibility issues effectively.</p><p>3.<strong>Cost Savings:</strong> By eliminating the need for physical devices and infrastructure maintenance, Experitest Cloud Automation reduces costs associated with device procurement, setup, and maintenance. It also eliminates the need for physical space to house devices, resulting in significant cost savings for organizations.</p><p>4.<strong>Test Efficiency:</strong> With Experitest Cloud Automation, teams can run tests in parallel across multiple devices, reducing overall testing time. This boosts efficiency and allows organizations to release high-quality products faster, meeting tight deadlines and gaining a competitive edge in the market.</p><p>5.<strong>Integration and Collaboration:</strong> The platform seamlessly integrates with popular test automation frameworks and tools, enabling teams to leverage their existing workflows and resources. Additionally, it facilitates collaboration among team members, providing features for easy sharing of test scripts, results, and reports.</p><p><strong>Cons of Experitest Cloud Automation:</strong></p><p><strong>1.Dependency on Internet Connection:</strong> As Experitest Cloud Automation relies on cloud infrastructure, a stable and reliable internet connection is essential for smooth and uninterrupted testing. Connectivity issues or downtime can hinder testing activities and impact productivity.</p><p>2.<strong>Data Security Concerns: </strong>When using a cloud-based testing solution, organizations may have concerns about data security and privacy. While Experitest implements robust security measures, some organizations may prefer to keep their testing infrastructure entirely on-premises for added control and protection.</p><p><strong>3.Learning Curve:</strong> Like any new tool or platform, there may be a learning curve associated with adopting Experitest Cloud Automation. Training and familiarization with the platform’s features and functionalities may be required, which could temporarily impact productivity during the initial stages.</p><p>4.<strong>Subscription Cost</strong>: Experitest Cloud Automation is a paid platform, and organizations need to consider the cost implications of using the service. While it offers cost savings in terms of infrastructure and device maintenance, the subscription fees should be factored into the overall budget.</p><p>5.<strong>Limited Customization</strong>: While Experitest Cloud Automation provides a comprehensive set of features, some organizations may require highly customized testing solutions tailored to their specific needs. The platform’s capabilities may not fully align with their unique requirements, leading to potential limitations in customization options.</p><p>It is important for organizations to evaluate their specific testing needs, consider these pros and cons, and make an informed decision based on their requirements and priorities.</p><p><strong>Conclusion:</strong></p><p>Experitest Cloud Automation emerges as a reliable and innovative solution that empowers organizations to overcome the challenges of testing in a dynamic and diverse digital landscape. By leveraging the power of automation and the cloud, teams can achieve higher efficiency, improved quality, and faster time to market, ultimately leading to enhanced customer satisfaction and business success.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=993090f3d898" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HOW TO CREATE YOUR FIRST MAVEN PROJECT]]></title>
            <link>https://medium.com/@divyabharathi.t/how-to-create-your-first-maven-project-39e790807201?source=rss-485249d5e689------2</link>
            <guid isPermaLink="false">https://medium.com/p/39e790807201</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[build-tool]]></category>
            <category><![CDATA[eclipse]]></category>
            <category><![CDATA[maven]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Divyabharathi T]]></dc:creator>
            <pubDate>Mon, 28 Mar 2022 14:06:22 GMT</pubDate>
            <atom:updated>2022-03-28T14:06:22.387Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Maven</strong> is a project management tool also called as software build tool or dependency management . It is used for project build or dependencies.</p><p>Maven addresses for two aspects :</p><p>1) It describes how software is build .</p><p>2) It describes the software dependencies.</p><p>In maven , execution starts from “pom.xml” file , it reads the pom.xml file and starts execution.</p><p><strong>Uses of Maven:</strong></p><p>-&gt;It is used to build the software application .</p><p>-&gt;Manage your dependencies.</p><p>-&gt;Create folders structure.</p><p>-&gt;Run your test.</p><p>-&gt;Create reports</p><p>Maven structure looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/317/1*iRn1C0e8QGvX0S9tH22q4A.png" /></figure><p>We recommend to keep the project structure like this:</p><p><strong>src/main/java -</strong></p><p>-Base method package .</p><p>-Excel package</p><p>-Pagelocator</p><p>-Pagescripts</p><p><strong>src/test/java</strong></p><p>-Testclass</p><p><strong>pom.xml</strong></p><p>pom.xml stands for project object model , where we will give our jar dependencies.</p><p><strong>Maven lifecycle:</strong></p><p><strong>Clean — install — test</strong></p><p>Whenever you change a version. It will clean all the previous cached files. It will download new version’s file and you can start testing.</p><p><strong>Maven repository:</strong></p><p>A <strong>maven repository</strong> is a directory of packaged JAR file with pom.xml file. Maven searches for dependencies in the repositories. There are 3 types of maven repository:</p><p>1. Local Repository</p><p>2. Central Repository</p><p>3. Remote Repository</p><p>Maven searches for the dependencies in the following order:</p><p><strong>Local repository</strong> then <strong>Central repository</strong> then <strong>Remote repository</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/1*UArjPIy8XwflBTfB50Fsiw.png" /></figure><p>If dependency is not found in these repositories, maven stops processing and throws an error</p><p>1) <strong>Maven Local Repository</strong></p><p>Maven local repository is located in your local system. It is created by the maven when you run any maven command</p><p>2) <strong>Maven Central Repository</strong></p><p>Maven central repository is located on the web. It has been created by the apache maven community itself.</p><p>The central repository contains a lot of common libraries</p><p>3) <strong>Maven Remote Repository</strong></p><p>Maven remote repository is located on the web. Most of libraries can be missing from the central repository such as JBoss library etc, so we need to define remote repository in pom.xml file.</p><p><strong>Steps to use Maven into your project :</strong></p><p>1) Download the Appache maven zip file from official website</p><p><a href="https://maven.apache.org/download.cgi">https://maven.apache.org/download.cgi</a></p><p>2) Configure the JAVA_HOME and MAVEN_HOME in the environment variable in your local system, there will be two category User variable and System variable , we have to feed the maven path into it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*8UKZazwTmgyU3U65-LqwXA.png" /></figure><p>3)Verify Maven and java is configured correctly in your system by using below commands in command line prompt</p><p>Cmd —</p><p>Java :</p><p><strong>java -version</strong></p><p>Maven :</p><p><strong>mvn -version</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*eFcpk0mbXZSZNJQsZJYjDg.png" /></figure><p>4)Add maven plugin in your eclipse by getting it from eclipse market place .</p><p>Eclipse-&gt;Help-&gt;Eclipse marketplace-&gt;find m2e Maven-&gt;install it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/1*3IcB3cjWdt0sIa-iktVtCg.png" /></figure><p>5)Create maven project in eclipse</p><p>File-&gt;click new -&gt;Maven-&gt;maven project -&gt;next -&gt;dialog box will appear.It ask for group id , artifact name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*QIhT77tWrJcLR-7HbI5d9Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*vOieKz9n0uIbRY9Dt0wKzw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*ir2jJ_B3F0xzrh7OOhEphA.png" /></figure><p><strong>Group id</strong> represents package name</p><p><strong>Artifact id</strong> represents class name</p><p>6)Then click finish</p><p>Now you will see a structured project gets build.</p><p>The difference why we prefer maven project than java project means , here in maven project we list out the latest dependency code in pom.xml file whereas in normal java project we need to download the jar files and place in our project.</p><p>Before starting our script we need to add dependencies in our pom.xml file like for example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*_9yZb_QJk_hPdWpZYtl_Tg.png" /></figure><p>Like the above code , we need to add the actual dependency code for our framework , these dependency code we can get from maven dependency official website.</p><p>Now we can start our scripting as like normal java project.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39e790807201" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>