Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8283793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:52:02+00:00 2026-06-08T10:52:02+00:00

On a Windows 7 machine if I run a PHPUnit Selenium command like this

  • 0

On a Windows 7 machine if I run a PHPUnit Selenium command like this manually in the terminal:

phpunit --verbose --log-junit _selenium_tests\results\home.xml _selenium_tests\frontend\home.php

It spawns a browser and runs the test just fine. Then it outputs the following on the screen:

Time: 10 seconds, Memory: 3.50Mb
OK (1 test, 3 assertions)

And the terminal stays open.

Now if I copy and paste the exact command in an empty file and save it as test.bat and click it, it also runs the test. I can see the browser open and all tests run. Only problem is it closes the terminal prompt right after. So I can’t see the above output.

An even bigger problem is, since it closes the terminal if I add more commands for other tests after that initial one they don’t run.

I tried adding:

pause

at the end of the bat file but no luck, it still closes. Any idea how to prevent this and be able to run one command after another without the terminal ever closing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T10:52:04+00:00Added an answer on June 8, 2026 at 10:52 am

    Your question is similar to this one. Try using call in front of your command. If you run a .bat file from another .bat file and don’t use call, control doesn’t return to the first batch file, so pause doesn’t get executed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

does anyone know how to run something like the following on a Windows machine
we are trying to run our selenium scripts using Selenium RC in Windows machine.
I am able to run fastboot commands via command prompt on my Windows machine
I need to install a MySql server on my Windows machine to run a
I have my intranet app with windows authentication. On my local machine I run
I'm trying to run a custom WinHTTP based web-server on Windows Server 2008 machine.
I am trying to run a virtual LAMP machine on my windows 7 for
I built a windows service on my local machine. when I install and run
I'm trying to run my asp.net application on a windows machine (XP SP3, Vista,
How do I install mod_python to run with Python 2.6 on a Windows machine?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.