Support Center

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

My test screencshots and steps in my test method are not showed.

Mustafa Olkun Jun 16, 2015 10:54PM CEST

I am newbie on Testroid.
I prepared a new simple test method using Robotium. It perfectly works when It is worked on genymotion.

I upload my "app-debug.apk" file to Testdroid clouds and if I choose app crawler, I can see a few screenshots and my steps that is arranged by App Crawler. These steps are not exactly worked my applicaiton. When I upload my own robotium test, which name is "app-debug-androidTest-unaligned.apk", I can not see my steps and screenshot informations.

It is my test function.
public void testViewPager() throws Exception {

// Ekran kilidini aç.
solo.unlockScreen();
// Ekrannı sağa doğru kaydır.
solo.scrollViewToSide( solo.getView( R.id.intro_activity ), Solo.RIGHT );
// Ortalama adet günü yazısına tıkla.
solo.clickOnButton( 0 );
// Numberpicker değerini 6 ya getir.
issue( ( NumberPicker ) solo.getView( R.id.number_picker ), 6 );
// Tamama bas.
solo.clickOnView( solo.getView( android.R.id.button1 ) );
solo.takeScreenshot();
// Ortalama dngü süresi butonuna tıkla.
solo.clickOnButton( 1 );
// Değerini 30 yap
issue( ( NumberPicker ) solo.getView( R.id.number_picker ), 30 );
// Tamam işaretle
solo.clickOnView( solo.getView( android.R.id.button1 ) );
// Sağa bir daha kaydır.
solo.scrollViewToSide( solo.getView( R.id.intro_activity ), Solo.RIGHT );
// Hamile kalmak istiyorum tuşuna bas.
solo.clickOnButton( 3 );
solo.takeScreenshot();
// Bir saniye bekle
solo.sleep( 1000 );
// Developer tuşuna bas.
solo.clickOnView( solo.getView( R.id.developer_enter ) );

}



Up 5 rated Down
Michal Szpruta Jun 17, 2015 08:11AM CEST Testdroid help Agent
Testdroid AppCrawler is based on robotium, but not directly. It uses ExtSolo, which extends Solo class, so it is able to track all actions and screenshots.
Your test uses pure robotium (Solo class), so there is no metadata related to actions nor screenshots. About screenshots - Robotium saves them on /sdcard/Robotium-Screenshots/
Testdroid by default fetches screenshots from /sdcard/test-screenshots so you have to set screenshots directory in advanced configuration when running test if you use pure robotium.

More information about ExtSolo you can find on http://docs.testdroid.com/_pages/extsolo.html
Up 0 rated Down
Mustafa Olkun Jun 18, 2015 09:06AM CEST
Thanks for answer @Michal. I could see my screenshots changing path of screenshots directory in advanced configuraiton. But I can not still see my steps about my test funciton.

Also when I trying to use to ExtSolo, When It runs on genymotion, It perfectly works like pure Solo.
But I upload to Testdroid Cloud, I encounter an error. I am sharing eror picture from Testdroid Cloud below as a link.

http://olkunmustafa.com/extsolo_error.png

I am also sharing my full test code that I used ExtSolo library.

package com.medyasef.she;

import android.graphics.Point;
import android.test.ActivityInstrumentationTestCase2;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.ListView;
import android.widget.NumberPicker;

import com.bitbar.recorder.extensions.ExtSolo;
import com.robotium.solo.Solo;

