RequestsLibrary - No keyword with name 'POST On Session' found - robotframework

I'm getting "No keyword with name 'POST On Session' found." but I've already installed requests and requestslibrary. Can you advise?
*** Settings ***
Library Collections
Library RequestsLibrary
Suite Setup Create Session jsonplaceholder http://128.199.203.18/api/v1
*** Test cases **
Login
&{data} = Create Dictionary email=creditbpo2020#gmail.com password=analiza123
${resp}= POST On Session jsonplaceholder /login json=${data} expected_status=any

Run this command to install library
pip install --upgrade robotframework-requests
Then run your test again.

Related

How to get rid of error "Non-existing setting 'Suite Setup'" in Robot FW Python

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.

Could not authorize while connecting to the SonarQube server. Check your credentials and try again

I am trying to run SonarQube for my Xamarin Forms project, I am on the path where my .SLN file is there and executing the following command
Command:
$ mono /Users/akandasamy/Development/HIDProjects/sonar-scanner-msbuild-4.0.2.892/MSBuild.SonarQube.Runner.exe begin /k:"HIDReaderManagerApp" /d:sonar.host.url="http://localhost:9000" /d:sonar.login="My Login Token"
Error:
SonarQube Scanner for MSBuild 4.0.2
Default properties file was found at /Users/akandasamy/Development/HIDProjects/sonar-scanner-msbuild-4.0.2.892/SonarQube.Analysis.xml
Loading analysis properties from /Users/akandasamy/Development/HIDProjects/sonar-scanner-msbuild-4.0.2.892/SonarQube.Analysis.xml
Pre-processing started.
Preparing working directories...
17:29:10.391 Updating build integration targets...
17:29:10.414 Fetching analysis configuration settings...
17:29:10.517 Failed to request and parse 'http://localhost:9000/api/settings/values?component=HIDReaderManagerApp': The remote server returned an error: (401) .
17:29:10.517 Could not authorize while connecting to the SonarQube server. Check your credentials and try again.
17:29:10.518 Pre-processing failed. Exit code: 1
The api/settings/values API requires Browse permission when the component argument is used. Please, see if the user you are authenticating with has the aforementioned permission.
More details about security and permissions here:
https://docs.sonarqube.org/latest/instance-administration/security

Robot framework error connecting via telnet library

Trying to connect to my remote host via telnet. Telnet client is enabled and running I get the following error:
TypeError: __init__() got an unexpected keyword argument 'encodings'
Find my robot code below:
*** Settings ***
Library Process
Library Telnet terminal_emulation=YES telnetlib_log_level=DEBUG
*** Test Cases ***
Try Telnet
Open Connection 10.99.1.123 port=22
Am I missing something obvious here? Error really doesn't say a lot.
Do you have latest version of pyte (pip list)? It seems that changes introduced in ver 0.6.0 breaks compatibility with Telnet lib.
If so,uninstall pyte,install pyte ver 0.5.2
pip uninstall pyte
pip install pyte==0.5.2
You can check release notes at https://github.com/selectel/pyte/releases

Error while installing informatica 8.6 with oracle 11g in window 10

I am getting below error while installing informatica 8.6:
****use the error below and catalina.out and node.log in the server/tomcat/logs directory on the current machine to get more information. Select Retry to continue the installation.
STDOUT: Installing the service '"Informatica Services 8.6.0"' on node 'node01_geettika4912'...
Using CURRENT_DIR: C:\Informatica\PowerCenter8.6.0\server\tomcat\bin
Using INFA_HOME: C:\Informatica\PowerCenter8.6.0
The service '"Informatica Services 8.6.0"' has been installed.
STDERR: The filename, directory name, or volume label syntax is incorrect.
The service name is invalid.
More help is available by typing NET HELPMSG 2185.**
EXITCODE: 2**
I am getting this error after the successful creation of domain.
Please help me in resolving this error.
Thanks!
Run services.msc to get a list of all the services.
Click properties on the service you want, there you can see the "service name" and the "display name".
The service name is what you need to use with the net command. Check if Informatica Services 8.6.0 is in the list.

Installation of unimcrp on Asterisk

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)

Resources