Trying to modify a script to use test-connections in multiple domains?
Hey Scripting Guy!
I've created the script (below) to use test-connection against a list of hosts and write the results of the machines that respond to a .txt file. The only issue is that one of my sites utilizes two separate domains, does anyone have any advice as far as
when a test connection fails, retrying the command using another domain name? (server.domain.com)
I'll take any advice at this point... Thanks!
New-PSDrive -Name S -PSProvider FileSystem -Root \\server\share -ErrorAction SilentlyContinue
Get-ChildItem "S:\Folder1\Folder2\backup\backup Audits\Host Audits" -Filter *.txt | `
Foreach-Object{
$content = Get-Content $_.FullName
#$SiteName = Get-ChildItem "S:\Folder1\Folder2\backup\backup Audits\Host Audits"
#Find alive machines, and write their hostnames to output file for auditing
Test-Connection -count 5 -ErrorAction SilentlyContinue $Content | Select-object -unique | Out-File "S:\Folder1\Folder2\backup\backup Audits\Audit results by Site\$_"
what i would like to do is when my test-connection fails with an error, append another domain suffix to the hostname so that if:
test-connection computerxyz fails
then test-connection computerxyz.domain.corp.com
$server="$computer.domain1.com"
if(Test-Connection $server -count 1 -quiet){
$server="$computer.domain2.com"
... other code
¯\_(ツ)_/¯
Similar Messages
-
How to use a connection across multiple request
What is the idea of using a connection across multiple requests.
Please give more details. What connections and what requests
And are you posting on the right forum? (This sounds more like a Networking/servlet question) -
E-catt Script error while trying to Modify the script
Hi All ,
I get the error while trying to modify the E-catt Script "Entry cannot be changed In User View Object <Objext Name > ". Please let me know if Some one confronted with same error or that can be avoided.
Waiting for your reply
BadariHi Baez,
You have to create a record with country record id in BankDetails table or get record id if country record id is already existed in BankDetails table and use this record id to create qualified link .
1. get Country record id
2. search in Bankdetails table with Country Record id,
3 . if exist in Bank details table, get record id in Bank details table and pass it to createQualifiedLink()method
or
3. if Country record does not exist in BankDetails table, then create new record in bankdetails table with Country record id, pass record id of new record to createQualifiedLink()method
I hope this helps you......
Cheers,
Veeru -
Trying to figure out script for use in Butler
Hi,
I download a lot of bittorrents from a particular bt site -- bt.etree.org. To download and seed, I use Vuze. Downloading the bt files and then starting up Vuze to load in the files are tasks I repeat over and over again. I'd like to automate it as per the following pseudocode:
When user clicks any download link on bt.etree.org, peform these actions:
1. Start Vuze.
2. Navigate to File --> Open --> Open bittorrent file*
3. Navigate to folder where downloads are stored.
*or something like that path; I'm not actually in front of my iMac at the moment.
I can't figure out how to make this work. I tried recording the actions, but it didn't help.
I'd like to load this script into Butler. I know how to set up Applescript in Butler, I just don't how to make code out of this particular set of steps.
Any guidance is appreciated.
Thanks for your time.No offense, but it sounds to me like you're making the classic mistake many people make when starting out with AppleScript.
From your question, it's clear that you're trying to get AppleScript to perform the actions you'd take manually - open this, click here, select this menu item, etc.
While that's mostly workable (and easy to conceptualize), that's not where AppleScript's strength is. Rather than telling AppleScript HOW to do things (click here, type this, etc.) you're better off telling it WHAT you want it to do - in this case, open a torrent file. The reality is that - in most cases - you don't care HOW it's done, just that it happens. In this case you have no real interest in clicking menu items, navigating file dialogs, etc. you just want to open the file.
Therefore I suggest that your request could be handled by:
tell application "Finder"
open file "your.torrent" of folder (path to downloads folder) using application "Vuze"
end tell
Now this does assume that you know the name of the torrent you want to open, but could be easily reworked to prompt you if that's what you need.
Note also that this script targets the Finder to open the file - that's because Vuze has no AppleScript support of its own - you can't tell Vuze to do anything directly. It's an all too-common problem. -
Parallel Script Tasks Using Same Connection Manager are Corrupted
We're seeing a bizarre issues in our SSIS package. We are using an HTTP connection manager in multiple script tasks running in parallel and the connections seem to be getting mismatched. Here's the basic flow.
We have 6 containers that run in parallel. Each container does the exact same work (they are copy/pasted) except we change the value of a variable representing the report to generate that is scoped to each container. The container runs a query
(using a SQL connection manager defined in the package designer) and then uses a foreach container to enumerate the rows. The variables inside the foreach container are scoped to it so we don't have a scoping issue. Within the loop we write
the variable values to a log table, use a script task to generate an SSRS report and then write all the data and the report to an external system. Everything is working fine except for the generation of the report.
Within the report script block we acquire a connection to a HTTP connection manager that is defined in the package (just like the SQL connection manager). We then create a new HttpClientConnection with it and update the URL to include the necessary
parameters that SSRS needs to generate the report. We then download the results and return it back to the container. Here's the basic code we use
var httpConn = Dts.Connections["ReportServerUrl"];
var clientConn = new HttpClientConnection(httpConn.AcquireConnection(null));
var uri = new UriBuilder(clientConn.ServerURL) { Query = reportQueryInfo };
clientConn.ServerURL = uri.Uri.ToString();
clientConn.DownloadData();
The issue we are seeing is that when 2 of the scripts run at the same time the ServerURLs are getting cross wired such that we see 2 of the same report being requested rather than 1 of each type that we had requested (based upon the SSRS execution logs).
It's almost like we are getting a shared HTTP client connection. Provided the scripts don't run at the same time everything works correctly. We are confident our variables are set correctly because we are storing them both before and after in external
tables and they are always correct. The URL calculation logic is also correct because this problem only occurs when 2 requests are sent in parallel.
What am I missing here?
Michael Taylor
http://blogs.msmvps.com/p3netThank you for the feedback. Before I go to Connect I'd like to provide some more info that may provide a better idea of what the problem is.
We broke things down trying to replicate the issue and it isn't a conn mgr problem after all I believe. To clarify our package, we have 4 containers that execute the same logic (they were copy/pasted) except for the variable values that we set. The
containers are not linked together so they run in parallel. Each container executes a query using the ADO.NET conn mgr. A foreach loop captures the value for the current row and then calls SSRS using a script block, forwards the report onto an external
resource and then updates a table indicating the row has been processed. The only difference between them is the parameter we pass to the query and the value of the variables (that are scoped to the container or foreach loop).
The problem we have found is that the very first time through the foreach loop ALL containers are using the same row (from the first container's query). Second and subsequent rows are fine. We initially thought the queries were fine because of
our update at the end of the foreach loop but it is now clear that isn't the case.
We saw this problem when we moved our package to production. We went back to Dev and was able to replicate it as well. It happens every time and it is always the same row when given the same input set. We started eliminating containers
and we found it only happens when you get to 3 containers or more. 2 containers had no problems.
I'll try to replicate it on a simpler solution but any thoughts on whether there is a race condition or something in SSIS would be helpful. -
How to modify VC generated app using webdynpro
hi all
I am trying to modify VC generated source using webdynpro, basically trying to find out if it is possible or not.
I complied a sample application using webdynpro compiler in VC and deployed in the portal server, then i downloaded the genrated zip file from portal server, but to find that the structure is not webdynpro compatible.
i would like to know is this the correct approach?or is there any other way if it is possible to do so.
thanks
praveenModifying Visual Composer using webdynpro is generally not something you can do. You can include webdynpro UI elements and components within a Visual Composer model by using eventing. I give an example here for a BI web application UI element and Visual Composer. This can very easily be extended to webdynpro.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5a40f2f7-0c01-0010-d69f-c6317c5165cd -
Why MicroSoft 2000 SR needed while running the script using test manager???
hi all,
whenever I trying to run a script using test manager,one POP-UP comes which starts installing MICROSOFT 2000 SR.
and in few seconds it complaining for some missing component,
can any body tell me why it is happening.
what is the need of Microsoft 2000 SR while running the script in test manager.
tnx
USOniUSoni
I have seen that problem happening before, even that i was never able to figure out why, something that you can try is changing the service log in credentials for both:
Oracle Application Testing Suite Agent Service
Oracle Application Testing Suite Application Service
and use a proper user with admin rights.
let me know if that helped
Regards
Alex -
i tried to modify BCA so i can use a usb to load windows via BCA but now it doesn't load when i double click it!? any ideas?
iv solved it now
-
How to skip a particular node in a script using test manager
Hi,
We are testing a script recorded for custom forms in R12 on two different instances using test manager.For one instance its running fine.
But in the second instance one message note is not coming (one note which was present during recording is not there after the instance was refreshed). During Playback that node is not matching with recorded script so "object not found error is coming".Is there any way we can bypass that recording during playback through test manager ? Any kind of help is appreciated.
Regards,
VishalSorry for the inconvenience, Below Find detailed explanation of the issue,
INSERT INTO XMLTABLE VALUES (4,'<?xml version="1.0"?>
<Node_1 empID="202" empName="Pro1" oper="Update">
<Node_2 empID="20" empName="Pro2" oper="Update">
<Bode_3 empID="2" empName="Pro3" oper="Update">
<Bode_4 empID="22" empName="Pro4" oper="Update">
<Bode_5 empID="12" empName="Pro5" oper="Delete"/>
<Bode_6 empID="223" empName="Pro6" oper="Insert"/>
<Bode_7 empID="201" empName="Pro7" oper="All"/>
<Node_3 empID="21" empName="Pro71" oper="ll">
</Bode_4>
</Bode_3>
</Node_2>
</Node_1>');
I have a sequence seq_i
seq_i start with 1 increment by 1
am able to display output as below,
Node|EMPID|OPER|EMPNAME|MGRID
Node_1|202|Update|Pro1|Null
Node_2|20|Update|Pro2|Node_1
Bode_3|2|Update|Pro3|Node_2
Bode_4|22|Update|Pro4|Bode_3
Bode_5|12|Delete|Pro5|Bode_4
Bode_6|223|Insert|Pro6|Bode_4
Bode_7|201|All|Pro7|Bode_4
Node_3|21|ll|Pro71|Bode_4
Now I want below one as output
All nodes starting with Bode_, I need to replace that with sequence, seq_i
so for the seq_i (starting with i and incrementing by 1)
Node|EMPID|OPER|EMPNAME|MGRID
Node_1|202|Update|Pro1|Null
Node_2|20|Update|Pro2|Node_1
1|2|Update|Pro3|Node_2
2|22|Update|Pro4|1
3|12|Delete|Pro5|2
4|223|Insert|Pro6|2
5|201|All|Pro7|2
Node_3|21|ll|Pro71|2
Thanks, -
I am using wireless 4G Wireless Sierra dongle. I have a Mac Air. How can I stop the pop up screen trying to modify configuration when I connect. I can connect with no problems but I have to click 'cancel' (on pop up screen that says network needs to modify my configuration) sometimes as many as 50 times!!! very annoying as the pop up is in middle of screen & won't go away unless i click it. Thank you foray help!
Contact the providers technical support staff.
Ciao. -
Modify Browser(IE) footer using script
anyone know to modify the browser footer using script ? i need to print html and footer display number of page ,but i cant make it .
so please teach me how to do it .thanks.
or it is possible to set a parameter on apex page footer text when i am printing the html and it will display the page number.
thanks for reply .Hello,
Isn't that default in IE (that the pagenumber gets printed)?
I googled and found this: http://www.febooti.com/products/iezoom/print-web/printing-codes-footer-header.html
Hopefully it might help you.
Additionally you can use css to make your look and feel different when you print then what you see on the page.
Regards,
Dimitri
http://dgielis.blogspot.com/
http://www.apex-evangelists.com/
http://www.apexblogs.info/ -
Please assist with modifying this script to read in a list of servers and output results to excel
Hello,
I have an excellent script written by Brian Wilhite to gather the last logged in user using Powershell.
http://gallery.technet.microsoft.com/scriptcenter/Get-LastLogon-Determining-283f98ae/view/Discussions#content
My Powershell Fu is stumbling to modify this script to the following requirements:
Currently the script must be loaded first into Powershell, then it can be executed. I would rather edit the script in my Powershell ISE, add the .txt file to the script itself that gives a list of the servers I need to scan. Then when I
press Run Script in my ISE it executes.
I would also like to output the results of the file to excel (.xls or .csv will do). Currently the results look as follows:
Computer : SVR01
User : WILHITE\BRIAN
SID : S-1-5-21-012345678-0123456789-012345678-012345
Time : 9/20/2012 1:07:58 PM
CurrentlyLoggedOn : False
I would prefer it shows up like so:
Computer User SID Time Currently LoggedOn
SVR01 WILHITE\BRIAN S-1xxx 9/20/2012 1:07:58 PM FalseSRV02 WILHITE\BRIAN S-2xxx 9/26/2014 10:00:00 AM True
Any help you can provide would be greatly appreciated. I'll add the full script to the end of this post.
Thank you.
Function Get-LastLogon
<#
.SYNOPSIS
This function will list the last user logged on or logged in.
.DESCRIPTION
This function will list the last user logged on or logged in. It will detect if the user is currently logged on
via WMI or the Registry, depending on what version of Windows is running on the target. There is some "guess" work
to determine what Domain the user truly belongs to if run against Vista NON SP1 and below, since the function
is using the profile name initially to detect the user name. It then compares the profile name and the Security
Entries (ACE-SDDL) to see if they are equal to determine Domain and if the profile is loaded via the Registry.
.PARAMETER ComputerName
A single Computer or an array of computer names. The default is localhost ($env:COMPUTERNAME).
.PARAMETER FilterSID
Filters a single SID from the results. For use if there is a service account commonly used.
.PARAMETER WQLFilter
Default WQLFilter defined for the Win32_UserProfile query, it is best to leave this alone, unless you know what
you are doing.
Default Value = "NOT SID = 'S-1-5-18' AND NOT SID = 'S-1-5-19' AND NOT SID = 'S-1-5-20'"
.EXAMPLE
$Servers = Get-Content "C:\ServerList.txt"
Get-LastLogon -ComputerName $Servers
This example will return the last logon information from all the servers in the C:\ServerList.txt file.
Computer : SVR01
User : WILHITE\BRIAN
SID : S-1-5-21-012345678-0123456789-012345678-012345
Time : 9/20/2012 1:07:58 PM
CurrentlyLoggedOn : False
Computer : SVR02
User : WILIHTE\BRIAN
SID : S-1-5-21-012345678-0123456789-012345678-012345
Time : 9/20/2012 12:46:48 PM
CurrentlyLoggedOn : True
.EXAMPLE
Get-LastLogon -ComputerName svr01, svr02 -FilterSID S-1-5-21-012345678-0123456789-012345678-012345
This example will return the last logon information from all the servers in the C:\ServerList.txt file.
Computer : SVR01
User : WILHITE\ADMIN
SID : S-1-5-21-012345678-0123456789-012345678-543210
Time : 9/20/2012 1:07:58 PM
CurrentlyLoggedOn : False
Computer : SVR02
User : WILIHTE\ADMIN
SID : S-1-5-21-012345678-0123456789-012345678-543210
Time : 9/20/2012 12:46:48 PM
CurrentlyLoggedOn : True
.LINK
http://msdn.microsoft.com/en-us/library/windows/desktop/ee886409(v=vs.85).aspx
http://msdn.microsoft.com/en-us/library/system.security.principal.securityidentifier.aspx
.NOTES
Author: Brian C. Wilhite
Email: [email protected]
Date: "09/20/2012"
Updates: Added FilterSID Parameter
Cleaned Up Code, defined fewer variables when creating PSObjects
ToDo: Clean up the UserSID Translation, to continue even if the SID is local
#>
[CmdletBinding()]
param(
[Parameter(Position=0,ValueFromPipeline=$true)]
[Alias("CN","Computer")]
[String[]]$ComputerName="$env:COMPUTERNAME",
[String]$FilterSID,
[String]$WQLFilter="NOT SID = 'S-1-5-18' AND NOT SID = 'S-1-5-19' AND NOT SID = 'S-1-5-20'"
Begin
#Adjusting ErrorActionPreference to stop on all errors
$TempErrAct = $ErrorActionPreference
$ErrorActionPreference = "Stop"
#Exclude Local System, Local Service & Network Service
}#End Begin Script Block
Process
Foreach ($Computer in $ComputerName)
$Computer = $Computer.ToUpper().Trim()
Try
#Querying Windows version to determine how to proceed.
$Win32OS = Get-WmiObject -Class Win32_OperatingSystem -ComputerName $Computer
$Build = $Win32OS.BuildNumber
#Win32_UserProfile exist on Windows Vista and above
If ($Build -ge 6001)
If ($FilterSID)
$WQLFilter = $WQLFilter + " AND NOT SID = `'$FilterSID`'"
}#End If ($FilterSID)
$Win32User = Get-WmiObject -Class Win32_UserProfile -Filter $WQLFilter -ComputerName $Computer
$LastUser = $Win32User | Sort-Object -Property LastUseTime -Descending | Select-Object -First 1
$Loaded = $LastUser.Loaded
$Script:Time = ([WMI]'').ConvertToDateTime($LastUser.LastUseTime)
#Convert SID to Account for friendly display
$Script:UserSID = New-Object System.Security.Principal.SecurityIdentifier($LastUser.SID)
$User = $Script:UserSID.Translate([System.Security.Principal.NTAccount])
}#End If ($Build -ge 6001)
If ($Build -le 6000)
If ($Build -eq 2195)
$SysDrv = $Win32OS.SystemDirectory.ToCharArray()[0] + ":"
}#End If ($Build -eq 2195)
Else
$SysDrv = $Win32OS.SystemDrive
}#End Else
$SysDrv = $SysDrv.Replace(":","$")
$Script:ProfLoc = "\\$Computer\$SysDrv\Documents and Settings"
$Profiles = Get-ChildItem -Path $Script:ProfLoc
$Script:NTUserDatLog = $Profiles | ForEach-Object -Process {$_.GetFiles("ntuser.dat.LOG")}
#Function to grab last profile data, used for allowing -FilterSID to function properly.
function GetLastProfData ($InstanceNumber)
$Script:LastProf = ($Script:NTUserDatLog | Sort-Object -Property LastWriteTime -Descending)[$InstanceNumber]
$Script:UserName = $Script:LastProf.DirectoryName.Replace("$Script:ProfLoc","").Trim("\").ToUpper()
$Script:Time = $Script:LastProf.LastAccessTime
#Getting the SID of the user from the file ACE to compare
$Script:Sddl = $Script:LastProf.GetAccessControl().Sddl
$Script:Sddl = $Script:Sddl.split("(") | Select-String -Pattern "[0-9]\)$" | Select-Object -First 1
#Formatting SID, assuming the 6th entry will be the users SID.
$Script:Sddl = $Script:Sddl.ToString().Split(";")[5].Trim(")")
#Convert Account to SID to detect if profile is loaded via the remote registry
$Script:TranSID = New-Object System.Security.Principal.NTAccount($Script:UserName)
$Script:UserSID = $Script:TranSID.Translate([System.Security.Principal.SecurityIdentifier])
}#End function GetLastProfData
GetLastProfData -InstanceNumber 0
#If the FilterSID equals the UserSID, rerun GetLastProfData and select the next instance
If ($Script:UserSID -eq $FilterSID)
GetLastProfData -InstanceNumber 1
}#End If ($Script:UserSID -eq $FilterSID)
#If the detected SID via Sddl matches the UserSID, then connect to the registry to detect currently loggedon.
If ($Script:Sddl -eq $Script:UserSID)
$Reg = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey([Microsoft.Win32.RegistryHive]"Users",$Computer)
$Loaded = $Reg.GetSubKeyNames() -contains $Script:UserSID.Value
#Convert SID to Account for friendly display
$Script:UserSID = New-Object System.Security.Principal.SecurityIdentifier($Script:UserSID)
$User = $Script:UserSID.Translate([System.Security.Principal.NTAccount])
}#End If ($Script:Sddl -eq $Script:UserSID)
Else
$User = $Script:UserName
$Loaded = "Unknown"
}#End Else
}#End If ($Build -le 6000)
#Creating Custom PSObject For Output
New-Object -TypeName PSObject -Property @{
Computer=$Computer
User=$User
SID=$Script:UserSID
Time=$Script:Time
CurrentlyLoggedOn=$Loaded
} | Select-Object Computer, User, SID, Time, CurrentlyLoggedOn
}#End Try
Catch
If ($_.Exception.Message -Like "*Some or all identity references could not be translated*")
Write-Warning "Unable to Translate $Script:UserSID, try filtering the SID `nby using the -FilterSID parameter."
Write-Warning "It may be that $Script:UserSID is local to $Computer, Unable to translate remote SID"
Else
Write-Warning $_
}#End Catch
}#End Foreach ($Computer in $ComputerName)
}#End Process
End
#Resetting ErrorActionPref
$ErrorActionPreference = $TempErrAct
}#End End
}# End Function Get-LastLogonThis should work:
Get-LastLogon -Computername (Get-content .\Servers.txt) | Export-CSV .\Output.csv -NoTypeInformation
I just tested it on my test domain and it did the trick. -
we are using VS 2013, I need to run multiple Coded UI Ordered Tests in parallel on different agents.
My requirement :
Example: I have 40 Coded UI Test scripts in single solution/project. i want to run in different OS environments(example 5 OS ). I have created 5 Ordered tests with the same 40 test cases.
I have one Controller machine and 5 test agent machines. Now I want my tests to be distributed in a way that every agent gets 1 Ordered test to execute.
Machine_C = Controller (Controls Machine_1,2,3,4,5)
Machine_1 = Test Agent 1 (Should execute Ordered Test 1 (ex: OS - WIN 7) )
Machine_2 = Test Agent 2 (Should execute Ordered Test 2 (ex:
OS - WIN 8) )
Machine_3 = Test Agent 3 (Should execute Ordered Test 3
(ex: OS - WIN 2008 server) )
Machine_4 = Test Agent 4 (Should execute Ordered Test 4 (ex:
OS - WIN 2012 server) )
Machine_5 = Test Agent 5 (Should execute Ordered Test 5 (ex:
OS - WIN 2003 server) )
I have changed the “MinimumTestsPerAgent” app setting value
as '1' in controller’s configuration file (QTController.exe.config).
When I run the Ordered tests from the test explorer all Test agent running with each Ordered test and showing the status as running. but with in the 5 Test Agents only 2 Agents executing the test cases remaining all 3 agents not executing the test cases but
status showing as 'running' still for long time (exp: More then 3 hr) after that all so its not responding.
I need to know how I can configure my controller or how I can tell it to execute these tests in parallel on different test agents. This will help me reducing the script execution time.
I am not sure what steps I am missing.
It will be of great help if someone can guide me how this can be achieved.
-- > One more thing Can I Run one Coded UI Ordered Test on One Specific Test Agent?
ex: Need to run ordered Test 1 in Win 7 OS (Test Agent 1) only.
Thanks in Advance.Hi Divakar,
Thank you for posting in MSDN forum.
As far as I know, we cannot specify coded UI ordered test run on specific test agent. And it is mainly that test controller determine which coded UI ordered test assign to which test agent.
Generally, I know that if we want to run multiple CodedUI Ordered Tests over multiple Test Agents for parallel execution using Test Controller.
We will need to change the MinimumTestsPerAgent property to 1 in the test controller configuration file (QTControllerConfig.exe.config) as you said.
And then we will need to change the bucketSize number of tests/number of machines in the test settings.
For more information about how to set this bucketSize value, please refer the following blog.
http://blogs.msdn.com/b/aseemb/archive/2010/08/11/how-to-run-automated-tests-on-different-machines-in-parallel.aspx
You can refer this Jack's suggestion to run your coded UI ordered test in lab Environment or load test.
https://social.msdn.microsoft.com/Forums/vstudio/en-US/661e73da-5a08-4c9b-8e5a-fc08c5962783/run-different-codedui-tests-simultaneously-on-different-test-agents-from-a-single-test-controller?forum=vstest
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Difficulties to create a Siebel script with e-Tester
Hello,
I am trying to make a script for a load test on a Siebel 8.0 application.
I have 2 difficulties :
- I tried to drill-down on a contact, to see its detail, but when replaying the script, it doesn't and finish by a time out.
- when recording a script, when I try to go "File" to disconnect, I have an error message from Internet Explorer : "an error has orccured in the script of this page, Do you want to continue running scripts on this page : YES / NO". No matter what I click I can't go to the file menue. So I disconnect with CTRL+SHIFT+X. But when I replay my script, it doesn't seem to recognize the keyboard order, and doesn't disconnect, and finish by a time out.
Does anyone know what I should do ?
Thanks in advance,
Regards,
VincentHi,
I'm facing the same problems while recording a simple connect/disconnect scenario.
I'm using Siebel 8.0.0.2 and e-Tester 8.30.0737, I activated the automation on the loyalty component.
I copied the ssdtcorr.dll library file into the e-Tester directory, in the settings i checked all the checkboxes in the "enable siebel support" page.
I tried differents methods:
- Recording a functional test in eTester :
I'm starting with the Automation page loyalty_fra/start.swe?SWECmd=AutoOn
I'm logging into loyalty, after entering the login and the password:
if i submit the form with the mouse it works.
if i submit the form directly with the enter key, the playback failed.
if i submit the form with the tab key twice to highlight the arrow button and next the enter key it works.
Next i'm logoff loyalty:
if i use the java script menu and disconnect it fails with a timeout
if i use the keyboard shortcut Ctrt + Maj + X it fails with a timeout too.
- Recording a load test using the proxy and an external IE6 :
I'm starting with the Automation page loyalty_fra/start.swe?SWECmd=AutoOn: [1] AutoOn
Next i'm loggin into loyalty using the mouse to click on the validate button : [2] Execute Login
And i'm logoff with the java script menu : [3] No title, [4] BatchCanInvoke, [5] Logoff
The playback failed with a timeout in "[2] Execute Login".
I tried the same scenario using the keyboard only :
I'm starting with the Automation page loyalty_fra/start.swe?SWECmd=AutoOn: [1] AutoOn
Next i'm loggin into loyalty with keyboard only : [2] Execute Login
And i'm logoff with the keyboard shortcut Ctrl + Maj + X : [3] No title, [4] UpdatePrefMsg, [5] No title
The playback failed again with a timeout in "[2] Execute Login".
Any help would be really appreciated! -
How can i execute codedui scripts by using dll
how Can I Execute Coded UI scripts by using the DLL from anywhere after creating the build
Hi yellesh,
If you mean that you want to run your test with bat file, as far as I know, we could call the MSTEST command line.
set mstestPath="C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE"
%mstestpath%\mstest /testcontainer:AutomatedUITest.dll /resultsfile:TestOutput.trx
Reference:
https://social.msdn.microsoft.com/Forums/en-US/29af65b3-598b-4205-80e6-35b942113f3b/how-to-run-coded-ui-scripts-trhu-bat-file?forum=vsautotest
https://social.msdn.microsoft.com/Forums/en-US/42a5d8f2-fe58-4133-b09d-28fa0553ab1a/run-coded-ui-test-in-certain-moment-in-future?forum=vsautotest
Best Regards,
Jack
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Maybe you are looking for
-
New and in need of a lot of help
Hi guys I think i have G3 i don't really know what all that means but i still need your help. I have never even touched an apple computer before so bear with me please. I have a linksys SRX 200 wireless router and I need to know if I can get the appl
-
Maintain settlement rules for order category 30(Maintenance order).
Hi Gurus, Can we maintain two settlement rules for an order without distribution rule? Eample:- In an order there are three different costs i.e. material cost,external labour cost and internal labour cost.We want to settle the material cost and ext
-
How do I set individual sound alerts for multiple email accounts?
How do I set individual sound alerts for multiple email accounts?
-
External clocking on 6711 card
Hi all, I just read the manual of the card PCI6711, it supports the external clock. So does it mean we can change the update rate by using different external clock rate?
-
My Keyboard doesn´t sound
I have activated the sound for my keyboard but it doesn´t sound. Of course I have checked that the volume is activated too. Any idea about what´s happening? Regards.