Posted: 28 Jul 2017 4:38 EDT Last activity: 6 Nov 2018 20:02 EST
How to create common project which has interrogation on its project
I have a project (ex: CommLib.osproj) that has number of automation (EX: CommonLogin.os) which I want to use on other projects.
I could see the Common automation on object explorer after performing operation of "Add Reference" and "Manage Imported Porject" on other projects.
But in the case the commonLib.osproj perform interrogation on its project,
CommonLogin.os doesn't work correctly when called by other projects.
I need this function because I have a number of projects which will access to same web application.
I want to avoid to create loign automation on each porjects becuase its totally same.
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
1. What we tried is that we create Logout Automation which belongs to common project. ( On above I described as login, but we've created logout automation in fact)
I want each projects which login to same project will call logout automation which on located on common project
2. When I had logout automation on each projects, the automation call logout automation and robotics could logout from the web application.
3. Yes, I set breakpoint and could confirm the common automation is being called.
4. Yes, the common logout project has Entry point and Exit point.
5. The automation is call by Execute method by other projects.
Based on what you've told me - I am understanding that the solution is calling the Automation CommonLogin.os in both scenarios but in the scenario where you call it from an external project, it is failing. Is that correct? Do you know at which method call in the automation that it is failing? It is also worth looking in the logs generated by OpenSpan to see if there are any errors (%appdata%/OpenSpan/RuntimeLog.txt). If you attach a log of both scenarios, I can take a look as well to review what is happening. A screenshot of your Solution Explorer can also help me understand your setup.
To enable logging:
Open Pega Robotics Studio
Go to Tools -> Options
Then scroll down to 'Pega Robotics' and click on 'Runtime Diagnostics'
Click the 'File Publisher' mode to ON if it is not already.
Then click on 'Log Categories' under 'Runtime Diagnostics'
Thank you for the reply. I attached the RuntimLog.txt and screen shot of automation.
I tried to call 102_LogoutShisanRyudoukaSystem which belongs to common project by R4main.os which belongs to R4 project.
It seems that on 102_LogoutShisanRyudoukaSystem first WaitForCreate returns False and doesn't work.
Does your common lib project contain the adapter? When I want to have a project structure like you describe, I put all of the adapter specific logic in the same project as the adapter. Any business logic goes in the project above it (the business logic project references the adapter project). The business logic project can then call any adapter functions and work directly with the adapter if necessary.