/**
* Created by olkunmustafa on 14/06/15.
*/
public class IntroActivityTest extends ActivityInstrumentationTestCase2< IntroActivity > {

private ExtSolo solo;
private Button period_length;
private Button developer_enter;
NumberPicker myNumberPicker;

public IntroActivityTest() {
super( "com.medyasef.she", IntroActivity.class );
}

public IntroActivityTest( Class< IntroActivity > activityClass ) {
super( activityClass );
}

@Override
public void setUp() throws Exception {
super.setUp();
solo = new ExtSolo( getInstrumentation(), getActivity(), this.getClass().getCanonicalName(), getName() );
}

@Override
public void tearDown() throws Exception {
//tearDown() is run after a test case has finished.
//finishOpenedActivities() will finish all the activities that have been opened during the test execution.
solo.finishOpenedActivities();
solo.tearDown();
super.tearDown();
}

public void testViewPager() throws Exception {

// Ekran kilidini aç.
solo.unlockScreen();
// Ekrannı sağa doğru kaydır.
solo.scrollViewToSide( solo.getView( R.id.intro_activity ), Solo.RIGHT );
solo.takeScreenshot( "olkun 1" );
// Ortalama adet günü yazısına tıkla.
solo.clickOnButton( 0 );
// Numberpicker değerini 6 ya getir.
issue( ( NumberPicker ) solo.getView( R.id.number_picker ), 6 );
// Tamama bas.
solo.clickOnView( solo.getView( android.R.id.button1 ) );
solo.takeScreenshot( "olkun 2" );
// Ortalama dngü süresi butonuna tıkla.
solo.clickOnButton( 1 );
// Değerini 30 yap
issue( ( NumberPicker ) solo.getView( R.id.number_picker ), 30 );
// Tamam işaretle
solo.clickOnView( solo.getView( android.R.id.button1 ) );
// Sağa bir daha kaydır.
solo.scrollViewToSide( solo.getView( R.id.intro_activity ), Solo.RIGHT );
solo.takeScreenshot( "olkun 3" );
// Hamile kalmak istiyorum tuşuna bas.
solo.clickOnButton( 3 );
// Bir saniye bekle
solo.sleep( 1000 );
// Developer tuşuna bas.
solo.clickOnView( solo.getView( R.id.developer_enter ) );

}

// public void testLogout() {
// solo.clickOnScreen( 50, 50 );
// ListView listView = (ListView) solo.getView(R.id.left_drawer);
// View listElement = listView.getChildAt(1);
//// solo.clickOnView(listElement);
//
// solo.clickOnText( "Çıkış" );
// }

/**
* @param numberPicker
* @param value
*/
public void issue( final NumberPicker numberPicker, final int value ) {
if ( numberPicker != null && getActivity() != null ) {
getActivity().runOnUiThread( new Runnable() {
@Override
public void run() {
numberPicker.setValue( value );
}
} );
}
}

}



Up 0 rated Down
uaduvuduvo Sep 25, 2015 02:52PM CEST
http://priligyonline-dapoxetine.net/ - Dapoxetine <a href="http://100mgdoxycycline-buy.org/">Order Doxycycline</a> http://lasixonline-buy.com/
Up 0 rated Down
ibaivihuw Oct 08, 2015 04:01AM CEST
http://dapoxetinepriligy-buy.org/ - Priligy <a href="http://hyclatedoxycycline-buy.com/">Buying Doxycycline Online</a> http://lasix-onlinefurosemide.com/
Up 0 rated Down
obdopuqiva Oct 08, 2015 05:48AM CEST
http://dapoxetinepriligy-buy.org/ - Priligy Dapoxetine <a href="http://hyclatedoxycycline-buy.com/">Doxycycline Buy Online</a> http://lasix-onlinefurosemide.com/
Up 0 rated Down
enimojiq Nov 23, 2015 11:44PM CET
http://dapoxetine-cheapestpricepriligy.com/ - Dapoxetine Buy <a href="http://order-onlinedoxycycline.net/">Buy Doxycycline</a> http://furosemide-lasixonline.net/
Up 0 rated Down
imeaqukevu Nov 26, 2015 02:40PM CET
http://dapoxetine-cheapestpricepriligy.com/ - Priligy Dapoxetine Usa <a href="http://order-onlinedoxycycline.net/">Doxycycline Hyclate Without Prescription</a> http://furosemide-lasixonline.net/
Up 0 rated Down
axepijofiwu Nov 27, 2015 07:02AM CET
http://dapoxetine-cheapestpricepriligy.com/ - Dapoxetine <a href="http://order-onlinedoxycycline.net/">Buying Doxycycline Online</a> http://furosemide-lasixonline.net/

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)

Contact Us

support@bitbar.com
http://assets1.desk.com/
false
bitbar
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete