-
Content Count
112 -
Joined
-
Last visited
-
Days Won
1
Posts posted by Ugochukwu Mmaduekwe
-
-
I just hope this nice plugins will not be killed slowly by Embarcadero after integration in the IDE like they did with Castalia.
- 4
-
because I was been too meticulous.
-
5 hours ago, PeterEvansOz said:I am pleased that you got it working on Android.
It would be good if you communicated the changes required for Max OS X to Roger Connell so that he can update his code.
Am not sure he is still active on the project.
There are open pull requests which are yet to be attended to by him.
-
-
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.
-
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.
-
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.
-
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
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 network3. 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.
- 2
- 1
-
Can any one please test if this works on Android because I have tried it on 2 different Android devices now yet no success.
-
13 minutes ago, John Kouraklis said:I believe you need to open the ports that TestInsight is listening to
On my Android or PC?
-
so from what I can deduce, the connection back to the plugin on my PC via my IP Is not working on Android, can't seem to figure out why.
The annoying thing is that it works fine when I compile it and run my test project on Windows.
-
28 minutes ago, Stefan Glienke said:Run it under the debugger so see where it's stuck?
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.
-
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?
-
1 minute ago, Stefan Glienke said:That's exactly what TestInsight does...
@Stefan Glienke is it possible to achieve my above question with test insight?
any examples? -
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? -
-
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. -
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.
- 1
-
12 hours ago, John Kouraklis said:Hmmm...and how do you write code in events? Say, in Button click event? You create it in IDE and reload the file in VSCode?
Exactly.
-
4 hours ago, John Kouraklis said:How do you develop forms with VSCode? Do you switch back to Delphi IDE?
Unfortunately, Yes I do.
-
Currently use VSCode and OmniPascal as my Editor for now. I suggest you try it out.
The only thing I use Delphi for is debugging.
-
https://blog.travis-ci.com/2019-01-23-travis-ci-joins-idera-inc
Does this mean we get to see Delphi support in Travis CI.
What do you all think? -
58 minutes ago, Dave Nottage said:Does this link (followed from the SO link) not give enough info?
http://francois-piette.blogspot.com/2013/02/using-universal-plug-and-play-upnp-with.html
While this is ok, it's only for Windows and not crossplatform.
-
2 hours ago, Markus Kinzler said:Have you already found/tested any solution?
http://www.whitebear.ch/upnp.htm
https://github.com/igor-shikarev/Delphi-uPnP
https://stackoverflow.com/questions/15531441/how-to-implement-upnp-on-delphi-xe2
Thanks, but unfortunately these does not give enough insight to the nitty gritty of the operations.
Delphi compiler need to be opensourced
in RTL and Delphi Object Pascal
Posted
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.