<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:series="https://publishpress.com/"
	>

<channel>
	<title>Automation Test Archives - Tomoshare</title>
	<atom:link href="https://blog.tomosia.com.vn/danh-muc/test/automation-test/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.tomosia.com.vn/danh-muc/test/automation-test/</link>
	<description>Kênh chia sẻ kiến thức Tomosia Việt Nam</description>
	<lastBuildDate>Wed, 27 Dec 2023 08:25:09 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://blog.tomosia.com.vn/wp-content/uploads/2023/09/cropped-icon-32x32.png</url>
	<title>Automation Test Archives - Tomoshare</title>
	<link>https://blog.tomosia.com.vn/danh-muc/test/automation-test/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Automation test scripts in Postman</title>
		<link>https://blog.tomosia.com.vn/automation-test-scripts-in-postman/</link>
					<comments>https://blog.tomosia.com.vn/automation-test-scripts-in-postman/#comments</comments>
		
		<dc:creator><![CDATA[Phu Tran]]></dc:creator>
		<pubDate>Mon, 30 Oct 2023 14:56:37 +0000</pubDate>
				<category><![CDATA[Test]]></category>
		<category><![CDATA[Automation Test]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[postman]]></category>
		<guid isPermaLink="false">https://blog.tomosia.com.vn/?p=1571</guid>

					<description><![CDATA[<p>Why automate your API tests? Efficiency: Automated tests can be run quickly and repeatedly, saving time compared to&#8230;</p>
<p>The post <a href="https://blog.tomosia.com.vn/automation-test-scripts-in-postman/">Automation test scripts in Postman</a> appeared first on <a href="https://blog.tomosia.com.vn">Tomoshare</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h4 id="why-automate-your-api-tests" class="wp-block-heading">Why automate your API tests?</h4>



<p class="wp-block-paragraph"><strong>Efficiency</strong>: Automated tests can be run quickly and repeatedly, saving time compared to manual testing. This is especially important in the fast-paced world of software development.<br><br><strong>Consistency</strong>: Automated tests execute the same test cases in the same way every time, reducing the risk of human error and ensuring consistent testing.<br><br><strong>Reusability</strong>: Once you&#8217;ve created automated test scripts, you can reuse them for different versions of your software, ensuring that functionality doesn&#8217;t break when making updates or changes.</p>



<h4 id="adding-tests" class="wp-block-heading">Adding tests</h4>



<p class="wp-block-paragraph">To add test a request , open the request and end enter code in the tests tab. Tests will execute after the request runs . The output is in the response&#8217;s test results tab</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="562" src="http://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-20.57.22-1024x562.png" alt="" class="wp-image-1574" srcset="https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-20.57.22-1024x562.png 1024w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-20.57.22-300x165.png 300w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-20.57.22-768x422.png 768w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-20.57.22-1536x844.png 1536w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-20.57.22-2048x1125.png 2048w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-20.57.22-380x209.png 380w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-20.57.22-800x439.png 800w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-20.57.22-1160x637.png 1160w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-20.57.22.png 2880w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">See how to work with the Postman basic test syntax to test a single HTTP API request a sample collection template . To try out this template select&nbsp;<a href="https://www.postman.com/templates/e9a37a28-055b-49cd-8c7e-97494a21eb54/API-testing-basics">API testing basics</a>.</p>



<h4 id="testing-collections-and-folders" class="wp-block-heading">Testing collections and folders</h4>



<p class="wp-block-paragraph">When you run a collections the collections runner display the test results , including the response time in milliseconds add details about whether a specific request in the collection passed or failed is test<br></p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="938" src="http://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-20.43.01-1-1024x938.png" alt="" class="wp-image-1575" srcset="https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-20.43.01-1-1024x938.png 1024w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-20.43.01-1-300x275.png 300w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-20.43.01-1-768x704.png 768w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-20.43.01-1-380x348.png 380w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-20.43.01-1-800x733.png 800w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-20.43.01-1-1160x1063.png 1160w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-20.43.01-1.png 1434w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="696" src="http://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-21.18.24-1024x696.png" alt="" class="wp-image-1576" srcset="https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-21.18.24-1024x696.png 1024w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-21.18.24-300x204.png 300w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-21.18.24-768x522.png 768w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-21.18.24-1536x1043.png 1536w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-21.18.24-2048x1391.png 2048w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-21.18.24-380x258.png 380w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-21.18.24-800x543.png 800w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-21.18.24-1160x788.png 1160w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-21.18.24.png 2120w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h4 id="using-postbot-ai-to-write-tests" class="wp-block-heading">Using Postbot <strong><code>AI</code></strong> to write tests</h4>



<ul class="wp-block-list">
<li><strong>To write a test with Postbot, do the following:</strong>
<ul class="wp-block-list">
<li>Send your request so it has a response.</li>



<li>Select the&nbsp;<strong>Tests</strong>&nbsp;tab.</li>



<li>In the&nbsp;<strong>Script with Postbot</strong>&nbsp;section next to your test, select the Postbot icon&nbsp;<img decoding="async" src="https://assets.postman.com/postman-docs/v10/icon-postbot-v10-16.jpg#icon" alt="Postbot icon" width="18">&nbsp;.</li>



<li>Enter your query as a simple text sentence, or select one of the suggested queries to tell Postbot what you need.</li>
</ul>
</li>
</ul>



<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="396" height="334" src="http://blog.tomosia.com.vn/wp-content/uploads/2023/10/postbot-add-test-v10-16.gif" alt="" class="wp-image-1579" style="aspect-ratio:1.18562874251497;width:679px;height:auto"/></figure>
</div></div>



<p class="wp-block-paragraph"><br></p>



<h4 id="summary-nexts-step" class="wp-block-heading">Summary &amp; Nexts step </h4>



<p class="wp-block-paragraph">After writing tests in Postman, you could write more complex tests and use them with other Postman utilities. Let go.</p>



<p class="wp-block-paragraph">Nexts step run your tests and validations on CI/CD using Postman CLI configuration</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="875" src="http://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-21.40.07-1024x875.png" alt="" class="wp-image-1582" srcset="https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-21.40.07-1024x875.png 1024w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-21.40.07-300x256.png 300w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-21.40.07-768x656.png 768w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-21.40.07-1536x1313.png 1536w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-21.40.07-380x325.png 380w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-21.40.07-800x684.png 800w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-21.40.07-1160x991.png 1160w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screen-Shot-2023-10-25-at-21.40.07.png 1554w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p>The post <a href="https://blog.tomosia.com.vn/automation-test-scripts-in-postman/">Automation test scripts in Postman</a> appeared first on <a href="https://blog.tomosia.com.vn">Tomoshare</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.tomosia.com.vn/automation-test-scripts-in-postman/feed/</wfw:commentRss>
			<slash:comments>1423</slash:comments>
		
		
		
		<series:name><![CDATA[Test Automation]]></series:name>
	</item>
		<item>
		<title>Automation Test for iOS (part 1)</title>
		<link>https://blog.tomosia.com.vn/automation-test-for-ios-part-1/</link>
					<comments>https://blog.tomosia.com.vn/automation-test-for-ios-part-1/#comments</comments>
		
		<dc:creator><![CDATA[Vo Phuong]]></dc:creator>
		<pubDate>Tue, 03 Oct 2023 07:16:09 +0000</pubDate>
				<category><![CDATA[IOS]]></category>
		<category><![CDATA[Automation Test]]></category>
		<category><![CDATA[KIF]]></category>
		<guid isPermaLink="false">https://blog.tomosia.com.vn/?p=299</guid>

					<description><![CDATA[<p>Đối với công việc lâp trình phần mềm thì Unit Test và UI Test là những việc vô&#8230;</p>
<p>The post <a href="https://blog.tomosia.com.vn/automation-test-for-ios-part-1/">Automation Test for iOS (part 1)</a> appeared first on <a href="https://blog.tomosia.com.vn">Tomoshare</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Đối với công việc lâp trình phần mềm thì Unit Test và UI Test là những việc vô cùng quan trọng trong việc bảo đảm 1 phần mềm đạt chất lượng tốt. Bài viết này, mình chỉ tập trung chủ yếu vào UI Test. Với lập trình viên iOS thì việc viết UI Test đã có sự support từ Apple với XCTest framework. Nhưng sau khi làm thử với XCTest framework thì thấy nó khó cho việc viết UITest cho chúng ta. Nên mình đã tìm hiểu được 1 framework cho việc viết UITest là <a href="https://github.com/kif-framework/KIF"><strong>KIF framewok</strong></a></p>



<h2 id="1-cai-dat-kif" class="wp-block-heading">1. Cài đặt KIF</h2>



<p class="wp-block-paragraph">Điều đầu tiên, để sử dụng được KIF thì chúng ta cần tạo target cho việc test của chúng ta. Ở đây, KIF không sử dụng&nbsp;<strong>iOS UI Testing Bundle</strong>&nbsp;mà sử dụng&nbsp;<strong>iOS Unit Testing Bundle</strong>.Nên trong trường hợp bạn nào đã có unit test ở trong project thì cần chọn 1 trong 2 target để chạy test.</p>



<p class="wp-block-paragraph">Chọn dự án của bạn trong Xcode và nhấp vào &#8220;Add Target&#8221; ở góc dưới bên trái của trình soạn thảo. Chọn iOS -&gt; Test -&gt; iOS Unit Testing Bundle. Hãy cung cấp cho nó một tên như &#8220;Acceptance Tests&#8221;, &#8220;UI Tests&#8221;, hoặc cái gì đó cho thấy ý định của quá trình test của bạn.</p>



<p class="wp-block-paragraph">Acceptance Test Target của bạn được tạo và sẽ có thêm 1 file đi cùng với nó, ex: &#8220;Acceptance_Tests.swift&#8221; khớp với tên target. Hãy xoá nó đi.</p>



<h3 id="1-1-cai-dat-voi-pod" class="wp-block-heading">1.1 Cài đặt với Pod</h3>



<p class="wp-block-paragraph">Khi Test Target của bạn đã được thiết lập, thêm đoạn mã dưới đây vào Podfile của bạn. Sử dụng đúng target cần cài đặt KIF</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#282A36"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="target 'Your Apps' do
  ...
end

target 'Acceptance Tests' do
  pod 'KIF', :configurations =&gt; ['Debug']
end" style="color:#F8F8F2;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki dracula" style="background-color: #282A36" tabindex="0"><code><span class="line"><span style="color: #F8F8F2">target &#39;Your Apps&#39; </span><span style="color: #FF79C6">do</span></span>
<span class="line"><span style="color: #F8F8F2">  </span><span style="color: #FF79C6">...</span></span>
<span class="line"><span style="color: #F8F8F2">end</span></span>
<span class="line"></span>
<span class="line"><span style="color: #F8F8F2">target &#39;Acceptance Tests&#39; </span><span style="color: #FF79C6">do</span></span>
<span class="line"><span style="color: #F8F8F2">  pod &#39;KIF&#39;, </span><span style="color: #FF79C6">:</span><span style="color: #F8F8F2">configurations </span><span style="color: #FF79C6">=&gt;</span><span style="color: #F8F8F2"> [&#39;Debug&#39;]</span></span>
<span class="line"><span style="color: #F8F8F2">end</span></span></code></pre></div>



<p class="wp-block-paragraph">Sau khi chạy <code>pod install</code> thì công việc tiếp theo là làm theo <strong>Cấu hình Test Target</strong> ở bên dưới để cấu hình thích hợp cho nó</p>



<h3 id="1-2-cai-voi-static-library" class="wp-block-heading">1.2 Cài với static library</h3>



<p class="wp-block-paragraph">Để cài đặt KIF, bạn cần liên kết static library libKIF trực tiếp vào ứng dụng của bạn. Tải xuống nguồn từ&nbsp;<a href="https://github.com/kif-framework/KIF">KIF</a>&nbsp;và làm theo hướng dẫn dưới đây.</p>



<p class="wp-block-paragraph">Chúng tôi sẽ sử dụng một dự án đơn giản làm ví dụ và bạn có thể tìm thấy nó trong Documentation/Examples/Testable Swift trong reposity của KIF.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="825" height="453" src="http://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-1.png" alt="" class="wp-image-300" srcset="https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-1.png 825w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-1-300x165.png 300w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-1-768x422.png 768w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-1-380x209.png 380w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-1-800x439.png 800w" sizes="auto, (max-width: 825px) 100vw, 825px" /></figure>



<h4 id="them-kif-vao-du-an" class="wp-block-heading">Thêm KIF vào dự án</h4>



<p class="wp-block-paragraph">Bước đầu tiên là thêm dự án KIF vào thư mục con của ./Frameworks/KIF của dự án. Nếu dự án của bạn sử dụng Git để kiểm soát phiên bản, bạn có thể sử dụng submodules để cập nhật trong tương lai dễ dàng hơn:</p>



<pre class="wp-block-preformatted">cd /path/to/MyApplicationSource
mkdir Frameworks
git submodule add https://github.com/kif-framework/KIF.git Frameworks/KIF</pre>



<h4 id="them-kif-vao-workspace" class="wp-block-heading">Thêm KIF vào Workspace</h4>



<p class="wp-block-paragraph">Hãy để dự án của bạn biết về KIF bằng cách thêm dự án KIF vào không gian làm việc cùng với dự án chính của bạn. Tìm KIF.xcodeproj trong Finder và kéo nó vào Project Navigator (⌘1).</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="825" height="453" src="http://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-2.png" alt="" class="wp-image-301" srcset="https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-2.png 825w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-2-300x165.png 300w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-2-768x422.png 768w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-2-380x209.png 380w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-2-800x439.png 800w" sizes="auto, (max-width: 825px) 100vw, 825px" /></figure>



<h3 id="1-3-cau-hinh-test-target" class="wp-block-heading">1.3 Cấu hình Test Target</h3>



<p class="wp-block-paragraph">Bây giờ, bạn đã có test target cho việc viết UI Test của bạn. Tiếp theo là thêm các thư viện cần thiết cho dự án, chúng ta chọn trong <strong>Project Navigator</strong> và vào Test Target mà bạn đã tạo ra, chọn tab <strong>&#8220;Build Phases&#8221;</strong>. Trong phần <strong>&#8220;Link Binary With Libraries&#8221;</strong>, hãy nhấn nút &#8220;+&#8221;. Trong bảng xuất hiện, chọn &#8220;libKIF.a&#8221; và nhấp vào <strong>&#8220;Add&#8221;</strong>. Lặp lại quá trình cho <strong>CoreGraphics.framework</strong> và <strong>QuartzCore.framework</strong> . KIF yêu cầu IOKit.framework, nhưng nó không nằm trong các khuôn khổ hệ thống. Để liên kết đến nó, thêm &#8220;-framework IOKit&#8221; vào <strong>&#8220;Other Linker Flags&#8221;</strong>.</p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" src="http://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-3.png" alt="" class="wp-image-302" style="width:679px;height:373px" width="679" height="373" srcset="https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-3.png 825w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-3-300x165.png 300w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-3-768x422.png 768w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-3-380x209.png 380w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-3-800x439.png 800w" sizes="auto, (max-width: 679px) 100vw, 679px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="825" height="453" src="http://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-4.png" alt="" class="wp-image-303" srcset="https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-4.png 825w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-4-300x165.png 300w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-4-768x422.png 768w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-4-380x209.png 380w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-4-800x439.png 800w" sizes="auto, (max-width: 825px) 100vw, 825px" /></figure>



<p class="wp-block-paragraph">KIF được viết bằng Objective C nên các bạn cần thêm <code>-ObjC</code> vào <strong>&#8220;Other Linker Flags&#8221;</strong> trong Build Settings của Test Target</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="825" height="453" src="http://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-5.png" alt="" class="wp-image-304" srcset="https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-5.png 825w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-5-300x165.png 300w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-5-768x422.png 768w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-5-380x209.png 380w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-5-800x439.png 800w" sizes="auto, (max-width: 825px) 100vw, 825px" /></figure>



<p class="wp-block-paragraph">Ở phần này mình chỉ giới thiệu về việc thêm KIF framework vào dự án của chúng. Ở phần sau mình sẽ demo về KIF framework</p>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://blog.tomosia.com.vn/automation-test-for-ios-part-1/">Automation Test for iOS (part 1)</a> appeared first on <a href="https://blog.tomosia.com.vn">Tomoshare</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.tomosia.com.vn/automation-test-for-ios-part-1/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
		<item>
		<title>Tại sao cần phải Automation Test?</title>
		<link>https://blog.tomosia.com.vn/tai-sao-can-phai-automation-testing/</link>
					<comments>https://blog.tomosia.com.vn/tai-sao-can-phai-automation-testing/#comments</comments>
		
		<dc:creator><![CDATA[admin_tomosia]]></dc:creator>
		<pubDate>Mon, 02 Oct 2023 10:12:23 +0000</pubDate>
				<category><![CDATA[Test]]></category>
		<category><![CDATA[Automation Test]]></category>
		<guid isPermaLink="false">https://blog.tomosia.com.vn/?p=264</guid>

					<description><![CDATA[<p>Khái niệm Automation Test là gì? Tại sao cần phải sử dụng Automation Test? Làm thế nào để&#8230;</p>
<p>The post <a href="https://blog.tomosia.com.vn/tai-sao-can-phai-automation-testing/">Tại sao cần phải Automation Test?</a> appeared first on <a href="https://blog.tomosia.com.vn">Tomoshare</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="318" height="159" data-id="358" src="http://blog.tomosia.com.vn/wp-content/uploads/2023/10/Automation-Test.jpg" alt="" class="wp-image-358" srcset="https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Automation-Test.jpg 318w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Automation-Test-300x150.jpg 300w" sizes="auto, (max-width: 318px) 100vw, 318px" /></figure>
</figure>



<h2 id="khai-niem-automation-test-la-gi" class="wp-block-heading">Khái niệm Automation Test là gì?</h2>



<ul class="wp-block-list">
<li> Hiểu đơn giản là một quá trình xử lý tự động các bước thực hiện một test case và được thực hiện bởi phần mềm là Automation Testing Tool, đóng một vai trò quan trọng góp phần nâng cao năng suất kiểm thử, giảm thiểu lỗi cũng như sự nhàm chán với việc kiểm thử bằng tay trong một thời gian dài hoặc lặp đi lặp lại.<br></li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="737" height="360" src="http://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screenshot_11.png" alt="" class="wp-image-329" srcset="https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screenshot_11.png 737w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screenshot_11-300x147.png 300w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/Screenshot_11-380x186.png 380w" sizes="auto, (max-width: 737px) 100vw, 737px" /></figure>



<p class="wp-block-paragraph"><br></p>



<h2 id="tai-sao-can-phai-su-dung-automation-test" class="wp-block-heading">Tại sao cần phải sử dụng Automation Test?</h2>



<ul class="wp-block-list">
<li>Giúp tiết kiệm chi phí và thời gian trong việc thực hiện testcase.</li>



<li>Giúp test hết toàn bộ dữ liệu mà không thấy nhàm chán và mệt mỏi.</li>



<li>Giúp tăng phạm vi kiểm tra. Các tập lệnh thử nghiệm có thể tái sử dụng lại nhiều lần.</li>



<li>Kiểm thử tự động không cần đến sự can thiệp của con người. Bạn có thể chạy thử nghiệm tự động mà không cần giám sát (Đỡ phải overnight cùng dự án).</li>
</ul>



<h2 id="lam-the-nao-de-tro-thanh-mot-automation-test" class="wp-block-heading">Làm thế nào để trở thành một Automation Test?</h2>



<ul class="wp-block-list">
<li>Nắm được kiến thức về các loại Test: Unit/Integration/System/Sanity/Regression test/…. là gì?</li>



<li>Phân tích giá trị biên/Phân vùng tương đương/Biểu đồ kết quả/Đoán lỗi/… là gì?</li>



<li>Sử dụng thành thạo thư viện của Selenium WebDriver API bởi Selenium open source, dễ sử dụng, cộng đồng lớn.</li>



<li>Thành thạo ít nhất một ngôn ngữ lập trình thông dụng, hỗ trợ cho việc scripting trên test tools: Java/C#/Python/Ruby/JS/…</li>



<li>Sử dụng thành thạo ít nhất 1 framework testing: Junit/TestNG/NUnit/… từ đây sẽ giúp bạn rất nhiều trong việc build framework, hỗ trợ trong việc phân nhóm, quản lý test script, report, prepare data/environment/browsers.</li>



<li>Kỹ năng về coding/IDE: Debug, coding convention, source version control (GIT, SVN,…), cách sử dụng IDE: Visual Studio, Eclipse, IntelliJ…, làm việc với database…<br></li>
</ul>



<h2 id="cach-ban-than-da-hoc-va-ap-dung-automation-test-vao-du-an-nhu-the-nao" class="wp-block-heading">Cách bản thân đã học và áp dụng Automation Test vào dự án như thế  nào?</h2>



<ul class="wp-block-list">
<li> Setting môi trường</li>



<li>Base lập trình về ngôn ngữ Java.</li>



<li>Có kinh nghiệm về Manual Tester.</li>



<li>Thành thạo code về Selenium.</li>



<li>Bản demo: <a href="https://drive.google.com/file/d/1RHbDPky47k9l-_6RhRQczoqacHGPlSQv/view?usp=drive_link">https://drive.google.com/file/d/1RHbDPky47k9l-_6RhRQczoqacHGPlSQv/view?usp=drive_link</a></li>
</ul>



<h2 id="cai-dat-cau-hinh-selenium-java-va-eclipse-windows-os" class="wp-block-heading">Cài đặt/ cấu hình Selenium Java và Eclipse (Windows OS)</h2>



<h3 id="cai-dat-java-jdk" class="wp-block-heading has-text-align-center"><strong><strong>Cài đặt Java JDK</strong></strong></h3>



<ul class="wp-block-list">
<li>Recommend nên dùng Java version 1.8 hoặc 1.11
<ul class="wp-block-list">
<li>Download trên trang chủ:&nbsp;<a href="https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html" target="_blank" rel="noreferrer noopener">https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html</a></li>



<li>Nếu các bạn ngại đăng kí tài khoản trên Oracle thì tải file cài đặt Offline:&nbsp;<em><a href="https://drive.google.com/drive/folders/1iCTMnWFQzMrMoN2ZSZxHl4dDuIhnqztO" target="_blank" rel="noreferrer noopener">https://drive.google.com/drive/folders/1iCTMnWFQzMrMoN2ZSZxHl4dDuIhnqztO</a></em></li>



<li>Trong này mình đã để sẵn các file Offline:&nbsp;<strong>Java/ Eclipse/ Firefox/ Selenium/ Driver</strong></li>
</ul>
</li>
</ul>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" src="http://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-9.png" alt="" class="wp-image-336" style="width:680px;height:257px" width="680" height="257" srcset="https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-9.png 823w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-9-300x113.png 300w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-9-768x290.png 768w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-9-380x144.png 380w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-9-800x302.png 800w" sizes="auto, (max-width: 680px) 100vw, 680px" /></figure>



<ul class="wp-block-list">
<li>Sau khi tải về -&gt; cài đặt bình thường -&gt;&nbsp;<strong>click Next -&gt; Install</strong>&nbsp;cho đến khi hoàn tất</li>



<li>Sau khi cài đặt xong bật command line (cmd) kiểm tra version đã cài đặt thành công
<ul class="wp-block-list">
<li><em><strong>java -version</strong></em></li>
</ul>
</li>
</ul>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" src="http://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-10.png" alt="" class="wp-image-339" style="width:680px;height:218px" width="680" height="218" srcset="https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-10.png 819w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-10-300x96.png 300w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-10-768x246.png 768w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-10-380x122.png 380w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-10-800x256.png 800w" sizes="auto, (max-width: 680px) 100vw, 680px" /></figure>



<h3 id="cai-dat-java-jdk-2" class="wp-block-heading has-text-align-center"><strong><strong>Cài đặt Java JDK</strong></strong></h3>



<ul class="wp-block-list">
<li>Link download:&nbsp;<a rel="noreferrer noopener" href="https://www.eclipse.org/downloads/packages/release/" target="_blank">https://www.eclipse.org/downloads/packages/release/</a>, tùy vào hệ thống của bạn phiên bản 32/64 bit để lựa chọn cho phù hợp. Chọn bản&nbsp;<strong>Eclipse IDE for Java Developer</strong>&nbsp;là đáp ứng đủ cho nhu cầu công&nbsp;việc.</li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="816" height="442" src="http://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-11.png" alt="" class="wp-image-340" srcset="https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-11.png 816w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-11-300x163.png 300w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-11-768x416.png 768w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-11-380x206.png 380w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-11-800x433.png 800w" sizes="auto, (max-width: 816px) 100vw, 816px" /></figure>



<h3 id="tai-ve-thu-vien-selenium" class="wp-block-heading has-text-align-center"><strong>Tải về thư viện Selenium</strong></h3>



<ul class="wp-block-list">
<li>Link download:&nbsp;<a href="https://selenium-release.storage.googleapis.com/index.html?path=2.53/" target="_blank" rel="noreferrer noopener">http://selenium-release.storage.googleapis.com/index.html?path=2.53/</a></li>



<li>Chọn và tải:&nbsp;<strong>selenium-server-standalone-2.53.1.jar</strong></li>
</ul>



<h3 id="tao-du-an-java" class="wp-block-heading has-text-align-center"><strong>Tạo dự án Java</strong></h3>



<ul class="wp-block-list">
<li>Xả nén&nbsp;<strong>Elipse IDE &gt;</strong>&nbsp;chạy&nbsp;<strong>eclipse.exe</strong>&nbsp;từ bước 2 đã tải về</li>



<li>Tạo 1 thư mục ngang hàng vs thư mục eclipse – đặt tên là&nbsp;<strong>my_work_space</strong></li>



<li>Set&nbsp;<strong>workspace</strong>&nbsp;– mục đích để nếu cài đặt lại hệ thống thì eclipse sẽ tự load lại các dự án/tùy chọn bạn đã làm việc trước đó – ko cần phải cài đặt lại</li>
</ul>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" src="http://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-12.png" alt="" class="wp-image-345" style="width:680px;height:328px" width="680" height="328" srcset="https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-12.png 828w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-12-300x145.png 300w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-12-768x370.png 768w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-12-380x183.png 380w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-12-800x386.png 800w" sizes="auto, (max-width: 680px) 100vw, 680px" /></figure>



<ul class="wp-block-list">
<li>Tạo mới Project:&nbsp;<strong>File &gt; New &gt; Java Project &gt; [Đặt tên Project] &gt; Finish</strong>
<ul class="wp-block-list">
<li>Project name:&nbsp;<strong>Selenium Tutorials</strong></li>
</ul>
</li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="818" height="613" src="http://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-13.png" alt="" class="wp-image-346" srcset="https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-13.png 818w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-13-300x225.png 300w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-13-768x576.png 768w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-13-380x285.png 380w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-13-800x600.png 800w" sizes="auto, (max-width: 818px) 100vw, 818px" /></figure>



<ul class="wp-block-list">
<li>Tạo mới Package:&nbsp;<strong>Right click vào thư mục src &gt; New &gt; Package &gt; [Đặt tên Package] &gt;Finish</strong>
<ul class="wp-block-list">
<li>Package name:&nbsp;<strong>automationfc.com</strong></li>
</ul>
</li>
</ul>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" src="http://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-14.png" alt="" class="wp-image-348" style="width:679px;height:494px" width="679" height="494" srcset="https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-14.png 547w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-14-300x218.png 300w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-14-380x276.png 380w" sizes="auto, (max-width: 679px) 100vw, 679px" /></figure>



<h3 id="them-thu-vien-selenium-vao-du-an" class="wp-block-heading has-text-align-center"><strong>Thêm thư viện Selenium vào dự án</strong></h3>



<ul class="wp-block-list">
<li>Tạo mới 1 thư mục trong project để lưu trữ các java library hoặc browser driver cần dùng
<ul class="wp-block-list">
<li>Đặt tên thư mục là&nbsp;<strong>lib</strong></li>
</ul>
</li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="649" height="227" src="http://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-15.png" alt="" class="wp-image-349" srcset="https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-15.png 649w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-15-300x105.png 300w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-15-380x133.png 380w" sizes="auto, (max-width: 649px) 100vw, 649px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="742" height="517" src="http://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-16.png" alt="" class="wp-image-350" srcset="https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-16.png 742w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-16-300x209.png 300w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-16-200x140.png 200w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-16-380x265.png 380w" sizes="auto, (max-width: 742px) 100vw, 742px" /></figure>



<ul class="wp-block-list">
<li>Copy thư viện&nbsp;<strong>selenium-server-standalone-2.53.1.jar từ bước 03 ở trên</strong>dán vào thư mục&nbsp;<strong>lib</strong></li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="507" height="332" src="http://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-17.png" alt="" class="wp-image-351" srcset="https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-17.png 507w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-17-300x196.png 300w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-17-380x249.png 380w" sizes="auto, (max-width: 507px) 100vw, 507px" /></figure>



<ul class="wp-block-list">
<li><strong>Click chuột phải</strong>&nbsp;vào thư viện và&nbsp;<strong>Add</strong>&nbsp;vào&nbsp;<strong>Build Path</strong></li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="806" height="392" src="http://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-18.png" alt="" class="wp-image-352" srcset="https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-18.png 806w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-18-300x146.png 300w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-18-768x374.png 768w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-18-380x185.png 380w, https://blog.tomosia.com.vn/wp-content/uploads/2023/10/image-18-800x389.png 800w" sizes="auto, (max-width: 806px) 100vw, 806px" /></figure>
<p>The post <a href="https://blog.tomosia.com.vn/tai-sao-can-phai-automation-testing/">Tại sao cần phải Automation Test?</a> appeared first on <a href="https://blog.tomosia.com.vn">Tomoshare</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.tomosia.com.vn/tai-sao-can-phai-automation-testing/feed/</wfw:commentRss>
			<slash:comments>8</slash:comments>
		
		
			</item>
	</channel>
</rss>
