I have been trying to run the test cases against I.E browser
The following is my code
*** settings ***
Library Selenium2Library
Library ExcelLibrary
*** variables ***
${URL_LOCATIONS} www.google.com(for example)
${BROWSER_TYPE} ie
${DELAY_TIME} 1
*** keywords ***
Open Browser
Open Browser ${URL_LOCATIONS} ${BROWSER_TYPE}
and running the script using the following command
pybot --variable BROWSER:ie Main.txt
If you want to set ${BROWSER_TYPE} from the command line, you must use that name with the --variable argument:
pybot --variable BROWSER_TYPE:ie Main.txt
Related
we try to installe the network driver - i40e on rhel server 7.2 version , ( kernel - 3.10.0-512 )
as the following
# tar zxf i40e-2.12.6.tar.gz
# cd i40e-2.12.6/src
# make install
common.mk:82: *** Kernel header files not in any of the expected locations.
common.mk:83: *** Install the appropriate kernel development package, e.g.
common.mk:84: *** kernel-devel, for building kernel modules and try again. Stop.
on other server ( rhel 7.2 ) its installed successfully as the following ( this is the second make install , so the output is little different from the first time )
# cd src/
# make install
*** The target kernel has CONFIG_MODULE_SIG_ALL enabled, but
*** the signing key cannot be found. Module signing has been
*** disabled for this build.
make[1]: Entering directory `/usr/src/kernels/3.10.0-327.el7.x86_64'
Building modules, stage 2.
MODPOST 1 modules
make[1]: Leaving directory `/usr/src/kernels/3.10.0-327.el7.x86_64'
Installing modules...
*** The target kernel has CONFIG_MODULE_SIG_ALL enabled, but
*** the signing key cannot be found. Module signing has been
*** disabled for this build.
make[1]: Entering directory `/usr/src/kernels/3.10.0-327.el7.x86_64'
INSTALL /tmp/i40e-2.12.6/src/i40e.ko
DEPMOD 3.10.0-327.el7.x86_64
make[1]: Leaving directory `/usr/src/kernels/3.10.0-327.el7.x86_64'
/sbin/depmod -e -F /lib/modules/3.10.0-327.el7.x86_64/source/System.map -a 3.10.0-327.el7.x86_64
Updating initramfs...
make mandocs_install
make[1]: Entering directory `/tmp/i40e-2.12.6/src'
Copying manpages...
make[1]: Leaving directory `/tmp/i40e-2.12.6/src'
what is the reason ? that we get the following errors:
common.mk:82: *** Kernel header files not in any of the expected locations.
common.mk:83: *** Install the appropriate kernel development package, e.g.
common.mk:84: *** kernel-devel, for building kernel modules and try again. Stop.
reference - https://downloadcenter.intel.com/download/24411/Intel-Network-Adapter-Driver-for-PCIe-40-Gigabit-Ethernet-Network-Connections-Under-Linux-
I have two files one for keywords and other one is to run the actual test case
testkeywords.robot
*** Settings ***
Library Requestslibrary
Library JSONlibrary
Library Collections
*** Variables ***
${Base_URL} http://www.thetestingworldapi.com/
*** Keywords ***
Get Student Name
[Arguments] ${id}
create session Get_student_details ${base_url}
${response}= get request Get_student_details api/studentsDetails/${id}
#log to console ${response.content}
${json_res}= to json ${response.content}
#log to console ${json_res}
#{first_name_list}= get value from json ${json_res} data.first_name
${first_name}= get from list ${first_name_list} 0
[return] ${first_name}
sample.robot
*** Settings ***
Library RequestsLibrary
Library JSONLibrary
Library Collections
Resource Resources/testkeywords.robot
*** Variables ***
${id} 56841
*** Test Cases ***
TC_01
Get Student Name ${id}
I am getting the error Error "Importing test library 'Requestslibrary' failed: ModuleNotFoundError: No module named 'Requestslibrary"
but the sample file is ruining without any issues , while importing the same libraries
I have 2 files in my project
TestCase.robot
UserKeys.robot
UserKeys.robot file has below Setting
*** Settings ***
Library SeleniumLibrary
Library DatabaseLibrary
Library Collections
Library difflib
Suite Setup Connect To Database psycopg2 ${DBName} ${DBUser} ${DBPass}
Suite Teardown Disconnect From Database
When I run my project I get below error:
Error in file 'Projects/POC/Resources/UserKeyWords.robot': Non-existing setting 'Suite Setup'.
Error in file 'Projects/POC/Resources/UserKeyWords.robot': Non-existing setting 'Suite Teardown'.
Not sure what I am missing !!!
Resource files cannot contain Suite Setup and Suite Teardown.
From the robot framework user guide:
Additionally, the Setting table in resource files can contain only import settings (Library, Resource, Variables) and Documentation.
I am using Robot Framework with SikuliLibrary to compare some reports, but it is throwing timeout exception intermittently. Some runs failed only.
The error message is:
com.github.rainmanwy.robotframework.sikulilib.exceptions.TimeoutException: Timeout happend, could not find P(Recibo_Financeiro.png) S: 0.699999988079071
I created a helper keyword to use in my tests:
*** Settings ***
Library SikuliLibrary
*** Variables ***
${IMAGE_DIR} ${EXECDIR}\\Images
*** Keywords ***
Verify PDF
[Arguments] ${PDF}
Add Image Path ${IMAGE_DIR}
Wait Until Screen Contain ${PDF} 20
Remove Image Path ${IMAGE_DIR}
As per the instructions given in url below:
https://code.google.com/p/unimrcp/wiki/asteriskUniMRCP
[root#localhost uni-ast-package-1.0.0]# ls
asterisk get-answer.sh modules-install.sh
asterisk-install.sh INSTALL unimrcp
asterisk-unimrcp modules unimrcp-install.sh
./asterisk--install.sh
./unimrcp-install.sh
are successful.
But while running the script ./modules-install.sh
It displays the following error:
/usr/include/errno.h:55: error: declaration for parameter
âprogram_invocation_nameâ but no such parameter
/usr/include/bits/errno.h:47: error: declaration for parameter
â__errno_locationâ but no such parameter
res_speech_unimrcp.c:1433: error: expected â{â at end of input
make[1]: *** [res_speech_unimrcp.lo] Error 1
make[1]: Leaving directory
/Akatsuki/uni-ast-package-1.0.0/modules/res-speech-unimrcp'
make: *** [install-recursive] Error 1
Please check INSTALL document in directory. Very likly it is for other asterisk version.
Anyway this is not supported module and all question have be addressed to developers of this module(person who do install have be expert)