Monday, September 19, 2016

HOW TO Install Robot Framework in Windows 7,8 and Windows 10

Welcome To My Blog Cash Back Shopping. Get Deals & Save Money Shop AT Ebates Try for Free!!!!
Ebates Coupons and Cash Back
Here you have the steps I follow to install and configure Robot Framework and RIDE (Robot Framework GUI) in Windows 7, 8 and Windows 10, integrating Selenium and AutoIT libraries I use for test automation.

0. DONWLOAD JAVA JRE

 http://java.com/en/download/  (– version 8 update 45)

0.1 Install. Default installation.

1. DOWNLOAD PYTHON (2.7.X NEEDED)

https://www.python.org/downloads/

      Download the latest version for your operating system (eg: Windows)


1.1. Install. Default installation.



2. ADD PYTHON SCRIPTS FOLDER TO WINDOWS PATH

4.1. Right click on “Computer” > “Properties”.
4.2. Click on “Advanced System Settings” link. Click on “Environment variables” button.
4.3. In “System variables” section, select “Path” and click on “Edit”.
4.4. In the field “Value”, ADD at the end of the line: “;C:Python27;C:Python27Scripts” (this is default path, we have to modify it if we have installed Python in a different folder. During Python installation, path can be also added automatically if the corresponding option is selected).
4.5. “OK” to all.

5. INSTALL ROBOT FRAMEWORK

5.1. Run “Command promt”

5.2. Execute  
pip install robotframework

4: Install wxPython

  • Pip install –u wxPython

6. DOWNLOAD RIDE (ROBOT FRAMEWORK IDE)

https://github.com/robotframework/RIDE/releases/download/v1.4/robotframework-ride-1.4.win-amd64.exe

6.1. Install. Default installation.

7. INSTALL SELENIUM LIBRARY

7.1. Run “Command promt”

7.2. Execute “pip install –upgrade robotframework-seleniumlibrary

Step 5: Install RIDE

To install RIDE, open the command prompt and type the following command. 

pip install robotframework-ride


9. RUN “RIDE.PY

Click on the RIDE shortcut on your Desktop or click on “Start” > “Run” and type “ride.py”.

10. THAT’S ALL!! WE SHOULD HAVE NOW RIDE RUNNING ON OUR SCREEN!






Any installaton doubt in Ubuntu/Linux Drop your Doubt in Comment Section.

Friday, July 15, 2016

GitLab Installation in QA server Ubuntu 16.04.2 LTS

Welcome To My Blog Cash Back Shopping. Get Deals & Save Money Shop AT Ebates Try for Free!!!!
Ebates Coupons and Cash Back



1. Install and configure the necessary dependencies
If you install Postfix to send email please select 'Internet Site' during setup. Instead of using Postfix you can also use Sendmail or configure a custom SMTP server and configure it as an SMTP server.
sudo apt-get install curl openssh-server ca-certificates postfix
Select  Default settings

2. Add the GitLab package server and install the package
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
sudo apt-get install gitlab-ce
If you are not comfortable installing the repository through a piped script, you can find the entire script here and select and download the package manually and install using
curl -LJO https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/xenial/gitlab-ce-XXX.deb/download
dpkg -i gitlab-ce-XXX.deb
3. Configure and start GitLab
sudo gitlab-ctl reconfigure


OUT PUT:

Running handlers:
Running handlers complete
Chef Client finished, 11/400 resources updated in 23 seconds
gitlab Reconfigured!





To change URL port number in gitlab

                      

Step-1:  Connect to your server

go to this directory  /etc/gitlab


~# cd /etc/gitlab

Step-2:  Now we have to change URL

  Edit gitlab.rb file by using vi (nano) command

~# vi gitlab.rb or nano gitlab.rb

In file change url
external url 'http://IPADD:PortNo'

Step-3: After that reconfigure gitlab

~# gitlab-ctl reconfigure


Browse to the hostname and login

Username: root
Password: 5iveL!fe


Thanks & Regards,

Bhargava Batchu.

Any installaton doubt in Ubuntu/Linux Drop your Doubt in Comment Section.

Tuesday, June 7, 2016

Unix/Linux Command Reference

