<?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 Amit Bhoraniya on Medium]]></title>
        <description><![CDATA[Stories by Amit Bhoraniya on Medium]]></description>
        <link>https://medium.com/@amitbhoraniya?source=rss-56d119bc28a1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*MILAG94V85oqlxa_bLfxHw.jpeg</url>
            <title>Stories by Amit Bhoraniya on Medium</title>
            <link>https://medium.com/@amitbhoraniya?source=rss-56d119bc28a1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 07:57:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@amitbhoraniya/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[Spring Boot with OSGi]]></title>
            <link>https://medium.com/@amitbhoraniya/spring-boot-with-osgi-25d2387a459e?source=rss-56d119bc28a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/25d2387a459e</guid>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[spring]]></category>
            <category><![CDATA[osgi]]></category>
            <dc:creator><![CDATA[Amit Bhoraniya]]></dc:creator>
            <pubDate>Thu, 03 Sep 2020 06:23:19 GMT</pubDate>
            <atom:updated>2020-09-03T06:27:25.527Z</atom:updated>
            <content:encoded><![CDATA[<p>We know enterprise applications like Jira/Confluence, Eclipse, Intellij Idea etc, all application are infinite extensible cause they provide supports to develop and install plugin.</p><p>Same question came to my mind that if we want achieve same plug-ability with Spring-Boot Application, they how we can archive that? This blog may help you to provide modularity and plug-ability in your enterprise application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*jZvNBnEvazVk-oXdo9lZcA.png" /><figcaption>Spring Boot with OSGi</figcaption></figure><h3>What is Spring Boot?</h3><p>Spring Boot is an open source most popular Java-based framework used to create a micro Service.</p><h3>What is OSGi?</h3><p>The <a href="https://www.osgi.org/"><strong>OSGi</strong></a><strong> framework</strong> is a standardized module system and service platform for the Java programming language. The OSGi standards has both open-source and commercial implementations. Below are some popular open source implementations of OSGi.</p><ul><li><a href="http://felix.apache.org/">Apache Felix</a></li><li><a href="http://eclipse.org/equinox">Eclipse Equinox</a></li></ul><p>Any OSGi application runs on any of above OSGi container and application will be developed as a Module/Plugins. Here is a OSGi plugin lifecycle. So once OSGi container started you can install, uninstall, start and stop plugin at runtime. One plugin may dependent on other plugin also.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/1*NEAYhYI5Oin-tIgZrp2tmw.png" /><figcaption>OSGi lifecycle</figcaption></figure><h3>Example</h3><p>I have developed a small POC of Calculator, which demonstrate how to add more calculator Operations at runtime using plugins.</p><p>This example divided in two plugin.</p><ol><li><strong>calc-core</strong> — Provides calculator API and Addition implementation</li><li><strong>calc-plugin</strong> — Plugin for calc-core application which provides Substraction implementation.</li></ol><h3><strong>1. calc-core</strong></h3><p>Define an API which needs to be implemented by plugin. Here we define below Calculator API.</p><pre>public interface CalculatorService{</pre><pre>    String name();<br>    int execute(int n1, int n2);</pre><pre>}</pre><p>Implement above Interface in Addition class.</p><pre>public class AddService implements CalculatorService {                                             </pre><pre>    @Override<br>    public String name() {<br>     return &quot;Addition&quot;;<br>    }<br>    <br>    @Override<br>    public int execute(int n1, int n2) {<br>        return n1 + n2;<br>    }</pre><pre>}</pre><p>Register calculator service with OSGi bundle Activator.</p><pre>public class Activator implements BundleActivator {</pre><pre> public static BundleContext bundleContext;<br> ConfigurableApplicationContext appContext;</pre><pre> @Override<br> public void start(BundleContext context) throws Exception {<br>   Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());<br>  appContext = SpringApplication.run(Activator.class);<br>  bundleContext = context;<br>  registerServices();<br> }</pre><pre> @Override<br> public void stop(BundleContext context) throws Exception {<br>  bundleContext = null;<br>  SpringApplication.exit(appContext, () -&gt; 0);<br> }</pre><pre> public static BundleContext getBundleContext() {<br>  return bundleContext;<br> }</pre><pre> private void registerServices() {<br>  CalculatorService service = new AddService();<br>  bundleContext.registerService(CalculatorService.class.getName(), service, new Hashtable&lt;String, Object&gt;());<br>  System.out.println(&quot;Service registered: &quot; + service.name());<br> }</pre><pre> public static void main(String[] args) {<br>  SpringApplication.run(Activator.class, args);<br> }</pre><pre>}</pre><p>Now create a Spring Boot Controller which uses this Bundle Activator.</p><pre>@RestController<br>@RequestMapping(&quot;/calculator&quot;)<br>public class CalculatorController {</pre><pre> @GetMapping<br> public List&lt;String&gt; getAllOperations() {<br>  BundleContext bundleContext = Activator.getBundleContext();<br>  List&lt;String&gt; operations = new ArrayList&lt;String&gt;();<br>  try {<br>   Collection&lt;ServiceReference&lt;CalculatorService&gt;&gt; references = bundleContext<br>     .getServiceReferences(CalculatorService.class, null);<br>   for (ServiceReference&lt;CalculatorService&gt; reference : references) {<br>    CalculatorService calcService = bundleContext.getService(reference);<br>    operations.add(calcService.name());<br>   }<br>  } catch (Exception e) {<br>   e.printStackTrace();<br>  }<br>  return operations;<br> }</pre><pre> @GetMapping(&quot;/{operation}&quot;)<br> public int execute(@PathVariable(&quot;operation&quot;) String operation,    @RequestParam(&quot;n1&quot;) int n1,@RequestParam(&quot;n2&quot;) int n2) {<br>  BundleContext bundleContext = Activator.getBundleContext();<br>  try {<br>   Collection&lt;ServiceReference&lt;CalculatorService&gt;&gt; references = bundleContext<br>     .getServiceReferences(CalculatorService.class, null);<br>   for (ServiceReference&lt;CalculatorService&gt; reference : references) {<br>    CalculatorService calcService = bundleContext.getService(reference);<br>    if (calcService.name().equalsIgnoreCase(operation)) {<br>     return calcService.execute(n1, n2);<br>    }<br>   }<br>  } catch (Exception e) {<br>   e.printStackTrace();<br>  }<br>  throw new RuntimeException(&quot;Invalid Operation&quot;);<br> }<br>}</pre><p>Now build this calc-core application and deploy it on apache-karaf.</p><p>After deploying only calc-core bundle if we call below Rest API.</p><pre>http://localhost:8013/calculator</pre><p>Then, its response would be like</p><pre>[&quot;Addition&quot;]</pre><h3>2. calc-plugin</h3><p>Now add one more implementation of CalculatorService Interface in another project/plugin.</p><pre>public class SubService implements CalculatorService {</pre><pre> @Override<br> public String name() {<br>  return &quot;Subtraction&quot;;<br> }</pre><pre> @Override<br> public int execute(int n1, int n2) {<br>  return n1 - n2;<br> }</pre><pre>}</pre><p>Now build and deploy calc-plugin to apache karaf.</p><p>After deploying calc-plugin, if we again call same Rest API.</p><pre>http://localhost:8013/calculator</pre><p>Then, its response would be like</p><pre>[&quot;Addition&quot;,&quot;Subtraction&quot;]</pre><p>To perform calculator operations, call below RestAPI.</p><pre>http://localhost:8013/calculator/{operation}?n1={n1}&amp;n2={n2}</pre><p>For an example,</p><pre>http://localhost:8013/calculator/addition?n1=12&amp;n2=12</pre><h3>Summary</h3><p>There are many missing components here, but don’t worry you can checkout entire source code from below github <a href="https://github.com/amitbhoraniya/spring-boot-osgi-demo">spring-boot-osgi-demo</a> repository.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=25d2387a459e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Headless Testing with Selenium & QAF]]></title>
            <link>https://medium.com/@amitbhoraniya/headless-testing-with-selenium-qaf-69ff1f45e67e?source=rss-56d119bc28a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/69ff1f45e67e</guid>
            <category><![CDATA[headless]]></category>
            <category><![CDATA[selenium]]></category>
            <category><![CDATA[qaf]]></category>
            <dc:creator><![CDATA[Amit Bhoraniya]]></dc:creator>
            <pubDate>Wed, 02 Sep 2020 07:40:56 GMT</pubDate>
            <atom:updated>2020-09-02T07:40:56.758Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Headless Testing with Selenium &amp; QAF" src="https://cdn-images-1.medium.com/max/1024/1*1ULjnTOv3PKTGiV7_qAs0A.png" /></figure><p>Headless Testing is to run UI based browser Test without showing UI. It runs your script against browser but without showing UI.</p><p>We may not use <em>headless testing</em> for script development, but we can use <em>headless testing</em> for script execution. We are not going in more details about pros and cons of headless testing, rather we will focus on how to do headless testing with Selenium and <a href="https://github.com/qmetry/qaf">QAF</a>.</p><h3>Headless Testing with Selenium</h3><p>There are many other browsers available which supports headless execution like <a href="https://phantomjs.org/">PhantomJS</a>, but we will take example of popular browsers like Chrome and Firefox.</p><p><strong>Chrome</strong></p><pre>ChromeOptions chromeOptions = new ChromeOptions();<br>chromeOptions.setHeadless(true);<br>WebDriver driver = new ChromeDriver(chromeOptions);<br>driver.get(&quot;https://www.google.com&quot;);<br>...</pre><p><strong>Firefox</strong></p><pre>FirefoxOptions firefoxOptions = new FirefoxOptions();<br>firefoxOptions.setHeadless(true);<br>WebDriver driver = new FirefoxDriver(firefoxOptions);<br>driver.get(&quot;https://www.google.com&quot;);<br>...</pre><p><strong>PhantomJS</strong></p><p>Add below phantomjs dependency is not added.</p><pre>&lt;dependency&gt;<br>  &lt;groupId&gt;com.codeborne&lt;/groupId&gt;<br>  &lt;artifactId&gt;phantomjsdriver&lt;/artifactId&gt;<br>  &lt;version&gt;1.4.4&lt;/version&gt;<br>&lt;/dependency&gt;</pre><p><a href="https://phantomjs.org/download.html">Download PhantomJS binary</a> and set binary path using phantomjs.binary.path system property.</p><pre>System.<em>setProperty</em>(&quot;phantomjs.binary.path&quot;,&quot;&lt;phantom-js-path&gt;&quot;);<br>WebDriver driver = new PhantomJSDriver();<br>driver.get(&quot;https://www.google.com&quot;);</pre><h3>Headless Testing with QAF</h3><p>Use below QAF application.properties to execute your scripts in headless mode.</p><p><strong>Chrome</strong></p><pre>driver.name=chromeDriver<br>chrome.additional.capabilities={&quot;goog:chromeOptions&quot;:{&quot;args&quot;:[&quot;--headless&quot;,&quot;--disable-gpu&quot;]}}</pre><p><strong>Firefox</strong></p><pre>driver.name=firefoxDriver<br>firefox.additional.capabilities={&quot;moz:firefoxOptions&quot;:{&quot;args&quot;:[&quot;--headless&quot;,&quot;--disable-gpu&quot;]}}</pre><p><strong>PhatomJS</strong></p><pre>driver.name=phantomjsDriver<br>system.phantomjs.binary.path=&lt;phantom-js-binary-path&gt;<br>phantomjs.additional.capabilities={&#39;driverClass&#39;:&#39;org.openqa.selenium.phantomjs.PhantomJSDriver&#39;}</pre><h3><strong>Summary</strong></h3><p>To test application rapidly many organization uses <em>headless browser testing. </em>You can follow above steps and easily integrate headless browser testing in your existing automation script.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69ff1f45e67e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[QAF and Guice]]></title>
            <link>https://medium.com/@amitbhoraniya/qaf-and-guice-754dc998c6f9?source=rss-56d119bc28a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/754dc998c6f9</guid>
            <category><![CDATA[selenium]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[dependency-injection]]></category>
            <category><![CDATA[qaf]]></category>
            <category><![CDATA[guice]]></category>
            <dc:creator><![CDATA[Amit Bhoraniya]]></dc:creator>
            <pubDate>Tue, 16 Jun 2020 05:25:29 GMT</pubDate>
            <atom:updated>2020-06-16T05:25:29.619Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*38I_z95f3aX8hiSrg35pVg.png" /><figcaption>Guice Dependecy Injection with QAF</figcaption></figure><p>QAF has allowed user to control the object initiation of their Step Provider class. This is enabled by ObjectFactory interface</p><pre>public interface ObjectFactory{<br>    public &lt;T&gt; T getObject(Class&lt;T&gt; cls) throws Exception;<br>}</pre><p>Using this ObjectFactory interface we can leverage <a href="https://github.com/google/guice"><strong>Guice</strong></a> <strong><em>Dependency Injections</em></strong> functionality with QAF.</p><p>First create a Guice Module which provides objects to inject.</p><pre>import com.google.inject.AbstractModule;<br>import com.google.inject.Provides;<br>import com.qmetry.qaf.automation.core.ConfigurationManager;<br>import com.qmetry.qaf.automation.ui.WebDriverTestBase;<br>import com.qmetry.qaf.automation.ui.webdriver.QAFWebDriver;<br>import com.qmetry.qaf.automation.util.PropertyUtil;<br><br>public class QAFModule extends AbstractModule {<br><br>    @Provides<br>    QAFWebDriver provideDriver() {<br>        return new WebDriverTestBase().getDriver();<br>    }<br><br>    @Provides<br>    static PropertyUtil providePropertyUtil() {<br>        return ConfigurationManager.<em>getBundle</em>();<br>    }<br><br>    @Override<br>    protected void configure() {<br>    }<br>}</pre><p>Create a custom object factory to create an instance of class using Guice module.</p><pre>import com.google.inject.Guice;<br>import com.google.inject.Injector;<br>import com.qmetry.qaf.automation.step.DefaultObjectFactory;<br><br>public class GuiceObjectFactory extends DefaultObjectFactory {<br><br>    private static final Injector <em>injector </em>= Guice.<em>createInjector</em>(new QAFModule());<br><br>    public &lt;T&gt; T getObject(Class&lt;T&gt; cls) throws Exception {<br>        T obj = <em>injector</em>.getInstance(cls);<br>        return obj;<br>    }<br>}</pre><p>Set this custom object factory using TestNG Listener.</p><pre>public class QAFListener implements ISuiteListener {<br><br>    @Override<br>    public void onStart(ISuite suite) {<br>        ObjectFactory.<em>INSTANCE</em>.setFactory(new GuiceObjectFactory());<br>    }<br><br>    @Override<br>    public void onFinish(ISuite suite) {<br>    }<br>}</pre><p>Thats It. Now you can inject QAFWebDriver and PropertyUtil object in your step implementations. Here is an example,</p><pre>Feature: Google Search<br><br>  Scenario: Google Search Test<br>    Given user opens application<br>    <em>#to-do</em></pre><p>And Step Implementations,</p><pre>import com.google.inject.Inject;<br>import com.qmetry.qaf.automation.step.QAFTestStep;<br>import com.qmetry.qaf.automation.ui.webdriver.QAFWebDriver;<br>import com.qmetry.qaf.automation.util.PropertyUtil;<br><br>public class StepsLibrary {<br><br>    @Inject<br>    private QAFWebDriver driver;<br><br>    @Inject<br>    private PropertyUtil propertyUtil;<br><br>    @QAFTestStep(description = &quot;user opens application&quot;)<br>    public void openURL() {<br>        String baseUrl = propertyUtil.getString(&quot;env.baseurl&quot;);<br>        driver.get(baseUrl);<br>    }<br>}</pre><p>And TestNG configuration file is,</p><pre>&lt;!DOCTYPE suite SYSTEM &quot;http://testng.org/testng-1.0.dtd&quot;<em>&gt;<br></em>&lt;suite name=&quot;QAF Demo&quot; verbose=&quot;0&quot;&gt;<br>  &lt;listeners&gt;<br>    &lt;listener class-name=&quot;com.qmetry.qaf.example.utils.QAFListener&quot;&gt;   &lt;/listener&gt;<br>  &lt;/listeners&gt;<br>  &lt;test name=&quot;QAF Guice Test&quot; enabled=&quot;true&quot;&gt;<br>    &lt;classes&gt;<br>      &lt;class name=&quot;com.qmetry.qaf.automation.step.client.text.BDDTestFactory2&quot;&gt;&lt;/class&gt;<br>    &lt;/classes&gt;<br>  &lt;/test&gt;<br>&lt;/suite&gt;</pre><p>The source code used throughout this tutorial can be found <a href="https://github.com/amitbhoraniya/qaf-guice-example">over on Github</a>.<br>If you have any doubts, you can comment it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=754dc998c6f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting started with Selenium and JavaScript]]></title>
            <link>https://medium.com/@amitbhoraniya/getting-started-with-selenium-and-javascript-df8468462708?source=rss-56d119bc28a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/df8468462708</guid>
            <category><![CDATA[selenium-webdriver]]></category>
            <category><![CDATA[selenium]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[Amit Bhoraniya]]></dc:creator>
            <pubDate>Sun, 14 Jun 2020 08:10:55 GMT</pubDate>
            <atom:updated>2020-06-14T08:10:55.029Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EHPW55g7fSfCOQIxGfx3Iw.png" /><figcaption><strong>Selenium and JavaScipt</strong></figcaption></figure><p>JavaScript is becoming more and more popular day by day. FrontEnd can be developed using only javascript and JavaScript can be used to develop backend as well. If application developer is a JavaScript developer, then they would prefer to use Selenium with JavaScript.</p><h4>Prerequisite</h4><p>To get start with selenium and javascript, you must have working node environment setup. If <strong><em>Node.js</em></strong> is not setup yet in your machine, then first you need to <a href="https://nodejs.org/en/download/">Download</a> and Setup <em>node.js</em> in your machine.</p><p>You can verify your node.js environment setup using below commands.</p><pre>$ node --version<br>v12.16.3</pre><pre>$ npm --version<br>6.14.4</pre><h4><strong>Create new project</strong></h4><p>Create a new node.js project using below commands.</p><pre>#create new directory<br>mkdir hello-selenium</pre><pre>#change current directory<br>cd hello-selenium</pre><pre>#Initialize node project<br>npm init</pre><p>Once you have successfully executed above command, then you should see package.json file in your root directory.</p><pre>{<br>    &quot;name&quot;: &quot;hello-selenium&quot;,<br>    &quot;version&quot;: &quot;1.0.0&quot;,<br>    &quot;description&quot;: &quot;Getting Started Selenium with JavaScript&quot;,<br>    &quot;main&quot;: &quot;index.js&quot;,<br>    &quot;scripts&quot;: {<br>        &quot;test&quot;: &quot;echo \&quot;Error: no test specified\&quot; &amp;&amp; exit 1&quot;<br>    },<br>    &quot;author&quot;: &quot;amit.bhoraniya&quot;,<br>    &quot;license&quot;: &quot;MIT&quot;<br>}</pre><h4>Add selenium dependency</h4><p>Add selenium dependency using below <em>npm </em>command.</p><pre>#Add selenium dependency<br>npm install --save selenium-webdriver</pre><pre>#Add chrome-driver dependency to automate chrome browser<br>npm install --save chromedriver</pre><h4>Write your first script</h4><p>Create a new <em>test.js</em> file, and below Google Search code.</p><pre>require(&#39;chromedriver&#39;);<br>const { Builder, By, Key, until } = require(&#39;selenium-webdriver&#39;);</pre><pre>(async function test() {<br>    let driver = await new Builder().forBrowser(&#39;chrome&#39;).build();<br>    try {<br>        await driver.get(&#39;<a href="http://www.google.com&/#39;">http://www.google.com&#39;</a>);<br>        await driver.findElement(By.name(&#39;q&#39;)).sendKeys(&#39;webdriver&#39;, Key.RETURN);<br>        await driver.wait(until.titleIs(&#39;webdriver - Google Search&#39;), 1000);<br>    } finally {<br>        await driver.quit();<br>    }<br>})();</pre><h4>Execute your script</h4><p>Execute below node command, to execute your script.</p><pre>#here test.js is file name<br>node test.js</pre><p>Or you can also execute using <em>npm </em>command.</p><p>Update package.json file and update test command.</p><pre>&quot;scripts&quot;: {<br>    &quot;test&quot;: &quot;node test.js&quot;<br>}</pre><p>Execute below npm command.</p><pre>npm test</pre><p><a href="https://medium.com/@amitbhoraniya">Follow me</a> for more java script related posts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df8468462708" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scriptless Test Automation Reality]]></title>
            <link>https://medium.com/@amitbhoraniya/scriptless-test-automation-reality-f25b13e60b3d?source=rss-56d119bc28a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/f25b13e60b3d</guid>
            <category><![CDATA[qa]]></category>
            <category><![CDATA[recording]]></category>
            <category><![CDATA[selenium]]></category>
            <category><![CDATA[scriptless-testing]]></category>
            <category><![CDATA[test-automation]]></category>
            <dc:creator><![CDATA[Amit Bhoraniya]]></dc:creator>
            <pubDate>Sun, 14 Jun 2020 06:19:07 GMT</pubDate>
            <atom:updated>2020-06-14T07:00:26.423Z</atom:updated>
            <content:encoded><![CDATA[<p>Scriptless Test Automation is a buzz word nowadays. Industries are moving towards More Test Automation and less Manual Testing Approach. So companies are looking for ScriptLess Test Automation Tools so their existing QA guys can automate testcases without any prior programming knowledge.</p><p>If you are also planning to use any ScriptLess Test Automation tools or planning to migrate existing Selenium scripts to any ScriptLess Test Automation tools, then this blog is for you.</p><h3>History</h3><p>The world is round. ThoughtWorks has developed Selenium IDE in 2005 later they came with Selenium WebDriver to overcome the limitations of Selenium IDE. So what was the limitations of Selenium IDE?</p><h4><strong>Limitations of Selenium IDE</strong></h4><ul><li><strong>Can’t Perform Regression Testing<br></strong>If an application is dynamically changing, then the recorded scripts can’t be run on the iterative for increments builds.</li><li><strong>Data-Driven Testing<br></strong>Can’t test the login functionality with multiple sets of login credentials.</li><li><strong>Reporting<br></strong>It wasn’t providing detail reporting.</li><li><strong>Can’t Perform Integration Testing<br></strong>UI automation cannot be integrated with API or Database Testing.</li><li><strong>Lack of Power or Programming<br></strong>If actions and verifications are dynamic or conditional in nature, it can’t be record and play. Suppose, for any E-Commerce domain if you want to verify that after applying price filter, verify only products of that price is displayed. This requires loops and conditions, which can’t be recorded.</li></ul><p>Now a days many Companies has developed products for ScriptLess Test Automation by overcoming limitations of Selenium IDE and providing more AI-powered features. Here are some features that mostly products companies claim.</p><h3><strong>Myth 1: Record and Playback</strong></h3><p>Record scripts using their Recording Tools and use the same script for Regression.</p><p><strong>Reality:<br></strong>Most of the real-time applications are dynamic in nature, it required condition programming. Suppose, when you are recording script, some popup may not appear but while executing the same test in incognito mode Popup may display which you need to handle logically. In most of the real-time application, recording script doesn’t work if you execute the same script again.</p><p>The reason is recorded script uses <strong><em>id</em></strong> or <strong><em>class</em></strong> to identify locators, for a dynamic website if you reload same again, it will be changed.</p><p>So these tools provide functionalities to use your own locators, which may require test automation knowledge to develop dynamic locator.</p><h3><strong>Myth 2: There is no script</strong></h3><p>Without any programming or scripting knowledge, you can automate testcases.</p><p><strong>Reality:<br></strong>As explained above most of the testcases require looping and logical conditions.<br>So <strong><em>ScriptLess Automation Tools provides support for Scripting. </em>😆</strong></p><h3><strong>Myth 3: Easy to Maintain</strong></h3><p>If UI is updated, then you can easily maintain scripts just by performing operations of their UI.</p><p><strong>Reality:<br></strong>Suppose login functionality has changed in application, then it might be used in multiple testcases. So you have to make changes in multiple testcases.<br>While If you go with any programming, then programming itself powers reusability. So you just need to make a change at only one position.</p><h3><strong>Myth 4: Rapid Automation</strong></h3><p>You can automate testcases quickly and rapidly.</p><p><strong>Reality:</strong></p><p>For any developer or any automation engineer who has programming knowledge, it takes less time to develop a script. Sometimes UI takes more time to automate testcases than developing scripts.</p><h3><strong>Myth 5: One-click Execution</strong></h3><p>Trigger execution by clicking one button.</p><p><strong>Reality:<br></strong>Test Automation Scripts has a dependency on TestData, Environments, Preconditions etc, which can be handled well with programming compares to ScriptLess Test Automation.</p><h3><strong>Myth 6: Easy integration with CI/CD tools</strong></h3><p>You can easily integrate your scripts with any CI/CD or any test management tools.</p><p><strong>Reality:<br></strong>Scriptless Test Automation Tools required agent on machine from which you want to trigger Execution. Setup of that agent is very complex compared to integrate your build tools with CI/CD. You have to walk with limitations of their agents or plugin. While with programming, there is no such limitations. You can configure the way you want.</p><h3><strong>Conclusions</strong></h3><p>If you application is a dynamic and enterprise application, then I wouldn’t suggest to go with any such Script Less Test Automation tools. There are no such benefits you will get out of the box, that you can’t get using scripting framework.</p><p>It’s not like there is no advantages of ScriptLess Test Automation Tools.</p><h4><strong>When should I use Scriptless Test Automation Tools?</strong></h4><ul><li><strong>Static WebSites<br></strong>If your websites is not dynamic in nature, then you can go with ScriptLess Test Automation tools.</li><li><strong>Detail Reporting<br></strong>ScriptLess automation tools providing details Reporting with nice user interface</li><li><strong>Rich Keywords<br></strong>If testcases can be developed using pre developed keywords, then your architect can develop such keywords and other non technical teams can use those keywords to develop scripts.</li><li><strong>Automate Manual Task<br></strong>Suppose you want to delete thousands of records but on UI there are no such functionality to delete all, then you can automate script and execute it repeatedly. Which can reduce your manual task and boring stuffs.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f25b13e60b3d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>