<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Danielprem</title>
    <description>The latest articles on DEV Community by Danielprem (@danielprem_b4cd894e6c6051).</description>
    <link>https://dev.to/danielprem_b4cd894e6c6051</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2234382%2F456d5fdd-7941-4e47-90b8-b4864660ff53.png</url>
      <title>DEV Community: Danielprem</title>
      <link>https://dev.to/danielprem_b4cd894e6c6051</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/danielprem_b4cd894e6c6051"/>
    <language>en</language>
    <item>
      <title>PAT TASK-1</title>
      <dc:creator>Danielprem</dc:creator>
      <pubDate>Sat, 29 Mar 2025 08:54:05 +0000</pubDate>
      <link>https://dev.to/danielprem_b4cd894e6c6051/pat-task-1-3n24</link>
      <guid>https://dev.to/danielprem_b4cd894e6c6051/pat-task-1-3n24</guid>
      <description>&lt;p&gt;&lt;strong&gt;Software Testing :&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Software Testing is the process of finding bugs in the software and verifying its functionality against the client’s requirements.&lt;/li&gt;
&lt;li&gt;It ensures that the software functions as expected and meets the specified requirements before deployment.&lt;/li&gt;
&lt;li&gt;Execution of a program with the indent of finding bugs is called software testing.&lt;/li&gt;
&lt;li&gt;Testing can be manual or automated, and it plays a crucial role in maintaining software quality.&lt;/li&gt;
&lt;li&gt;Software testing is done to improve the quality of the software &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Why is Software Testing Important?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;u&gt;Ensures Quality&lt;/u&gt;: Testing helps detect bugs early, preventing faulty software from reaching users.&lt;/p&gt;

&lt;p&gt;&lt;u&gt;Reduces Cost&lt;/u&gt;: Fixing issues during development is cheaper than post-release fixes.&lt;/p&gt;

&lt;p&gt;&lt;u&gt;Improves User Satisfaction&lt;/u&gt;: A well-tested product provides a smooth user experience.&lt;/p&gt;

&lt;p&gt;&lt;u&gt;Ensures Compliance&lt;/u&gt;: Helps meet regulatory or security standards.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Example&lt;/em&gt;: Imagine using a banking app that fails during a money transfer. Testing prevents such issues by checking for errors beforehand.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Types of Testing :&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Manual Testing :
Performed by a tester manually without using any automation tools.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;Example&lt;/em&gt;: Checking if the login button on a website works properly by manually entering different credentials.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Automation Testing :
Uses tools to run tests automatically and repeatedly.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;Example&lt;/em&gt;: Using Selenium to check if an e-commerce site correctly displays product prices every time the page loads.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Profiles of Testing:&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;&lt;u&gt;White Box Testing&lt;/u&gt;: Done by developers. It involves checking the internal code and logic.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Example&lt;/em&gt;: Verifying that a loop runs exactly 5 times in a piece of code.&lt;/p&gt;

&lt;p&gt;&lt;u&gt;Black Box Testing&lt;/u&gt;: Done by testers without knowing the code. Focuses on input and output.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Example&lt;/em&gt;: Entering a valid username and password and checking if the user logs in successfully.&lt;/p&gt;

&lt;p&gt;&lt;u&gt;Grey Box Testing&lt;/u&gt;: Combination of both white and black box testing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Levels of Testing :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;u&gt;Unit Testing:&lt;/u&gt; Tests individual components.&lt;br&gt;
&lt;em&gt;Example&lt;/em&gt;: Testing a calculator’s Add function alone.&lt;/p&gt;

&lt;p&gt;&lt;u&gt;Integration Testing:&lt;/u&gt; Ensures different modules work together.&lt;br&gt;
&lt;em&gt;Example&lt;/em&gt;: Ensuring the login and dashboard work smoothly together.&lt;/p&gt;

&lt;p&gt;&lt;u&gt;System Testing:&lt;/u&gt; Tests the complete system as a whole.&lt;br&gt;
&lt;em&gt;Example&lt;/em&gt;: Running tests on the full website to ensure everything functions.&lt;/p&gt;

&lt;p&gt;&lt;u&gt;User Acceptance Testing (UAT):&lt;/u&gt; Ensures the software meets user expectations.&lt;br&gt;
&lt;em&gt;Example&lt;/em&gt;: A client tries the software and approves it for use.&lt;/p&gt;