Welcome To By Blog Cash Back Shopping. Get Deals & Save Money Shop AT Ebates Try for Free!!!!
Ebates Coupons and Cash Back
File Commands:
=================================
1. ls  Directory listing
2. ls -al  Formatted listing with hidden files
3. ls -lt  Sorting the Formatted listing by time modification
4. cd dir  Change directory to dir
5. cd  Change to home directory
6. pwd  Show current working directory
7. mkdir  dir Creating a directory dir
8. cat >file  Places the standard input into the file
9. more file  Output the contents of the file
10. head file  Output the first 10 lines of the file
11. tail file  Output the last 10 lines of the file
12. tail -f file  Output the contents of file as it grows,starting with
                        the last 10 lines
13. touch file Create or update file
14. rm file Deleting the file
15. rm -r dir Deleting the directory
16. rm -f file Force to remove the file
17. rm -rf dir Force to remove the directory dir
18. cp file1 file2 Copy the contents of file1 to file2
19. cp -r dir1 dir2 Copy dir1 to dir2;create dir2 if not present
20. mv file1 file2 Rename or move file1 to file2,if file2 is an                                         existing directory
21. ln -s file link Create symbolic link link to file

Process management:
===============================
1. ps To display the currently working processes
2. top Display all running process
3. kill pid Kill the process with given pid
4. killall proc Kill all the process named proc
5. pkill pattern Will kill all processes matching the pattern
6. bg List stopped or background jobs,resume a stopped
    job in the background
7. fg Brings the most recent job to foreground
8. fg n Brings job n to the foreground

File permission:
===============================
1.chmod octal file
Change the permission of file to octal,which can
be found separately for user,group,world by
adding,

4-read(r)

2-write(w)

1-execute(x)

Searching:
=============================
1. grep pattern file  Search for pattern in file
2. grep -r pattern dir  Search recursively for pattern in dir
3. command | grep  pattern Search pattern in the output of a               command
4. locate file  Find all instances of file
5. find . -name filename  Searches in the current directory       
   (represented by a period) and below it, for files and directories    
   with names starting with filename
6. pgrep pattern  Searches for all the named processes , that
    matches with the pattern and, by default, returns
    their ID

System Info:
===============================
1. date Show the current date and time
2. cal Show this month's calender
3. uptime Show current uptime
4. w Display who is on line
5. whoami Who you are logged in as
6. finger user Display information about user
7. uname -a Show kernel information
8. cat /proc/cpuinfo Cpu information
9. cat proc/meminfo Memory information
10. man command Show the manual for command
11. df Show the disk usage
12. du Show directory space usage
13. free Show memory and swap usage
14. whereis app Show possible locations of app
15. which app Show which applications will be run by default

Compression:
===============================
1. tar cf file.tar file Create tar named file.tar containing file
2. tar xf file.tar Extract the files from file.tar
3. tar czf file.tar.gz files Create a tar with Gzip compression
4. tar xzf file.tar.gz Extract a tar using Gzip
5. tar cjf file.tar.bz2 Create tar with Bzip2 compression
6. tar xjf file.tar.bz2 Extract a tar using Bzip2
7. gzip file Compresses file and renames it to file.gz
8. gzip -d file.gz Decompresses file.gz back to file

Network:
===============================
1. ping host Ping host and output results
2. whois domain Get who is information for domains
3. dig domain Get DNS information for domain
4. dig -x host Reverse lookup host
5. wget file Download file
6. wget -c file Continue a stopped download

Unix/Linux Command  Shortcuts:
===============================
1. ctrl+c Halts the current command
2. ctrl+z Stops the current command, resume with fg in the
    foreground or bg in the background
3. ctrl+d Logout the current session, similar to exit
4. ctrl+w Erases one word in the current line
5. ctrl+u Erases the whole line
6. ctrl+r Type to bring up a recent command
7. !! Repeats the last command
8. exit Logout the current session

SCP:


scp /var/backups/file.tar  localhost@127.0.01:/destination  location 

screen Commands:

Create screen:
screen -S name

Detach form screen:
screen -d

Re attach to screen:
screen -r name

list of screen:
screen -ls


Reboot and & Shutdown:

Shutdown the system and turn the power off immediately.

# shutdown -h now    (or) init 0

Shutdown the system after 10 minutes.

# shutdown -h +10

Reboot the system using shutdown command.

# shutdown -r now    (or) init 6

Force the filesystem check during reboot.

# shutdown -Fr now



Thanks&Regards,


Bhargava Batchu.
Any installaton doubt in Ubuntu/Linux Drop your Doubt in Comment Section.

