Showing posts with label software testing. Show all posts
Showing posts with label software testing. Show all posts

NetBeans IDE with Selenium and Chrome Driver - installation and setup

Trabla: NetBeans IDE with Selenium and Chrome Driver - installation and setup ( QA / Software Testing Automation )

NetBeans IDE with Selenium and Chrome Driver - installation and setup

NetBeans is an integrated development environment (IDE) for Java. NetBeans allows applications to be developed from a set of modular software components called modules. NetBeans runs on Microsoft Windows, macOS, Linux and Solaris. In addition to Java development, it has extensions for other languages like PHP, C, C++ and HTML5., Javadoc and Javascript. Applications based on NetBeans, including the NetBeans IDE, can be extended by third party developers

Selenium is a portable software-testing framework for web applications. Selenium provides a playback (formerly also recording) tool for authoring tests without the need to learn a test scripting language (Selenium IDE). It also provides a test domain-specific language (Selenese) to write tests in a number of popular programming languages, including C#, Groovy, Java, Perl, PHP, Python, Ruby and Scala. The tests can then run against most modern web browsers. Selenium deploys on Windows, Linux, and macOS platforms. It is open-source software, released under the Apache 2.0 license


Solving:


1. Download and install latest Java Development Kit ( JDK )


- goto Oracle Java Development Kit ( JDK ) official site :
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

NetBeans IDE with Selenium and Chrome Driver - installation and setup tutorial 1

- download and install latest Java Development Kit ( JDK )

NetBeans IDE with Selenium and Chrome Driver - installation and setup tutorial 2

2. Download and install NetBeans IDE from official site

- goto NetBeans IDE official site in browser : https://netbeans.org/downloads/

NetBeans IDE with Selenium and Chrome Driver - installation and setup tutorial 3

- select NetBean version, we will use Java SE version, and click Download button

NetBeans IDE with Selenium and Chrome Driver - installation and setup tutorial 4


- install NetBeans IDE to your computer

3. Download Selenium standalone server from official site 

- goto official Selenium site : https://www.seleniumhq.org/download/

NetBeans IDE with Selenium and Chrome Driver - installation and setup tutorial 5

- find paragraph "Selenium Standalone Server"

NetBeans IDE with Selenium and Chrome Driver - installation and setup tutorial 6

- find Download version 3.10.0 and click on link

NetBeans IDE with Selenium and Chrome Driver - installation and setup tutorial 7

NetBeans IDE with Selenium and Chrome Driver - installation and setup tutorial 8


4. Download Chromer Driver ( browser automation ) for Selenium

- goto official Selenium site : https://www.seleniumhq.org/download/

- find header "Third Party Browser Drivers NOT DEVELOPED by seleniumhq"
and click on "Google Chrome Driver"

NetBeans IDE with Selenium and Chrome Driver - installation and setup tutorial 9

- in newly opened web-site of Chrome WebDriver site
click on ChromeDriver 2.35 link

NetBeans IDE with Selenium and Chrome Driver - installation and setup tutorial 10

- in new page of Chrome WebDriver site
click on ChromeDriver 2.35 link

NetBeans IDE with Selenium and Chrome Driver - installation and setup tutorial 11

- click on "chromedriver_win32.zip" link to start download Chrome Driver for Windows

NetBeans IDE with Selenium and Chrome Driver - installation and setup tutorial 12

NetBeans IDE with Selenium and Chrome Driver - installation and setup tutorial 13


NetBeans IDE with Selenium and Chrome Driver - installation and setup tutorial 14

- unzip chromerdriver_win32.zip

NetBeans IDE with Selenium and Chrome Driver - installation and setup tutorial 15

- create folder C:\selenium_browser_drivers and copy chromedriver.exe to folder

NetBeans IDE with Selenium and Chrome Driver - installation and setup tutorial 16

NetBeans IDE with Selenium and Chrome Driver - installation and setup tutorial 17


5. Run NetBeans IDE

NetBeans IDE with Selenium and Chrome Driver - installation and setup tutorial 18

