get from rally graph - java

I'm developing a Dynamic web Project in java, and the goal is upon click on button to fetch the "ITERATION BURNDOWN" graph from https://rally1.rallydev.com.
my question is do i have to know the rally api in order to get this content or just to go to the appropriate url and search there the graph?
i login successfully to the rally (used this link for the login: http://www.mkyong.com/java/how-to-automate-login-a-website-java-example/).
after i login successfully i couldn't get the url with the graph. it's just returning the landing page content.
pls help,
Thanks

I assume that you refer to IterationBurndown on Reports>Reports page, which is served by a legacy analytics engine.
To get the appropriate URL you may need to install IterationBurndown report wrapped in an app from AppCatalog on a custom page in Rally. I cannot confirm a java scenario, but the URL of that custom page can be used with javascript, by making an html file with this custom page embedded using iframe, for example:
iframe.src = "https://rally1.rallydev.com/#/12345d/custom/6789";
The steps are:
create a custom page
install IterationBurndown report from the AppCatalog as an app.
At least in the javascript app case, the URL to IterationBurndown on Reports page will not work for this purpose, hence the extra step of using a custom page.
When you say that you get a landing page, I am not sure if you are referring to login page or home page. If it is the former, it means authentication has not been handled. Legacy IterationBurndown report wrapped in an app will not work with newer ApiKey. That's too bad because ApiKey, unlike LoginKey, works with Java as well, unlike the legacy LoginKey which works in the browser (with html/javascript apps) only.

Related

Hide URL Parameters from URL Angular JS + Flex

We have a legacy application which was developed in Adobe Flex/Java. We have another application being developed in Angular JS. Requirement is to redirect the user from Angular JS app to Flex app. So, we have decided to just do a POST request to Flex app along with passing the parameters in URL. Flex app requires few parameters, like login user details, to login to Flex application. So, When Angular JS redirects the user to Flex app using $location we are also appending the URL with required login user details. However, the problem, I see is , all these values are appearing in browser's URL which is not acceptable to the end user.
My Question is
1) What is the best way to redirect from Angular JS app to Flex app along with passing parameters and not to be visible to users on Browser's URL.
2) If whatever described above is correct, can you please suggest us on how to hide query parameters in browser window ? Can that be handled in Angular JS or do I have to make some changes in Flex app.
Thanks in advance !
There are two more methods to use.
1) Pass parameters to your swf via html embed and read it in swf on load (using FlashVars):
http://kb2.adobe.com/cps/164/tn_16417.html
2) Write login data to browser cookies and read it in swf (using calls to JavaScript in your page via ExternalInterface)
Also please refer to Accessing browser cookies from Flex
Accessing browser cookies from Flex
Original Question:
html form post to flex app

Forms not populating?

I'm creating an application to login, and add items to carts. I'm almost done, problem is when loading up the product page, it doesn't load up the to select product sizes. The framework I'm communicating with is Magento.
Any ideas? It loads up fine on my actual web browser. But it doesn't show up on my actual java program. I'm using jsoup to parse html page and use the getelements() features. I had it return the product page and it's missing the selection.
Alittle more detail, I'm using httpclient, and http get to retrieve the product page data. All the cookies are configured, and headers are configured correctly.
This issue was solved, HttpClient is not a headless browser. It was not executing any of the javascript code. To remedy this situation, I suggest you find a headless browser package.

Spring Security Auto Login not working inside iFrame in IE browser

My application is using spring security for authentication and authorization purposes.
To implement a requirement, we needed to do first auto login and then show a particular page to the user.
I made required changes in my source codes and did auto login through spring security api.
As per the client requirement our application needed to be run inside an iframe.
The above implementation is working fine in Chrome and Firefox browser but not in IE.
In IE, it is always showing me the login page(NOTE: Since I am doing auto login, this behavior should not have happened)
If I am directly invoking my application without iframe in IE then it is working fine.
Example:
Say my application URL is http://example.com
If I am running code like in IE, then login page is getting displayed.
But if I am direcly running (address bar) http://example.com in IE, then the required page is getting displayed with auto login happened.
Can anyone give some idea to resolve this problem?
Thanks in advance !!!
Ultimately I found the solution after searching a lot in Internet.
Seems like IE is restricting the cookies when the application is running inside iFrame.
The problem lies with a W3C standard called P3P (Platform for Privacy Preferences). Here this will allow Internet Explorer to accept your third-party cookie.
So to solve this problem one need to send the a particular header on the page that allows cookie.
Example:
response.addHeader("P3P","CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"");

Where to define the login.flt as home page in alfresco-surf framework?

I have new bie to alfresco-surf framework and created one small application. I can access my page using http://localhost:9090/surf/page?p=login url but when i typed only http://localhost:9090/surf its showing
HTTP Status 404 - /surf/
Also I want to use this page for authentication and want to call my Java class to authenticate the user from database. but i don't know how to call my Java class and where to configure.
I create login.xml inside the WEB-INF\classes\alfresco\site-data\pages\login.xml
also create the template instance.
Please help I want to make it as my home page and want to call my custom java class for authentication and want success or failure to render home page.
I got it working.
In \webapps\surf\WEB-INF\classes\alfresco\site-data\configurations there is a file named
default.site.configuration
In this file we have to mention the root page.

Submitting data to form and interacting with website, automation

Suppose I have a website that I can log into (at any time) and submit data to every x hours (click a link visible once logged in), how would I go about automating this process?
I have built a gui that provides the user (for now me, for my own convenience) an interface with some information, lets the user type in the log-in info and a button for starting a scheduled and repeated task in a ScheduledExecutorService but I am stuck at that point. Currently I use the Desktop api and browse() and rely on the user having logged in and just browse the url of the clickable link.
Knowing the URL of the loginsite, how do I submit the login info from my application to the the loginform of the website and let the website process it? (and let my app know the login was sucessful) and then click the link that will be visibile at a different URL once the login succeeds?
Looks like you need Web Services. Try exploring WSDL or REST api.
EDIT : Looks like you are trying to use Selenium which is a functional test framework. Set it up like the program describes at the end of the getting started page. After that you should be able to access the html page elements as provided in the tutorial.
If the webapp doesn't expose some kind of web service you cannot automate login procedure or any other action on the site.
If the website is your project, than you can implement web methods that allow you to achieve what you need.

Categories

Resources