go to post Michael Davidovich · Mar 11, 2019 @Ben Spead @Evgeny Shvarov I watched the video, thank you!As a new Cache developer, I'm curious to know if TestCoverage will ever be implemented in a future release of ObjectScript in the %UnitTest framwork versus why it stands alone as in InterSystems developed OpenExchange project.Still learning the differences between Cache, ObjectScript, all the InterSystems' applications and how it all intersects with what my company has been doing in Mumps for the past 30 years. If I can reel back to some basics, however. Because I never really written a complex applications, my sense of testing as always been "write a little, run it, write a little run it," and usually that was in Java. It was easy to write a driver class or main method to test the code and see what was going on. I suppose in a more complex system that is always growing, you need something like this unit test framework to single out these classes to run without writing a separate driver class, or at least in this case TestManager is acting as that driver class. Am I on the write track on how to think about this?Thanks for everyone's help!
go to post Michael Davidovich · Mar 8, 2019 Thanks @Roberto Cahanap The catalyst for my initial post was simply reading the package and class documentation for %UnitTest. I noticed that whoever set up our unit testing framework here was only using the %TestCase class and %Manager class. There are many other classes in the package, and I'm trying to get a sense if we are utilize the tools in the package to the greatest extent. The other half of it is that I'm a very new programmer (brand new pretty much) and I'm not accustom to unit tests. I'm curious to know how others do it so I can see where's there common ground and where people differ.I'm going to watch the presentation linked above and then get back with more questions.MD
go to post Michael Davidovich · Mar 8, 2019 @Evgeny Shvarov and @Ben Spead thanks!I will take a look at the video and get back here if I have more questions.MD
go to post Michael Davidovich · Mar 6, 2019 @Roberto Cahanap @Roberto Cahanap Tagged both because maybe you created a new profile. Interested to know if you've successfully implemented unit testing with Cache at your company. I have been assigned to work with my team on unit testing and I wanted to see how others have done it.Is there a way to contact people privately?
go to post Michael Davidovich · Jan 3, 2019 Thanks! You and Chris Thompson have both helped me greatly here!MD
go to post Michael Davidovich · Jan 3, 2019 Ah yes, I see this now! Thank you!I can see the ^(Package).PersonD global created in our global exploration tool, however it won't let me read it. When I load and run the routine in the terminal and do a ZW I get data that looks like this:person1=<OBJECT REFERENCE>[1@Test.MXD.Person]The status indicator for the %Save shows success (1). Now how do I do it the other way around? Let's say a global ^PEOPLE already exists? How do I create a class do deal with that? If I create a class User.People, the global ^User.PeopleD will be created when I want it to use ^PEOPLE.MD
go to post Michael Davidovich · Jan 3, 2019 Right, I've been working with the documentation and training, but I came here because I don't think it's always very clear.In your example here you've use .%Save() to save to the Person table. Is that the same thing as the ^PERSON global? Based on what I've tried, I would say it is not. So you see I'm trying to use ObjecScript and object to update my ^PERSON global.Does that make sense?MD
go to post Michael Davidovich · Jan 3, 2019 Thanks, but we don't use IRIS so I'm not sure how helpful they'll be.MD
go to post Michael Davidovich · Jan 3, 2019 Thanks! I'm familiar with SET and $PIECE.So I have my global that exists already:^PERSON(1) = "Mike|Male|Dev"Can I turn that into an object? PERSON.1 = "Mike D"Let me read below as to what Chris has said as well and see if that helps.MD
go to post Michael Davidovich · Jan 3, 2019 Thanks, Scott. What you explained about IRIS was what someone told me about Cache, lol! I'd be interested to know other perspectives on the grouping of products and what they are, but what you've said makes sense.I might rephrase my problem with globals: let say I've been using Cache/MUMPS for many years and all my data is in globals. With the advent of ObjectScript and studio, I would like to take a more object oriented approach to manipulating my data. How would I create a class to do that?^PERSON(1) = "MIKE|MALE|DEVELOPER"^PERSON(2) = "SCOTT|MALE|MASTER PROGRAMMER"How would I create a class to do the CRUD ops on these existing globals?Thanks!Mike