NetBeans IDE with Selenium and Chrome Driver - installation and setup tutorial 19

6. Create new Java project in NetBeans IDE

- in NetBeans menu click "File", than click "New Project..."

NetBeans IDE with Selenium and Chrome Driver - installation and setup tutorial 20

- in NetBeans "New Project..." dialog 
1)  select category "Java"
2) select "Java Application"
3) click "Next >" button

NetBeans IDE with Selenium and Chrome Driver - installation and setup tutorial 21

- in NetBeans "New Java Application" dialog
1) type project name "SeleniumChrome"
2) click "Finish" button

NetBeans IDE with Selenium and Chrome Driver - installation and setup tutorial 22

NetBeans IDE with Selenium and Chrome Driver - installation and setup tutorial 23


7. Import selenium-standalone jar into Netbeans IDE project

- right mouse click on "SeleniumChrome" in Project Tree
- in menu select "Properties"

NetBeans IDE with Selenium and Chrome Driver - installation and setup tutorial 24

- in NetBeans "Project Properties" dialog :
1) select Category "Libraries"
2) click "Add JAR/Folder" button

NetBeans IDE with Selenium and Chrome Driver - installation and setup tutorial 25


- in NetBeans "Add JAR/Folder" dialog :
1) find and select selenium-server-standalone-3.10.0.jar 
2) click "Open" button

NetBeans IDE with Selenium and Chrome Driver - installation and setup tutorial 26

- in NetBeans "Project Properties" dialog  - click "Ok" button

NetBeans IDE with Selenium and Chrome Driver - installation and setup tutorial 27

NetBeans IDE with Selenium and Chrome Driver - installation and setup tutorial 28


8. Copy and paste following Java code for Selenium simple test into Netbeans IDE

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package seleniumchrome;


import org.openqa.selenium.chrome.ChromeDriver;


import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedCondition;
import org.openqa.selenium.support.ui.WebDriverWait;

/**
 *
 * @author your_name :)
 */
public class SeleniumChrome {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
     
        System.setProperty(
                "webdriver.chrome.driver",
                "/selenium_browser_drivers/chromedriver.exe"
// C:\selenium_browser_drivers\chromedriver.exe
        );
     
        // Create a new instance of the Chrome driver
     
        WebDriver driver = new ChromeDriver();

        // And now use this to visit Google
        driver.get("http://www.google.com");
        // Alternatively the same thing can be done like this
        // driver.navigate().to("http://www.google.com");

        // Find the text input element by its name
        WebElement element = driver.findElement(By.name("q"));

        // Enter something to search for
        element.sendKeys("Cheese!");

        // Now submit the form. WebDriver will find the form for us from the element
        element.submit();

        // Check the title of the page
        System.out.println("Page title is: " + driver.getTitle());
     
        // Google's search is rendered dynamically with JavaScript.
        // Wait for the page to load, timeout after 10 seconds
        (new WebDriverWait(driver, 10)).until(new ExpectedCondition<Boolean>() {
            public Boolean apply(WebDriver d) {
                return d.getTitle().toLowerCase().startsWith("cheese!");
            }
        });

        // Should see: "cheese! - Google Search"
        System.out.println("Page title is: " + driver.getTitle());
     
     
     
        //Close the browser
        driver.quit();
     
    }
 
} // code end :)

9. Run Selenium project in NetBeans IDE

NetBeans IDE with Selenium and Chrome Driver - installation and setup tutorial 29


Hooray !!! Enjoy NetBeans IDE with Selenium and Chrome Driver

How to install Burpsuite 1.7 with Terminal on Parrot Security 3.0

Trabla : How to install Burpsuite 1.7 with Terminal on Parrot Security 3.0

How to install Burpsuite 1.7 with Terminal on Parrot Security 3.0


