Comments (7)
could you provide more logs?
such as content of /Users/vunguyen/automation/customclient/libs/keywordsLib/customAppKeywords.txt
from robotframework-appiumlibrary.
Hi,
The file “customAppKeywords.txt” is the file content the keyword for iOS testing. I don’t have permission to give other.
I only provide a part :
*** Settings ***
Documentation BASE LIBRARY: This is library which contains most commonly used keywords across all testsuites and testcases and also imports all necessary modules, keywords, variables, and python libraries
Library Collections
Library String
Library ${APPIUM_ROBOT_LIB}
#Library ${APPIUM_IOS_LIB} #SHOULD ADD OR NOT?
Library ${RESOURCE_HOME}/pyLib/base.py ${DEVICE_NAME}
Library ${RESOURCE_HOME}/pyLib/deviceAction.py ${DEVICE_NAME}
#Library ${RESOURCE_HOME}/pyLib/accountAction.py ${DEVICE_NAME}
#Library ${RESOURCE_HOME}/pyLib/device.py ${DEVICE_NAME}
Resource myPlans.txt
Resource billing.txt
Resource manageDevices.txt
Resource specialOffers.txt
Resource oobe.txt
Resource private.txt
Resource ${TENANT_NAME}.txt
Variables GlobalVariables.py
*** Variables ***
${automation_name}
${local_sleep_time} 30
${local_timeout} 30
${total_sleep_time} ${sleep_time} + ${local_sleep_time}
${total_timeout} ${timeout} + ${local_timeout}
${this_error_msg} None
${this_oncode} None
${default_partner_env} ${zact_qaautomation}
tracking login to skip next time
${login_counter} 0
${tenant_name} ZACT
${android_app_package} com.itsoninc.android.itsonclient
${this_email_address} None
*** Keywords ***
Open Application On Device
[Documentation] Retrieve all necessary information about the device and launch an appium session.
... Note: Make sure your device is stated within deviceManifest.
Log To Console Starting application
listOfDevices
${port}= get_port
${platform_name}= get_platform
${platform_version}= get_version
${app}= get_app
${device_type_tmp} get_device_info
Set Suite Variable ${device_type} ${device_type_tmp}
${current_device_email} get_emailid
${this_email_address}= Set Variable If '${this_email_address}' == 'None' ${current_device_email} ${this_email_address}
${android_app_package}= Set Variable If '${app}' == 'None' ${android_app_package}
... '${app}' == '${EMPTY}' ${android_app_package} ${app}
Run Keyword If '${platform_name}' == 'Android' Run Keyword And Ignore Error open_application ${remote_url} ${platform_name} ${platform_version} ${device_name} ${app} ${automation_name} ${android_app_package} ${android_app_activity}
Run Keyword If '${platform_name}' == 'iOS' Run Keyword And Ignore Error open_application ${remote_url} ${platform_name} ${platform_version} ${device_name} ${app}
Log To Console ${android_app_package}
Sleep ${timeout}
: FOR ${i} IN RANGE 2
\ Log To Console Detecting any un-expected windows/errors popup during Open Application. Retrying... ${i+1}/2
\ ${status} ${verify_text}= Run Keyword And Ignore Error Wait Until Page Contains $
————
And here is the bach_profile:
Setting PATH for Python 2.7
The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
PATH="/Library/Python/2.7:${PATH}"
export PATHJAVA_HOME=/usr/bin/java
export JAVA_HOME
PYTHON_PATH=/usr/bin
export PYTHON_PATH
export DYLD_LIBRARY_PATH=/Users/vunguyen/imobiledevice-macosx/:$DYLD_LIBRARY_PA$
PATH=${PATH}:/Users/vunguyen/imobiledevice-macosx/
Setting PATH for Python 2.7
The orginal version is saved in .bash_profile.pysave
#PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
PATH="/Library/Python/2.7:${PATH}"
export PATH
ROOT_HOME=$(pwd)
export ANDROID_HOME=$ROOT_HOME/automation/android-sdk-linux
#export PYTHON_PATH="/Library/Python/2.7"
#export PYTHON_PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin"
export JAVA_HOME="Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk"
export PATH=${PATH}:$JAVA_HOME:$PYTHON_PATH
export PATH=$PATH:$HOME/.npm-packages/bin
Setting PATH for Python 2.7
The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
export PATH
All the patch are correct ?
Thanks so much,
VuNguyen
On Jun 10, 2015, at 2:17 PM, William Zhang [email protected] wrote:
could you provide more logs?
such as content of /Users/vunguyen/automation/customclient/libs/keywordsLib/customAppKeywords.txt—
Reply to this email directly or view it on GitHub #48 (comment).
from robotframework-appiumlibrary.
is there some specify character ?
as traceback mentioned, it is may be some decode issue.
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 382, in raw_decode
obj, end = self.scan_once(s, idx)
and how do you run testcase? by pybot
?
from robotframework-appiumlibrary.
Nope, there is no specify character in the keyword file.
But I’m not sure in lib
Do you check my bah_profile file ?Is it correct ?
"and how do you run testcase? by pybot ?" --> Yes, I ran TC by "pybot" command
Regards,
VuNguyen
On Jun 10, 2015, at 2:47 PM, William Zhang [email protected] wrote:
is there some specify character ?
as traceback mentioned, it is may be some decode issue.File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 382, in raw_decode
obj, end = self.scan_once(s, idx)
—
Reply to this email directly or view it on GitHub #48 (comment).
from robotframework-appiumlibrary.
your bash_profile doesn't show some special
from robotframework-appiumlibrary.
All the environment are configured OK ?
from robotframework-appiumlibrary.
Sorry, I'm new QA automation tester here.
from robotframework-appiumlibrary.
Related Issues (20)
- Attach screenshot to xunit.xml for Azure DevOps
- No WebView Context in "Get Contexts" result HOT 1
- Open Application not working with Selenium 4.10+ (unexpected keyword argument 'desired_capabilities') HOT 2
- iOS Automation execution doesn't start, Fails at xcodebuild error 70 HOT 3
- swipe_by_percent Function does not work properly with IOS HOT 1
- Appium keyword 'start activity' does not work anymore
- Unable to input text for edit text using Jetpack compose HOT 1
- gives an error for xpath" (//div[contains(@class,'no-result-contact-info')]/p)[1]" InvalidArgumentException: HOT 3
- Can't locate elements with extra space in the value when using accessibility_id
- Start Screen Recording : AttributeError: 'WebDriver' object has no attribute 'desired_capabilities' HOT 4
- Swipe By Percent error: AttributeError: 'WebDriver' object has no attribute 'desired_capabilities'
- Input URL is missing the two slashes // after https:
- Appium-Python-Client 4.0.0 breaks this package. HOT 5
- Unable to interract with alerts on iOS simulator since xcuitest v6 HOT 1
- Failed to import allium.webdriver.common.touch-action after installing latest version of Appium-Python-Client (4.0.0) HOT 3
- Swipe/scroll keywords are not working with appiumlibrary when appium server updated to 2.5.1 HOT 2
- getting Error "ModuleNotFoundError: No module named 'appium.webdriver.common.touch_action' " during launch application HOT 2
- WebDriverException: Message: The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource HOT 1
- ModuleNotFoundError: No module named 'appium.webdriver.common.touch_action' HOT 2
- Appium Swipe does not work in Mac HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from robotframework-appiumlibrary.