I created object repository on day1 and all the tests were running fine.On day 2 when I tried to run the same scripts it was not running as on day 2 object was not identified as uft now created 2 test object with name "_2" added in the name of the test object.
For example earlier it was MyApplication_1 then on next day it got changed to `My Application_2.Could you please help?
Related
I have a .vbs script that opens two excel files and copies the contents of a sheet from the first file into the second file. It's supposed to run daily via task scheduler.
The script ran normally until the excel files in question were recently modified and slightly renamed - I went through the script and edited the filenames accordingly after the changes were made, triple checking that the names and filepaths matched up.
Everything ran fine for a few weeks after the changes but now the script fails immediately after starting, giving me an error claiming that the file can't be located even though the file is located at the given path. The error code is 800A03EC.
This is the first chunk of code in the script, including line 7 which seems to be throwing the error:
Dim objApp ' as excel object
Dim x, y ' as workbook
Set objApp = CreateObject("Excel.Application")
objApp.DisplayAlerts = False
objApp.Visible = False
Set x = objApp.Workbooks.Open("S:\Work (Public)\PORT MGMT & TRADING\PORT MGMT FORMS\ORION_FPFOCUS.xlsm")
Set y = objApp.Workbooks.Open("S:\Work (Public)\PORT MGMT & TRADING\PORT MGMT FORMS\FPFocusPasteSpecialValues.xlsb")
Dim WSx, WSy ' as excel worksheet
Set WSx = x.Worksheets("FPSUP")
Set WSy = y.Worksheets("FPFOCUS-COPY")
WSy.Range("B1").value = FormatDateTime(Now)
objApp.Application.Run "ORION_FPFOCUS.xlsm!Auto_Open"
The excel files in question are both located in the same directory:
S:\Work (Public)\PORT MGMT & TRADING\PORT MGMT FORMS\ORION_FPFOCUS.xlsm
S:\Work (Public)\PORT MGMT & TRADING\PORT MGMT FORMS\FPFocusPasteSpecialValues.xlsb
And the script is located here:
C:\Users\bserv\Documents\CopyFPFocus.vbs
The S drive isn't a physical drive, it's a virtual drive hosted by a service called Workplace. I can navigate through it and open the excel files manually just fine.
I initially thought it was a user privilege issue with task scheduler, but I've selected the 'run with highest privileges' option and the script is still failing. I also went through the privacy/trust settings in Excel to make sure the script wasn't being denied access, but I don't see any settings that would disable the script from working, and I also know that all these settings haven't changed since the script was working, so I don't see how they could be potential causes.
When I try running the code manually via cscript in the command line, it returns this error:
C:\Users\bserv\Documents\CopyFPFocus.vbs(25, 4) (null): The remote procedure call failed.
This is line 25 of the script for reference:
objApp.Run "RefreshAllStaticData"
When I try again by running command prompt as an admin, I get the same error I got initially. Sorry, is it possible the file was moved renamed or deleted.
The part that really confuses me is that the script ran fine for some time after the changes - so I'm really unsure about what actually changed to cause this issue to randomly pop up.
One other thing I've noticed is that upon opening the excel files I get a popup saying they're in use and locked for editing by me. I can't remember if this popup was showing up before the issue started. The other users on the network have been accessing these files regularly long before the script started failing, so I don't see how that could be the issue. The error code/message also doesn't seem to correspond with this being the problem.
I'd appreciate any help or insight into this issue. Thank you!
I am on Day one in learning Excel Macros. As per the tutorial I recorded the macros and tried to run it. (I have used the same file that they have provided in the tutorial and it is a .csv file)
But it showing me the following Error
Runtime Error
Invalid Procedure call or Argument
When I tried to debug it is showing as follows:
Need Help
-Thanks
You can set the CommandType property only if the value of the QueryType property for the query table or PivotTable cache is xlOLEDBQuery, which is enum 5.
This is not the case for your query. In fact, that line doesn't even exist in the source code. Perhaps you attempted to merge scripts? If so, be careful when merging connection code that the types are the same.
If you add in a debug line to get the QueryType
Debug.Print .QueryType
.Name = "receipts"
you will get the enum 6 back. You can look this up using the object explorer:
As would be expected from the connection specification:
ActiveSheet.QueryTables.Add(Connection:="TEXT;
Every time I am building a project there is "The CompileAppManifest task was not given a value for required parameter BundleIdentifier" (MSB4044)" error. I have not made any change in manifest file and created a simple single view application.This is happening with each and every project which I made.I had even reinstalled Xcode and Visual Studio still the problem persists.
Here's what we'd like to do:
A build completes successfully in TFS 2012
Once complete a separate command line process runs tests via vstest.console.exe generating TRX files.
Once all tests have completed those tests/TRXs are published against the target build that just completed using mstest.exe
Once complete we are able to see those published results in Team Explorer - Builds - View Builds for the target build. Under Summary you can see 100 test runs completed for all 100 tests published against it.
At this point we want to open Excel, connect to the TFS Cube and create an Excel report showing a pass/fail pie chart for the target build.
Can someone advise what Cube data to use. We've already tried a few things without success.
Thank you.
We were able to find the target Cube data. Thank you.
Filters - ''
Columns - Outcome, Test Result Executed By
Rows - Build, Test Run ID, Test Run Title, Test Run State
Values - Result Count
I am collecting data from linked issues to show in master issue.
Our products consists of multiple components. For each of the components we have a team and a Jira project. There is a Jira project for each Product where we track features and releases of products.
I've been quite successful in gathering all sorts of info from linked issues and presented for Product manager.
I'd like to figure out what is the earliest date the feature is available by finding max of all versions' end dates which is Greenhopper field.
So basically I need to get access to GH field for End date for Jira object Version.
There are getEndDate() and getVerionEndDate() methods in GH API but I desperately need an sample!
Here is what I tried in Groovy Script Runner to access version's end date without success
import com.atlassian.greenhopper.model.issue.VersionWrapper
def allVersions = ""
parentIssue.getFixVersions().each { version ->
def versionWrapper = new VersionWrapper(version)
allVersions += "Version: ${version.getName()} in component ${version.getProjectObject().getName()} planned at ${versionWrapper.getEndDate()} \n"
}
I get:
Problem loading class: startup failed: /jira-plugins/ProductComponentSync.groovy:
17: unable to resolve class com.atlassian.greenhopper.model.issue.VersionWrapper
# line 17, column 1. import com.atlassian.greenhopper.model.issue.VersionWrapper
^ 1 error
The Reference link: http://docs.atlassian.com/greenhopper/6.0.7/com/atlassian/greenhopper/model/issue/VersionWrapper.html
I was able to achieve this/
Here is the link
https://answers.atlassian.com/questions/113898/use-of-greenhopper-classes-in-groovy-script-classes