Burp or Burp Suite is a graphical tool for testing Web application security. The tool is written in Java and developed by PortSwigger Security. Burp Decoder - Free Edition The tool has two versions: a free version that can be downloaded free of charge (Free Edition) and a full version that can be purchased after a trial period (Professional Edition). The free version has significantly reduced functionality. It was developed to provide a comprehensive solution for web application security checks. In addition to basic functionality, such as proxy server, scanner and intruder, the tool also contains more advanced options such as a spider, a repeater, a decoder, a comparer, an extender and a sequencer. The company behind Burp suite has also developed a mobile application containing similar tools compatible with iOS 8 and above.

Burp Suite Official Site - https://portswigger.net/

Solving:


Penetration / vulnerability testing with OWASP ZAP on Kali Linux

Trabla:  Penetration / vulnerability testing ( web attack ) with OWASP ZAP on Kali Linux


Penetration / vulnerability testing with OWASP ZAP on Kali Linux


OWASP Zed Attack Proxy (ZAP) is an open-source web application security scanner. It is intended to be used by both those new to application security as well as professional penetration testers.

OWASP ZAP Official Site - http://www.zaproxy.org/


Solving:



Creating Test Cases in TestLink 1.9.16 (Moka pot) on Windows 10

Trabla: Creating Test Cases in TestLink 1.9.16 (Moka pot) on Windows 10


Creating Test Cases in TestLink 1.9.16 (Moka pot) on Windows 10


TestLink is a web-based test management system that facilitates software quality assurance. It is developed and maintained by Teamtest. The platform offers support for test cases, test suites, test plans, test projects and user management, as well as various reports and statistics.

Windows 10 is a personal computer operating system developed and released by Microsoft as part of the Windows NT family of operating systems. It was officially unveiled in September 2014 following a brief demo at Build 2014. The first version of the operating system entered a public beta testing process in October, leading up to its consumer release on July 29, 2015. Unlike previous versions of Windows, Microsoft has branded Windows 10 as a "service" that receives ongoing "feature updates"; devices in enterprise environments can receive these updates at a slower pace, or use long-term support milestones that only receive critical updates, such as security patches, over their five-year lifespan of mainstream support.

Official Website TestLink: http://testlink.org/

Official Website Windows 10: http://windows.microsoft.com/


Solving:



Install AutoIt 3.3.14 And AutoIt Script 3.73. Editor on Windows 10

Trabla: Install AutoIt 3.3.14 And AutoIt Script 3.73. Editor on Windows 10


Install AutoIt 3.3.14 And AutoIt Script 3.73. Editor on Windows 10


AutoIt  is a freeware automation language for Microsoft Windows. In its earliest release, the software was primarily intended to create automation scripts (sometimes called macros) for Microsoft Windows programs but has since grown to include enhancements in both programming language design and overall functionality.

AutoIt v3 is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks in a way not possible or reliable with other languages (e.g. VBScript and SendKeys). AutoIt is also very small, self-contained and will run on all versions of Windows out-of-the-box with no annoying “runtimes” required!
AutoIt was initially designed for PC “roll out” situations to reliably automate and configure thousands of PCs. Over time it has become a powerful language that supports complex expressions, user functions, loops and everything else that veteran scripters would expect.

Autoit Official Site -  https://www.autoitscript.com/site/autoit/

Solving:



Install Imacros Add-on for Internet Explorer ( IE ) on Windows 10

Trabla: Install Imacros Add-on for Internet Explorer ( IE ) on Windows 10

Install Imacros Add-on for Internet Explorer ( IE ) on Windows 10

iMacros is an extension for the Mozilla Firefox, Google Chrome, and Internet Explorer web browsers, developed by iOpus/Ipswitch. It adds record and replay functionality similar to that found in web testing and form filler software. The macros can be combined and controlled via JavaScript. Demo macros and JavaScript code examples are included with the software.

iMacros Official Site - https://imacros.net/


Solving:


Install iMacros 11.5 on Windows 10

Trabla: Install iMacros 11.5 on Windows 10

Install iMacros 11.5 on Windows 10


