Accessing Web Application deployed on local server through Selenium IDE - selenium

I'm trying to access web application deployed on the local server for testing purposes. When i enter the path and execute it. it displays me
Failed to Construct 'URL': Invalid Base URL
Can anyone help me about it? I tried to find out a valid one but unable to find any.

Thankyou Mateo, your answer reminded me of another tool BlazeMeter that helped me to get my BaseURL.

Related

I cannot edit http files or use the http client on IntelliJ, how can I resolve this?

I am trying to learn Spring Boot and as part of this I need to send http requests to test the functionality of the API I have created.
When following along with this video, the teacher had an 'actions for URL' selection which I do not see in my own editor. Note that the point in the video I linked shows this.
After updating (to IDEA 2021.1) and restarting I still could not see this option.
I tried to create my own .http file, but am not able to work with this type of file.
After more research I found that I should have a plugin called 'http client' installed by default. I cannot find this in my installed plugins or by searching through the marketplace.
When downloading and installing manually (from here), I now get this error which I cannot resolve.
Please can someone give me a pointer to get this plugin working.
I assume you're using the Community Edition, so it probably doesn't have it since according to the JetBrains blog, HTTP Client is built-in on the Ultimate Edition.
You can also check the zip file for the plugin here.

automate electron based desktop app using testcafe not working

i am trying to automate tests for 'lens' electron based desktop application.i was following this link enter link description here to setup the test for electron app.This link expects a 'mainwindowurl' but application doesn't have any main page, but testcafe give suggestion of the mainwindowurl as an error so tried it works but am not convinced with the suggrstion urls ,but same way want to give fixture page url on the test what should be the url should i need to give? then have got one more error ERROR Unable to establish one or more of the specified browser connections. This can be caused by network issues or remote device failure.Please can you guys suggest what to do?
Each and every Electron application has to navigate to a page after opening a window.
I guess that the mentioned Lens app is an Kubernetes IDE: https://github.com/lensapp/lens.
This app uses the BrowserWindow.loadURL function to navigate to the main page:
https://github.com/lensapp/lens/blob/a61425124f18b1cc2d8a507084a472029acc3e6b/src/main/window-manager.ts#L101.
Digging the code a bit more, I found that the main window URL is just localhost with some port:
https://github.com/lensapp/lens/blob/a61425124f18b1cc2d8a507084a472029acc3e6b/src/main/window-manager.ts#L33.
I guess it is possible to determine or set the port number by looking at the code a bit more or asking Lens developers about it.

RROR – unable to acquire LMS API, content may not play properly and results may not be recorded. Please contact technical support

We are in the process of implementing Success Factors LMS, and trying to play and view SCORM compatible files exported from Adobe Captivate 8 and 9 in Success Factors LMS.
I get the message - 'ERROR – unable to acquire LMS API, content may not play properly and results may not be recorded. Please contact technical support’
I have tried SCORM versions 1.2 v3 and 2004 V2 and V4. We can view the content, however it does not track, show as complete etc.
We are also producing Scorm compliant files using Skillcast and Articulate, but we still hit the same issue, we can view the content after closing the API error window, but still does not track.
Anyone experienced this problem before? Or know of a fix?
Many thanks
Normally this issue comes up when the course is unable to get the SCORM API from the LMS...I have seen a ton of SCORM content running in Success Factors before, so I wonder if the issue is in the setup. Are you seeing any "Access Denied" type errors in the browser element inspector/developer tools? I wonder if the course just can not find/have access to the player window. If the course is launching in a new window, you may want to try launching it in the frameset. I have seen folks get around this issue by making sure the player and sco are in the same window...
If you wanted to rule out the content being the issue, you can always test your content in the SCORM Cloud's free sandbox (https://cloud.scorm.com) to make sure the course is properly asking for the API...
If you have any other questions, we would be happy to help...you can just shoot us an email at support#scorm.com.
Thank you!
Joe
The error occurs because the content is not speaking to the Learning Management System (LMS). The code that runs to initialize the session doesn't happen. There is no return "ping" from the LMS.
You will get this error when you publish in SCORM and run from your desktop, or from a web server that isn't connected to an LMS. If it occurs when you are launching from an LMS it can either mean that the SCORM API isn't configured correctly, or your content server is on a different domain (cross-domain) than your application servers.
To test, you should try launching your content in different browsers. Our system was configured in such a way that Firefox and Chrome read our content to be cross-domain issue, and threw the SCORM API error, but Internet Explorer worked just fine.
In the end, it was determined that our server configuration in tandem with our firewall and security settings read the Content server as cross-domain and we had to redeploy our content servers within the firewall.

Cannot Deploy Gadget-Application for Development and Testing

I want to start developing a contextual gadget for GMail apps and have been following the guide.
In the part about Installing and Testing the Gadget, it tells me to go https://code.google.com/googleapps/console/a/{Domainname} and upload the manifest file there. I have done this, the manifest file was accepted and I used the Deploy button.
I get to the page where it asks for the data permissions, click yes, and then get a Server Error. I have re-uploaded the manifest and triple-checked that the <Url> leads to a valid gadget xml. I get zero feedback about what the error could be, only that it's a Server Error and it happens every time I try. If the gadget XML is somehow invalid, I would not be able to check, as Google gives me no way to check such files for correct content.
Can anyone help, perhaps?

Sahi + PhantomJS fails when testing local PHP web app with behat

I'm having an issue testing a locally hosted web application with a behat+sahi+phantomjs set up.
I have run the full suite with just behat+sahi+chrome which works fine
I have also tested a small sample behat test against a live stie that works well
The issue appears to happen both when I point my base_url to either my locally hosted app or a server where that app has been deployed
Something as simple as this:
#javascript
Scenario: Get to the login page
Given I am on "/login"
And I should see "Email Address"
And I should see "Password"
Results in this output:
Given I am on "/login" # FeatureContext::visit()
And I should see "Email Address" # FeatureContext::assertPageContainsText()
Command execution time limit reached: `_sahi.setServerVarPlain('___lastValue___50ff0bcf186da', _sahi._getText(_sahi._byXPath("//html")))`
I'm using the setup detailed here: http://shaneauckland.co.uk/2012/11/headless-behatmink-testing-with-sahi-and-phantomjs/
Is this a configuration issue? Or because the app is also hosted on localhost?
What might I try to troubleshoot this further?
Thanks
The issue appears to happen both when I point my base_url to either my
locally hosted app or a server where that app has been deployed
Phantomjs does not seem to use the proxy for localhost. You can try using your machine name instead. Are you sure it does not work for your server too? Is it possible to post more details to reproduce this?