Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » How to wait for workspace build(Making the RCP Test Runner to wait only for workspace build)
How to wait for workspace build [message #1756396] Thu, 16 March 2017 11:45 Go to next message
Ramesh Sampenga is currently offline Ramesh SampengaFriend
Messages: 5
Registered: April 2015
Junior Member
Currently I can only write below command to wait for a specific amount of time.
wait -ms 72000

As this is not idle to wait for a random amount of time,
sometime the build finishes way too quicker and some times it takes ages
depending on the load of the server apart from the actual task in Test Application (eclipse IDE).

Is there any way to wait for completion of any building workspace job/task.

Re: How to wait for workspace build [message #1757813 is a reply to message #1756396] Mon, 20 March 2017 09:03 Go to previous messageGo to next message
Markus Manck is currently offline Markus ManckFriend
Messages: 34
Registered: June 2015
Member
Hi,

can you check the task completion within the testcase?

If yes you could wait in a loop:

  loop [val index [int 0]] {
        if [!check if task completed]
        {
            if [$index | lt $maxIterationDefinedElsewhere] {
              wait $msToWait
              recur [$index | plus 1]
            } 
        }
  }
Re: How to wait for workspace build [message #1757814 is a reply to message #1756396] Mon, 20 March 2017 09:03 Go to previous messageGo to next message
Markus Manck is currently offline Markus ManckFriend
Messages: 34
Registered: June 2015
Member
Hi,

can you check the task completion within the testcase?

If yes you could wait in a loop:

  loop [val index [int 0]] {
        if [!check if task completed]
        {
            if [$index | lt $maxIterationDefinedElsewhere] {
              wait $msToWait
              recur [$index | plus 1]
            } 
        }
  }
Re: How to wait for workspace build [message #1757815 is a reply to message #1757814] Mon, 20 March 2017 09:20 Go to previous messageGo to next message
Ramesh Sampenga is currently offline Ramesh SampengaFriend
Messages: 5
Registered: April 2015
Junior Member
Hello Markus,

Thanks for the reply and the logic.

Do you know how can I check the task completion of a work-space build?

     if [!check if task completed]


Do you any piece of code?

Thanks,
Ramesh.
Re: How to wait for workspace build [message #1757816 is a reply to message #1757814] Mon, 20 March 2017 09:21 Go to previous messageGo to next message
Ramesh Sampenga is currently offline Ramesh SampengaFriend
Messages: 5
Registered: April 2015
Junior Member
No Message Body

[Updated on: Mon, 20 March 2017 09:23]

Report message to a moderator

Re: How to wait for workspace build [message #1757906 is a reply to message #1757815] Tue, 21 March 2017 15:42 Go to previous message
Markus Manck is currently offline Markus ManckFriend
Messages: 34
Registered: June 2015
Member
No I am sorry.

Perhaps you can check by created artifacts with get-file <artifact> | get exists
Previous Topic:Feature: Test script active while AUT is off
Next Topic:RCPTT + GEF: scrolling does not work
Goto Forum:
  


Current Time: Fri Apr 19 23:53:01 GMT 2024

Powered by FUDForum. Page generated in 0.03679 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top