iMacros is an extension for the Mozilla Firefox, Google Chrome, and Internet Explorer web browsers, developed by iOpus/Ipswitch. It adds record and replay functionality similar to that found in web testing and form filler software. The macros can be combined and controlled via JavaScript. Demo macros and JavaScript code examples are included with the software.

iMacros Official Site - https://imacros.net/

Solving:


Install Maveryx 1.4 on Windows 10 - automated test tool for Java and Android

Trabla : Install Maveryx 1.4  on Windows 10 - automated test tool for Java and Android


Install Maveryx 1.4  on Windows 10 - automated test tool for Java and Android

Maveryx is an automated functional, graphical user interface (GUI), and regression test tool for Java and Android applications.Unlike other test tools, Maveryx does not use a GUI Map to create and run its automated tests. GUI test objects are recognized at execution time, by a GUI Objects Finder. This search engine supports exact and fuzzy matching algorithms to identify the test objects in the application's user interface. Avoiding GUI Maps allows starting automation early—long before the application is available for testing, while approximate matching gives the possibility to derive tests even from partial or lacking requirements, and to automate scripts resilient to frequent application changes. Maveryx is primarily used by Software Quality Assurance teams to perform automated testing in traditional and agile environments.

Maveryx Official Site - http://www.maveryx.com/


Solving:



Install Squish IDE 6.2.0 for Windows 10 - GUI Test Automation

Trabla: Install Squish IDE 6.2.0 for Windows 10 - GUI Test Automation

Install Squish IDE 6.2.0 for Windows 10 - GUI Test Automation

Squish is a commercial cross-platform GUI and regression testing tool that can test applications based on a variety of GUI technologies (see list below). It is developed and maintained by Froglogic.
Squish uses property-based object identification (independent of screen position), and is able to record and replay test scripts written in JavaScript, Perl, Python, Ruby or Tcl. It is a two-component system, consisting of a runner, which interprets and executes scripts, and a server, which hooks in and controls the application under test (AUT) by injecting a module into it that provides a TCP/IP connection between the AUT and the program running the test. Both components work on Windows, Linux, several Unix variants, Mac OS X, iOS, Android, Windows CE and QNX and other RTOSes.
As of version 6.0, the Squish GUI Tester fully integrates support for behavior-driven development (BDD) and testing extended by special functionality to apply this to GUI tests. Squish is compatible with the Gherkin (domain-specific language) used in tools such as Cucumber.

Squish IDE Official Site - https://www.froglogic.com/squish/

Solving:





Install Silk Test 17.5 on Windows 10 - automated testing tool

Trabla: Install  Silk Test 17.5 on Windows 10 - automated testing tool

Install  Silk Test 17.5 on Windows 10 - automated testing tool


Silk Test is a tool for automated function and regression testing of enterprise applications.
Silk Test offers various clients:
Silk Test Workbench allows automation testing on a visual level (similar to former TestPartner) as well as using VB.Net as scripting language
Silk Test Classic uses the domain specific 4Test language for automation scripting. It is an object oriented language similar to C++. It uses the concepts of classes, objects, and inheritance.
Silk4J allows automation in Eclipse using Java as scripting language
Silk4Net allows the same in Visual Studio using VB or C#

Silk Test Official Site - https://www.microfocus.com/products/silk-portfolio/silk-test/

Solving:



Install Ranorex Studio 6.2.1 on Windows 10 x64 - automation testing software

Trabla: Install Ranorex Studio 6.2.1 on Windows 10 x64 - automation testing software

Install Ranorex Studio 6.2.1 on Windows 10 x64 - automation testing software


Ranorex is a GUI test automation framework for testing of desktop, web-based and mobile applications. Ranorex is provided by Ranorex GmbH, a software development company for innovative software test automation solutions.Ranorex does not have a scripting language of its own, instead using standard programming languages such as C# and VB.NET as a base.

Ranorex Official Site - https://www.ranorex.com/

Solving:



Install and configure QF-Test 4.1.2 - GUI test tool for Java & Web on Windows 10 x64

