{"id":159,"date":"2024-01-05T15:33:14","date_gmt":"2024-01-05T14:33:14","guid":{"rendered":"https:\/\/sii.ua\/blog\/?p=159"},"modified":"2024-02-16T18:28:23","modified_gmt":"2024-02-16T17:28:23","slug":"can-ai-chatgpt-be-helpful-in-testing","status":"publish","type":"post","link":"https:\/\/sii.ua\/blog\/en\/can-ai-chatgpt-be-helpful-in-testing\/","title":{"rendered":"Can AI (ChatGPT) be helpful in testing?"},"content":{"rendered":"\n<p>Lately there is a lot of talk on using the artificial intelligence in many fields. Recently social media were flooded with a wave of graphics generated by AI (Artificial Intelligence) \u2013 among others by the Lens application. Therefore, it is an interesting topic to explore in the context of using this technology for testing.<\/p>\n\n\n\n<p>In the article I will be covering the usage of the AI in testing, concentrating on the ChatGPT tool. In the text you will find a couple questions and issues related to testing and I will present how ChatGPT reacted to them. I will check the AI responses concerning i.e.:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Creating test cases,<\/li>\n\n\n\n<li>Automated testing,<\/li>\n\n\n\n<li>Accessibility.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>What is ChatGPT?<\/strong><\/h2>\n\n\n\n<p>Let\u2019s ask ChatGPT itself what it is and what sources it uses to give responses:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><a href=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Fig.-1-1-1.png\"><img decoding=\"async\" width=\"516\" height=\"478\" src=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Fig.-1-1-1.png\" alt=\"\" class=\"wp-image-168\" srcset=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Fig.-1-1-1.png 516w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Fig.-1-1-1-300x278.png 300w\" sizes=\"(max-width: 516px) 100vw, 516px\" \/><\/a><figcaption class=\"wp-element-caption\">Fig. 1 What is ChatGPT and what sources it uses \u2013 AI response<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Applying AI in testing<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Test cases<\/strong><\/h3>\n\n\n\n<p>Let\u2019s begin with the issue, which most of the testers encounter at the beginning of their career path. Let\u2019s see how ChatGPT deals with two questions regarding the creation of test cases. I asked ChatGPT about logging to a webpage and a mobile app test cases. You can see the responses below.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.2.png\"><img decoding=\"async\" width=\"1024\" height=\"702\" src=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.2-1024x702.png\" alt=\"\" class=\"wp-image-170\" srcset=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.2-1024x702.png 1024w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.2-300x206.png 300w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.2-768x526.png 768w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.2-1536x1053.png 1536w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.2.png 1792w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Fig. 2 ChatGPT response to the question regarding creating a test case for logging to a webpage<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.3.png\"><img decoding=\"async\" width=\"1014\" height=\"1024\" src=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.3-1014x1024.png\" alt=\"\" class=\"wp-image-172\" srcset=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.3-1014x1024.png 1014w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.3-297x300.png 297w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.3-150x150.png 150w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.3-768x775.png 768w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.3.png 1446w\" sizes=\"(max-width: 1014px) 100vw, 1014px\" \/><\/a><figcaption class=\"wp-element-caption\">Fig. 3 ChatGPT response to the question regarding creating a test case for mobile ap<\/figcaption><\/figure>\n\n\n\n<p>Currently I am working on a mobile app project in a medical market. That is why I have added more details to the query above.<\/p>\n\n\n\n<p>Here is the result:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><a href=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/4-1.png\"><img decoding=\"async\" width=\"407\" height=\"145\" src=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/4-1.png\" alt=\"\" class=\"wp-image-174\" srcset=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/4-1.png 407w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/4-1-300x107.png 300w\" sizes=\"(max-width: 407px) 100vw, 407px\" \/><\/a><figcaption class=\"wp-element-caption\">Fig. 4 ChatGPT response to the question regarding creating a test case for medical services mobile app<\/figcaption><\/figure>\n\n\n\n<p>ChatGPT\u2019s response was surprising to me, because &#8211; apart from a couple differences \u2013 I could use this test case in the project.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Questions on automated tests<\/strong><\/h3>\n\n\n\n<p>We will now look at how AI will deal with a harder subject regarding automated tests.<\/p>\n\n\n\n<p>Let\u2019s begin with something easier, so a query on how to open a webpage using Selenium.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.5.png\"><img decoding=\"async\" width=\"1024\" height=\"569\" src=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.5-1024x569.png\" alt=\"\" class=\"wp-image-176\" srcset=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.5-1024x569.png 1024w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.5-300x167.png 300w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.5-768x426.png 768w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.5-1536x853.png 1536w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.5.png 2028w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Fig. 5 ChatGPT response to the question regarding opening a webpage in Selenium<\/figcaption><\/figure>\n\n\n\n<p>The code above can be considered correct for the Python language.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><a href=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/6-1.png\"><img decoding=\"async\" width=\"564\" height=\"72\" src=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/6-1.png\" alt=\"\" class=\"wp-image-178\" srcset=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/6-1.png 564w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/6-1-300x38.png 300w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/6-1-555x72.png 555w\" sizes=\"(max-width: 564px) 100vw, 564px\" \/><\/a><figcaption class=\"wp-element-caption\">Fig. 6 Example of Selenium documentation<\/figcaption><\/figure>\n\n\n\n<p>We did not specify the name of any programming language in our query. Let\u2019s see what happens when we specify it and indicate a specific language.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.7.png\"><img decoding=\"async\" width=\"1024\" height=\"930\" src=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.7-1024x930.png\" alt=\"\" class=\"wp-image-180\" srcset=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.7-1024x930.png 1024w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.7-300x273.png 300w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.7-768x698.png 768w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.7-1536x1396.png 1536w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.7.png 1664w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Fig. 7 ChatGPT response to the question regarding opening a webpage in Selenium in Java<\/figcaption><\/figure>\n\n\n\n<p>I have checked if the above code works. Below is the result:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.8.png\"><img decoding=\"async\" width=\"1024\" height=\"629\" src=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.8-1024x629.png\" alt=\"\" class=\"wp-image-182\" srcset=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.8-1024x629.png 1024w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.8-300x184.png 300w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.8-768x472.png 768w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.8-1536x944.png 1536w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.8-2048x1259.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Fig. 8 Example of running the code generated by ChatGPT<\/figcaption><\/figure>\n\n\n\n<p>I did not have any problem with running the above code, and the outcome was as expected, which is <a href=\"https:\/\/sii.pl\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\" class=\"ek-link\">Sii website<\/a> has been properly opened in the browser.&nbsp;<\/p>\n\n\n\n<p>Of course, we can continue to improve our query. Below I have modified it, so that ChatGPT tries to verify if the webpage title is correct.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.9.png\"><img decoding=\"async\" width=\"873\" height=\"1024\" src=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.9-873x1024.png\" alt=\"\" class=\"wp-image-184\" srcset=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.9-873x1024.png 873w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.9-256x300.png 256w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.9-768x901.png 768w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.9-1309x1536.png 1309w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.9.png 1396w\" sizes=\"(max-width: 873px) 100vw, 873px\" \/><\/a><figcaption class=\"wp-element-caption\">Fig. 9 ChatGPT response to the question regarding opening a webpage in Selenium and verifying the webpage title<\/figcaption><\/figure>\n\n\n\n<p>Naturally, in real life we should not use such code \u2013 instead use an <strong>assertion<\/strong>. Therefore, now will ask ChatGPT for an assertion.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.10.png\"><img decoding=\"async\" width=\"904\" height=\"1024\" src=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.10-904x1024.png\" alt=\"\" class=\"wp-image-186\" srcset=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.10-904x1024.png 904w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.10-265x300.png 265w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.10-768x870.png 768w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.10-1356x1536.png 1356w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.10.png 1404w\" sizes=\"(max-width: 904px) 100vw, 904px\" \/><\/a><figcaption class=\"wp-element-caption\">Fig. 10 ChatGPT response to the question regarding opening a webpage in Selenium and verifying the webpage title with the use of an assertion<\/figcaption><\/figure>\n\n\n\n<p>In the examples above ChatGPT has no problem with indicating libraries, which should be imported for the code to work properly. Still, I was surprised with the fact, that the tool has also managed to prepare the code with the inclusion of assertion in TestNG.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Question on Robot Framework<\/strong><\/h3>\n\n\n\n<p>Unfortunately, ChatGPT not always generates response in such a way. In case of a query regarding Robot Framework, the tool did not indicate the necessary library to import.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><a href=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/11-1.png\"><img decoding=\"async\" width=\"846\" height=\"643\" src=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/11-1.png\" alt=\"\" class=\"wp-image-188\" srcset=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/11-1.png 846w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/11-1-300x228.png 300w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/11-1-768x584.png 768w\" sizes=\"(max-width: 846px) 100vw, 846px\" \/><\/a><figcaption class=\"wp-element-caption\">Fig. 11 ChatGPT response to the question regarding opening a webpage in Robot Framework<\/figcaption><\/figure>\n\n\n\n<p>In this case the SeleniumLibrary should be imported.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong><strong>Questions on Selenium, Cypress and Playwright<\/strong><\/strong><\/h3>\n\n\n\n<p>In case of Selenium the most frequently asked question concerns the differences between implicit wait and explicit wait. Therefore, it is worth checking if artificial intelligence will handle that issue.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.12.png\"><img decoding=\"async\" width=\"1024\" height=\"992\" src=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.12-1024x992.png\" alt=\"\" class=\"wp-image-190\" srcset=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.12-1024x992.png 1024w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.12-300x291.png 300w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.12-768x744.png 768w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.12.png 1272w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Fig. 12 ChatGPT response to the question regarding the difference between implicit wait and explicit wait<\/figcaption><\/figure>\n\n\n\n<p>I leave the evaluation of this response to you  <a aria-label=\" (opens in a new tab)\" class=\"ek-link\" href=\"https:\/\/www.selenium.dev\/documentation\/webdriver\/waits\/\" target=\"_blank\" rel=\"noreferrer noopener\" rel=\"nofollow\" >An excerpt from the documentation on this issue<\/a> may help you with it.<\/p>\n\n\n\n<p>ChatGPT is able to respond to even more complicated queries:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.13.png\"><img decoding=\"async\" width=\"536\" height=\"1024\" src=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.13-536x1024.png\" alt=\"\" class=\"wp-image-192\" srcset=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.13-536x1024.png 536w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.13-157x300.png 157w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.13-768x1466.png 768w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.13-805x1536.png 805w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.13-1073x2048.png 1073w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.13.png 1296w\" sizes=\"(max-width: 536px) 100vw, 536px\" \/><\/a><figcaption class=\"wp-element-caption\">Fig. 13 ChatGPT response to the question regarding opening a webpage in Selenium with the use f PageObject Pattern<\/figcaption><\/figure>\n\n\n\n<p>A tester does not live by Selenium alone  Nowadays, Cypress is also frequently used and Playwright framework is gaining popularity. Can ChatGPT be helpful in this case?<\/p>\n\n\n\n<p>In case of Cypress the code generated by the tool was working and performed the test correctly:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ndescribe(&#039;www.sii.pl&#039;, () =&gt; {\n  it(&#039;should open the homepage&#039;, () =&gt; {\n    cy.visit(&#039;https:\/\/www.sii.pl&#039;);\n    \/\/ Assert that the page has loaded successfully\n    cy.title().should(&#039;eq&#039;, &#039;Strona g\u0142\u00f3wna - SII&#039;);\n  });\n});\n<\/pre><\/div>\n\n\n<p>Example:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.14.png\"><img decoding=\"async\" width=\"1024\" height=\"578\" src=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.14-1024x578.png\" alt=\"\" class=\"wp-image-194\" srcset=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.14-1024x578.png 1024w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.14-300x169.png 300w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.14-768x434.png 768w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.14-1536x867.png 1536w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.14-2048x1157.png 2048w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.14-555x312.png 555w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Fig. 14 Example of running the code, which ChatGPT generated for Cypress<\/figcaption><\/figure>\n\n\n\n<p>Unfortunately, the situation was not that colorful in case of Playwright. ChatGPT prepared the following code for me:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nconst { chromium } = require(&#039;playwright&#039;);\ndescribe(&#039;www.sii.pl&#039;, () =&gt; {\n  it(&#039;should open the homepage&#039;, async () =&gt; {\n    const browser = await chromium.launch();\n    const page = await browser.newPage();\n    await page.goto(&#039;https:\/\/www.sii.pl&#039;);\n    \/\/ Assert that the page has loaded successfully\n    expect(await page.title()).toEqual(&#039;Strona g\u0142\u00f3wna - SII&#039;);\n    await browser. Close();\n  });\n});\n<\/pre><\/div>\n\n\n<p>Taking into consideration the format, which ChatGPT has adopted, in my opinion the code should look like this:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nimport { test, expect } from &#039;@playwright\/test&#039;\ntest.describe.only(&#039;www.sii.pl&#039;, () =&gt; {\n  test(&#039;should open the homepage&#039;, async ({ page }) =&gt; {\n    await page.goto(&#039;https:\/\/www.sii.pl&#039;);\n    \/\/ Assert that the page has loaded successfully\n    expect(await page.title()).toEqual(&#039;Strona g\u0142\u00f3wna - SII&#039;);\n  })\n})\n<\/pre><\/div>\n\n\n<p>Of course, in my research I have also checked other issues concerning automated tests and programming, including queries regarding:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Appium,<\/li>\n\n\n\n<li>HTML,<\/li>\n\n\n\n<li>JavaScript.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>ChatGPT and the issue of accessibility<\/strong><\/h2>\n\n\n\n<p>For some time now I have been very interested in the topic of the accessibility. The WCAG standards are connected with that topic.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img decoding=\"async\" width=\"749\" height=\"1024\" src=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.15-749x1024-1.png\" alt=\"\" class=\"wp-image-196\" srcset=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.15-749x1024-1.png 749w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.15-749x1024-1-219x300.png 219w\" sizes=\"(max-width: 749px) 100vw, 749px\" \/><figcaption class=\"wp-element-caption\">Fig 15. ChatGPT response to the question regarding accessibility in accordance with WCAG standards<\/figcaption><\/figure>\n\n\n\n<p>ChatGPT responds in different languages. For me, the response in Polish was surprising. I also think, that creating web content accessible also for infants is very hard <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.16.png\"><img decoding=\"async\" width=\"1024\" height=\"904\" src=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.16-1024x904.png\" alt=\"\" class=\"wp-image-198\" srcset=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.16-1024x904.png 1024w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.16-300x265.png 300w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.16-768x678.png 768w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.16-1536x1355.png 1536w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.16.png 1608w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Fig. 16 ChatGPT response which recommends creating the content in accordance with WCAG standard, accessible i.e. for infants (PL)<\/figcaption><\/figure>\n\n\n\n<p>Of course, also in the case of A11Y (accessibility) we can ask more specific questions.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.17.png\"><img decoding=\"async\" width=\"1024\" height=\"698\" src=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.17-1024x698.png\" alt=\"\" class=\"wp-image-200\" style=\"object-fit:cover\" srcset=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.17-1024x698.png 1024w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.17-300x205.png 300w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.17-768x524.png 768w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.17.png 1358w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Fig. 17 ChatGPT response to the question regarding adding an aria label in HTML<\/figcaption><\/figure>\n\n\n\n<p>It should be mentioned here that ChatGPT does not always work as expected. In the example above, I asked the question in English and the answer was given in Polish.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong><strong>Controversies concerning AI<\/strong><\/strong><\/h2>\n\n\n\n<p>The main goal of the article was to present AI possibilities in the context of testing, however I think that the controversies concerning artificial intelligence are worth mentioning.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong><strong>Copyrights<\/strong><\/strong><\/h3>\n\n\n\n<p>Media and authors report, that AI very often uses <a href=\"https:\/\/sfstandard.com\/arts-culture\/do-ai-generated-art-apps-like-lensa-steal-from-artists-experts-say-its-up-for-debate\/\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\" class=\"ek-link\" rel=\"nofollow\" >other people\u2019s work<\/a>. Midjourney creator <a href=\"https:\/\/www.forbes.com\/sites\/robsalkowitz\/2022\/09\/16\/midjourney-founder-david-holz-on-the-impact-of-ai-on-art-imagination-and-the-creative-economy\/?sh=2a5250b52d2b\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\" class=\"ek-link\" rel=\"nofollow\" >said to the Forbes magazine:<\/a><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><em>There isn\u2019t really a way to get a hundred million images and know where they\u2019re coming from. It would be cool if images had metadata embedded in them about the copyright owner or something. But that&#8217;s not a thing; there&#8217;s not a registry. There\u2019s no way to find a picture on the Internet, and then automatically trace it to an owner and then have any way of doing anything to authenticate it.<\/em><\/p>\n<\/blockquote>\n\n\n\n<p>From these words, in my opinion, confirmation of the use of other people\u2019s works by artificial intelligence can be deducted. It has a particular significance in the context of the yet <a href=\"https:\/\/www.polygon.com\/23558946\/ai-art-lawsuit-stability-stable-diffusion-deviantart-midjourney\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\" class=\"ek-link\" rel=\"nofollow\" >another case of right infringement of millions of creators<\/a>, who decided to file a class action lawsuit.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong><strong>Education and critical thinking<\/strong><\/strong><\/h3>\n\n\n\n<p>Schools in New York have <a href=\"https:\/\/edition.cnn.com\/2023\/01\/05\/tech\/chatgpt-nyc-school-ban\/index.html\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\" class=\"ek-link\" rel=\"nofollow\" >restricted access to ChatGPT<\/a>. Below are the words of Jenny Lyle, spokesperson for the U.S. Department of Education:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><em>Due to concerns about negative impacts on student learning, and concerns regarding the safety and accuracy of content, access to ChatGPT is restricted on New York City Public Schools\u2019 networks and devices.\u201d<\/em><\/p>\n<\/blockquote>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><em>While the tool may be able to provide quick and easy answers to questions, it does not build critical-thinking and problem-solving skills, which are essential for academic and lifelong success<\/em>.<\/p>\n<\/blockquote>\n\n\n\n<p>I do agree with these words. I live in a city without access to any sea or lake, and ChatGPT tries to convince me, that there are beautiful beaches in Reda.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.18.jpeg\"><img decoding=\"async\" width=\"1024\" height=\"828\" src=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.18-1024x828.jpeg\" alt=\"\" class=\"wp-image-202\" srcset=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.18-1024x828.jpeg 1024w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.18-300x243.jpeg 300w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.18-768x621.jpeg 768w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Ryc.18.jpeg 1123w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">Fig. 18 ChatGPT response to the question about Reda town<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Can AI be relied upon?<\/strong><\/h2>\n\n\n\n<p>Questions arise:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Can AI replace a human being?<\/li>\n\n\n\n<li>Can responses generated by these tools be trusted?<\/li>\n<\/ul>\n\n\n\n<p>Programs using artificial intelligence still often give wrong answers or provide outdated information.<\/p>\n\n\n\n<p>Above, I have presented and example of the code, that needed to be corrected in order to work, as well as a response, in which ChatGPT proposed ensuring website accessibility to infants.<\/p>\n\n\n\n<p>In my history of using the tool I have also probably encountered a situation of providing outdated information. I asked about differences between Cypress and Playwright. The response was as follows:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Playwright supports a wider range of browsers than Cypress, including Chromium (used by Google Chrome), Firefox, and WebKit (used by Safari). Cypress currently only supports Chromium.<\/p>\n<\/blockquote>\n\n\n\n<p>I decided to look into that response and verify it. On the official website, Cypress informs about the support of many browsers and engines, i.e.: Chrome, Firefox, Edge, Webkit. In this case, we may be dealing with a ChatGPT limitation. ChatGPT contains information until 2021.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><a href=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/20-1.png\"><img decoding=\"async\" width=\"458\" height=\"646\" src=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/20-1.png\" alt=\"\" class=\"wp-image-204\" srcset=\"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/20-1.png 458w, https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/20-1-213x300.png 213w\" sizes=\"(max-width: 458px) 100vw, 458px\" \/><\/a><figcaption class=\"wp-element-caption\">Fig. 19 ChatGPT limitations<\/figcaption><\/figure>\n\n\n\n<p>Therefore, it is a confirmation, that a human and their control are essential.<\/p>\n\n\n\n<p>Other IT areas are also considering the possibilities of using AI in their work. On YouTube you can find materials on the use of artificial intelligence in the process of creating a <a href=\"https:\/\/www.youtube.com\/watch?v=8I3NTE4cn5s\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\" class=\"ek-link\" rel=\"nofollow\" >website<\/a> or <a href=\"https:\/\/www.youtube.com\/watch?v=Pi-5_eid7VA\" target=\"_blank\" aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\" class=\"ek-link\" rel=\"nofollow\" >application<\/a>. It is worth looking into what they say.<\/p>\n\n\n\n<figure class=\"wp-block-embed aligncenter is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"How to use AI Art and ChatGPT to Create a Insane Web Designs\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/8I3NTE4cn5s?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<figure class=\"wp-block-embed aligncenter is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"ChatGPT just built my entire app in minutes...\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/Pi-5_eid7VA?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Summary<\/strong><\/h2>\n\n\n\n<p>In my opinion artificial intelligence can only be used as a support in daily work of, for example a tester, and we should not rely on it immensely. Data obtained through AI should be verified and approached with great caution. I am a big opponent of creating content based on ChatGPT responses on a copy\/paste basis.<\/p>\n\n\n\n<p>An open issue is still the question of ethics and copyrights. To me it seems that it is something we have to face in the next few years. In relation to the above doubts, I believe that AI cannot replace a human being.<\/p>\n\n\n\n<p><\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-left kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;left&quot;,&quot;id&quot;:&quot;159&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;2&quot;,&quot;greet&quot;:&quot;&quot;,&quot;legend&quot;:&quot;0\\\/5&quot;,&quot;size&quot;:&quot;30&quot;,&quot;title&quot;:&quot;Can AI (ChatGPT) be helpful in testing?&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/5&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 2px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 2px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 2px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 2px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 2px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 2px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 2px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 2px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 2px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 2px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 30px; height: 30px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 24px;\">\n            <span class=\"kksr-muted\"><\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>Lately there is a lot of talk on using the artificial intelligence in many fields. Recently social media were flooded &hellip; <a class=\"continued-btn\" href=\"https:\/\/sii.ua\/blog\/en\/can-ai-chatgpt-be-helpful-in-testing\/\">Continued<\/a><\/p>\n","protected":false},"author":30,"featured_media":166,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_editorskit_title_hidden":false,"_editorskit_reading_time":0,"_editorskit_is_block_options_detached":false,"_editorskit_block_options_position":"{}","inline_featured_image":false,"footnotes":""},"categories":[11],"tags":[12,45,43,44],"class_list":["post-159","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-testing","tag-accessibility-2","tag-ai","tag-automated-tests","tag-chatgpt"],"acf":[],"aioseo_notices":[],"featured_media_url":"https:\/\/sii.ua\/blog\/wp-content\/uploads\/2024\/01\/Czy-AI-ChatGPT-moze-byc-pomocna-w-testowaniu.jpg","category_names":["Testing"],"_links":{"self":[{"href":"https:\/\/sii.ua\/blog\/en\/wp-json\/wp\/v2\/posts\/159"}],"collection":[{"href":"https:\/\/sii.ua\/blog\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sii.ua\/blog\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sii.ua\/blog\/en\/wp-json\/wp\/v2\/users\/30"}],"replies":[{"embeddable":true,"href":"https:\/\/sii.ua\/blog\/en\/wp-json\/wp\/v2\/comments?post=159"}],"version-history":[{"count":7,"href":"https:\/\/sii.ua\/blog\/en\/wp-json\/wp\/v2\/posts\/159\/revisions"}],"predecessor-version":[{"id":1018,"href":"https:\/\/sii.ua\/blog\/en\/wp-json\/wp\/v2\/posts\/159\/revisions\/1018"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sii.ua\/blog\/en\/wp-json\/wp\/v2\/media\/166"}],"wp:attachment":[{"href":"https:\/\/sii.ua\/blog\/en\/wp-json\/wp\/v2\/media?parent=159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sii.ua\/blog\/en\/wp-json\/wp\/v2\/categories?post=159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sii.ua\/blog\/en\/wp-json\/wp\/v2\/tags?post=159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}