Hi I am prototyping an Autocad Design Automation project from an old desktop script. I used a selection filter before I realized that window selection etc don't work if it is off-screen. Design Automation by definition should be an 'off-screen' application, I think? Then I will have to loop through the whole database? Any other way to get around, please? I need to find a solution before too far off track...
Thank you very much!
You can test your script with accoreconsole.exe (it is in the autocad installation folder) on your local machine. There's still a window although invisible so selection should work as in AutoCAD.
you are correct with the understanding that Design Automation is off-screen. So the section of user interactive will not work on cloud engine. While windows selection of AutoCAD can input the windows points in code. e.g. in Design Automation scripts, define as below:
select w -150,150,0 150,-150,0 \n
It will select all entities that within the windows of the two corners. I used local Accoreconsole to demo (attached snapshot) . Accoreconsole is an off-screen environment on local. It is similar to Design Automation engine.
If your workflow does not know where the user may select, it will be not either possible to Design Automation to perform the action.
Related
I am writing this because i need to improve productivity in the company that I work for.
I made several applications for internal use with Visual Studio VB.NET, but at this time i am thinking about this:
I have some DWG drawings with blocks and attributes that i use as templates.
On the other hand I have an Excel worksheet with columns that start with a number in the first row and the values below. Each row number corresponds to an attribute in a block inside of each DWG template.
I want to fill those attributes with the Excel sheet values . I already made it locally but it will be good to make it in a cloud.
Is it possible with Autodesk Forge?
How?
I really need you to help me.
Best regards
Luis
This is definitely possible with Design Automation, I see that you already have a working application in AutoCAD, does your application is tested in accoreconsole ? That comes with AutoCAD installation.
I am testing using Selenium IDE and Firefox.
Can I check that a transaction done in my website is added to my database without manually opening a new tab with localhost/phpmyadmin and selecting the transaction table?
Though you can use it but most people will advise you against it. Here's why :-
It can be unreliable. I mean it can lead to many false negative creating a lot of noise in your test result.
Very tightly coupled.
You will have to run it from Firefox all the time (last time I checked) and you will need Firefox wherever you want to test. [Restriction]
Can't use programming tricks like looping, conditions, etc.
Difficult to maintain as won't fit in any framework. (or can it?)
...and some more...
I would suggest use Selenium IDE to create a test-case for basic steps you follow. Export it to any language of your liking and then create history. :)
And like Dave said above, you may like to explore other tools specifically for database.
You can't, and shouldn't, directly look in the database with Selenium IDE. You can, and should, indirectly test that the transaction happened.
When you use Selenium, or any other browser controlling or simulating testing tool, you're testing your app from the user's point of view (writing a 'functional' or 'acceptance' test). Users don't know what's in the database -- they just know what they see on the screen. So if doing something in your web app changes something on some page of your web app that a user can see (not phpmyadmin but your application that you're testing), go there in Selenium and test that.
This is the right thing to do even if your testing tool does have a way to look in the database.
If your app writes some kind of information to the database that is never shown to any user, such as auditing information, the only way to test that with Selenium IDE is to add a page (appropriately authenticated!) to your web app so that Selenium IDE can see it. If you aren't able to do that, you need a testing tool that can look in the database.
RSpec and Cucumber, with the Capybara Ruby gem, are examples of testing tools that can both test an application through its user interface and also look in (and even change) the database.
I'm trying to write functional tests and we have a customer report page with google map which we use to display reported customers on in.
I read this post and I wondered whats the best way to write functional tests for google maps.
I am using Yii framework .
thanks guys
UPDATE:
I also have polygons, indicating regions of these customers, how are polygons displayed and how can I write tests for them?
In my opinion would be good to use Selenuim in this case. Obvoiusly there is lots of JavaScript involved and only good way how to really test it is to run tests in the webbrowser and replicate user activity.
For this you will need to install and setup Selenium server:
And the use PHPUnit Selenium extension
I am using Microsoft Reporting Services to provide users with custom reports. I create them in Business Intelligence studio, deploy them and have a website where users can view those reports.
Now i need i new tool to do almost the same. I need to create reports and users has to be able to view them in PC, Mac, mobile phone, tablet, etc. Microsoft Reporting Services has some problems with Android and iOS, and that is the problem for me. Users cannot scroll the report (if it is longer thant report viewer window), expand does not allways work and etc.
I need a tool, to create same reports and allow to view them anywhere. I was thinking about pentaho, but it is no exactly what i need. Maybe somebody has any solutions?
Pentaho's analyzer tool is good on tablets/mobile but unfortunately it is EE only, not community/open source.
If you're happy with enterprise another option is yellowfin?
Alternatively with the community edition of Pentaho you can make use of CTools and there is a very good dashboarding framework with explicit support for mobile devices - may be worth looking at that?
Why exactly is pentaho "not exactly what you need" ? What are your perceived issues with it?
I have not used pentaho. However, I know any limitations in the web viewer control are based on browser support and interpretation. One workaround to these limitations is to reference the reportexecution2005 interface in your project and call the Render method with HTML40 format and designate HTMLFragment in the device context header, this will return the report html content as a byte[]. However, any custom paging/printing/zooming would have to be re-implemented in your web app :(
I read all lot about rich client platforms and the OSGi framework, but stuck with this question: Is it possible to assimilate existing applications (either java-based or win32-based) in one application window?
I aim at connecting different kinds of (existing) application in one application (with Eclipse RCP) to offer the general window manager functionality (like resizing window, etc.) and additionally enhance it with inter-window communication or the like.
With SWT it is possible to write (kinda) native-looking applications and by using the OLE-Component I can integrate some functionality. What I would really like to know is if I can assimilate the whole window and integrate it somewhere else?
Important points are...
visual integration and
listening methodologies...
Thanks
There's an Eclipse based IBM product called Lotus Expeditor that does exactly this. If nothing else it's worth having a look at their datasheets, the trial code and the demos to get a feel for how it is implemented in the product.
You can change external application's window style to WS_CHILD, and set it's parent to your main window. Also remember to call AttachThreadInput(), it will help your UI handle focusing more correctly. In any case you will probably encounter many problems while trying to make multiple windows work together. I'm not sure if it's even possible to eliminate all the problems.