Trabla: Install and configure QF-Test 4.1.2 - GUI test tool for Java & Web


Install and configure QF-Test 4.1.2 - GUI test tool for Java & Web on Windows 10 x64



QF-Test from Quality First Software is a cross-platform software tool for the GUI test automation specialized on Java/Swing, SWT, Eclipse plug-ins and RCP applications, Java applets, Java Web Start, ULC and cross-browser test automation of static and dynamic web-based applications (HTML and AJAX frameworks like ExtJS, GWT, GXT, RAP, Qooxdoo, RichFaces, Vaadin, PrimeFaces, ICEfaces and ZK). Version 4.0 added Windows support for the Web browser Chrome, support for JavaFX and the AJAX frameworks jQuery UI and jQueryEasyUI were added.

QF-Test Official Site - https://www.qfs.de/en.html


Solving:



Install TestLink 1.9.16 via Bitnami Installer on Windows 7 localhost

Trabla: Install TestLink 1.9.16 via Bitnami Installer on Windows 7 localhost


Install TestLink 1.9.16 via Bitnami Installer on Windows 7 localhost


TestLink is a web-based test management system that facilitates software quality assurance. It is developed and maintained by Teamtest. The TestLink platform offers support for test cases, test suites, test plans, test projects and user management, as well as various reports and statistics.
TestLink is web-based software an administrator needs access to a web server and a database in order to install and run it. TestLink has support for the MySQL and PostgreSQL databases. In order to use TestLink, a user only requires a web browser.

TestLink Official Website - http://testlink.org/
Bitnami TestLink Official Website - https://bitnami.com/stack/testlink


Solving:



How to install Sahi Pro V6.3.2 from Terminal in Kali Linux

Trabla: How to install Sahi Pro V6.3.2 from Terminal in Kali Linux


How to install Sahi Pro V6.3.2 from Terminal in Kali Linux


Kali Linux (formerly known as BackTrack) is a Debian-based distribution with a collection of security and forensics tools. Kali Linux features timely security updates, support for the ARM architecture, a choice of four popular desktop environments, and seamless upgrades to newer versions.

Sahi is an automation and testing tool for web applications coming in an open-source and a proprietary version.The open-source Sahi version  includes a basic tools set sufficient for most testing purposes (Record on all browsers, Playback on all browsers, HTML playback reports, JUnit Style playback reports, Suites and batch run, Parallel playback of tests), whereas the Pro version includes further features such as test distribution and report customization.

Sahi Open-source is written in Java and JavaScript and hosted on SourceForge since October 2005. It is released under an Apache License 2.0 Open Source License and its current version is 5.1 (published on October 5, 2016). Sahi Pro is currently in version 6.3.2 and is hosted on the Sahi Pro Website.

Kali Linux Official Website - https://www.kali.org/
Sahi Open-Source Official Website - https://sourceforge.net/projects/sahi/
Sahi Pro Official Website - http://sahipro.com/


Solving:





Install IMacros Extension on Google Chrome and Mozila Firefox

Trabla: Install IMacros Extension on Google Chrome and Mozila Firefox


Install IMacros Extension on Google Chrome and Mozila Firefox

iMacros is an extension for the Mozilla Firefox, Google Chrome, and Internet Explorer web browsers which adds record and replay functionality similar to that found in web testing and form filler software. The macros can be combined and controlled via JavaScript. Demo macros and JavaScript code examples are included with the software. iMacros was developed by iOpus/Ipswitch. First released in 2001, iMacros was the first macro recorder tool specifically designed and optimized for web browsers and form filling.

iMacros Official Site - http://www.iopus.com/iMacros/

Solving:



How to create first test case in Selenium Webdriver with Java

Trabla: How to create first test case in Selenium Webdriver with Java 


How to create first test case in Selenium Webdriver with Java



Solving:



How to convert test cases from Selenium IDE to Selenium WebDriver

Trabla: How to convert test cases from Selenium IDE to Selenium WebDriver

How to convert test cases from Selenium IDE to Selenium WebDriver


