<?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 Yash Jagdale on Medium]]></title>
        <description><![CDATA[Stories by Yash Jagdale on Medium]]></description>
        <link>https://medium.com/@yjagdale?source=rss-ee00f277f5a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6tLJjwkaphKh6J2GiJyQjg.png</url>
            <title>Stories by Yash Jagdale on Medium</title>
            <link>https://medium.com/@yjagdale?source=rss-ee00f277f5a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 04:45:37 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yjagdale/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[Config Management of SpringBoot Service on Kubernetes]]></title>
            <link>https://medium.com/@yjagdale/config-management-of-springboot-service-on-kubernetes-405859d59bcd?source=rss-ee00f277f5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/405859d59bcd</guid>
            <category><![CDATA[microservices-config]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[springboot-kubernetes]]></category>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[microservices]]></category>
            <dc:creator><![CDATA[Yash Jagdale]]></dc:creator>
            <pubDate>Sun, 27 Feb 2022 18:26:05 GMT</pubDate>
            <atom:updated>2022-02-27T18:26:05.161Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Building and deploying SpringBoot Services on Kubernetes" src="https://cdn-images-1.medium.com/max/640/0*WIuwwqubfvCPxNIg.png" /></figure><blockquote>After struggling a lot on config management and spending days and night in setting up new env, We realised it’s very important to use best way to manage Spring Boot Configurations.</blockquote><blockquote>With RND we found below solution worked us</blockquote><blockquote>1. Use Environment Variables To Override Config</blockquote><p>In my view environment variables are one of the easiest ways to provide configuration to any app in Kubernetes. There’s first class support for env vars in Kubernetes.</p><p>You can override any property from Spring Boot app using the env.</p><p>Example: <a href="https://github.com/yjagdale/springboot-example-service"><em>Repo Link.</em></a></p><p>application.yaml</p><pre>server:<br>  port: 8089<br>  servlet:<br>    context-path: /service/demo<br>database:<br>  url: localhost:3306<br>  username: root<br>  password: password</pre><pre>spring:<br>  tomcatutil.http.parser.HttpParser.requestTargetAllow: {}</pre><p>You can override server.port using env variable like following</p><pre>SERVER_PORT=8089<br>SERVER_SERVLET_CONTEXTPATH=/service/newpath<br>DATABASE_USERNAME=env1admin<br>DATABASE_URL=env1database.foo.bar</pre><blockquote>you can override any property from application yaml with env variable.</blockquote><blockquote>2. Using kubernetes config loader</blockquote><p>Spring boot got the inbuilt support for reading configuration from config map</p><p><a href="https://kubernetes.io/docs/concepts/configuration/configmap/">ConfigMap</a></p><p><a href="https://spring.io/projects/spring-cloud-kubernetes">Spring-Cloud-Kubernetes</a></p><h3>Features</h3><ul><li>Kubernetes awareness</li><li>DiscoveryClient implementation</li><li>PropertySource objects configured via ConfigMaps</li><li>Client side load-balancing via Netflix Ribbon</li><li>Auto reload service when config changes</li></ul><p>Example:</p><p>GitHub: <a href="https://github.com/yjagdale/springboot-example-service">https://github.com/yjagdale/springboot-example-service</a></p><p>Its using <a href="https://helm.sh/docs/intro/quickstart/">helm</a> for packaging kubernetes templates. [Read More at <a href="https://helm.sh/docs/intro/quickstart/">helm site</a>]</p><blockquote>bootstrap.yaml</blockquote><pre>spring:<br>  application:<br>    name: springboot-demo-service<br>  cloud:<br>    kubernetes:<br>      config:<br>        enabled: true<br>        enableApi: true<br>        sources:<br>          - name: <strong>${spring.application.name} </strong><br>      reload:<br>        enabled: true<br>        mode: <em>polling<br>        </em>strategy: <em>refresh<br>        </em>monitoring-config-maps: true<br>        monitoring-secrets: false</pre><p>This is configMap name. We can put multiple config-maps.</p><blockquote>application.yaml</blockquote><pre>server:<br>  servlet:<br>    context-path: &quot;<strong>{{ .Values.context_path }}</strong>&quot;<br>  port: &quot;<strong>{{ .Values.port }}</strong>&quot;<br>  max-http-header-size: 10MB<br>spring:<br>  servlet:<br>    multipart:<br>      max-file-size: 5MB<br>      file-size-threshold: 1KB<br>      max-request-size: 6MB<br><br>developer:<br>  key:<br>    value: &quot;This is from configuration&quot;<br><br>management:<br>  endpoints:<br>    web:<br>      exposure:<br>        include: &#39;*&#39;</pre><p>.Values.context_path: <em>This can be overridden from values file of kubernetes.</em></p><blockquote>values.yaml</blockquote><pre>contex_path: /api/tests<br>port: 8080<br><br>database:<br>  url: defalt-service.foo.bar<br>  username: foo<br>  password: bar</pre><blockquote>values-override-env01.yaml</blockquote><pre>database:<br>  url: env01-service.foo.bar<br>  username: foo-env01<br>  password: bar-env01</pre><p>installation of helm chart can be done using</p><blockquote>helm install service01-env01 -f values-override-env01.yaml deploy/helm/</blockquote><blockquote>References</blockquote><p><em>Helm Installation Doc: </em><a href="https://helm.sh/docs/intro/install/"><em>https://helm.sh/docs/intro/install/</em></a></p><p><em>Spring-cloud-kubernetes plugin: </em><a href="https://github.com/spring-cloud/spring-cloud-kubernetes"><em>https://github.com/spring-cloud/spring-cloud-kubernetes</em></a></p><p><em>Github Example: </em><a href="https://github.com/yjagdale/springboot-example-service"><em>https://github.com/yjagdale/springboot-example-service</em></a></p><p>For any suggestions available at <a href="/service/mailto:yjagdale@icloud.com"><em>yjagdale@icloud.com</em></a></p><blockquote>Happy Coding.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=405859d59bcd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Monitoring Kafka]]></title>
            <link>https://medium.com/@yjagdale/monitoring-kafka-1d4fb568defe?source=rss-ee00f277f5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d4fb568defe</guid>
            <category><![CDATA[prometheus]]></category>
            <category><![CDATA[kafka]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[exporters]]></category>
            <dc:creator><![CDATA[Yash Jagdale]]></dc:creator>
            <pubDate>Tue, 21 May 2019 09:30:16 GMT</pubDate>
            <atom:updated>2019-05-21T09:30:16.068Z</atom:updated>
            <content:encoded><![CDATA[<h4>Monitoring Kafka with Kafka exporter + Prometheus + Grafana on kubernetes</h4><p>After long RND I find out the way to monitor Kafka which is running on VM(not as a kubernetes pod), But Prometheus is running as a container in kubernetes.</p><p>Docker image which I am using is <a href="https://github.com/danielqsj/kafka_exporter">https://github.com/danielqsj/kafka_exporter</a></p><p><strong>Kafka Deployment looks like</strong></p><pre>spec:<br>      containers:<br>        - name: kafka-exporter<br>          image: &quot;danielqsj/kafka-exporter:latest&quot;<br>          imagePullPolicy: Always<br>          args:<br>            - --kafka.server=KAFKA_SERVER1:PORT<br>            - --kafka.server=KAFKA_SERVER2:PORT<br>            - --kafka.server=KAFKA_SERVER3:PORT<br>            - --zookeeper.server=ZOOKEEPER_SERVER1:PORT<br>            - --zookeeper.server=ZOOKEEPER_SERVER2:PORT<br>            - --zookeeper.server=ZOOKEEPER_SERVER3:PORT<br>          ports:<br>            - name: &quot;kexporter&quot;<br>              containerPort: 9308<br>              protocol: TCP</pre><p>Once you have a container ready You have to expose this as service so that Prometheus can connect to that service and start logs collection.</p><p><strong>Kafka Exporter Service Looks Like</strong></p><pre>apiVersion: v1<br>kind: Service<br>metadata:<br>  name: kafka-exporter<br>  labels:<br>    service: kafka-exporter-service<br>spec:<br>  type: ClusterIP<br>  ports:<br>    - port: 9308<br>      name: &quot;kexporter&quot;<br>      targetPort: 9308<br>      protocol: TCP<br>  selector:<br>    service: kafka-exporter<br>status:<br>  loadBalancer: {}</pre><p>Now you can try port-forward to validate your exporter is collecting logs or not</p><pre>kafka-exporter-647d474cb5-nch5t     1/1     Running   0</pre><pre>templates yjagdale$ kubectl port-forward kafka-exporter-647d474cb5-nch5t 9308:9308<br>Forwarding from 127.0.0.1:9308 -&gt; 9308<br>Forwarding from [::1]:9308 -&gt; 9308</pre><p>Now access <a href="http://localhost:9308/metrics">metrics</a> link, You should see output like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IFzBqXLhjBQHe95koqs0zQ.png" /><figcaption>Exporter Metrics</figcaption></figure><p>Now Your exporter is up and running. Lets setup Prometheus config now.</p><p>Now Prometheus should start a collection for that we need to use</p><p><a href="https://prometheus.io/docs/prometheus/latest/configuration/configuration/#kubernetes_sd_config">kubernetes_sd_configs</a> — Which can be used with pod/service/deployment.</p><p>Please check the link for more details.</p><p>If you want to read it from service add below config in your Prometheus config</p><pre>- job_name: &#39;kafka-exporter-job&#39;<br>      kubernetes_sd_configs:<br>      - role: service<br>      relabel_configs:<br>      - source_labels: [__meta_kubernetes_namespace, __meta_kubernetes_service_name, __meta_kubernetes_service_port_name]<br>        target_label: __metrics_path__<br>        replacement: /metrics</pre><p>Wait for few mins for Prometheus to collect all logs.</p><p>User <a href="https://grafana.com/dashboards/7589">Grafana</a> Graph for monitoring.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B_dkUVsTKtcBA5_zLdkEJQ.png" /></figure><p>If Job is not listing in dropdown means Prometheus is not able to read data from the exporter.</p><p>Reach out me jagdale0210@gmail.com I will try to fix them.</p><p>Thanks</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d4fb568defe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Jenkins master and slave as Docker containers without docker-compose]]></title>
            <link>https://medium.com/@yjagdale/jenkins-master-and-slave-as-docker-containers-without-docker-compose-614f1aa50a9b?source=rss-ee00f277f5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/614f1aa50a9b</guid>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[docker-compose]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Yash Jagdale]]></dc:creator>
            <pubDate>Thu, 14 Mar 2019 10:10:22 GMT</pubDate>
            <atom:updated>2019-03-14T11:22:55.700Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Nowadays when you want to scale up and scale down Jenkins slave on need basis you might run across the situation where you are creating a new virtual machine for your Jenkins slave and setting up all the required software on it which is time-consuming as well as resource consuming process.</blockquote><p>This can be achieved very easily when you have at least slave running as containers. If you want to run Jenkins on docker swarm then please refer my earlier article which talks about how to set up Jenkins on docker swarm or with docker-compose. can be seen at <a href="https://medium.com/@jagdale0210/deploy-jenkins-master-slave-as-docker-container-ea8557d0d52a">Link</a></p><p>But when you don&#39;t want to use docker-compose then? or when you want to run master on VM but slaves as docker images? then this article will help you to understand how you can configure such setups.</p><h4>1. Lets setup Master first</h4><blockquote>You can set up master on VM as service or as a container.</blockquote><p>when you are using it as container-based then you need to make sure you can access that instance from jnlp port(50000 default).</p><ol><li>Create a Docker network so that master and slave can be in the same network and able to access each other</li></ol><pre>docker network create jenkins</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*ZvYsklC_JwqFkv1qVLMPSw.png" /></figure><p>2. Run Jenkins master and use this network</p><pre>docker run -d -p 8080:8080 --network $(docker network ls | grep jenkins | awk &#39;{print $1}&#39;) --name master yjagdale/jenkins</pre><p>3. Now once you have Jenkins running login to an application with <strong><em>admin/admin</em></strong></p><p>4. Now Go to configure security settings → “Enable Agent → Master Access Control” and check this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*j_cN3CFgCVDkMBqlVSxiXQ.png" /></figure><p>5. Now run jnlp slave</p><pre>docker run -d --network $(docker network ls | grep jenkins | awk &#39;{print $1}&#39;) --name slave101 -e JAVA_OPTS=&quot;-Xmx2048m&quot; -e JENKINS_MASTER=&quot;<a href="http://master:8080/">http://master:8080</a>&quot; -e JENKINS_NAME=&quot;worker&quot; -e JENKINS_USER=admin -e JENKINS_PASS=admin -e JENKINS_RETRY=&quot;10&quot; eeacms/jenkins-slave</pre><p>a. JENKINS_MASTER — URL where jenkins master is running</p><p>b. JENKINS_NAME — Slave Name</p><p>c. JENKINS_USER — Jenkins user name</p><p>d. JENKINS_PASS — Jenkins Password</p><p>6. Now go to UI and check if you can see slave listed</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/359/1*zkNa0YU8o63xNjLr4ZxYIg.png" /></figure><p>Troubleshooting:-</p><p>if slave doesn&#39;t listed in list then check slave docker container logs with</p><pre>docker logs -f $(docker ps | grep slave | awk &#39;{print $1}&#39;)</pre><pre>INFO: Jenkins agent is running in headless mode.<br>Mar 14, 2019 9:56:58 AM hudson.remoting.Engine startEngine<br>INFO: Using Remoting version: 3.26<br>Mar 14, 2019 9:56:58 AM hudson.remoting.Engine startEngine<br>WARNING: No Working Directory. Using the legacy JAR Cache location: /var/jenkins_home/worker/.jenkins/cache/jars<br>Mar 14, 2019 9:56:58 AM hudson.remoting.jnlp.Main$CuiListener status<br>INFO: Locating server among [<a href="http://master:8080/">http://master:8080/</a>]<br>Mar 14, 2019 9:56:58 AM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve<br>INFO: Remoting server accepts the following protocols: [JNLP4-connect, Ping]<br>Mar 14, 2019 9:56:58 AM hudson.remoting.jnlp.Main$CuiListener status<br>INFO: Agent discovery successful<br>  Agent address: master<br>  Agent port:    50000<br>  Identity:      4d:88:90:8e:b7:67:0d:af:61:fc:68:e8:16:02:3e:6a<br>Mar 14, 2019 9:56:58 AM hudson.remoting.jnlp.Main$CuiListener status<br>INFO: Handshaking<br>Mar 14, 2019 9:56:58 AM hudson.remoting.jnlp.Main$CuiListener status<br>INFO: Connecting to master:50000<br>Mar 14, 2019 9:56:58 AM hudson.remoting.jnlp.Main$CuiListener status<br>INFO: Trying protocol: JNLP4-connect<br>Mar 14, 2019 9:56:58 AM hudson.remoting.jnlp.Main$CuiListener status<br>INFO: Remote identity confirmed: 4d:88:90:8e:b7:67:0d:af:61:fc:68:e8:16:02:3e:6a<br>Mar 14, 2019 9:56:59 AM hudson.remoting.jnlp.Main$CuiListener status<br>INFO: Connected</pre><p>If logs are not showing connected that means there is an issue with Jenkins master-slave connectivity.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=614f1aa50a9b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Testing In Agile]]></title>
            <link>https://medium.com/@yjagdale/testing-in-agile-ad96c7f57ca8?source=rss-ee00f277f5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad96c7f57ca8</guid>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[agile-testing]]></category>
            <category><![CDATA[agile-coaching]]></category>
            <category><![CDATA[agile-methodology]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Yash Jagdale]]></dc:creator>
            <pubDate>Thu, 28 Feb 2019 14:56:28 GMT</pubDate>
            <atom:updated>2019-02-28T14:56:28.651Z</atom:updated>
            <content:encoded><![CDATA[<p>Testing is the most important step of application release, But how to do it when we have continues releases? This article will tell you some solution, Some may work for you some may not :)</p><blockquote>Agile is one of the widely adopted software development method, Many companies either using agile or planning to use agile in their project.</blockquote><p>Considering that most of the company using agile but it&#39;s not the same everywhere, Fact that each company using agile in their own way. Funny thing is some company using a waterfall model by giving the name of agile :P.</p><p>When it comes to actual agile (scrum/sprint) basic things that have followed is incremental development, It means you are building application step by step and giving/delivering a small chunk of functionality to either customer or product owners to get feedback and changes if needed. Mostly sprint is of 2/3 weeks.</p><blockquote>Yes there is more immediate rework in Agile But in other methods it&#39;s periodic</blockquote><p>The main challenge with sprint is the limited number of days to complete tasks/story, meaning if a story is taken for the current sprint</p><ol><li>Development</li><li>Unit testing / Automated unit test</li><li>Testing/ Integration Testing</li></ol><p>Has to be done in the given time.</p><p>All the following findings and solution which I applied considering 2 weeks of a sprint.</p><blockquote>Let&#39;s take a look at problems which normally found in sprint</blockquote><p>when sprint starts developer takes a few stories considering 2 weeks for development, But acceptance of the story is not just the development of story but also Unit Testing, Integration Testing, Regression Testing. Few steps are done by QA few by devs and some by the product owner.</p><p>Major problem starts here if the development of the story takes most of the time and handover to QA happens at the end of the sprint or before 1/2 days then how QA or is testing team going to test this story? They will get enough amount of time?</p><p>The team has to work overtime work or working for lates hrs weekends to achieve the target, Many time bug which gets addressed at the end of the sprint and due to lack of time mostly get deferred or marked as P3/P4 which means can be taken at later stages.</p><blockquote>When you have continues deployment to prod</blockquote><p>By the time we complete manual testing of the new feature, the next part which knocks our door is automation. CICD creates some more layer to acceptance criteria for the story such as:-</p><ol><li>Automated Unit Test along with code</li><li>Automated Integration code should be ready before the merging code</li><li>Code Coverage / Integration Test coverage</li></ol><p>If any changes are breaking then It needs to be treated with versioning.</p><p>Sometimes company keeps very fewer deliverables in a given sprint to avoid this cases, But if mostly story get completed 1/ 2 days before from developer side and it starts 1/2 days late from QA side, this is wast of time.</p><blockquote>Lets focus of Tasks which normally done from QA side</blockquote><ol><li>Analyze story and find a scenario to test</li><li>Validation of all scenario with BA/PO/PM/Developer</li><li>Execute all the scenario whenever you get the code</li><li>Automate these scenarios and add it to the current execution</li><li>Any breaking changes are there then fix existing automation</li></ol><p>So just imagine if you get a code at the end it&#39;s very difficult for automation engineer or QA to maintain the quality as well as stable automation.</p><blockquote>What Did We follow to achieve this?</blockquote><ol><li>Considering some part as the Stretched goal</li></ol><p>What we did in the current sprint developer will work only for the first week on current sprint development, Then he/she will have to hand over this code to QA for testing. So that QA can get ample amount of time to complete the task.</p><p>Remaining time of sprint developer will take the stretch goal from next sprint, Which means by the time next sprint start QA will have something to work on as developer started sometime mid of earlier sprint.</p><p>Most importantly QA should start writing automation by considering placeholders which can be replaced by actual data later but almost 60% of automation work can be done while writing manual test cases itself.</p><p>In such cases, Cucumber/Robot or any BDD/TDD tool can help.</p><p>2. Running QA process one sprint delayed</p><p>Most of the organizations follow this. This simply means keep your development one sprint ahead than testing. In a similar way, if we have an entire sprint to do QA task that means we can spend more amount of time building a stable framework as well as.</p><p>Please raise your questions if any, I would love to answer them.</p><p>Thank you :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad96c7f57ca8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Selenium Automation with Selenium Helper]]></title>
            <link>https://medium.com/@yjagdale/selenium-automation-with-selenium-helper-a421dcf40407?source=rss-ee00f277f5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a421dcf40407</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[automation-testing]]></category>
            <category><![CDATA[automation-tools]]></category>
            <category><![CDATA[selenium-test-automation]]></category>
            <category><![CDATA[selenium]]></category>
            <dc:creator><![CDATA[Yash Jagdale]]></dc:creator>
            <pubDate>Tue, 08 Jan 2019 07:07:39 GMT</pubDate>
            <atom:updated>2019-01-08T14:54:02.689Z</atom:updated>
            <content:encoded><![CDATA[<h3>UI Automation with Selenium Helper</h3><blockquote>Almost every UI application which is being automated with selenium is having 80% of same methods, Which can be reused and can be written at one place.</blockquote><blockquote>WebDriver Helper Extensions is designed to simplify Java based Selenium/WebDriver tests. It’s built on top of Selenium/WebDriver to make your tests more readable, reusable and maintainable by providing easy handling towards browser and advance identifiers.</blockquote><p>It has features like:-</p><ol><li>Reporting/Logging</li><li>Wait Handling</li><li>Browser Object Handling</li><li>Debugging Test cases</li></ol><p>To avoid rework I have implemented common jar which covers all the above points.</p><blockquote><em>Code repository can be seen </em><a href="https://search.maven.org/search?q=com.github.yjagdale"><em>here</em></a></blockquote><p><strong>What’s included in this utility?</strong></p><ol><li>Browser handling ( interaction towards all the available browsers)</li><li>Advanced selenium identifiers which can help you with rapid development.</li><li>An advanced way to manage driver executables for each env(ubuntu/mac/windows) [<a href="https://github.com/bonigarcia/webdrivermanager">Webdrivermanager</a>]</li></ol><p>4. Debug mode</p><blockquote><strong>How to use this Utility?</strong></blockquote><blockquote>Adding maven dependancy</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j_MEXE6fuYQiDT_1uTrg7g.png" /><figcaption>Maven dependency.</figcaption></figure><blockquote>Setting configuration for execution.</blockquote><p>All the execution is been done using a config file which you can set using system property or with a specified name[<strong>webdriver-helper.conf</strong>] in the resources folder or you can specify like below</p><p><strong>Please note all the configuration can be overridden by setting an environment variable or system veritable to supporting control from Jenkins parameters.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/1*S3EqhW9gSJlK-QzgCGlnCg.png" /><figcaption>Config file location.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*M15AgIpNsuANE5SJdLBclA.png" /><figcaption>Specify a custom configuration file with the above code</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LeqElBcGuiw0b06LEnr-kg.png" /><figcaption>Sample configuration file.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-OEopIIqcqALpoCKlZ-teA.png" /><figcaption>Supported Field for config.</figcaption></figure><p>What and Why <strong>Debug Mode?</strong></p><p>Debug mode is designed to find exact failure. It will execute a test case by highlighting each element, Also it specifies toast message which step is being performed. Debug mode recorded video can be seen <a href="http://hub.yashjagdale.co.in/">here</a></p><p><a href="http://hub.yashjagdale.co.in/">http://hub.yashjagdale.co.in</a></p><p>Debug/INFO logging:-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qhC4A69BGOdve_Cj_yJoeQ.png" /><figcaption>This will collect all the logs to <strong>/Logs/Logs.log</strong> file</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IEPZgAfk2myzy8mu-nzAQQ.png" /><figcaption>The sample log file for a single test case</figcaption></figure><p><strong>Self Managed Browser Handling</strong></p><p>All the latest driver file will get downloaded if you are running test case on local machine[When HUB_URL is not specified]. While downloading driver file OS type and Browser type is considered.</p><p>It means when you are executing test case you don&#39;t need to worry about latest browser executable file. It will get downloaded seamlessly.</p><p>During execution, you just need to concentrate on performing actions like clicking/sending keys. If a browser is not opened and tries to perform an action then automatically browser will get created based on config and base URL.</p><p>This allows you to create a test case without caring about creation or maintain browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*StbYnxYIMFIQbPzCHlSncg.png" /><figcaption>Sample Test case.</figcaption></figure><p><strong>Element Actions use and feature.</strong></p><p>Element actions are divided into 3 major parts</p><ul><li><strong>MouseActions </strong>— This class is responsible for performing all the mouse activity that can be done on an application. It also highlights element before clicking on elements if debug mode is enabled. <br>Methods:- <br>1. click — Clicking on an element by specifying a name which is given on current page object.<br>2. click with timeout — Clicking on the element but wait for a specified time in config. it will wait for the default timeout.</li></ul><p>3. Click on the element by passing Driver instance and element — This will allow you to click on the element but not with a managed browser So that you can use a driver which is created by you.</p><ul><li><strong>KeyboardActions </strong>— This class is having the same responsibility as Mouse Action class but this class is responsible for keyboard actions.</li></ul><p>How To keep your locators —</p><p>I tried to keep it as simple as possible so that you can focus more on test case writing than other staff.</p><p>In this case, you just need to define your variables in Page class and pass that class to click method if that click action is going to navigate on a new page, This will automatically pull all the identifiers and create an object for that class.</p><p>For example, when you navigate to BASE_URL you are getting the login page then you just need to specify that class in a config file, Locators from this class will get automatically loaded into Identifier collection and can be used for further actions. “_” from identifier will be replaced with “Space” for better reading. Ex. Validation_Message can be accessed as Click(“Validation Message”);</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F8-oivojDYWvbVT_I7XMkw.png" /><figcaption>Page Class will look like</figcaption></figure><p>By accessing this page class test case will look like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*RYfoMhVN5rnLgOcvEFFN-g.png" /></figure><p>New page identifier will get loaded when you when you pass destination page class to the click method</p><p>click(“Login”, HomePage.class);</p><p>Advanced Element Finders —</p><p>We have few identifier methods readymade available but there are few which we need to create locator using cssSelector or XPath. We tried to make identification easier and more unique.</p><p>It supports method like</p><ol><li>AttributeWithValue — if your element is having an attribute called “value” and value is “Google Search” then you just need to use this method with 2 attributes and internally it will create cssSelector or XPath and return you By object.</li><li>AttributeValueStartWith/AttributeValueContains — If you want to compare partial property then you can use this method</li><li>elementWithText — If you want to take an element which has text as per given text then this method is for you, You don&#39;t need to worry about XPath syntax and methods of XPath.</li></ol><p>Sample Automation Project</p><p><a href="https://github.com/yjagdale/webdriver-helper-impl">yjagdale/webdriver-helper-impl</a></p><p><a href="https://search.maven.org/search?q=com.github.yjagdale">https://search.maven.org/search?q=com.github.yjagdale</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a421dcf40407" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Key Point To Select And Develop Automation Framework]]></title>
            <link>https://medium.com/@yjagdale/key-point-to-select-and-develop-automation-framework-e58a17478ec7?source=rss-ee00f277f5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e58a17478ec7</guid>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[automation-tools]]></category>
            <category><![CDATA[automation-testing]]></category>
            <dc:creator><![CDATA[Yash Jagdale]]></dc:creator>
            <pubDate>Sat, 05 Jan 2019 17:41:01 GMT</pubDate>
            <atom:updated>2019-01-07T15:27:36.295Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Automation, You must be looking for the best automation framework. This article will be all about my finding and issues which I faced during a selection of Automation framework</blockquote><blockquote>Automation came into the picture, since the origin of our celestial universe. Nature is the first programmer we know</blockquote><p>It is important because the tool will greatly affect your whole automation effort. If the tool is good and gives you the required features, the automation becomes easier and effective.</p><p>Before going for a technology of automation framework sit back and check out below points:-</p><ul><li>A technology of application[ex. Big data/ “SAAS ui-rich”/ Unix based cli]</li><li>Phases of automation test[UI/API/Middle-ware]</li></ul><p>Based on phases which need to be supported by application plays a major role is framework selection. For example, if your application needs to be tested only for backed then you can use language which supports dynamic object handling which can save the overhead of creating response and request object [strict programming]</p><h4>When Does Test Automation add value?</h4><ol><li>When there are many recitative things therein the application</li><li>When frequent release to a customer[Regression execution]</li><li>If you have CI/CD then its very important to have Automation in place</li></ol><h4>Before You Begin</h4><p>Past few year industries is completely moving towards <em>no manual testing</em> and replacing everything with automation, that means now manual test cases writing is not at all important <em>instead </em>you need to <em>write automation</em> test cases</p><p>Nowadays cycle which gets followed like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/0*yn6qzz-Scoo6B2Cg.png" /><figcaption>Software Lifecycle</figcaption></figure><p>So such situation basic thing you need to keep in mind about your automation framework is <em>very much reusable and automation test cases should be fast to develop.</em></p><h3>How to Select Automation Tool for Your Project?</h3><p>Language Selection:- This is a major decision that has to taken based to points like available</p><ol><li><em>Skill Set</em> — Its always good to start with language which you know better than learning a new language, as the learning curve will be very less.</li><li><em>Resources</em>:- It also matters what kind of engineers and resources you have if most of the engineers are technically good and can code then you must not invest in making framework code less. If your team has few manual engineers who’re not families about coding then you need to implement a framework that supports test case writing without knowing much of the code ex. cucumber/gauge</li><li><em>Time</em>: Amount of time is also an important factor as if you want to develop a framework in very less time you should expect more support from a framework and less from our side ex. QTP/UFT</li><li><em>Budget</em>:- In today’s era open source tools and taking most of the market because these tools getting powerful day by day. So I would prefer to go for opensource tools like Selenium for UI, Rest-assured for API, But sometimes you need to go for paid tools for testing BIG Data products where you need perform testing with different situations.</li></ol><p><em>5. Ease Of Adoption:- </em>Ease of support is a most important factor because if you stacked somewhere you should get response/resolution for your support as early as possible to meet business deliverable.</p><p>6. <em>Easy to Fix issues[Logging/Reporting]</em>:- In my view if you are spending more time on finding where the test case is failed then writing it that means you have a serious issue of framework reporting. Framework reporting should be in such way failures can be identified very quickly.</p><p>7. <em>Reporting</em>:- In continues delivery we keep eye on execution report only, So we should have very good automation reporting like extents report or jasmine specs reports etc. A report should be readable by the non-technical person with proper description.</p><h3>Few Frameworks and their advantages</h3><h4>1. JUnit/TestNG/XUnit Java-based framework:-</h4><ul><li><em>It gives the ability to produce </em><strong><em>HTML Reports</em></strong><em> of execution</em></li><li><strong><em>Annotations</em></strong><em> made testers life easy</em></li><li><em>Test cases can be </em><strong><em>Grouped &amp; Prioritized</em></strong><em> more easily</em></li><li><strong><em>Parallel</em></strong><em> testing is possible</em></li><li><em>Generates </em><strong><em>Logs</em></strong></li><li><em>Data </em><strong><em>Parameterization</em></strong><em> is possible</em></li></ul><p><a href="https://testng.org/doc/index.html">TestNG - Welcome</a></p><h4>2. Robot framework:-</h4><ul><li>Non-technical person who does not have experience with programming language can contribute and learn automation, also can learn python on the go</li><li>cool and easy to learn</li><li>quick and fast implementation</li><li>Can Focus on functional test coverage than learning oops concepts which is very much required for selenium</li><li>complete documentation reference for</li><li>rather than selenium 2 library, it supports the variety of libraries for UI, API and networking areas automation</li></ul><p><a href="https://robotframework.org/">Robot Framework</a></p><h4>3. JS based Frameworks[Protractor/WebDriverIO/Puppter]:-</h4><ul><li><strong>Built-in HTML Templating:</strong> Data displayed within your site’s markup is cleanly formatted and easy to read.</li><li><strong>Component-based design:</strong> Representing site content through self-contained components is the norm. This enables content reuse and provides a standard model` for content structure and behavior.</li><li><strong>Robust data management:</strong> Application state is managed within the framework’s data models instead of scattered throughout the DOM.<br><strong>Faster performance:</strong> Web page content updates are only written when necessary. To-be-rendered content is maintained in a virtual DOM and is rendered to the actual DOM when content changes occur.</li><li><strong>Build system support:</strong> Build tools allow developers to use ES2015+ features, pre-processors such as JSX to write HTML within JS, and write code modules that are bundled and minified for fast downloads. Developers can write use new JavaScript features without fearing legacy browser incompatibility.</li></ul><p><a href="https://www.protractortest.org/#/">Protractor - end-to-end testing for AngularJS</a></p><p>Reference Links:-</p><ul><li><a href="https://github.com/yjagdale/webdriver-helper">yjagdale/webdriver-helper</a></li><li><a href="https://www.glowtouch.com/how-to-choose-the-right-test-automation-framework/">How to Choose the Right Test Automation Framework</a></li></ul><p><a href="https://www.infosys.com/it-services/validation-solutions/white-papers/documents/choosing-right-automation-tool.pdf">https://www.infosys.com/it-services/validation-solutions/white-papers/documents/choosing-right-automation-tool.pdf</a></p><p>Contact Me:- @jagdale0210@gmail.com</p><p>Linked :-</p><p><a href="https://www.linkedin.com/in/yash-jagdale-47214a28/">https://www.linkedin.com/in/yash-jagdale-47214a28/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e58a17478ec7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploy Jenkins Master Slave As Docker Container.]]></title>
            <link>https://medium.com/@yjagdale/deploy-jenkins-master-slave-as-docker-container-ea8557d0d52a?source=rss-ee00f277f5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea8557d0d52a</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[docker-compose]]></category>
            <dc:creator><![CDATA[Yash Jagdale]]></dc:creator>
            <pubDate>Thu, 09 Aug 2018 07:43:44 GMT</pubDate>
            <atom:updated>2019-01-03T15:52:27.787Z</atom:updated>
            <content:encoded><![CDATA[<p>When you want to deploy Jenkins faster and reliable and dockerized,<br>Below is the try which I was given and worked for me.</p><ol><li>Start your VM on which you want to run Jenkins</li><li>install docker compose on it</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sJ6eMsfwn9ScBN3tWYV9KA.png" /><figcaption>install docker compose using :-<strong> sudo apt install docker-compose — yes</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2sSajjS4mjCCffYD0s4avA.png" /><figcaption>validate installation:- <strong>sudo docker-compose — version</strong></figcaption></figure><blockquote>Copy below file and write into docker-compose.yml or you can clone <a href="https://github.com/eea/eea.docker.jenkins">repo</a>.</blockquote><p>&lt;jenkins_username&gt; — add your username which you will be using for Jenkins</p><p>&lt;jenkins_password&gt; — your Jenkins password</p><pre>version: &quot;2&quot;<br>services:<br>  master:<br>    image: eeacms/jenkins-master<br>    ports:<br>    - &quot;80:8080&quot;<br>    environment:<br>    - JAVA_OPTS=-Xmx2048m<br>    volumes:<br>    - jenkins-master:/var/jenkins_home<br><br>  worker:<br>    image: eeacms/jenkins-slave<br>    environment:<br>      JAVA_OPTS: &quot;-Xmx2048m&quot;<br>      JENKINS_MASTER: &quot;http://master:8080&quot;<br>      JENKINS_NAME: &quot;worker&quot;<br>      JENKINS_USER: <strong>&quot;&lt;jenkins_username&gt;&quot;</strong><br>      JENKINS_PASS: <strong>&quot;&lt;jenkins-password&gt;&quot;</strong><br>      JENKINS_RETRY: &quot;10&quot;<br>    volumes:<br>    - jenkins-worker:/var/jenkins_home/worker<br><br>volumes:<br>  jenkins-master:<br>  jenkins-worker:</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-Vs1INLjHVi68kHOK2G26g.png" /><figcaption>To start jenkins:- <strong>docker-compose up</strong></figcaption></figure><p>To run in background use docker-compose -d up</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bX2aAignL4APZ9Kf1XimEA.png" /><figcaption>You will get password in console which is needed for 1st time login.</figcaption></figure><p>Now go to your browser and access jenkins <strong>with port 80 and enter copied password</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UpxlTFMQkzZ4XmygtjLefQ.png" /></figure><p>Follow steps to setup Jenkins with same username and password which you entered in yml file. by default it Jenkins Jenkins in GitHub file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xy72-MYgSZyYiJjaYqj24Q.png" /><figcaption>username and password setting window.</figcaption></figure><p>Once jenkins ready to use you can scale workers with below command</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MmYkrKLog4lKQy2Gjl4xGw.png" /><figcaption><strong>docker-compose scale worker=3</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3QzXIc_7jIrjLmtmeBQObA.png" /><figcaption>you should see number of workers available.</figcaption></figure><p>You can reach out me in case of any issue</p><p>jagdale0210@gmail.com</p><p><a href="https://www.linkedin.com/in/yash-jagdale-47214a28/">LinkedIn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea8557d0d52a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>