Jump to content

Ugochukwu Mmaduekwe

Members
  • Content Count

    112
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Ugochukwu Mmaduekwe


  1. While I feel it is not possible for Delphi to open source it's compiler, I highly doubt there are skilled personnels even willing to invest time to improve it for free.

    The bitter truth is that unfortunately the Delphi ecosystem is not as friendly and lively as other languages ecosystem.

    A glaring example is the availability of OpenSource libraries to achieve certain operations is no where as vast as that we have in C#, Java or even C++.

    The VCL and RTL is a different story though.


  2. 33 minutes ago, Stefan Glienke said:

    There is no such function in the RTL, its called UIntToStr and has two overloads for Cardinal and UInt64 - it's there at least since Delphi XE and works there as far as I can tell.

     

    I don't immediately remember a bug with that function (which does not mean anything) - but I know there was a bug with the opposite related to System.Val which was fixed in XE4 - see https://stackoverflow.com/q/6077258/58710

    Thanks for replying.

    Sorry, I feel very stupid, my question was regarding StrToUInt64.


  3. I read somewhere online (can't remember where exactly), that StrToUInt64 was buggy in the first version it was released and was fixed in the next compiler release.

    Anyone have additional information regarding this, (that is what version of Delphi it was first available in and hopefully the version the said bug was fixed in)?

     

    Thanks.


  4. 5 hours ago, PeterEvansOz said:

    There is a different approach. I like the approach of DUnit running on Windows under VCL.

    How can you get the Green Light paradigm working on FMX?

     

    Well, Roger Connell has done the port to FMX.

     

    See  http://docs.innovasolutions.com.au/Docs/ADUGDelphi/ADUGDecember2014.html

     

    This approach was presented to ADUG in December 2014.

    I have used it successfully on Android under FMX. It works very well.

    Yes, while it works on Android and with some little changes Mac OS X, I couldn't get it to work on iOS unfortunately.


  5. 4 hours ago, John Kouraklis said:

    But I don't know how to do it on Android. If you find out please share. I am interested

    @John Kouraklis

    Finally got it to work, below are the steps.

    1. Download Angry Port Scanner from Google PlayStore (Do not open)
    2. connect your PC and Android to the same WiFi network

    3. Open Angry Port Scanner, it will auto select the IP range to scan, in the Ports edit box enter the value 8000-9000 and click the scan icon

    4. after the scan is done, it will show you the Open IP and Port, this is the IP and Port we will put in our FMX app.

    5. Create a simple GUI FMX app with a button and the tests you want to execute.

    6. in the uses clause add (TestInsight.DUnit) , in the OnClick event of the button, add the code below

    TestInsight.DUnit.RunRegisteredTests('http://IP:PORT');

    where IP and PORT are the values we got previously.

    7. Compile and deploy the FMX app to your android device, run and click the button

    8. go back to your Delphi IDE and open the TestInsight Plugin, you can now see the progress of your Tests.

     

    Thanks to everyone who pointed to the right directions that helped me solve this problem.

    • Like 2
    • Thanks 1

  6. 28 minutes ago, Stefan Glienke said:

    Run it under the debugger so see where it's stuck?

    @Stefan Glienke

    ok, so I tried debugging it but got a strange error related to unable to open socket, so I decided to do it the old fashioned way, Logging, I edited the file TestInsight.DUnit.pas and placed markers in the method 

    procedure RunRegisteredTests(const baseUrl: string);

    to know if the tests executes at least and I discovered that it did but unfortunately for some strange reasons, it doesn't report it's progress back to TestInsight IDE Plugin, I don't know why it behaves so.


  7. 1 hour ago, Stefan Glienke said:

    https://bitbucket.org/sglienke/testinsight/wiki/Home

     

    On mobile you need a bare UI application though iirc - just make a form with a button that calls RunRegisteredTests.

    Either hardcode the uri to your developer machine or deploy the TestInsightSettings.ini that gets written next to the binary.

    @Stefan Glienke So I did this
    1. Connected my Android Phone and PC to the Same Local Network (MY MiFi)

    2. Created a simple FMX app to run my tests and in the buttonClick Event, I added

    TestInsight.DUnit.RunRegisteredTests('http://IP:8103');

    Where IP is the IP Address gotten from TestInsight.ini file

    3. Compiled the simple app for Windows, ran it and clicked the button, voila, it triggers the TestInsight plugin and I can see the tests run and report it's result on the plugin.

    4. Recompiled the simple app for Android, installed, ran it and clicked the button, nothing happen, the button indicates that it is waiting for something, app is stuck but no indication/notification that the tests are running on the TestInsight plugin on my IDE. 

     

    What's wrong?

    Any other suggestions please?


  8. 2 minutes ago, Allen@Grijjy said:

    The way we do it is we created a small class to inherit from ITestListener and ITestListenerX that acts like a simple remote TCP client on the mobile device to intercept the results of the tests as they happen and a simple TCP server with a GUI on Windows using Indy that the client connects to display the tests.

    wow, this is way over my head.
    do you have any sample code demo please?


  9. How do you all test your codebase especially those that use DUnit Testing Framework on mobile devices like Android and iOS.
    I still do it the old fashion way, compile the demo project with the tests and execute them on my device.
    while the above works, it's to say the least very stressful.
    Are there better ways to test my code with DUnit on mobile devices something like a DUnit GUI TestRunner for FMX?

    Thanks.


  10. 2 hours ago, Gustavo Ricardi said:

    Just switched from Visual Sourcesafe to GitHub. Best decision ever! We use Git Kraken as  git visual interface. It softens the learning curve a lot and it’s the best tool we found to visually manage git. 

    I also use Gitkraken as my Git UI.

    Never been disappointed by it.

    • Thanks 1
×