Skip to content
This repository was archived by the owner on Sep 27, 2021. It is now read-only.
This repository was archived by the owner on Sep 27, 2021. It is now read-only.

Getting error while trying to execute robotframework-androidlibrary-master\tests\apidemos\apidemos.txt #40

@sps7

Description

@sps7

Hi ,

I am new to Robotframework, now a days I am trying to automate my Android app using robotframework-androidlibrary. I am able to setup robotframework-androidlibrary on top of robotframework. And now I am trying to execute sample testcase robotframework-androidlibrary-master\tests\apidemos\apidemos.txt (taken from github.com/lovelysystems/robotframework-androidlibrary/), and i am getting below issues, please help in to solve it,

Issue 1: When trying to create emulator (keyword : Create Android Virtual Device) getting below error:

TEST SUITE: Apidemos Expand All 
Full Name: Apidemos 
Source: file:///C:/AndroidProject/tests/useit/apidemos.txt">C:\AndroidProject\tests\useit\apidemos.txt 
Start / End / Elapsed: 20130117 11:48:29.875 / 20130117 11:48:30.203 / 00:00:00.328 
Status: 7 critical test, 0 passed, 7 failed
7 test total, 0 passed, 7 failed 
Message: Suite setup failed:
255 != 0 

-SETUP: __init__.Setup Suite Expand All 
Start / End / Elapsed: 20130117 11:48:30.140 / 20130117 11:48:30.187 / 00:00:00.047 

+KEYWORD: __init__.Android SDK Should Exist Expand All 
Documentation: simple sanity check to see if D:\ANDROID_HOME\Android\android-sdk was set correctly

Start / End / Elapsed: 20130117 11:48:30.140 / 20130117 11:48:30.140 / 00:00:00.000 

-KEYWORD: __init__.Create Android Virtual Device Expand All 
Start / End / Elapsed: 20130117 11:48:30.140 / 20130117 11:48:30.187 / 00:00:00.047 

-KEYWORD: variables.Execute echo "no" | %{ANDROID_HOME}/tools/android --silent create avd --name ${EMULATOR_NAME} --force -t android-${API_LEVEL} --abi x86 Expand All 
Start / End / Elapsed: 20130117 11:48:30.140 / 20130117 11:48:30.187 / 00:00:00.047 

-KEYWORD: ${rc}, ${output} = OperatingSystem.Run And Return Rc And Output ${command} Expand All 
Documentation: Runs the given command in the system and returns the RC and output.

Start / End / Elapsed: 20130117 11:48:30.140 / 20130117 11:48:30.187 / 00:00:00.047 
11:48:30.140 INFO Running command 'echo "no" | D:\ANDROID_HOME\Android\android-sdk/tools/android --silent create avd --name My-Emulator --force -t android-16 --abi x86 2>&1' 
11:48:30.187 INFO ${rc} = 255 
11:48:30.187 INFO ${output} = 'D:\ANDROID_HOME\Android\android-sdk' is not recognized as an internal or external command,
operable program or batch file. 
-KEYWORD: BuiltIn.Should Be Equal As Integers ${rc}, 0 Expand All 
Documentation: Fails if objects are unequal after converting them to integers.

Start / End / Elapsed: 20130117 11:48:30.187 / 20130117 11:48:30.187 / 00:00:00.000 
11:48:30.187 INFO Argument types are:
<type 'int'>
<type 'unicode'> 
11:48:30.187 FAIL 255 != 0 

-TEARDOWN: AndroidLibrary.Stop Emulator Expand All 
Documentation: Halts a previously started Android Emulator.

Start / End / Elapsed: 20130117 11:48:30.203 / 20130117 11:48:30.203 / 00:00:00.000 
11:48:30.203 WARN Could not stop Android Emulator: It was not started. 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions