Forum Discussion

figge's avatar
figge
Occasional Contributor
8 years ago

Browser loop (Edge/Chrome) fails for Edge

I have made a simple recording of a end to end testing scenario which have been verified individually for Edge and Chrome. So the script works fine if manually changing from one browser to the other.

 

Since TestComplete have so nice features I thought making a browser loop with Edge and Chrome would be a good thing for minimizing the work. That was not a good idea since I might have found an error in the tool that I can not specify.

 

The circumstance is that Edge goes first and second run is done by Chrome.

 

1. Edge starts and that is it.

2. Chrome starts after a while and starts performing the tasks and finally closing down the browser window as expected.

3. I am surprised that Edge did nothing more than start.

 

The expected result (from my point of view)

Edge would be given a fail and Chrome would be given a pass.

 

The actual result

Both browsers was given a warning from TestComplete that they did not close after executing (Chrome did everything by the book and as stated Edge did nothing more than start!). It feels so wrong.

 

Br

Fredrik Strandberg

5 Replies

  • Marsha_R's avatar
    Marsha_R
    Icon for Champion Level 3 rankChampion Level 3

    Without seeing your code with the browser loop, it is difficult to help you out.  Please post a screenshot of the code and the log.

  • figge's avatar
    figge
    Occasional Contributor

    Hi Marsha,

     

    I have attached an image as an example. What I did, which may be severily incorrect was to make a "Browser loop" in "Run Browser" only. Is it necessary to add "Browser Loop" in the other structures as well to get it working for the whole process?

     

    Thanks in advance

    Fredrik

  • figge's avatar
    figge
    Occasional Contributor

    Hi Marsha,

     

    I have attached an image as an example. What I did, which may be severily incorrect was to make a "Browser loop" in "Run Browser" only. Is it necessary to add "Browser Loop" in the other structures as well to get it working for the whole process?

     

    Thanks in advance

    Fredrik