Testing OData in a UI5 App

Hi there,
i'm trying to write some tests in Javascript/ UI5 concerning OData.
I have found this document : OData acceptance tests with QUnit and datajs explaining what i need.
The problem is that i do not manage to make it work.
Here is my code ( test ) :
module( "Tests ODatas" );
var request1 = {
        method: 'GET',
        resourcePath: "Cars(1)",
        headers: {Accept: "application/atom+xml"}
var callback1 = function (response, data) {
    equal(response.statusCode, 200, "StatusCode: 200");
    expectedHeaders(response.headers,{ "Content-Type" : "application/atom+xml" }, "Content-Type: application/atom+xml" );
    equal(data.Model, "F1 W03", "test du model de voiture");
var request2 = {
        method: 'DELETE',
        resourcePath: "Cars(9999)",
        headers: {Accept: "application/atom+xml"}
var callback2 = function (response, data) {
    equal(response.statusCode, 200, "StatusCode: 200");
odataTest("qunit-odata1", 3, request1,callback1);
odataTest("qunit-odata2", 1, request2,callback2);
I want the first test to pass, and the second to fail.
And the result is (firebug's logs in the 2nd part) :
1/ The first test is not completed
2/ The second test is not even launched
3/The "Module" does not appear before test's name
4/ "0 tests of 0 passed, 0 failed" ??
Can somebody help me to fix this?
Thanks,
Regards,
Marc

Did you specify data-service-root like:
  <script src="qunit-odata.js" data-service-root="/ZPSA/proxy_abap/sap/opu/odata/sap/ZPSA_SRV/"></script> 

Similar Messages

  • Windows App Certification Kit - Test Fails for Validate Desktop App at "Write appropriate Add/Remove Program values"

    Hi,
    I am trying to validate a .Net Framework 4 WinForms application for use in the Microsoft Partner Network portal.
    I am using Windows App Certification Kit 3.4 for Windows 8.1 , and the Validate Desktop App option.
    To build the package I am using InstallShield 2012 SPR Limited Edition (for Visual Studio), and the validation fails
    only with the following error (please also see the attached image):
    Clean reversible install test: Failed to Write appropriate Add/Remove Program values
    Error Found: The registry population test detected the following error: app didn't create the required registry entries.
    A non-optional value 'DisplayName' is missing or invalid (same for 'Publisher', 'ProductVersion')
    Please note that I have filled in all the publisher/product details in the InstallShield project, on the General Information page.
    Also I have tried to use the Microsoft Visual Studio Installer Project for VS2013, and the validation failed with the exact same error.
    (https://visualstudiogallery.msdn.microsoft.com/9abe329c-9bba-44a1-be59-0fbf6151054d)
    Any help would be very appreciated.
    Thank you.

    You may need to add the necessary info to the app’s Windows Installer package so it can configure Add/Remove Programs in Control Panel correctly. Setting these properties automatically writes the corresponding values into the registry. From the picture,
    you are missing some necessary information about your desktop app.
    Also You need the correct admin permissions to write to the registry.
    Please refer to this thread:
    http://stackoverflow.com/questions/21182856/windows-app-certification-kit-test-result-app-didnt-create-the-require-regist
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • SAP UI5 App Integration with PhoneGap

    Hi,
    Can any one guide me in integrating SAP UI5 App with PhoneGap and deploy the app to iOS or Android,
    Help me in sharing either blogs OR docs related to this topic.
    Thanks,
    Jaya

    You may check
    Building awesome mobile apps with SAPUI5 and PhoneGap
    Packaging sapui5 application using phoneGap for Android [ Command line Interface ]
    Rgrds,
    Jitendra

  • Iam searching for test cases specific to iPhone apps

    Please help me out on writing Test cases specific to iPhone apps
    Thankyou

    I think I had the same problem. iTunes was reporting (in the side bar and at the bottom of the applications view) that there were X application updates but when I clicked it, it showed either none or only a couple of them.
    The problem was that iTunes checks if there are any updates to the applications you have installed (in your iTunes or iPhone) but when you go to see the updates, it logs in your iTunes account and displays the updates that are purchased with this specific account. Of course when you use for some reason two different accounts (e.g. just got a MobileMe account and want to use this instead of your previous), you will get different updates available to each account but the total number of updates will be displayed in various locations (sidebar, apps pane, iPhone app store icon badge).
    The only work-around I found was to logout from one account, login with the other, do the updates and log back in to the one I currently use.

  • How many devices do you test before releasing your iphone app

    Hi,
    Just want to get an idea about how many devices do you test before releasing your iphone app. I am currently developing on iphone 2.5G. Do I need to test my app on iphone 3G and ipod touch? Are there any difference? My app does not depends on network speed.
    thanks,
    ff

    It's not a bad idea to test on whatever you can but it's not necessarily required. You do have to make sure you're not doing anything that can't be done on all devices. (i.e. access camera in Touch, assume GPS, etc)

  • I'm a software tester for an in-house app at my company. version 10.0.2 is not cmopatible with some controls within our software. I need the v9.0.1 download which I know works with the controls. Where can I get it?

    I'm a software tester for an in-house app at my company. version 10.0.2 is not cmopatible with some controls within our software. I need the v9.0.1 download which I know works with the controls. Where can I get it?

    Well, if you need old versions of firefox you can find them on this site:
    - http://www.oldapps.com/firefox.php
    Best regards, G-Cloud.

  • How to bind data from odata to the ui5 table .

    HI  ,
    Can anybody help to bind Odata service to the ui5 table in eclipse .
    This is my code.

    Check this
    http://baigsorcl.blogspot.com/2010/03/creating-master-detail-form-in-adf.html
    http://baigsorcl.blogspot.com/2010/03/moving-to-jdeveloper11g-your-first-adf.html
    @John now you won :D

  • Testing OData Service on SMP3

    Here's what I've done so far:
    Created an OData model in GWPA, deployed to SMP3 Integration Gateway, wide open access, I can pull up the service document on the Integration Gateway, I created an application definition in the Admin Cockpit, created a SQL Server JDBC destination, set service document URL to application connection, created a starter HTML5 hybrid application in GWPA, and exported the WAR file.
    Questions
    - Is there a way to test the JDBC destination connection that we create in the SMP Admin cockpit?
    - I'm assuming SMP3 runs on a version of Tomcat. I dropped the HTML5 war file in C:\SAP\MobilePlatform3\Server\pickup, can I view it in browser? What's the URL to it?
    I'm just trying to do an end-to-end proof of concept of creating an OData service in GWPA against a JDBC source, and consuming it with an HTML5 application.
    Thanks!
    DJ

    Hi JK,
    Thanks! I increased log level and still getting same errors:
    Search "#error" (12 hits in 1 file)
      C:\Users\dpascual\Desktop\New Text Document.txt (12 hits)
    Line 607: 2014 07 02 09:13:37#0-1000#ERROR#com.sap.gateway.core.service.dao.ServiceDAO##anonymous#http-bio-8080-exec-5###Failed to Get Service. |
    Line 608: 2014 07 02 09:13:38#0-1000#ERROR#com.sap.gateway.core.service.dao.ServiceDAO##anonymous#http-bio-8080-exec-5###getSingleResult() did not retrieve any entities. javax.persistence.NoResultException: getSingleResult() did not retrieve any entities.
    Line 970: 2014 07 02 09:13:38#0-1000#ERROR#com.sap.gateway.core.service.repository.api.ServiceRepositoryAPIHandler##anonymous#http-bio-8080-exec-5###Error in get Services for Destination |
    Line 970: 2014 07 02 09:13:38#0-1000#ERROR#com.sap.gateway.core.service.repository.api.ServiceRepositoryAPIHandler##anonymous#http-bio-8080-exec-5###Error in get Services for Destination |
    Line 971: 2014 07 02 09:13:38#0-1000#ERROR#com.sap.gateway.core.service.repository.api.ServiceRepositoryAPIHandler##anonymous#http-bio-8080-exec-5###javax.persistence.NoResultException: getSingleResult() did not retrieve any entities. com.sap.gateway.core.service.exception.ServiceRepositoryException: javax.persistence.NoResultException: getSingleResult() did not retrieve any entities.
    Line 1336: 2014 07 02 09:13:38#0-1000#ERROR#com.sap.gateway.core.service.srvrepo.ServiceRepositoryProvider##anonymous#http-bio-8080-exec-5###Error in Getting the Service |
    Line 1336: 2014 07 02 09:13:38#0-1000#ERROR#com.sap.gateway.core.service.srvrepo.ServiceRepositoryProvider##anonymous#http-bio-8080-exec-5###Error in Getting the Service |
    Line 1337: 2014 07 02 09:13:38#0-1000#ERROR#com.sap.gateway.core.service.srvrepo.ServiceRepositoryProvider##anonymous#http-bio-8080-exec-5###Could not get the service com.sap.gateway.core.service.api.exception.ServiceRepositoryAPIException: Could not get the service
    Line 1706: 2014 07 02 09:13:38#0-1000#ERROR#com.sap.gateway.core.ip.runtime.GatewayIPODataProcessor##anonymous#http-bio-8080-exec-5###Error in Getting the Service com.sap.gateway.core.api.exception.TechnicalException: Error in Getting the Service
    Line 1706: 2014 07 02 09:13:38#0-1000#ERROR#com.sap.gateway.core.ip.runtime.GatewayIPODataProcessor##anonymous#http-bio-8080-exec-5###Error in Getting the Service com.sap.gateway.core.api.exception.TechnicalException: Error in Getting the Service
    Line 2063: 2014 07 02 09:13:38#0-1000#ERROR#com.sap.gateway.core.ip.runtime.GatewayIPODataProcessor##anonymous#http-bio-8080-exec-5###readEntitySet() failed: service = open/ingwtest, entity set = tailboards, content type = application/atom+xml;charset=utf-8;type=feed, message = com.sap.gateway.core.api.exception.TechnicalException: Error in Getting the Service |
    Line 2064: 2014 07 02 09:13:38#0-1000#ERROR#com.sap.gateway.core.ip.odata.ODataErrorCallbackImpl##anonymous#http-bio-8080-exec-5###handleError(): failed to serve request for URI http://localhost:8080/gateway/odata/open/ingwtest;v=3/tailboards, message = Error in Getting the Service |
    Any ideas?
    You may check details about created destinations here
    C:\SAP\MobilePlatform3\Server\deployed_content
    Isn't this more for the services, not the destinations?
    Thanks for your swift responses!

  • Test URL for CRM iPad app

    Hi
    Does anyone know of any test crm urls that can be used to demonstrate the functionality of the various CRM iPad apps? It seems that the only way we can try it out is to open up our existing CRM instance via IFD - we would rather
    be able to first test the iPad functionality by pointing at a example CRM before we go to the trouble of opening up to the outside etc.
    Thanks

    You could sign up for a
    free CRM Online trial. 
    Jason Lattimer
    My Blog -  Follow me on Twitter -  LinkedIn

  • How can I test a folio inside an app?

    Hi,
    I already have a multifolio app in the AppStore. There is one folio in the app.
    Now I'm going to create another folio.
    Is it possible to test the new folio inside my app (not in ACV)?
    I know if I publish the folio I will be able to see it, but readers will be able too.
    Can I see the folio in the app privately? Or the only way to test folio is by using ACV?

    If you publish folio as Public/free then it will appear in app library and users can download folio and read folio content. You can test folio in ACV.
    If you publish folio as Public/retail then it will only appear in library once associated in-apppurchase is approved by Apple. You can test folio in developer.ipa.
    Woraround: You can create test app and keep title id as your application account in whch you published your folio and test developer.ipa. If folio is working fine in test app then publish it in LIve app.

  • Problem connecting OData Service through SMP APP in Android App

    Hi,
    I'd like to develope an Android sample app with SMP and OData. Therefore I use the SMP Developer Version in the HANA Cloud and the Netweaver Service Gateway Demo System as OData Endpoint. I configured the app in the SMP as described in the openSAP Course "Introduction to Mobile Solution Development".
    I successfully managed to integrate the MAFLogon component from the SMP SDK 3.0. The registration in the app to the SMP works fine. Then I tried to download the service document as described in the SMP SDK 3.0 Help Documentation (http://help.sap.com/saphelp_smp303sdk/helpdata/en/7c/09250170061014bb05d2c9cd16418c/content.htm?frameset=/en/7c/09404b70061014b89ba1222a327094/frameset.htm&current_toc=/en/7c/01cda6700610149b10c2f2a86d335b/plain.htm&node_id=3583&show_children=true#jump3577).
    But when I'm trying to download the service document, I get a 403 response and in the SMP the log says "Application connection id is not provided". So I added the APPCID in Requestheaders. Then the download works and in the onsuccess method of the INetListener I'll get a 200 response. But in the SMP Logs I get a 401 response which says that I should supply the Authorization Headers. So I added them in the next try and I get a 500 response.
    So I don't know what to. Can anybody provide me some advice?
    Thanks in advance
    Philip

    Hi Philip,
    Can you download the app from this tutorial and try, SMP 3 - Android Native App Development
    The tutorial is based on the SMP 3 on premise version not on the SMP HANA cloud, but still it works. Only change you have to do is replacing the code clientConnection.setConnectionProfile(true, "66.175.100.29", "8080", null, null); with clientConnection.setConnectionProfile("https://smpxxxtrial.hanatrial.ondemand.com");
    And it is not using MAFLogon component. You can use it if needed.
    Thanks,
    Midhun VP

  • FDS Test Drive - help with sample apps

    I'm trying to use the FDS 30 Minute TestDrive sample apps
    inside
    Flex Builder. I downloaded the test drive and all the samples
    work
    just dandy fine, and I can view the source etc. So I wanted
    to load
    some of the sample apps into Flex Builder so that I could
    modify and
    play with them with the debugger so as to learn more.
    I've tried the following:
    create New Project - use Flex Data Services/compile app
    locally
    Root Folder: C:\fds-tomcat\webapps\ROOT
    Root URL:
    http://localhost:8600/ROOT.
    When I click Finish, I get the
    following 3 errors in the Output panel:
    unable to load SWC fds.swc: multiple points
    unable to load SWC fds.swc: multiple points
    The definition of base class Locale was not found
    Could not resolve<mx:Application> to a component
    implementaion
    I am on Flex 2.0.143459.
    I've verified that fds.swc is indeed in the
    C:\fds-tomcat\webapps\ROOT\WEB-INF\flex\libs folder.
    I don't know what the other messages mean or what to do.
    I then stubbornly unzipped one of the sample apps into the
    FlexBuilder project folder (which I named FDS TestDrive
    Samples) and
    tried to run it anyway to see if I could get more info. I
    then get
    a browser window with the following additional errors:
    type Status report
    message /ROOT/FDS%20TestDrive%20Samples/Chat.html
    description The requested resource (/ROOT/FDS%20TestDrive%
    20Samples/Chat.html) is not available.
    So I guess one problem is that it is not making an html
    document.
    But I don't know how to correct that.
    I have no idea what to do. Any help would be GREATLY
    appreciated.

    Someone helped me offlist with this after I got frustrated
    that this forum is essentially dead. But in case anyone else needs
    this info, I thought I'd post. First you need to be on Flex version
    2.0.155577. So I had to redownload all of Flex, uninstall my older
    version, install the new version. Then I did the following
    to create the Flex Builder project for the dashboard sample
    app:
    File - > New -> Flex Project
    Select Flex Data Services
    Select Compile application locally
    Click Next
    Deselect "Use default local Flex Data Services Location"
    Click Browse... and open c:\fds-tomcat\webapps\ROOT
    Root URL:
    http://localhost:8600/
    Context root: /
    Click Next
    Project name: <Whatever you want to name it>;
    Deselect "Use default location"
    Folder: c:\fds-tomcat\webapps\ROOT\dashboard
    Click Next
    Main application file: dashboard.mxml
    Click Finish
    The Context root was really key. Also, to get my old projects
    back into Flex, I used file:import and then had to do a little
    additional fiddling with some of the projects' properties.
    Too bad this Forum is so dead. I've tried to get feedback to
    Adobe about that concern, but so far it hasn't helped. sigh

  • Run Fiori/UI5 apps with a specific UI5 version ?

    Hi,
    on our ABAP system UI5 version 1.18 and 1.20 are deployed. I just configured the Fiori Launchpad and started the app, by default UI5 version 1.20 is used.
    Is there a way how I can enforce to use version 1.18 for certain apps ?
    Best regards,
    Stefan

    Hi Stefan,
    The UI5 library in case of Fiori is loaded by the Fiori Launchpad and reused by the applications. So, I don't think it will be possible for certain apps to use 1.20 and certain to use 1.18.
    I did not really understand why you would like to use 1.18 version instead of 1.20. As a general recommendation , its always better to use the latest version of UI5 library.
    Best Regards,
    Nitish

  • Automated test Android / iOS Viewer Builder App.

    Hello,
    I'm trying to create some automated tests around the Viewer Builder generated .apk / .ipa that contains custom HTML views, but without success.
    Do you guys have any advice on how to setup automated tests for this?
    Our target is:
      - whenever I tap in a custom HTML view I should know if the correct content is displayed.
       - we don't want to rely on manual tests for that.
       - we also want to test the adobe javascript API for the viewer builder that will be used inside the HTML.
    If you have any thoughts on how to do it, please let me know.
    Thanks.

    Did you follow the steps in this document to create a valid p12 certificate?
    http://kb2.adobe.com/cps/900/cpsid_90052.html

  • HT204053 i test the find my iphone apps and now lock when i put then the passcode i key in it say wrong!! please help

    now my phone locked and i cant acces it please help!!

    Hello GaleN3x,
    Thanks for the question, and welcome to Apple Support Communities.
    If you have forgotten the passcode that was setup when you locked your iPhone, the following article presents various solutions:
    iOS: Forgotten passcode or device disabled after entering wrong passcode
    http://support.apple.com/kb/HT1212
    Thanks,
    Matt M.

Maybe you are looking for