Solving:


Install TestLink 1.9.15 on windows 7 localhost - open source PHP Test Management

Trabla: Install TestLink 1.9.15 Tauriel on windows 7 x64 localhost ( XAMPP 5.6.24 ) - open source PHP Test Management 

Install TestLink 1.9.15 on windows 7 localhost - open source PHP Test Management

TestLink is a web-based test management system that facilitates software quality assurance. It is developed and maintained by Teamtest. The platform offers support for test cases, test suites, test plans, test projects and user management, as well as various reports and statistics.

Solving:





Install Mantis on windows

Trabla: install Mantis Bug Tracker on windows


Install MantisBT bug tracker on windows 7


This tutorial explains how to install Mantis Bug Tracking System ( version 1.2.19 ) on windows.

Mantis Bug Tracker is a free and open source, web-based bug tracking system released under the terms of the GNU General Public License version 2. The most common use of MantisBT is to track software defects. However, MantisBT is often configured by users to serve as a more generic issue tracking system and project management tool.
https://en.wikipedia.org/wiki/Mantis_Bug_Tracker


Latest "Install Mantis Bug Tracker 1.3.1 on Windows 7 x64" Tutorial ( with Video )"
https://codingtrabla.blogspot.com/2016/09/install-mantis-bug-tracker-131-on.html

Solving:

1. Download and install XAMPP ( Apache + MariaDB(MySQL) + Php + Perl ) for Windows
https://www.apachefriends.org/index.html

Install MantisBT bug tracker on windows 7 - tutorial screenshot 1

After installation start Apache and MySQL (MariaDB) in XAMPP control panel:

Install MantisBT bug tracker on windows 7 - tutorial screenshot 2


2. Download Mantis Bug Tracker ( MantisBT 1.2.19 ) sources
Goto:  https://www.mantisbt.org

1) Click "Download" button

Install MantisBT bug tracker on windows 7 - tutorial screenshot 3

2)  Click "Download" :)

Install MantisBT bug tracker on windows 7 - tutorial screenshot 4

3) Click "Download" :)

Install MantisBT bug tracker on windows 7 - tutorial screenshot 5

4) Downloading ...

Install MantisBT bug tracker on windows 7 - tutorial screenshot 6


5) Got it - MantisBT 1.2.19 sources archive

Install MantisBT bug tracker on windows 7 - tutorial screenshot 7

3. Now create folder "mantis" in "htdocs" folder of XAMPP
Example:

C:\xampp\htdocs\mantis


Install MantisBT bug tracker on windows 7 - tutorial screenshot 8


4. Copy all files from downloaded mantisbt-1.2.16 archive
to folder C:\xampp\htdocs\mantis

Install MantisBT bug tracker on windows 7 - tutorial screenshot 9


Install MantisBT bug tracker on windows 7 - tutorial screenshot 10

5. Open in browser
http://localhost/mantis  - you should see pre-installation page

Install MantisBT bug tracker on windows 7 - tutorial screenshot 11

6. Now we need to create MySQL database for mantis
open http://localhost/phpmyadmin

- create new database
- name for database "mantis-bugtrecker"
- encoding "utf8-general-ci"
- click "create" button

Install MantisBT bug tracker on windows 7 - tutorial screenshot 12

Install MantisBT bug tracker on windows 7 - tutorial screenshot 13

6. Go back to mantis install page in browser - fill all fields and press "Install / Upgrade Database"
Use "mantis-bugtrecker" as database name.

Install MantisBT bug tracker on windows 7 - tutorial screenshot 14

7. Scroll down page and click "log into Mantis"

Install MantisBT bug tracker on windows 7 - tutorial screenshot 15

Install MantisBT bug tracker on windows 7 - tutorial screenshot 16



8. To login use
login        -  Administrator
password -  root ( database user name - see step 6 )


Install MantisBT bug tracker on windows 7 - tutorial screenshot 17


Install MantisBT bug tracker on windows 7 - tutorial screenshot 18