&lt;p&gt;&lt;u&gt;Performance Testing:&lt;/u&gt; Testing the stability and response time of an application.&lt;br&gt;
&lt;em&gt;Example&lt;/em&gt;: You're testing an online shopping website during a festive sale.&lt;br&gt;
*Does the site load within 2 seconds?&lt;br&gt;
*Does it crash or slow down when multiple people place orders?&lt;br&gt;
*Is the payment gateway responsive under load?&lt;br&gt;
This helps ensure the website performs well even during traffic spikes.&lt;/p&gt;

&lt;p&gt;&lt;u&gt;Smoke Testing:&lt;/u&gt; Testing the basic functionality of an application.&lt;br&gt;
&lt;em&gt;Example&lt;/em&gt;: Checking log in functionality using valid credentials.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Functional vs Non-Functional Testing&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;u&gt;Functional Testing:&lt;/u&gt; Checks what the system does.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Example&lt;/em&gt;: Verifying if the search bar returns correct results.&lt;/p&gt;

&lt;p&gt;&lt;u&gt;Non-Functional Testing:&lt;/u&gt; Checks how the system performs.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Example&lt;/em&gt;: Measuring how fast a website loads during peak hours.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Bug and Defect&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;u&gt;Defect&lt;/u&gt;: A deviation from expected requirements.&lt;/p&gt;

&lt;p&gt;&lt;u&gt;Bug&lt;/u&gt;: Informal term for defect found during testing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Software Testing Life Cycle (STLC):&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;1.Requirement Analysis&lt;/p&gt;

&lt;p&gt;2.Test Planning&lt;/p&gt;

&lt;p&gt;3.Test Case Development&lt;/p&gt;

&lt;p&gt;4.Test Environment Setup&lt;/p&gt;

&lt;p&gt;5.Test Execution&lt;/p&gt;

&lt;p&gt;6.Test Closure&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Bug Life Cycle :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;New - Open - In Progress - Fixed - Retest - Closed/Reopened&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Testing Tools :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Automation: Selenium&lt;/p&gt;

&lt;p&gt;Defect Tracking: JIRA&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conclusion :&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Software Testing is not just about finding bugs. It ensures the final product is reliable, performs well, and provides a good user experience. Whether done manually or through automation, testing plays a key role in building trust with users and stakeholders.&lt;/p&gt;

</description>
      <category>softwaretesting</category>
    </item>
    <item>
      <title>Problem solving TASK - 2</title>
      <dc:creator>Danielprem</dc:creator>
      <pubDate>Tue, 12 Nov 2024 06:09:49 +0000</pubDate>
      <link>https://dev.to/danielprem_b4cd894e6c6051/problem-solving-task-2-74n</link>
      <guid>https://dev.to/danielprem_b4cd894e6c6051/problem-solving-task-2-74n</guid>
      <description>&lt;h1&gt;
  
  
  1. Total number of vowels and count of each vowel in the given string
&lt;/h1&gt;

&lt;p&gt;text = "Guvi Geeks Network Private Limited"&lt;br&gt;
vowels = {'A':0,'E':0,'I':0,'O':0,'U':0}&lt;br&gt;
text = text.upper()&lt;/p&gt;

&lt;p&gt;for i in text:&lt;br&gt;
    if i in vowels:&lt;br&gt;
        vowels[i] += 1&lt;/p&gt;

&lt;p&gt;total_vowels = sum(vowels.values())&lt;/p&gt;

&lt;p&gt;print("Count of each vowel : ",vowels)&lt;br&gt;
print("Total number of vowels : ",total_vowels)&lt;/p&gt;

&lt;h1&gt;
  
  
  2. Pyramid of numbers from 1 to 20 using for loop
&lt;/h1&gt;

&lt;p&gt;n = 20&lt;br&gt;
strt = 1&lt;br&gt;
rows = 6&lt;/p&gt;

&lt;p&gt;for i in range(1,rows + 1):&lt;br&gt;
    for j in range(i):&lt;br&gt;
       if strt &amp;lt;= n:&lt;br&gt;
        print(strt, end=" ")&lt;br&gt;
        strt += 1&lt;br&gt;
       else:&lt;br&gt;
           break&lt;br&gt;
    print()&lt;/p&gt;