Wednesday, June 1, 2016

GitLab Install by using wget method

Welcome To By Blog
Cash Back Shopping. Get Deals & Save Money Shop AT Ebates Try for Free!!!!
Ebates Coupons and Cash Back

step1: wget https://downloads-packages.s3.amazonaws.com/ubuntu-14.04/gitlab-ce_7.10.4~omnibus-1_amd64.deb


step2: sudo dpkg -i gitlab-ce_7.10.4~omnibus-1_amd64.deb

 go to "/etc/gitlab" this directory

step3: sudo vi /etc/gitlab/gitlab.rb
 

external_url 'http://gitlab.example.com'

                                                                       To change this URL you want.

 
step4: sudo gitlab-ctl reconfigure

step5: sudo gitlab-ctl status

Hit the URL into the Browser 

Default Username and Password For gitlab is

username : root

password: 5iveL!fe 

" I hope you successfully install the git-lab"

for more versions visit below link:
https://about.gitlab.com/downloads/archives/

 

Thanks & Regards,

Bhargava Batchu.

 

 

 

Any installaton doubt in Ubuntu/Linux Drop your Doubt in Comment Section.

Friday, May 20, 2016

Install Robot FrameWork on Ubuntu 14.04




So, let's get started with the installation.

1. PYTHON

Python is bundled with the Ubuntu/Linux installation.

To check if it's installed, and the installed version of Python on your system, 

enter the below command in terminal (shortcut key for terminal: Ctrl+Alt+T)
$ python --version

If Python is installed, you should see something like below as the output:

Python 2.7.3

Note that - Robot Framework is not yet supported on Python 3. You must have 

Python 2.5.X (or higher) version installed (in order to install Robot Framework 

2.5 or higher)

If you need to upgrade your Python (say from 2.7.3 to 2.7.6), check out the 

below link:
http://askubuntu.com/questions/443048/python-2-7-6-on-ubuntu-12-04-how-to


2. PIP (Python Package Manager)

easy_install and pip are package managers for installing Python packages. 

Using pip is recommended as it's more advanced and has good uninstallation 

support.

To install
pip, run the below commands:


$ wget https://bootstrap.pypa.io/get-pip.py
 
$ sudo python get-pip.py



3. ROBOT FRAMEWORK

Install Robot Framework package using
pip
:

$ sudo pip install robotframework

This will install the latest version of Robot Framework. If you have a need to 

install a specific version, mention the version as below (replace 2.8.4 with your 

desired version):

$ sudo pip install robotframework==2.8.4

Once the installation completes, to verify if the installation went OK, enter the 

below command:

$ pybot --version

If the setup was successful, you should see something like below as its output:

Robot Framework 2.8.4 (Python 2.7.3 on linux2)

4. SELENIUM2LIBRARY : Robot Framework's Test Library for Webdriver tool

In order to work with Webdriver (Selenium 2) and Robot Framework, you need 

to install 'Selenium2Library'. You can perform the pip installation as below:

$ sudo pip install robotframework-selenium2library

This will automatically install its dependencies (decorator, selenium packages). 

Once the installation completes, to verify if the installation went OK, enter the 

below commands:
$ python

This starts the Python interpreter. Now, enter the below statement:

>> import Selenium2Library

There wouldn't be any output :). No error indicates that the library was installed 

successfully. You can exit the Python interpreter using exit() command.

5. RIDE : Robot Framework Integrated Development Environment

RIDE is an IDE for test development using Robot Framework.

As RIDE is developed using wxPython, you need to install wxPython 2.8 toolkit 

with unicode support to run RIDE. Unfortunately, pip cannot be used to install 

wxPython (as setup.py doesn't exist for wxPython). Run the below commands to 

install wxPython:
$ sudo apt-get install python-wxgtk2.8
 
$ sudo apt-get install python-wxversion

Now, you can perform the
pip installation for RIDE as below:

$ sudo pip install robotframework-ride 

To  verify if the installation went OK, run the below command:

$ ride.py

You should see the RIDE application GUI:

Congratulations! You are all set to develop your automated tests on your Ubuntu/Linux system using Robot Framework and Selenium2Library in the RIDE editor !!

Thanks & Regards,


Bhargava Batchu.

Update GitLab (Omnibus based installations)

Welcome To My Blog Cash Back Shopping. Get Deals & Save Money Shop AT Ebates Try for Free!!!!                                      ...