Test is not getting executed

Hi,

I Record the iOS app using appium studio, imported the code in to eclipse and ran the test. Test is not getting executed on iPhone device. Please refer the screen of my eclipse. How make the test run on my device?
Please advice.

Thanks,
Ambika

You need to run the gradle build task so it will fetch Experitest jars
kindly follow our documentation

https://docs.experitest.com/display/public/AS/iOS+-+Build+your+first+test

First you need to change the build.gradle file content to:

apply plugin: ‘java’
apply plugin: ‘maven’
apply plugin: ‘eclipse’

repositories {

 maven { url "http://repo.experitest.com:8010/Maven2/" }
 maven { url "http://repo.maven.apache.org/maven2" }
 mavenCentral()

}
dependencies {
compile group: ‘com.experitest’, name: ‘seetest-appium’, version:‘10.8.28’
compile group: ‘com.experitest’, name: ‘hamcrest-core’, version:‘1.3’
}

For Eclipse -> Go to Window -> Show View -> Other -> Gradle -> Select ‘Gradle tasks’ and ‘Executions’.

From the window click build option and the gradle will build with the Experitest jars which you have provided in the build.gradle file.

Hope it helps.

Thanks I am able to execute the tests now. How to Run the Test as TestNG, when i ran the test as ‘TestNG test’ , i got an error ‘Error: Could not find or load main class org.testng.remote.RemoteTestNG’

If you are using Eclipse you need to add Testng Library in the project

Right Click on project -> Build Path -> Configure Build Path -> Add Library -> Testng Libary -> Finish

Now go to your class you want to run and right click on it:
Testng -> Convert to Testng
Now run the class as testng or build the test using gradle

Thank you! this problem is resolved after providing the dependency in build.gradle file