Robotium for automation - automation

I am following Robotium guidelines for automating third party application.when i create android test application ,it is throwing null pointer exception.Even if I neglect it and try to run application ,it is throwing no application with that name.

Even I have tried a lot over this, but in vain.
One of my friend suggested me to double click the finish button twice as fast as I can and I have done it. By following this I have solved.. You too try once and check it out.

Not sure if this will help you, but testing third party applications I've used testdroid-robotium. This creates a simple 'template' for the robotium quickly using your touch input from the device. From there you can edit the testcase to add the extras you need.
While following the tutorial for testdroid I haven't run into any null pointer exceptions. Maybe you can try this out and see if it helps?
edit- and then I see this was asked 1 year ago :)

Related

RPA/Selenium to Perform TIN Matching

I am trying to automate a process where I am verifying a TIN (tax id number) on the IRS website. I thought it would be easy but when I run my test - the IRS website gives me a “technical error” code 4405. If I do it manually it’s no issue. I tried to back door it using executejavascript to no avail and tried using findelement.Click to emulate a human.
Since everyone is afraid of the IRS (myself included)- I started to think maybe they are detecting an automated browser instance and maybe I breaking an agreement I click through but didn’t see any. So assuming I am compliant and maybe overthinking it, how does one get through this ? It’s happened before using Oracle EBS but I just deferred in that case.
Are web apps detecting Selenium and preventing automation ? I understand why in some cases , but how does one circumnavigate for legit cases such as automating testing. Do I have to automate through win app driver?
Yes, I believe the IRS is using/checking for automation programs such as Selenium (see Can a website detect when you are using Selenium with chromedriver?)

Using GitHub Source Code to modify existing Rally apps

I'm fairly new to the Rally development scene, but I've been tasked with making a few custom apps for my workplace this summer.
I've been trying to use the GitHub source code on pre-existing applications and extend them to create these apps, but I keep running into errors with trying to modify them.
My question is this- is the code provided already supposed to be working, or should it just be used as a starting point?
The reason I ask is because I did no modifications to the source code retrieved from GitHub, but when I tried to execute the code, it didn't work. Specifically, I was working with the Release Burndown code (provided here: https://github.com/RallyApps/app-catalog/tree/master/src/apps/charts/burndown), and each time I build it with the rally-app-builder, the HTML that gets spit out into the deploy folder is not even functional. The error my console receives is "Uncaught TypeError: Cannot read property 'substring' of undefined". This error makes absolutely no sense to me. Could someone elaborate on what's going on?
I've already watched the video series by David Thomas on getting started with Rally, but if anyone has any other great resources that can help me get up to speed, I would greatly appreciate it.
Any and all help is welcomed.
Thanks guys!
The vast majority of the apps in the catalog should work externally/in standalone dev mode. There is a known issue with Rally App Builder with some of the apps that share code outside of its home directory which is probably what you're running into. (You can see in that app's config.json that it is referencing shared files a directory or two above its own directory).
The workaround is that you can always build the app and then in your browser you can browse to deploy/App-external.html to test it. You should be able to set up rally-app-builder watch in another console to automatically rebuild it as you make changes as well.
Welcome to the Rally developer community!
After spending a bit more time on this I've come to the conclusion that this is not a particularly well written app for standalone use. But you should be able to get by your issue by changing this code in BurndownApp.js:
config: {
defaultSettings: {
chartTimebox: 'release' //used to be undefined
}
}

Playframework selenium autotest debugging

I am developing a play 1 application and testing it with the selenium. In several cases, play auto-test fails when normal testing within a browser (play test) succeeds. This can be due to different behaviour of js/ajax, or development mistakes on my side.
Is there a way to get some more feedback regarding what's going on in the headless browser? For example, assertTitle does give some feedback, as in the test-results HTML the title found is displayed.
Are there ways to get a the whole response at a given point, or any other usable feedback to debug the application and the test cases?
It would be better if you could give some more details about what all things are failing in your tests, give some code examples which u are writing.
Even i had faced lot of issues in running selenium tests in play auto-test, u can refer this link for our issuesPlay Auto-tests issues
The best way to debug the selenium tests is to use echo and see what are the results it is returning.

What's the simplest/easier way to do a health check/smoke test in an internal web app?

I have an intranet web application and I would like to do a simple health check/smoke that runs once an hour to make sure that everything is how it is supposed to be.
The tests are supposed to do some requests and check response for text and in some cases do one or two POSTs to see if the application in answering like it should.
I thought about using Selenium or Visual Studio's WebTest and schedule the run via CC.NET or another CI application but seems like a big shot for a simple thing.
Any ideas?
Thanks
Selenium is a good option. So is PhantomJS.
I dare to say that SWAT could be a good choice for you. It does exactly what you say - makes various http calls and check data returned, also it is possible to pass the test results to different report systems, using TAP format which swat is compliance with. And finally there is a simple DSL to write such a checks.
Regards, the author.

Solo.call and solo.endcall usage in android testing using robotium

I am quite new android testing. Iam using robotium for testing application. I want to know the usage of the CALL and ENDCALL fields .I am not able to end call using the field.
Please suggest me on this..
Those two have been removed from Robotium 2.0 just because of all the problems that users have experienced with them. Due to security reasons one is not allowed to interact with other applications if they do not have the same certificate singing and are not defined in the AndroidManifest.xml of the test project. What those two try to do is to start and control the contacts application. Due to security reasons that introduces problems. My advice would be to update to Robotium 2.0 and stop trying to use them.
/Renas