×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Newbie on Selenium on XUNIT

Newbie on Selenium on XUNIT

Newbie on Selenium on XUNIT

(OP)
I am a very occasional C# Programmer. My organization gave me a project which involves Selenium drivers. So I use Visual Studio Code and created a class library. It compiles well, it has a NuGet feed that stores our organization's class libraries a few of them are needed in my project. After I do dotnet restore --interactive and similar commands the libraries are all downloaded to the PC where I work and the build task is succesful I see my dll called MySeleniumTests.dll along with a bunch of support dlls.Part of my research doing NuGet for the first time taught me that this computer has stored all the dlls that are needed in my profile .nuget\packages folder. I test this code as this does not have a main using the .NET Core Test Explorer which magically puts some IntelliSense lines in my code so essentallay I can run this on command line like dotnet vstest MySeleniumTests.dll I execute this where my project has created a debug\netcoreapp2.0 I guess it is using .NETCoreApp,Version=v2.0 .Upto this point I am fine here is where I need help.

I took just the debug folder and tried to run it on another computer that has just the basics like DotNet Core same versions as I am the one installing it on both computers.Here If I try to do the same command as dotnet vstest MySeleniumTests.dll I get cannot find testhost.dll.So I found testhost.dll from my other computer and put it here.However, then it started complaining about real dependencies saying it needs the other libraries which leads me to wonder how to package this tool for others without a full development environment.Note as a trial I put my full project and built it on this computer and everything is kosher.

The C# gurus out there I was thinking (perhaps incorrectly) based on this link
https://docs.microsoft.com/en-us/dotnet/core/testi...

My thought was the DLL when built does have all the things it needs is that true or am I off (Dynamic Linking is that at run time)

I also stumbled on this link https://stackoverflow.com/questions/41381064/vscod... whereby I copied everything according to the poster locally
as well but that also doesn't give me any working solution.


RE: Newbie on Selenium on XUNIT

Create a release version an try using the release folder. The debug folder uses debug versions of the libraries which may or may not exist on a separate machine. Also, the microsoft redist only contains release versions.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close