How to configure Appium-Flutter-Driver in windows? Which IDE is preferable? - java

I'am new to Automation testing. I have to perform automation testing on Flutter app. I came across appium-flutter-driver through this link: [https://github.com/truongsinh/appium-flutter-driver][1].
Unable to configure the driver in my project. Currently using, IDE:Eclipse 2018-12, Build:Maven build using TestNg Java. I have installed the Appium-flutter-driver in my system using the given command "npm i -g Appium-flutter-driver" in GitHub. But unable to configure driver into my project. There is no ".jar" file.
Need Help:
How to configure the Appium-flutter-driver into project?
Which IDE is preferable to configure the driver and perform automation testing?
Thanks in Advance.

In order to install flutter driver, use command npm I appium-flutter-driver, which creates node modules directory in your project directory with flutter library. Later you need to import library in your file/class.
Hope this helps..Happy coding

Related

quarkus dev mode for CLI, how to restart app

I just created a sample Quarkus CLI app. When I run it in dev mode, pressing [enter] does not restart the application.
Steps to reproduce:
I am using the quarkus CLI, on macOS Big Sur, default Terminal app. I generate a default cli app with the following command:
quarkus create cli --group-id=test --artifact-id=test --maven --java --code
Then, once I am inside the test folder, I run:
quarkus dev
The example code runs and dev mode stays waiting for changes, but if I update the sample code and press [enter] on the terminal as described in the quarkus guide for CLI apps, the app is not rerun.
I also tried maven directly as suggested on the guide:
mvn compile quarkus:dev
But the result is the same.
The example generated is very simple, and uses Quarkus 2.0.1 with the picocli extension. Works fine when compiled and run standalone.
Does anyone know what am I missing?
Thanks for any suggestions.
I think what you are seeing is a bug in 2.0 cli where create cli does not create a cli but just the standard app. Thus it won't reload until you hit localhost:8080.
it will be fixed in next version. sorry for inconvenience.
In the mean time you can use https://quarkus.io/guides/command-mode-reference which explains the minimal code and dependencies needed for a Quarkus cli.
Does your project have any tests? The picocli project created by the cli doesn't by default (yet?).
https://github.com/quarkusio/quarkus/pull/18700 should fix your issue (behavior of dev mode for projects without tests).

Rapid Application Development in Eclipse Alfresco (Hot Reloading)

I want to make changes in the SendAsEmailActionExecuter.java file in the sub-project AMP (add-action-repo) which is inside All-in-one project in Alfresco 5 community. It is an example as you can see in the following link. I am developing in eclipse and when I customize an ftl or js file the eclipse the eclipse reload the changes. How can achieve the same thing with java file without the need to execute clean install -Prun command every time.
I have notice this guide but the DemoComponentTest does not make the trick.
How can achieve hot reloading in a such case ?
The Rapid Application Development (RAD) in Alfresco SDK is delivered by the spring loaded library.
Long story short, you need to run your project using the shipped OOTB run.sh / run.bat depending on your OS.
The run script will check if the spring-loaded jar is already present in your repo, run profile setup if it is not present to go fetch it, and then run mvn integration-test -Prun or mvn install -Prun, I do not remember which is called on the script but it should be one of those two
UPDATE :
Please refer to this file for further reference
Please note that RAD is not available in SDK-2.2 as it is not compatible with it and would prevent the repo from starting
SDK 2.2 is only available for alfresco 5.1.x code base (and it is the only viable option for developing 5.1.x extensions)

How to run java test files using Appium for android?

I'm very new for Appium. I have configured all my Win-7(64 bit) machine using this blog i.e Appium for windows, node.js and Android SDK with API level 17, emulator etc.
I found many java files on git-hub also in this blog also
but How to run this java files I don't have idea.
If anybody guide me step wise will be very helpful.
Thanks.
You can run the java test file using following command:
mvn -Dtest=com.saucelabs.appium.SimpleTest test
Note: You need to open terminal -> navigate to project directory --> execute the above command.
Refer to this link: Run Java Test File
For command line execution you can integrate your automation test with build tools.
Like Ant, Maven, Gradle. it can help you to execute and build automation test, also you can easily integrate with CI tools with the help of these.

Runnig eclipse from Jenkins

I have installed the Jenkins on my windows machine.
I am currently doing the functional testing of a website and i have created all the test cases using selenium . I ran all these testcases using eclipse with testng plugin.
Now is there any way where i can run these testcases in eclipse from Jenkins itself i.e Can i control the eclipse from Jenkins.
I am trying hard now and able to run it using batch command( i have written all the commands in a batch file to run the eclipse and selenium driver and that batch file is executed from Jenkins ) but i am in search of a plugin where i can run directly the eclipse , selenium web-driver using that plugin.
Please see to this issue.
Thanks.
You are on the right lines with a batch file, but I recommend you use Ant or Maven instead of Eclipse - they are the standard way of scripting builds in Java, and they have good Jenkins support.
Here is a plugin for Maven to start up Selenium before the tests: http://mojo.codehaus.org/selenium-maven-plugin/
Here is how to run your TestNG tests using Maven: http://maven.apache.org/plugins/maven-surefire-plugin/examples/testng.html

installing selenium-java-2.5.0 in eclipse

I have downloaded "selenium-java-2.5.0" and added it to the build path of my project in eclipse, but when I try to utilize one of the new API's I get a syntax error.
Is there a tutorial for installing the selenium-java-2.5.0 in eclipse?
The issue was that old jars were still conflicting with eclipse, removed old jars re-added fresh ones
You will need all the .jar files in selenium ZIP. Copy selenium-java-2.xx.jar and all the jars from libs folder (in selenium ZIP) to your project.
If you really need a tutorial about this, look here: Selenium Java Tutorial
I would suggest create a pom.xml file and add the maven dependencies to the file and refresh the project. Then the required dependencies and jar are automatically installed. you can also add jar according to your requirement by going to the link.
https://mvnrepository.com/
because adding jar separately might lead to any flows.
If you want setup Selenium Environment,
1) Download and Install Java Software (JDK) - create and execute programs / Test scripts
2) Set Environment Variable path (Path Variable) - To use Java from any directory
3) Download Eclipse IDE and Extract - To write and execute Java Programs
4) Download Selenium WebDriver Java Language binding (from www.seleniumhq.org) and Add
Webdriver jar files to Java Project in Eclipse IdE
5) Download Browser driver/s and (* set browser driver path in Test cases...)

Categories