<?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 Seçil Kaplan on Medium]]></title>
        <description><![CDATA[Stories by Seçil Kaplan on Medium]]></description>
        <link>https://medium.com/@secillcett?source=rss-c76e30e45e49------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*nq14iM5to_YqjLh9RxWbzg@2x.jpeg</url>
            <title>Stories by Seçil Kaplan on Medium</title>
            <link>https://medium.com/@secillcett?source=rss-c76e30e45e49------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 08:14:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@secillcett/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[Running Cucumber tests with Jenkins]]></title>
            <link>https://faun.pub/running-cucumber-tests-with-jenkins-a5a3a8df07eb?source=rss-c76e30e45e49------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5a3a8df07eb</guid>
            <category><![CDATA[bdd]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[api-test-automation]]></category>
            <category><![CDATA[cucumber]]></category>
            <category><![CDATA[jenkins]]></category>
            <dc:creator><![CDATA[Seçil Kaplan]]></dc:creator>
            <pubDate>Sun, 15 Sep 2019 20:26:55 GMT</pubDate>
            <atom:updated>2019-09-23T15:03:42.521Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uSIWqRPhxR6AphLoQgHJyQ.png" /></figure><p>My team has been using Teamcity as a continuous integration tool for a long time. Lately we needed to add new configurations and we were stuck on 100 configurations limit of our license. Since other software agile teams in Hepsiburada use Jenkins, we decided to give it a shot.</p><p>Jenkins is an open source continuous integration tool. Just like Teamcity, it has pipeline features to build and deploy your application and run tests. Jenkins has <strong><em>Build Executors </em></strong>which are equivalent to <strong><em>agents </em></strong>in Teamcity. Jenkins uses one of these executors to run your pipeline.</p><p>The Cucumber Ruby project of our test automation both has API tests and UI and they run with parameters such as environment, platform and browser. API and UI tests create different reports after tests are finished.</p><h3><strong>Building pipeline with Jenkinsfile</strong></h3><p>First step is to create a Jenkinsfile which will tell Jenkins what to do in what order. You can find my example below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4f1b18fd5346f0a1c29877cda85adf07/href">https://medium.com/media/4f1b18fd5346f0a1c29877cda85adf07/href</a></iframe><p>Create a file like this within your automation project.</p><p>This example is a Declarative Pipeline. The <strong><em>pipeline </em></strong>block in file covers all the work to be done when pipeline runs.</p><p>Block <strong><em>environment </em></strong>includes project configurations and parameters in <strong><em>params </em></strong>block. I commented out this block just to show what are the parameters of my tests. I will define these parameters in Jenkins when creating the job. Another option is to use them from the Jenkinsfile. But since I wanted to use same Jenkinsfile to run both of my API and UI tests I decided to enter parameters within Jenkins job.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LHurCJLKJU3DWp_uOyzRJQ.png" /><figcaption>Jenkins file environment and parameters</figcaption></figure><p>Block <strong><em>agent any</em></strong><em> </em>informs Jenkins to run this pipeline in any available build executors.</p><p>There are two <strong><em>stage </em></strong>blocks within <strong><em>stages</em></strong>, first one is named as ‘Building Docker image’ which is to build an image from Dockerfile. You can find detailed information about this command line and how to dockerize your project in a past medium story of mine.</p><p><a href="https://medium.com/hepsiburadatech/dockerize-your-ruby-cucumber-project-2a2475b0fc2a">https://medium.com/hepsiburadatech/dockerize-your-ruby-cucumber-project-2a2475b0fc2a</a></p><p>Second <strong><em>stage</em></strong> is named as ‘Run Tests’ and this step runs a container from docker image and by using ‘cucumber’ command runs the test with -p parameters of given.</p><p>After running scripts in <strong><em>stages </em></strong>there comes<strong><em> post </em></strong>block for closing actions of tests. A report is generated, job status is updated and a notification is send to Slack within that block. I will go into details of these post steps in the following sections.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*POvPfukLCpoRjWcsajnLhA.png" /><figcaption>Stages blocks of Jenkinsfile</figcaption></figure><h3>Create and run parameterized project in Jenkins</h3><ul><li>Open your Jenkins server and go to New Item menu select Pipeline and give a name for the project.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h06Pu3ZILu7ZFNuRUUSmew.png" /></figure><ul><li>Go to Pipeline section of project and select “Pipeline script from SCM”.</li><li>Select source control management (subversion, git) and by clicking ADD, create credentials for SCM if you haven’t before.</li><li>Define the location of Jenkinsfile within project in Script Path.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UZ59JjkbAw0HDkCAUvro_w.png" /></figure><ul><li>To give values for parameters in Jenkinsfile go to “General” section of project and click checkbox “ This project is parameterized”.</li><li>Add parameters Name, Default Value and Description.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mN7aujcbxdcG3r5YXW65SQ.png" /></figure><ul><li>If you want the project to run on a regular basis go to “Build Triggers” section of project and click checkbox for an option such as “Build periodically” or “Build after other projects are built”. Questions marks next to options it shows a variety of how to define triggers.</li></ul><p>If all above steps are done click SAVE and APPLY. To run the tests click Play button next to view. Since this project is parameterized it shows a windows like below. Click BUILD to start test run. If you use triggers for the project, don’t worry, test run will start with your default parameters automatically.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ViDqYlxylSSTa6hltyxpvA.png" /></figure><h3>Cucumber reports plugin to generate readable reports</h3><p>After running cucumber tests, a detail report is needed to inform the team about the well being of our application and to compare releases if any bug is introduced. Jenkins has many plugins to suit your needs. <strong><em>Cucumber reports </em></strong>plugin is one of these.</p><ul><li>Go to <strong><em>Manage Jenkins&gt;Manage Plugins</em></strong> menu and run a search for <strong><em>Cucumber reports</em></strong> and install.</li><li>Post block part in Jenkinsfile for failure and success represents this plugins commands. Since I declared <strong><em>fileIncludePattern </em></strong>as json plugin will look for json report to generate fancy html report with it.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9k9PItbLhSkBT4PxXq_kng.png" /></figure><ul><li>To create a json report after tests run define a profile in cucumber.yml as below and when running tests send this as a parameter.</li></ul><pre><strong>jenkinsreport_journeytests</strong>: --format json --out testResults/report_journey/jenkins_report_journey.json</pre><ul><li>To see cucumber report click the latest run in left menu “Build History”, you will see Cucumber reports link on left menu again.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eMTptao3_YoGfW1Pm3HTrA.png" /><figcaption>Report generated by Cucumber reports plugin</figcaption></figure><h3>Notify with Slack Notification Plugin</h3><p>To notify about test status I used<strong><em> Slack Notification Plugin</em></strong> and gave the html report url of Cucumber reports in the slack message.</p><ul><li>Go to <strong><em>Manage Jenkins&gt;Manage Plugins</em></strong> menu and run a search for <strong><em>Slack Notification Plugin</em></strong> and install.</li><li>Go to <strong><em>Manage Jenkins&gt;Configure System </em></strong>menu and move down to Slack block to enter configurations and credentials for Slack.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oOjxVCUoOKrjVAm1yOX4xw.png" /><figcaption>Slack integration for Jenkins</figcaption></figure><ul><li>When tests run a notification like below will be send to the channel you entered in Slack integration.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*521axfuPYX22-R_XQXRNYQ.png" /><figcaption>Slack notification</figcaption></figure><p>To learn more about how to create a Jenkinsfile and meaning of blocks, visit <a href="https://jenkins.io/doc/book/pipeline/">https://jenkins.io/doc/book/pipeline/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/0*Piks8Tu6xUYpF4DU" /></figure><p><strong>Follow us on </strong><a href="https://twitter.com/joinfaun"><strong>Twitter</strong></a><strong> </strong>🐦<strong> and </strong><a href="https://www.facebook.com/faun.dev/"><strong>Facebook</strong></a><strong> </strong>👥<strong> and join our </strong><a href="https://www.facebook.com/groups/364904580892967/"><strong>Facebook Group</strong></a><strong> </strong>💬<strong>.</strong></p><p><strong>To join our community Slack </strong>🗣️ <strong>and read our weekly Faun topics </strong>🗞️,<strong> click here⬇</strong></p><figure><a href="https://www.faun.dev/join/?utm_source=medium.com%2Ffaun&amp;utm_medium=medium&amp;utm_campaign=faunmediumbanner"><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oSdFkACJxs5iy1oR" /></a></figure><h4>If this post was helpful, please click the clap 👏 button below a few times to show your support for the author! ⬇</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5a3a8df07eb" width="1" height="1" alt=""><hr><p><a href="https://faun.pub/running-cucumber-tests-with-jenkins-a5a3a8df07eb">Running Cucumber tests with Jenkins</a> was originally published in <a href="https://faun.pub/">FAUN.dev() 🐾</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dockerize your Ruby Cucumber project]]></title>
            <link>https://medium.com/hepsiburadatech/dockerize-your-ruby-cucumber-project-2a2475b0fc2a?source=rss-c76e30e45e49------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a2475b0fc2a</guid>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[cucumber]]></category>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Seçil Kaplan]]></dc:creator>
            <pubDate>Wed, 03 Apr 2019 10:43:15 GMT</pubDate>
            <atom:updated>2019-04-03T13:00:54.529Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NcOhHe2lDvIrSAi-gb1w4A.png" /></figure><p>Me and my colleague are writing tests with Ruby on a Windows environment and run them on Linux Selenium Grid. We are using TeamCity as a continuous integration (CI) tool on Windows servers. Our Ruby project was 2.0.0 but we had to use newer gem dependencies so we were forced to upgrade Ruby to 2.5.3.</p><p>Also, since my team has new projects and infrastructure we needed to adapt our tests accordingly. Installing Ruby and dependencies in every CI server/agent is frustrating. The solution was using Docker which performs operating-system-level virtualization.</p><p>Dockerizing means running your project in a virtual container which includes every dependency you need. Setting up your environment will be just building your docker image. For this, you will need Docker in your local environment.</p><p><a href="https://docs.docker.com/install/"><em>https://docs.docker.com/install/</em></a></p><h4>The “magical” Dockerfile</h4><p>The first thing is to write the <strong>Dockerfile</strong> and put it in your project’s main folder. It is the file that creates your image. You can sign up for the docker hub and run a search to find a base image.</p><p><a href="https://hub.docker.com/"><em>https://hub.docker.com/</em></a></p><p>My Dockerfile was the one below. I preferred to use <strong>alpine</strong> as a base image because it is lighter.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2756f55b6ccbdc4a412700ff365f83fb/href">https://medium.com/media/2756f55b6ccbdc4a412700ff365f83fb/href</a></iframe><h4>Build an image</h4><p>After creating the Dockerfile you can build your image with the command:</p><p><strong><em>docker build -t cucumber:1.0 .</em></strong></p><p>cucumber is the name of the image and 1.0 is the tag version. The comma at the end of the command represents the location of your Dockerfile which was in the main directory in my case.</p><p>After the successful execution of this command, your image will be ready. You can see it with calling the <strong><em>docker images </em></strong>command.</p><h4>Run container &amp; scenarios</h4><p>Below command creates a container which is built from the image we just created above and starts tests within.</p><p><strong><em>docker run -v C:/workspace/CucumberTests:/cucumber cucumber:1.0 cucumber features/*.feature</em></strong></p><p>The <strong>-v</strong> parameter represents a very nice feature of Docker. It enables you to share a volume between your container and the host you build your container. Why did I need this? Because failing scenarios creates screenshots and HTML reports and I don’t want to lose them since container will be dead after my features complete test run. After ‘-v’ follows the cucumber command to run features.</p><p>Let me give you an important detail here. My example does not cover the case of opening the browser in the container. Where to open browser depends on your env.rb configuration. You can open the browser in the container or in a remote machine such as selenium grid which is what I did here. If you wish not to use selenium grid but open the browser in the container then you must add necessary steps to your Dockerfile to install a browser in the image.</p><p>Happy dockerizing 🐳</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a2475b0fc2a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hepsiburadatech/dockerize-your-ruby-cucumber-project-2a2475b0fc2a">Dockerize your Ruby Cucumber project</a> was originally published in <a href="https://medium.com/hepsiburadatech">hepsiburadatech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[API Testing with Postman]]></title>
            <link>https://medium.com/hepsiburadatech/api-testing-with-postman-7f70e6b90c2d?source=rss-c76e30e45e49------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f70e6b90c2d</guid>
            <category><![CDATA[selenium-test-automation]]></category>
            <category><![CDATA[api-testing]]></category>
            <category><![CDATA[test-automation]]></category>
            <category><![CDATA[postman]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <dc:creator><![CDATA[Seçil Kaplan]]></dc:creator>
            <pubDate>Sat, 29 Dec 2018 11:19:33 GMT</pubDate>
            <atom:updated>2019-01-11T07:58:12.791Z</atom:updated>
            <content:encoded><![CDATA[<p>Postman is a great tool to use in api documentation and tests which I was using for a time, but only for manuel testing purposes. Recently I tried a simple collection run in Postman and realized it was easier than writing api tests in code.</p><p>Below you can find a simple introduction about using Postman for api test automation and how to integrate these tests to continous integration.</p><h3>Collection</h3><p>If you are already familiar with using Postman to send requests, then start with gathering your requests in a collection. They can be in a logical order if they need to be chained. Or the if the endpoints serve different purposes unrelated from each other then dont mind the order.</p><p>I used a sample Petstore server for this demo.</p><p><a href="https://petstore.swagger.io/">https://petstore.swagger.io/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/337/1*3mornm7PQ5jNm8vAt-R4SA.png" /></figure><h3>Write test scripts</h3><p>It is possible to write your assertions with javascript in Postman Tests tab. You can use the snippets Postman offers which appears when you click the little arrow next to Tests editor.</p><p>Possible assertions are as below but not limited to:</p><ul><li>The response code</li><li>Expected string in response</li><li>Response time</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/647/1*NS6eyctZy4OzuXawH6kAUw.png" /></figure><h3><strong>Extracting data and chaining collection</strong></h3><p>It is possible to manage variables within environment. After adding an enviroment and defining variables you can extract a response value with tests script and keep it in variable to use in chaining collection.</p><p>//assign petid to variable<br>var jsonData = JSON.parse(responseBody);<br>postman.setEnvironmentVariable(“petid”, jsonData.id)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*1T7o43A5-7VNj51dEL4Kmw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lZX1VBH1btrK4boZQ3FQPA.png" /></figure><h3>Run tests in Collection Runner</h3><p>Now it’s time to run api tests in Postman Collection Runner. Before running tests you can edit or rename your requests and even set an interation time to run collection. But it’s not possible to disable a request. I think this feature would be very useful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/709/1*ukxXLh-lXs3Z4CXYM7PLkw.png" /></figure><h3>Run Postman collection in console</h3><p>If you want to run your collection outside of Postman GUI then you can use Newman.</p><p><a href="https://www.npmjs.com/package/newman">https://www.npmjs.com/package/newman</a></p><p>For this you should first install node.js and be sure you also have npm package manager within. Because below command is to install newman via npm.</p><blockquote>npm install -g newman</blockquote><p>There are two ways to run your collection in command line.</p><p>1-export your collection as JSON file and use below command.</p><blockquote>newman run examples/sample-collection.json</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*ZyQemp_cSfNkRlkMVSccxg.png" /><figcaption>export your collection</figcaption></figure><p>2-get your collection link and use below command.</p><blockquote>newman run <a href="https://www.getpostman.com/collections/5bb05566719fcd2994b3">https://www.getpostman.com/collections/{</a>collectionId}</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*tiZ3y6SfP_rGX-Ac_NI7bg.png" /><figcaption>get your collection link via share feature</figcaption></figure><p>When you run your collection in command line the result will be like something below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j_OPe7rNxgkIAK2oOkKeiA.png" /></figure><h3>Run Postman collection in Teamcity CI</h3><p>Teamcity is a CI tool with simple GUI to create a pipeline (to build,test and deploy code) and as I know it is free with restricted agent count and configuration. To run Postman collection in Teamcity all you need to do is install newman-reporter-teamcity in the Teamcity agent. This is needed to see test report in teamcity as pass fail count.</p><p>Below command is to intall this extension to Teamcity agent.</p><p><em>npm install -g newman-reporter-teamcity</em></p><p>After installation set up your configuration and arrange build step with Command Line runner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iPBL2VMMXxYz-HVLSElNSg.png" /></figure><p>Thanks for reading👩‍💻</p><p>I hope these short instructions helps someone out there. And I would like to know if you have better or worse experiences in Postman.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f70e6b90c2d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hepsiburadatech/api-testing-with-postman-7f70e6b90c2d">API Testing with Postman</a> was originally published in <a href="https://medium.com/hepsiburadatech">hepsiburadatech</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>