&lt;h1&gt;
  
  
  3. Write a program that takes a string and returns  a new string with all the vowels removed
&lt;/h1&gt;

&lt;p&gt;oldstr = input("Enter the string: ")&lt;br&gt;
vowels1 = ('a','e','i','o','u')&lt;br&gt;
oldstr = oldstr.lower()&lt;br&gt;
newstr = ""&lt;/p&gt;

&lt;p&gt;for i in oldstr:&lt;br&gt;
    if i not in vowels1:&lt;br&gt;
        newstr += i&lt;/p&gt;

&lt;p&gt;print("Non-vowel string : ",newstr)&lt;/p&gt;

&lt;h1&gt;
  
  
  4. Write a program that takes a string and returns the number of unique characters in it
&lt;/h1&gt;

&lt;p&gt;str2 = input("Enter the string: ")&lt;br&gt;
str2 = str2.lower()&lt;br&gt;
str2 = str2.replace(" ","")&lt;br&gt;
myset = set(str2)&lt;br&gt;
print("number of unique characters :" ,len(myset))&lt;/p&gt;

&lt;h1&gt;
  
  
  5. Write a program that takes a string and returns true if it is a palindrome or false otherwise
&lt;/h1&gt;

&lt;p&gt;mystr = input("Enter the string: ")&lt;br&gt;
mystr = mystr.lower().replace(" ","")&lt;br&gt;
rev_mystr = mystr[::-1]&lt;br&gt;
if mystr == rev_mystr:&lt;br&gt;
    print(True)&lt;br&gt;
else:&lt;br&gt;
    print(False)&lt;/p&gt;

&lt;h1&gt;
  
  
  7. Write a program that takes a string and returns the most frequent character in it
&lt;/h1&gt;

&lt;p&gt;txt = input("Enter the string: ")&lt;br&gt;
txt = txt.lower().replace(" ","")&lt;br&gt;
frequency = {}&lt;/p&gt;

&lt;p&gt;for i in txt:&lt;br&gt;
    if i not in frequency:&lt;br&gt;
        frequency[i] = 1&lt;br&gt;
    else:&lt;br&gt;
        frequency[i] += 1&lt;/p&gt;

&lt;p&gt;max_char = max(frequency,key=frequency.get)&lt;br&gt;
print("Most frequent character:",max_char)&lt;/p&gt;

&lt;h1&gt;
  
  
  8. Write a program that takes a string and returns true if its an anagram of another string or false otherwise
&lt;/h1&gt;

&lt;p&gt;str_x = input("Enter the string: ")&lt;br&gt;
str_y = input("Enter the another string: ")&lt;br&gt;
str_x = str_x.lower().replace(" ","")&lt;br&gt;
str_y = str_y.lower().replace(" ","")&lt;br&gt;
sorted_x = sorted(str_x)&lt;br&gt;
sorted_y = sorted(str_y)&lt;br&gt;
if sorted_x == sorted_y :&lt;br&gt;
    print(True)&lt;br&gt;
else:&lt;br&gt;
    print(False)&lt;/p&gt;

&lt;h1&gt;
  
  
  9. Write a program that takes a string and returns the number of words in it
&lt;/h1&gt;

&lt;p&gt;str1 = input("Enter the string: ")&lt;br&gt;
str = str1.split()&lt;br&gt;
print("Number of words :",len(str))&lt;/p&gt;

</description>
      <category>python</category>
    </item>
    <item>
      <title>Software Testing</title>
      <dc:creator>Danielprem</dc:creator>
      <pubDate>Sat, 19 Oct 2024 13:45:45 +0000</pubDate>
      <link>https://dev.to/danielprem_b4cd894e6c6051/software-testing-4o18</link>
      <guid>https://dev.to/danielprem_b4cd894e6c6051/software-testing-4o18</guid>
      <description>&lt;p&gt;Software Testing is the process of finding bugs in the software and verifying its functionality against the client’s requirements.&lt;/p&gt;

&lt;p&gt;We must know the purpose , types  and methodologies of software testing to acquire essential information about the role and aspects of a software tester.&lt;/p&gt;

&lt;p&gt;Software testing is relevant to ensure and improve the quality of the software and to check the stability and its performance according to client’s expectations.&lt;/p&gt;

</description>
      <category>softwaretesting</category>
    </item>
  </channel>
</rss>
