Git Product home page Git Product logo

Comments (12)

kellyethridge avatar kellyethridge commented on August 17, 2024

What projects are you loading and what are you trying to accomplish?

from simplyvbunit.

abhishekstha98 avatar abhishekstha98 commented on August 17, 2024

from simplyvbunit.

abhishekstha98 avatar abhishekstha98 commented on August 17, 2024

Im trying to unit test a legacy project which compiles to a .exe file in vb6 ofcourse. But I have been trying to install the SimplyVBUnit template And getting the error which says UIRunner was not a loaded class. I found the UIRunner.ctl and UIRunner.cls files but I am unaware as to where do i load it.

Sent with GitHawk

from simplyvbunit.

kellyethridge avatar kellyethridge commented on August 17, 2024

Did you use the SimplyVBUnit installer? If so, it sounds like the control is not registered. You shouldn't need to try to find UIRunner.ctl or UIRunner.cls for any reason other than loading the SimplyVBUnit source code.

from simplyvbunit.

abhishekstha98 avatar abhishekstha98 commented on August 17, 2024

yes, I used the simplyvbunit installer.
then how do i register the control, please help. I am really very new to vb6 and your project seems exciting for unit testing.

from simplyvbunit.

kellyethridge avatar kellyethridge commented on August 17, 2024

OK, so if you just run VB6 to the point it shows you a set of empty projects to start from, does it include one for SimplyVBUnit? If not, then follow this other thread for help: Missing SimplyVBUnit Project

I just realized that you want to create tests for an EXE. That is a difficult type of project to write tests for. If you're a novice with VB6 I'm unsure it's something you'd want to pursue. I don't want to discourage you from unit-testing, but, it would be a very cumbersome and maybe even impossible project to write tests for.

from simplyvbunit.

abhishekstha98 avatar abhishekstha98 commented on August 17, 2024

yeah i read it somewhere in the sourceforge discussion thread but it is needed, there are few forms which are actually testable so I would be importing one forms at a time and testing the important forms.
the thread that you sent in the previous one is not actually the issue here. the issue actually is :
UIRunner
i dont seem to find any components or references to add in the project.

from simplyvbunit.

abhishekstha98 avatar abhishekstha98 commented on August 17, 2024

i can select the SimplyVBUnit project template and then the error above comes up

from simplyvbunit.

kellyethridge avatar kellyethridge commented on August 17, 2024

hmmm OK. To register the components manually open a command prompt with Administrative privileges in the Windows\System32 folder (Windows\SysWOW64 on 64 bit machines). There should be the following files:
SimplyVBUnit.Component.ocx
SimplyVBUnit.Framework.dll
SimplyVBUnitType.tlb

you should be able to register them using:
regsvr32 SimplyVBUnit.Component.ocx
regsvr32 SimplyVBUnit.Framework.dll
regtlib SimplyVBUnitType.tlb

from simplyvbunit.

abhishekstha98 avatar abhishekstha98 commented on August 17, 2024

Thank you Kelly, I tried all that you suggested and even though i couldnt solve the problem, the SimplyVBUnit project being preferred along with DLL files will be a huge let down.

from simplyvbunit.

kellyethridge avatar kellyethridge commented on August 17, 2024

Did you simply add the frmTestRunner.frm to an existing project? Is the SimplyVBUnit Component component referenced in the VB6 Toolbox?

from simplyvbunit.

abhishekstha98 avatar abhishekstha98 commented on August 17, 2024

I imported the SimplyVbUnit.Component.ocx from the component menu and it worked, thought it'd be useful for future reference and now whether or not it'll be useful for .exe or not now it'll just work. Thank you for your time.

from simplyvbunit.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.